1 2004-12-18 Alexandre Duret-Lutz <adl@gnu.org>
3 * lib/config-ml.in, lib/config.guess, lib/config.sub,
4 lib/texinfo.tex: New upstream versions.
6 * doc/automake.texi (gettext): Move the paragraph about
8 (Emacs Lisp): ... here.
9 Report from Bruno Haible.
11 * doc/automake.texi: Bump GFDL version to 1.2, since that is
14 * doc/automake.texi: Fix more misuses of @ref, @xref and @pxref,
15 including some of the "corrections" below. Thanks to Karl Berry.
17 * doc/automake.texi: Correct several misuses of @xref and @pxref.
19 2004-12-17 Jim Meyering <jim@meyering.net>
21 * install-sh: Use `(exit N); exit N', not `(exit N); exit'.
22 Otherwise, install-sh could exit with improper exit status when
23 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
25 2004-12-14 Akim Demaille <akim@epita.fr>
27 * doc/automake.texi (Options): Englishoes.
28 (Options): And another.
30 2004-12-13 Alexandre Duret-Lutz <adl@gnu.org>
32 * ChangeLog.03: New file, extracted from ChangeLog.
33 * Makefile.am (EXTRA_DIST): Add it.
35 2004-12-12 Alexandre Duret-Lutz <adl@gnu.org>
37 * automake.in (check_user_variables): New function, extracted
39 (handle_languages): ... here.
40 (handle_languages, define_compiler_variable, define_link_variable):
42 (handle_single_transform): Check _LIBTOOLFLAGS in
43 addition to other per-target flags for Libtool objects.
44 (handle_libtool): Warn if LIBTOOLFLAGS is defined.
45 * doc/automake.texi (Libtool Flags, Program and Library Variables,
46 Flag Variables Ordering): Document LIBTOOLFLAGS.
47 * tests/libtool7.test: Check basic support for LIBTOOLFLAGS.
48 * tests/libtool8.test: Make sure Automake warns about LIBTOOLFLAGS
50 * tests/subobj9.test: Adjust.
52 2004-12-11 Alexandre Duret-Lutz <adl@gnu.org>
54 * doc/automake.texi (Per-Object Flags): New node.
56 2004-12-09 Alexandre Duret-Lutz <adl@gnu.org>
59 * lib/am/java.am (install-%DIR%JAVA, uninstall-%DIR%JAVA): Do
60 not install *.class if "$(%DIR%_JAVA)" is empty.
61 * tests/java3.test: New file.
62 * tests/Makefile.am (TESTS): Add it.
63 Report from Johannes Nicolai.
65 * doc/automake.texi (Java): Mention dist_ and add an example.
66 * tests/java.test: Do actually compile java files and run distcheck.
68 2004-12-08 Peter O'Gorman <peter@pogma.com>
69 Alexandre Duret-Lutz <adl@gnu.org>
71 * lib/Automake/FileUtils.pm (dir_has_case_matching_file,
72 reset_dir_cache): New functions.
73 * automake.in (handle_dist, require_file_internal): Use them, so
74 that CHANGELOG is not confused with ChangeLog on case-insensitive
75 case-preserving file systems.
76 * tests/hfs.test: New file.
77 * tests/Makefile.am (TESTS): Add hfs.test.
79 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
81 * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
82 the spaces inside $ls_command. Problem reported by Loulou Pouchet in
83 <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
84 Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
86 2004-12-05 Toshio Kuratomi <toshio@tiki-lounge.com>
88 * lib/py-compile: Add --destdir switch to py-compile that takes a
89 path argument that is not compiled into the file when byte compiling.
90 * lib/am/python.am: Use the new py-compile arguments to not include
91 DESTDIR in the byte compiled files.
92 * tests/python12.test: Test that DESTDIR won't be byte compiled into
95 2004-12-05 Alexandre Duret-Lutz <adl@gnu.org>
97 * doc/automake.texi (Clean): Typo.
99 * doc/automake.texi: Use @acindex for Autoconf macros, and @vindex
100 for variables (@cvindex was previously used for both). Separate
101 these two indices in the output. Use @code, @file, and @command
102 in @cindex lines wherever appropriate so they render nicely.
104 2004-12-05 Stepan Kasal <kasal@ucw.cz>
106 * doc/automake.texi (renamed objects, CVS): Typos.
108 2004-12-05 Alexandre Duret-Lutz <adl@gnu.org>
110 * doc/automake.texi (Flag Variables Ordering): New section.
111 (User Variables, Program and Library Variables): @xref it.
113 2004-11-24 Alexandre Duret-Lutz <adl@gnu.org>
115 * doc/automake.texi (Conditional Subdirectories): More comments
116 about non-distributed subdirectories.
118 * Makefile.am (maintainer-clean): Check for unescaped @ in manual.
120 2004-11-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
122 * doc/automake.texi (Built sources example): Fix typo.
124 2004-11-22 Alexandre Duret-Lutz <adl@gnu.org>
126 * aclocal.in (parse_arguments): Diagnose abbreviation ambiguous with
128 * automake.in (parse_arguments): Likewise.
129 * tests/aclocal.test, tests/automake.test: Check this.
130 Report from Eric Blake.
132 2004-11-21 Alexandre Duret-Lutz <adl@gnu.org>
134 * automake.in (parse_arguments): Diagnose empty arguments, options
135 with missing argument, and support `--'.
136 * aclocal.in (parse_arguments): Diagnose options with missing
138 * tests/aclocal.test: More checks.
139 * tests/automake.test: New file.
140 * tests/postprog.test: Use `--' for fun.
141 * tests/Makefile.am (TESTS): Add automake.test.
142 Report from Eric Blake.
144 * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with
145 /dev/null as input, so we do not hang on programs that read their
146 input without supporting --help and --version.
147 * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise for scripts.
148 * tests/gnits2.test: Change scriptnok.sh to cat its input.
149 Report and fix from James Youngman.
151 2004-11-17 Alexandre Duret-Lutz <adl@gnu.org>
153 * aclocal.in (%file_seen): Rename as ...
154 (%file_added): ... this, and move it close to add_file(), the only
155 function that uses it.
157 * aclocal.in (version): Remove initial blank line and reproduce
158 the layout of automake --version. From Art Haas.
160 * aclocal.in (%file_type, FT_USER, FT_AUTOMAKE_SYSTEM): New variables.
161 (scan_m4_dirs): New function, extracted from ...
162 (scan_m4_files): ... here. Call scan_m4_files three times, for each
164 (scan_file): Take a file type argument to update %file_type.
165 (write_aclocal): Do not m4_include files that are not of type FT_USER.
166 * tests/dirlist.test: Make sure m4_include is not used for --acdir
169 * tests/defs.in (testaclocaldir): New variable.
170 * tests/aclocal.test: Use it to fix the test. Report from
173 2004-11-10 Alexandre Duret-Lutz <adl@gnu.org>
175 * m4/python.m4 (AM_PATH_PYTHON): Fix the invocation of
176 AC_PATH_PROGS to correctly define PYTHON as `:' when no interpreter
177 is found (this worked correctly only when a minimal version was
178 passed to AM_PATH_PYTHON). Report from Stepan Kasal.
179 (_AM_PYTHON_INTERPRETER_LIST): Define using m4_define_default,
180 so we can easily override the list from the test suite.
181 * tests/python11.test: New file.
182 * tests/Makefile.am (TESTS): Add python11.test.
184 * doc/automake.texi (Libtool Modules): Make clearer that -module
185 should appear explicitly in _LDFLAGS.
187 2004-11-09 Alexandre Duret-Lutz <adl@gnu.org>
189 * aclocal.in (parse_arguments): Correctly recognize --print-ac-dir.
190 * tests/aclocal.test: Check --print-ac-dir and a unknown option.
192 * aclocal.in (parse_arguments): Fix detection of unexisting default
193 $(datadir)/aclocal. Report from Akim.
195 2004-11-07 Alexandre Duret-Lutz <adl@gnu.org>
197 * aclocal.in ($acdir): Rename as ...
198 (@system_includes): ... this.
199 (@user_includes, @automake_includes): New variables.
200 ($default_acdir, $default_dirlist): Remove.
201 (parse_arguments): Populate @user_includes, @automake_includes, and
202 @system_includes instead of filling a unique @dirlist array.
203 ("MAIN"): Adjust to scan m4 files in @user_includes,
204 @automake_includes, and @system_includes.
206 2004-11-06 Alexandre Duret-Lutz <adl@gnu.org>
208 * aclocal.in (parse_arguments): Correct comment. From Akim.
210 2004-11-04 Alexandre Duret-Lutz <adl@gnu.org>
212 * aclocal.in: Use Automake::ChannelDefs, and adjust all output
213 to be done via `fatal', `msg', `verb', or `prog_error'.
214 (version): New function.
215 (parse_arguments): Rewrite using Getopt::Long, call &version, and
216 honor -W and --warning.
218 (trace_used_macros): Do not trace the first arguments of macros
219 for which we do not need it. This caused failures because of
220 unexpected newlines in the output.
221 * doc/automake.texi (aclocal options): Document -W and --warning.
222 * tests/defs.in (ACLOCAL): Always use -Werror, to catch Perl
223 warnings about uninitialized variables.
225 2004-11-03 Alexandre Duret-Lutz <adl@gnu.org>
227 * tests/defs.in: Do not distinguish VERBOSE=x from
228 VERBOSE=anything_but_x, always turn on shell traces.
230 * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists
231 before using it. Suppress a warning observable in test/acloca16.test.
232 Report from Ralf Wildenhues.
234 2004-11-01 Alexandre Duret-Lutz <adl@gnu.org>
236 * lib/Automake/XFile.pm (lock): Make sure $ENV{'MAKEFLAGS'} exists
237 before inspecting it; this fixes "uninitialized value in
238 concatenation" diagnostics when flock fails.
239 Report from Gary V. Vaughan.
241 * aclocal.in: Use strict and -w. Declare local variables with `my',
242 and get rid of `local'.
243 (scan_m4_files, add_macro): Reindent these functions while we are
246 * lib/config.guess, lib/texinfo.tex: New upstream versions.
248 * doc/automake.texi (LIBOBJS): Spelling and grammar corrections
249 from Ralf Wildenhues.
251 2004-10-31 Alexandre Duret-Lutz <adl@gnu.org>
253 * doc/automake.texi (LIBOBJS): Augment with an example setup.
254 (LTLIBOBJ): Rename as ...
255 (LTLIBOBJS): ... this. Link to LIBOBJS, and mention LTALLOCA.
257 2004-10-25 Alexandre Duret-Lutz <adl@gnu.org>
259 * doc/automake.texi: Untabify, tabs in the examples are poorly
261 * Makefile.am (maintainer-check): Grep tabs in the manual.
263 * tests/comment8.test: Use $MAKE, not make.
265 2004-10-24 Alexandre Duret-Lutz <adl@gnu.org>
267 * tests/distcom3.test: Typo.
269 2004-10-22 Alexandre Duret-Lutz <adl@gnu.org>
271 * doc/automake.texi (Libtool Convenience Libraries): Explain how
272 to force the linker selection.
274 * lib/install-sh: Fix the dirname emulation to ignore trailing
275 slashes, i.e., the direname of `a/b/' is `a', not `a/b/'. This
276 caused `install-sh a/b/' to fail.
277 * tests/instsh2.test: Augment.
278 Report from Пухальский Юрий Андреевич.
280 2004-10-21 Alexandre Duret-Lutz <adl@gnu.org>
282 * automake.in (get_object_extension): The extension to use is know
283 by the caller, and cannot be selected by looking only at the
284 target name. Simplify this function to simply conditionally
285 prepend $U to the given extension.
286 (handle_programs, handle_libraries, handle_ltlibraries): Hard-code
287 the extension to use. This way Automake won't mistake a program
288 named `foo.la' as a libtool library.
289 * tests/primary3.test: New file.
290 * tests/Makefile.am (TESTS): Add primary3.test.
292 2004-10-12 Alexandre Duret-Lutz <adl@gnu.org>
294 * doc/automake.texi (Install): Link to node Extending for examples.
295 (Extending): More comments about install-data-hook vs
296 install-exec-hook, and link to Install.
298 * configure.ac: Export @am_AUTOCONF@.
299 * tests/defs.in (AUTOCONF): Define as @am_AUTOCONF@, not @AUTOCONF@,
300 so the test suite runs `autoconf' and not `missing --run autoconf'.
301 * tests/missing.test, tests/missing2.test: Arrange for missing
302 to be used in front of autoconf even if the user has exported
303 AUTOCONF. This fixes two spurious failures reported by
306 * lib/compile: Handle output.obj in addition to output.o.
307 * tests/compile.test: Check for this.
309 2004-10-11 Alexandre Duret-Lutz <adl@gnu.org>
311 * doc/automake.texi (Sources): Typo, reported by Karl Berry.
313 2004-10-10 Kelley Cook <kcook@gcc.gnu.org> (tiny change)
314 Alexandre Duret-Lutz <adl@gnu.org>
316 * aclocal.in ($ac_defun_rx): Match AC_DEFUN_ONCE.
317 (trace_used_macros): Trace AC_DEFUN_ONCE.
318 * tests/aclocal5.test: Use AC_DEFUN_ONCE.
320 2004-10-10 Stepan Kasal <kasal@ucw.cz> (tiny change)
322 * doc/automake.texi (Extending): Typo.
324 2004-10-10 Martin Waitz <tali@admingilde.org> (tiny change)
326 * m4/as.m4 (AM_PROG_AS): Check dependency tracking mode for CCAS.
327 * automake.in (cppasm): Use the dependency tracking more for CCAS.
328 * doc/automake.texi (Assembly Support): Note that *.S are
329 preprocessed with CPPFLAGS.
331 2004-10-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
333 * automake.in (Languages): Split .s (asm) and .S (cppasm) into
334 separate languages. Make cppasm (Preprocessed Assembler) aware
335 of CPPFLAGS, AM_CPPFLAGS.
336 (handle_languages): Fix typo.
337 (lang_cppasm_rewrite): New function.
339 2004-09-29 Alexandre Duret-Lutz <adl@gnu.org>
341 * tests/subobj9.test: Adjust regexes after previous patch.
343 2004-09-28 Alexandre Duret-Lutz <adl@gnu.org>
345 * automake.in (handle_languages, define_compiler_variable): Output
346 Libtool's --tag= option before --mode=compile, because depcomp use
347 --mode=compile as end marker for libtool arguments.
348 (define_linker_variable): Likewise before --mode=link, for
350 * tests/pr307.test: Make sure dependency files are updated. That
351 was not the case because depcomp thought `--tag=CC' was the
352 compiler to get dependencies from.
353 Report from Пухальский Юрий Андреевич.
355 2004-09-26 Alexandre Duret-Lutz <adl@gnu.org>
357 * configure.ac: Require Perl 5.6.
358 * lib/Automake/Config.in: Require Perl 5.6 (not done in
359 lib/Automake/General.pm because it is shared with Autoconf),
360 and use `our' instead of `use vars'.
361 * aclocal.in (rel2abs): Remove.
362 (scan_configure_dep): Use File::Spec->rel2abs instead.
364 * tests/compile.test, tests/instsh2.test, tests/instspc.test: Use
365 two consecutive spaces in filename instead of one, to catch mistake
366 like `echo $val | ...`.
367 * tests/README: Suggest this.
368 Suggested by Ralf Wildenhues.
370 2004-09-25 Alexandre Duret-Lutz <adl@gnu.org>
372 * doc/automake.texi (Clean): Document -local targets.
374 2004-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
376 * doc/automake.texi: Typos.
378 2004-09-21 Alexandre Duret-Lutz <adl@gnu.org>
380 * doc/automake.texi (Timeline): Typos and other English mistakes
381 reported by Jim and Gary.
383 * lib/Automake/VarDef.pm (append): Strip comments from augmented
385 * tests/comment8.test: New file.
386 * tests/Makefile.am (TESTS): Add comment8.test.
387 Report from Stepan Kasal.
389 2004-09-19 Alexandre Duret-Lutz <adl@gnu.org>
391 * tests/compile.test: Fix rm usage.
393 * INSTALL, lib/INSTALL, lib/config.sub, lib/config.guess,
394 lib/texinfo.tex: New upstream versions.
396 * doc/automake.texi (Timeline): New node. Thanks to Karl and Tom
397 for their comments on a preliminary version of this, Akim for
398 digging out some old mails, and Jason Molenda for sending the note
399 about Automake in Alias to Tom.
400 (Releases): Rename `ac' to `acl', suggested by Akim.
402 2004-09-19 Akim Demaille <akim@epita.fr>
404 * AUTHORS, automake.in, aclocal.in: Add Alexandre Duret-Lutz as
407 2004-09-15 Alexandre Duret-Lutz <adl@gnu.org>
409 * doc/automake.texi (Releases): New node.
411 * doc/automake.texi (Dependencies): Link to Dependency Tracking
413 (Dependency Tracking Evolution): Link to GNU make, Sources (for
414 BUILT_SOURCES), and update the paragraph about the "plan" to
415 inline dependency tracking with gcc3.
417 * doc/automake.texi (History): New node.
418 (Dependency Tracking Evolution): New node, filled with a Texinfo
419 version of Tom Tromey's ``Dependency Tracking in Automake''
420 document, initially published on the Automake homepage on
423 2004-09-10 Alexandre Duret-Lutz <adl@gnu.org>
425 * m4/minuso.m4 (AM_PROG_CC_C_O): Make sure AC_PROG_CC is never
426 called after this macro.
427 * tests/distname.test, tests/subdir5.test, tests/subdir8.test,
428 tests/subobj.test, tests/subobj4.test, tests/subobj5.test,
429 tests/subobj6.test: Adjust.
430 Report from Ralf Wildenhues.
432 * lib/Automake/Channels.pm (_print_message): Handle uniq_part with
434 * automake.in (lang_c_rewrite): Set uniq_part so that the
435 AM_PROG_CC_C_O diagnostic is output only once for subdir objects
436 and only once for objects with per-target flags.
438 * automake.in (lang_c_rewrite): Print files and locations
439 for AM_PROG_CC_C_O errors.
440 (handle_single_transform): Pass $var to &$subr so it can
443 * lib/compile, lib/elisp-comp, lib/install-sh, lib/ylwrap: Use $ret
444 instead of $status which is read-only in Zsh.
446 2004-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
447 Alexandre Duret-Lutz <adl@gnu.org>
449 * lib/compile: Preserve spaces in arguments (for example
450 -DPACKAGE_STRING="foo 0.1").
451 * tests/compile.test: New file.
452 * tests/Makefile.am (TESTS): Add compile.test.
454 2004-09-07 Alexandre Duret-Lutz <adl@gnu.org>
456 * automake.in (handle_clean): Sort rm commands output for
457 mostlyclean-generic, clean-generic, distclean-generic, and
458 maintainer-clean-generic.
459 Report from Bob Friesenhahn.
461 * automake.in (lang_c_rewrite): Do not require AM_PROG_CC_C_O for
463 (handle_single_transform): Pass nonansi_obj to &$subr so
464 lang_c_rewrite can distinguish libtool objects.
465 * tests/libtool7.test: Use subdir-objects without using AM_PROG_CC_C_O.
466 Report from Gary V. Vaughan and Patrick Welche.
468 2004-09-07 Andreas Schwab <schwab@suse.de>
470 * automake.in ($PATH_PATTERN): Add `+'.
472 2004-09-07 Alexandre Duret-Lutz <adl@gnu.org>
474 * tests/missing3.test: New file (check for Paolo's change below).
475 * tests/Makefile.am (TESTS): Add missing3.test.
477 2004-09-07 Paolo Bonzini <bonzini@gnu.org>
479 * missing: Handle all command line options together. Add a
480 separate case statement to detect failed runs, and fail
481 silently there if --help or --version is passed to the program.
483 2004-08-11 Alexandre Duret-Lutz <adl@gnu.org>
485 * lib/config.guess, lib/texinfo.tex: New upstream versions.
488 * configure.ac (pkgvdatadir): Define using "$PACKAGE", not "automake".
491 * lib/am/yacc.am [!%?MORE-THAN-ONE%]: Replace `#line's in y.tab.h too.
492 * tests/yacc7.test: Check this.
494 2004-08-08 Alexandre Duret-Lutz <adl@gnu.org>
496 * lib/Automake/DisjConditions.pm (new): Precompute 'string' and 'conds'
497 in place instead of as a side-effect of calling ->string and ->conds.
498 This saves method-lookup time, simplify ->string and ->conds, and
499 allows to create the object only when necessary.
500 (string, conds): Simplify, now that the result is precomputed.
502 * automake.in (%am_file_cache): New hash.
503 (make_paragraphs): Cache .am files with comments stripped to save
504 some useless input and substitutions.
506 * lib/Automake/Variable.pm (%_primary_dict): New hash.
507 (_new, variable_delete): Update %_primary_dict.
508 (variables): Accept an optional $suffix argument.
509 * automake.in (check_typos, am_primary_prefixes): Use that
510 optional argument to restrict the loops over the variables we are
513 2004-08-06 Alexandre Duret-Lutz <adl@gnu.org>
515 * lib/Automake/Item.pm (def): Rewrite more concisely, it's faster
518 2004-08-05 Alexandre Duret-Lutz <adl@gnu.org>
520 Speed up make_paragraphs.
521 * automake.in (handle_languages): Always define SUBDIROBJ,
522 DERIVED-EXT, and DIST_SOURCE, because the new transform() will
523 abort on unknown tokens.
524 (transform): Rewrite with different semantics.
525 (make_paragraphs): Make a single pass over the paragraph to
526 transform all template tokens instead of doing as much passes as
529 * automake.in ($libtool_new_api): New variable.
530 (handle_libtool): Do not libtool's aux files if $libtool_new_api.
531 (scan_autoconf_traces) <LT_SUPPORTED_TAG>: Set $libtool_new_api.
532 (scan_autoconf_traces) <AC_REQUIRE_AUX_FILE>: Remember only the
533 first location for required files.
535 2004-08-04 Alexandre Duret-Lutz <adl@gnu.org>
537 Support AC_REQUIRE_AUX_FILE, and fix requirement of AM_PROG_CC_C_O.
538 * automake.in (%required_aux_file): New hash.
539 (handle_single_transform, lang_c_rewrite): Do not explicitly
540 require 'compile', this is now an internal detail of
542 (scan_autoconf_traces): Trace AC_REQUIRE_AUX_FILE and fill
544 (scan_autoconf_files): Require all %required_aux_file instead
545 of explicitly requiring install-sh and missing.
546 (generate_makefile): Do not require config.sub and config.guess.
547 (handle_single_transform): Pass $have_per_exec_flags to
549 * configure.ac, m4/init.m4: Require Autoconf 2.59a.
550 * doc/automake.texi (Optional): Document AC_REQUIRE_AUX_FILE.
551 (Program and Library Variables, Options, Public macros):
552 AM_PROG_CC_C_O is required when per-target flags or subdir-objects
553 are used with C sources.
554 * m4/minuso.m4: Require `compile' using AC_REQUIRE_AUX_FILE.
555 * m4/missing.m4: Require `missing' similarly.
556 * tests/acsubst2.test, tests/distcom2.test, tests/distcom6.test,
557 tests/specflg.test, tests/specflg2.test, tests/specflg3.test,
558 tests/specflg6.test, tests/specflg7.test, tests/specflg8.test,
559 tests/specflg9.test, tests/subobj7.test, tests/target-cflags.test,
560 tests/yacc6.test: Fix to use AM_PROG_CC_C_O.
562 2004-08-03 Alexandre Duret-Lutz <adl@gnu.org>
564 * automake.in (yacc_lex_finish_helper): Fix definition of YLWRAP
565 when ylwrap is installed in a default aux dir found in a parent
567 * tests/subpkg.test: Augment to check that YLWRAP is installed
569 * doc/automake.texi (Yacc and Lex): ylwrap is not sought is the
571 Report from Norman Gray.
573 2004-08-02 Alexandre Duret-Lutz <adl@gnu.org>
575 * doc/automake.texi (Optional): Update documentation for
576 AC_CANONICAL_BUILD, AC_CANONICAL_HOST, and AC_CANONICAL_TARGET.
578 * automake.in (AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): Replace by ...
579 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET): ... these.
580 (scan_autoconf_traces): Scan for the latter three macros instead of
582 (make_paragraphs): Adjust definitions of %BUILD%, %HOST%, and %TARGET%.
583 * tests/hosts.test: New file.
584 * tests/Makefile.am (TESTS): Add hosts.test.
585 Report and test case from Norman Gray.
587 2004-08-01 Alexandre Duret-Lutz <adl@gnu.org>
589 * aclocal.in (scan_file): Update "#Extending%20aclocal" URL, makeinfo
590 4.7 now outputs "#Extending-aclocal".
592 2004-08-01 Alexandre Duret-Lutz <adl@gnu.org>
593 Derek R. Price <derek@ximbiot.com>
595 Disable Lex and Yacc rules whenever possible if AM_MAINTAINER_MODE
596 is used and maintainer-mode disabled.
597 * automake.in (Automake::struct): Define nodist_specific.
598 Set it in languages yacc, yaccxx, lex, and lexxx.
599 (register_language): Default nodist_specific to 0.
600 (handle_single_transform): Honor nodist_specific.
601 * lib/am/yacc.am (am__skipyacc): Define this in maintainer mode.
602 (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skipyacc) to disable these
604 * lib/am/lex.am (am__skiplex): Define this in maintainer mode.
605 (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skiplex) to disable these
607 * tests/mmodely.test: New file.
608 * tests/pr204.test: Augment to check AM_MAINTAINER_MODE and nodist_
610 * tests/Makefile.am (TESTS): ADd mmodely.test.
611 * doc/automake.texi (Yacc and Lex): Note dependence on maintainer mode.
613 2004-07-28 Alexandre Duret-Lutz <adl@gnu.org>
615 * configure.ac, NEWS: Bump version to 1.9a.
617 * configure.ac, NEWS: Bump version to 1.9.
619 * automake.in (generate_makefile): Update misleading comment about
622 * lib/texinfo.tex: New upstream version.
624 2004-07-25 Alexandre Duret-Lutz <adl@gnu.org>
626 * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Remove `.' from the mkdir_p
627 definition, it causes `make install' to fails for user with no
628 right to write in the source-tree.
629 * automake.in (handle_configure): Do not use mkdir_p in the
630 definition for $(mkdir_p).
631 Report from Harlan Stenn.
633 * lib/am/texi-vers.am (%STAMPVTI%): Typo in comment.
635 2004-07-22 Alexandre Duret-Lutz <adl@gnu.org>
637 * doc/automake.texi (Libtool Modules): Typo in example.
638 Report from Ulrich Eckhardt.
640 2004-07-21 Andreas Schwab <schwab@suse.de> (tiny change)
642 * automake.in (check_directory): Quote $dir in regexp.
644 2004-07-17 Alexandre Duret-Lutz <adl@gnu.org>
646 * configure.ac, NEWS: Bump version to 1.8e.
648 * configure.ac, NEWS: Bump version to 1.8d.
650 * lib/config-ml.in, lib/config.sub, lib/config.guess, lib/texinfo.tex:
651 New upstream versions.
653 * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
654 ?!GENERIC?%DEST_PREFIX%.html): Use $(X), not ${X}.
656 * tests/installdir.test: installdirs-local should appear three times,
657 since the change from 2004-07-11 will make it PHONY.
659 * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
660 that it is always defined. This is less confusing for users
661 reading the generated Makefiles.
662 * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
664 * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
665 ?!GENERIC?%DEST_PREFIX%.html): Output .htp, and then rename to .html
666 on success. In case the target is a directory, this ensures its
667 time stamp is updated and the no files are left over inside.
668 * tests/txinfo21.test: Augment to test missing timestamp update
669 reported by Akim Demaille.
671 * doc/automake.texi (Top level): Rename as ...
672 (Directories): ... this, and split into ...
673 (Subdirectories, Conditional Subdirectories): ... these.
674 (Subdirectories): Illustrate the use of `.'.
675 (Conditional Subdirectories): Describe SUBDIRS and DIST_SUBDIRS
676 before the example. Append a discussion about non-configured
677 conditional directories.
678 (Alternative): Move as a child of Directories.
679 (Subpackages): New section.
680 (Dist): Adjust links to Subdirectories, a Subpackages.
681 (Third-Party Makefiles): Link to Conditional Subdirectories.
683 2004-07-14 Alexandre Duret-Lutz <adl@gnu.org>
685 * automake.in (target_hook): Accept %transform as last argument.
686 (handle_single_transform): Pass %transform to target_hook.
687 (handle_source_transform): Define DIST_SOURCE to tell whether
688 a the source of a file is distributed or not.
689 (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute
690 the generated header if the .y source is not distributed.
691 * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated
692 headers are not distributed.
694 2004-07-12 Simon Josefsson <jas@extundo.com> (tiny change)
696 * doc/automake.texi (Options): Improve ustar file name length
697 discussion. Reference tar manual.
699 2004-07-12 Ray Simard <rhs.techlists@sylvan-glade.com> (tiny change)
701 * lib/Automake/Variable.pm (define): Fix precondition check.
703 2004-07-11 Alexandre Duret-Lutz <adl@gnu.org>
706 Support for conditionally defined -hook and -local rules.
707 * automake.in (user_phony_rule): New function.
708 (handle_dist, handle_install, handle_all, do_check_merge_target,
709 handle_factored_dependencies): Use user_phony_rule before
710 adding a user -hook or -local rule as a dependency to ensure
711 it is always defined an phony.
712 * tests/cond37.test, tests/condhook.test: New files.
713 * tests/Makefile.am (TESTS): Add them.
714 Report from Simon Josefsson and Nik A. Melchior.
716 2004-07-05 Paul Eggert <eggert@cs.ucla.edu>
718 * doc/automake.texi (Install): Warn that you should create
719 /tmp/staging before installing into it, to avoid security problems.
720 * lib/install-sh: Remove support for -b= and -t= options; this
721 has been moribund for a decade.
722 Add support for -t and -T options (new in coreutils install).
723 -c option now does nothing (the default is to copy), for
724 compatibility with BSD and coreutils 'install'.
725 Fix usage message; it referred to nonexistent variables.
726 Don't assume 'lasterr' is unset in environment.
727 * tests/instsh2.test: Don't assume that install-sh without -c
728 moves (it now copies). Add tests for new -t and -T options.
730 2004-06-16 Alexandre Duret-Lutz <adl@gnu.org>
732 For Debian Bug#254372:
733 * doc/automake.texi (Invoking aclocal): Rewrite the paragraph
734 explaining m4_include is used for relative files.
736 2004-06-10 Alexandre Duret-Lutz <adl@gnu.org>
738 For Debian Bug #251820:
739 * aclocal.in (scan_file): Keep track of the location where each
740 file is included, and display it when reporting a missing file.
741 Pass this location to scan_file as a second argument.
742 (scan_m4_files): Adjust calls to scan_file.
743 * tests/acloca14.test: Add a test for this diagnostic.
745 2004-06-07 Alexandre Duret-Lutz <adl@gnu.org>
747 * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools
748 so it works with Solaris and Tru64 /bin/sh.
749 Report from Nicolas Joly.
751 2004-06-06 Alexandre Duret-Lutz <adl@gnu.org>
753 * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a
754 bug in NetBSD /bin/sh.
755 Report from Nicolas Joly.
757 2004-06-03 Alexandre Duret-Lutz <adl@gnu.org>
759 * tests/defs.in (required=icc): Use `-V -help' instead of
760 `-V -dryrun'. icc 8.0 fails on the latter.
761 * tests/depcomp5.test: Require depmode=icc for icc 7.x, and
762 depmod=gcc otherwise.
763 Report from Ralf Wildenhues.
765 * lib/am/clean.am (distclean-generic): Do no
766 `rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty.
767 Report from Nicolas Joly.
769 2004-05-31 Alexandre Duret-Lutz <adl@gnu.org>
771 * NEWS: Make clearer that we do not output partial Makefile.ins on
773 Suggested by Akim Demaille.
775 * lib/depcomp (tru64) [libtool]: Use $dir$base.o.d instead
776 of $dir.libs/$base.o.d. Libtool 1.5 causes both to be output,
777 and we will clean the second automatically during distclean.
778 Using the latter and leaving the former as we did before cause
779 "files left in build directory" failures during distcheck.
780 Suggested by Nicolas Joly.
782 * doc/automake.texi (Built sources example): Explain what
783 nodist_foo_SOURCES is (not) useful to, and use it in all the
785 (Tags): Mention nodist_noinst_HEADERS and nodist_prog_SOURCES.
786 Suggested by Akim Demaille.
788 2004-05-23 Alexandre Duret-Lutz <adl@gnu.org>
790 * configure.ac, NEWS: Bump version to 1.8c.
792 * configure.ac, NEWS: Bump version to 1.8b.
794 * m4/tar.m4 (_AM_PROG_TAR) <cpio>: Specify -o and -i option first,
795 by POSIX; and use option -d in am_untar.
797 * tests/defs.in (PATH): Export it.
799 * lib/am/multilib.am: Add $(MAKE) comments to multido and
800 multiclean lines, to enable parallel make. Based on a patch
801 by Alexandre Oliva applied to newlib on 2003-10-15.
803 2004-05-22 Alexandre Duret-Lutz <adl@gnu.org>
805 * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG
806 instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been
808 * tests/libtool3.test: Do not grep for --tag=CC, since CVS
809 Libtool (unlike Libtool 1.5) does not has any CC tag.
811 * tests/tar2.test: Skip the test if no pax archiver were found.
813 * NEWS: Sync with branch-1-8, and reorganize current entry.
815 * automake.in (handle_libraries): Make the diagnostic about
816 non standard libraries a warning in foreign packages. This
817 is already the case in handle_ltlibraries.
818 (handle_libraries, handle_ltlibraries): Suggest a standard
819 library name in the diagnostic, to help newcomers.
820 * tests/stdlib.test, tests/stdlib2.test: Check for these
823 Check directory names for unportable names. Shaking the code
824 to check this also led to the removal of the no-"/"-in-SUBDIRS
825 restriction, and a fix to _do_recursive_traversal.
827 * automake.in (check_directory): New function extracted from
828 handle_subdirs, and augmented to check for reserved W32/DOS name.
829 (check_directories_in_var): New function.
830 (handle_subdirs): Call check_directories_in_var. Doing so also
831 suppress the restriction that SUBDIRS should not contain slashes.
832 (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory
833 to ensure the argument exists and is safe.
834 * doc/automake.texi (Top level): Do not say that src/subdir
835 cannot be put in SUBDIRS.
836 (Dist): Mention that distdir and top_distdir can be absolute.
837 * lib/Automake/Variable.pm (_do_recursive_traversal) Support
838 undefined $fun_collect, and fix two bugs introduced with
839 skip_ac_subst on 2004-03-07.
840 * lib/am/distdir.am (distdir): Use absolute distdir and
841 top_distdir when recursing, because we can no longer prepend only
842 `..' in case of SUBDIRS with `/'.
843 * tests/auxdir4.test, tests/subdir9.test: New files.
844 * tests/Makefile.am (TESTS): Add auxdir4.test.
845 * tests/cond2.test, tests/subdir7.test: Augment to check location
848 2004-05-21 Eric Blake <ebb9@byu.net> (tiny changes)
850 * tests/txinfo22.test (AC_CONFIG_AUX_DIR): Use aux1, not aux, for
851 cygwin compatibility.
852 * tests/yacc6.test (AC_CONFIG_AUX_DIR): Likewise.
854 * tests/conflnk3.test: Isolate checking for working `test -e' into
855 a subshell, to skip this test on broken /bin/sh of solaris.
857 2004-05-17 Alexandre Duret-Lutz <adl@gnu.org>
859 * m4/cond.m4 (AM_CONDITIONAL): Double-quote diagnostic.
860 * tests/condd.test: Define a macro with the same name as a
862 * tests/pr220.test: Modernize, and make sure the diagnostics
863 contains the macro name.
864 Report from Volker Boerchers.
866 2004-05-16 Alexandre Duret-Lutz <adl@gnu.org>
868 * lib/texinfo.tex: New upstream version.
870 2004-05-15 Alexandre Duret-Lutz <adl@gnu.org>
872 * automake.in (handle_dist): Always define DIST_SUBDIRS, even when
873 the no-dist or cygnus options are used.
874 * tests/clean2.test: New file.
875 * tests/Makefile.am (TESTS): Add clean2.test.
876 Report from Daniel Jacobowitz.
878 * aclocal.in (add_macro): Do not error out on undefined required
879 macros. We are not sure they are really used, and Autoconf
880 already diagnoses them.
881 (scan_configure_dep): Diagnose missing AM_ macros as warnings rather
883 * tests/aclocal3.test, tests/ammissing.test: Adjust to expect a
884 warning instead of an error.
885 * tests/aclocal8.test: AC_REQUIRE an undefined macro in an unused
886 macro, and ensure aclocal works anyway.
887 * tests/acloca17.test: New file.
888 * tests/error.test: Delete, superseded by tests/acloca17.test.
889 * tests/Makefile.am (TESTS): Add acloca17.test and remove error.test.
890 Report from Jim Meyering.
892 * lib/am/texibuild.am (?!GENERIC_INFO?%DEST_INFO_PREFIX%%DEST_SUFFIX%):
893 Fold a few lines to reduce the output by 5 lines.
894 Suggested by Karl Berry.
896 * automake.in (parse_arguments, MAIN): Give more precise
897 diagnostics when no input file is found.
898 * tests/output5.test: Adjust.
899 Suggested by Jens Petersen.
901 2004-05-14 Alexandre Duret-Lutz <adl@gnu.org>
903 * lib/am/libs.am (AR, ARFLAGS): Move these definition ...
904 * automake.in (handle_libraries): ... here, so that they are
905 output even for EXTRA_LIBRARIES.
906 * tests/ar2.test: New file.
907 * tests/Makefile.am (TESTS): Add it.
908 Report from Kevin Ryde.
910 2004-05-13 Alexandre Duret-Lutz <adl@gnu.org>
912 * automake.in (generate_makefile): Do not output Makefile.in on
914 * tests/werror2.test: New file.
915 * tests/Makefile.am (TESTS): Add werror2.test.
916 * tests/substtarg.test, tests/cond36.test, tests/backsl4.test:
917 Adjust to run automake with -Wno-error when the output is expected
918 in spite of the error.
919 Report from Harlan Stenn.
921 * doc/automake.texi (Program and Library Variables): Remove
922 doubled word in footnote.
924 * automake.in (handle_source_transform): Also check for a
925 $(srcdir)/old_source rule when computing the default source name.
926 Propagate this $(srcdir) prefix in Automake variables.
927 * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to
928 $(srcdir)/zoo_d_old2_la.c. This fixes another failure with BSD Make.
930 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
932 * Makefile.am (fetch): Work even with FreeBSD "make", which
933 uses sh -e and thus errors-out if a simple-command fails.
934 * lib/am/check.am (check-TESTS): Likewise.
935 * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Likewise.
936 * lib/am/tags.am (TAGS): Likewise.
938 2004-05-13 Alexandre Duret-Lutz <adl@gnu.org>
940 * tests/lex3.test, tests/yacc6.test: Require GNU Make.
941 Fixing these for BSD Make requires invasive changes (lexers and
942 parsers must be built into $srcdir, and--most annoyingly--all
943 references to parse.h must be changed to $(srcdir)/parse.h).
944 Report from Mark D. Baushke.
946 2004-05-10 Alexandre Duret-Lutz <adl@gnu.org>
948 * tests/defs.in (GNUmake): Grep for GNU to parry FreeBSD make.
949 Report from Mark D. Baushke.
951 2004-04-25 Alexandre Duret-Lutz <adl@gnu.org>
953 * lib/texinfo.tex: New upstream version.
955 * lib/depcomp (tru64): Clarify comments. Thanks to Nicolas Joly.
957 * doc/automake.texi (Headers): Revamp.
959 2004-04-24 Alexandre Duret-Lutz <adl@gnu.org>
961 * automake.in (check_typos): Clarify the diagnostic.
962 * tests/warnopts.test: Adjust.
964 * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into
965 VAR_PRETTY variables to work around make implementation with
966 limited line length, such as OSF1/Tru64 make.
967 * tests/longline.test: New file.
968 * tests/Makefile.am (TESTS): Add it.
969 * tests/pluseq3.test, tests/pluseq8.test: Adjust.
970 Report from Simon Josefsson.
972 * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if
973 --etags-include is used but no other files are supplied, so it
974 creates the TAGS file anyway.
975 Report from Akim Demaille.
977 * lib/depcomp (tru64) [libtool]: Nicolas Joly reported on
978 2002-06-12 that dependencies were output in $dir.libs/$base.lo.d.
979 Teun Burgers reported on 2004-03-30 they were in
980 $dir.libs/$base.o.d. Try both.
982 2004-04-23 Alexandre Duret-Lutz <adl@gnu.org>
985 Introduce option filename-length-max=99.
986 * doc/automake.texi (Options): Document it.
987 * configure.ac (AM_INIT_AUTOMAKE): Use it.
988 * lib/Automake/Options.pm (_process_option_list): Recognize it.
989 * automake.in (handle_dist): Set FILENAME_FILTER.
990 * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long
992 * tests/fn99.test: New file.
993 * tests/Makefile.am (TESTS): Add fn99.test.
995 2004-04-20 Alexandre Duret-Lutz <adl@gnu.org>
998 Introduce options tar-v7, tar-ustar, and tar-pax to select
1000 * doc/automake.texi (Options): Document them.
1001 * lib/Automake/Options.pm (_process_option_list): Process
1003 * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist,
1004 distcheck): Adjust to use am__tar and am__untar.
1005 * m4/tar.m4: New file.
1006 * m4/Makefile.am (dist_m4data_DATA): Add tar.m4.
1007 * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options
1008 and call _AM_PROG_TAR.
1009 * tests/tar.test, tests/tar2.test, tests/tar3.test: New files.
1010 * tests/Makefile.am (TESTS): Add them.
1012 2004-04-18 Alexandre Duret-Lutz <adl@gnu.org>
1014 * lib/am/distdir.am (distcheck): Typo in shar decompression.
1016 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
1019 2004-04-17 Alexandre Duret-Lutz <adl@gnu.org>
1022 * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose
1023 calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE.
1024 * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test,
1025 tests/mdate3.test, tests/multlib.test, tests/reqd2.test,
1026 tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test,
1027 tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR
1028 before AM_INIT_AUTOMAKE.
1029 * tests/auxdir3.test: New file (exercise this diagnostic).
1030 * tests/Makefile.am (TESTS): Add auxdir3.test.
1032 2004-04-15 Alexandre Duret-Lutz <adl@gnu.org>
1034 * aclocal.in (%map_traced_defs): New variable.
1035 (scan_m4_files): Normalize filenames.
1036 (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also
1037 ask for the filename and the first argument. Populate
1039 (write_aclocal): Use $map_traced_defs to filter out unused
1041 * tests/acloca16.test: New file.
1042 * tests/Makefile.am (TESTS): Add acloca16.test.
1044 2004-04-12 Alexandre Duret-Lutz <adl@gnu.org>
1046 * automake.in ($automake_needs_to_reprocess_all_files): Remove.
1047 ($automake_will_process_aux_dir): New variable.
1048 (scan_autoconf_traces): Reorder @input_files so that the Makefile
1049 that distributes aux files is processed last. This way we do not
1050 have to process all files twice using
1051 $automake_will_process_aux_dir.
1052 (require_file_internal): Suggest a full run of automake when
1054 (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files.
1055 * tests/distcom7.test: New file.
1056 * tests/reqd2.test: Do not check for the "running more than two"
1058 * tests/Makefile.am (TESTS): Add distcom7.test.
1060 * automake.in (@config_aux_path, $config_aux_dir): Rename as ...
1061 ($config_aux_dir, $am_config_aux_dir): ... these.
1062 ($config_aux_dir_set_in_configure_in): Rename as ...
1063 ($config_aux_dir_set_in_configure_ac): ... this.
1064 (%require_file_found): Rename as ...
1065 (%required_file_not_found): ... this.
1066 (handle_languages, handle_texinfo_helper, handle_dist,
1067 handle_configure, handle_emacs_lisp, handle_python,
1068 scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names.
1069 (scan_autoconf_traces): Call locate_aux_dir.
1070 (locate_aux_dir): New function.
1071 (@require_file_paths): Remove, not used anymore.
1072 (require_file_internal): Look files in only one directory (instead
1073 of @require_file_internal) passed in argument.
1074 (require_file, require_conf_file): Pass the destination directory
1075 to require_file_internal.
1077 Fix for PR automake/416:
1078 * m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
1080 From Peter Seiderer.
1082 2004-04-10 Andreas Buening <andreas.buening@nexgo.de>
1084 * aclocal.in, automake.in, configure.ac, Makefile.am,
1085 tests/aclocal.in, tests/automake.in, tests/defs.in:
1086 Use PATH_SEPARATOR from autoconf instead of ':'.
1088 2004-04-09 Alexandre Duret-Lutz <adl@gnu.org>
1090 * automake.in (handle_lib_objects): Pass the condition of
1091 the variable definition to handle_LIBOBJS and handle_ALLOCA,
1092 not the aggregated conditions.
1093 * tests/Makefile.am (TESTS): Add libobj14.test.
1094 * tests/libobj14.test: New file.
1095 Report from Bill Davidson.
1097 2004-04-02 Mike Nolta <mike@nolta.net>
1099 Better support for Fortran 9x.
1100 * automake.in: Add "fc" and "ppfc" languages for Fortran 9x.
1101 * doc/automake.texi (Fortran 9x Support): New section.
1102 * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC.
1103 * tests/compile_f90_c_cxx.test: New file.
1104 * tests/ext.test: Add AC_PROG_FC.
1105 * tests/f90only.test: New file.
1106 * tests/link_f90_only.test: New file.
1107 * tests/Makefile.am (TESTS): Add new tests.
1109 2004-04-01 Paul Eggert <eggert@twinsun.com>
1111 * lib/install-sh: If "mv -f" works, use it, and fall back to
1112 the old "test -f" + "rm -f" + "mv" method only if "mv -f" does
1113 not work. This improves performance in the usual case where
1114 "mv -f" works. It also lets us install the "mv" command
1115 without worrying about a small window where "mv" does not
1116 exist (this problem was reported by Raul Nunez de Arenas
1119 2004-03-26 Alexandre Duret-Lutz <adl@gnu.org>
1121 * m4/python.m4 (AM_PATH_PYTHON): Make sure am_display_PYTHON is
1122 set when $PYTHON has been set by the user.
1123 From Esben Haabendal Soerensen.
1125 2004-03-22 Alexandre Duret-Lutz <adl@gnu.org>
1127 * doc/automake.texi (Default _SOURCES): Typo.
1128 (true): Correct _'s placement in example.
1129 Report from Stepan Kasal.
1131 2004-03-19 Alexandre Duret-Lutz <adl@gnu.org>
1133 Overriding JAVAROOT is legitimate, do not warn about it.
1134 * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT.
1135 * tests/java2.test: Run automake without -Wno-override.
1136 Report from Simon Josefsson.
1138 2004-03-14 Alexandre Duret-Lutz <adl@gnu.org>
1140 * automake.in (handle_texinfo_helper): Typos in comment.
1142 2004-03-07 Alexandre Duret-Lutz <adl@gnu.org>
1144 * lib/config.guess: New upstream version.
1146 Fix for PR automake/285:
1147 * automake.in (handle_ltlibraries): Keep track of installation
1148 directories for each condition, then define a $(am_TARGET_rpath)
1149 variable to hold the -rpath flags of Libtool libraries conditionally
1150 installed in different directories.
1151 * lib/Automake/DisjConditions.pm (merge): New function.
1152 * tests/libtool6.test: Adjust.
1153 * tests/libtool8.test: New file.
1154 * tests/Makefile.am (TEST): Add libtool8.test.
1156 * lib/Automake/Variable.pm (traverse_recursively,
1157 _do_recursive_traversal): Honor the skip_ac_subst option.
1158 * automake.in (handle_dist): Use skip_ac_subst.
1160 2004-02-29 Alexandre Duret-Lutz <adl@gnu.org>
1162 * Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
1164 * lib/gnupload (Example): Update example.
1166 * lib/config-ml.in, lib/config.guess, lib/config.sub,
1167 lib/texinfo.tex: New upstream versions.
1169 * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
1170 to create numbered dependencies. This fixes a portability issue
1171 when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
1172 Reported by Mark Phillips.
1174 * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
1175 so that rules for the same headers are not output twice.
1176 * lib/Automake/Variable.pm (value_as_list_recursive): Do not
1177 call `return' inside `map'.
1178 * tests/cond30.test: Make sure `a.c' and `b.c' both appear
1180 * tests/cond35.test, tests/cond36.test: New files.
1181 * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
1182 Report from Roman Fietze.
1185 * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
1186 077 && mkdir' instead of `$(mkdir_p)'. This prevents possible
1187 symlink attacks reported by Stefan Nordhausen.
1189 2004-02-16 Alexandre Duret-Lutz <adl@gnu.org>
1191 * doc/automake.texi (Multiple Outputs): More text, based on
1192 comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
1194 2004-02-15 Alexandre Duret-Lutz <adl@gnu.org>
1196 * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
1197 Solaris 8's mkdir is not thread-safe.
1198 * lib/mkinstalldirs: Likewise.
1199 * lib/install-sh: Abort when mkdir fails to create a directory.
1200 Report from Nathanael Nerode.
1202 2004-02-07 Alexandre Duret-Lutz <adl@gnu.org>
1204 * aclocal.in (rel2abs): New function.
1205 (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
1206 the later does was introduced in Perl 5.6 so using it breaks with
1208 Report from Werner John.
1210 2004-02-03 Alexandre Duret-Lutz <adl@gnu.org>
1212 * doc/automake.texi (Future of aclocal): Make clearer that
1213 it's ok to install macros into /usr/share/aclocal/.
1215 2004-02-01 Alexandre Duret-Lutz <adl@gnu.org>
1217 * tests/lisp.test: Delete (pointless).
1218 * tests/Makefile.am (TESTS): Remove lisp.test.
1220 * lib/Automake/Variable.pm (transform_variable_recursively):
1221 Define rewritten variables in all conditions not *covered* by user
1222 definitions, not simply in conditions without a previous
1224 * tests/cond34.test: New file.
1225 * tests/Makefile.am (TESTS): Add cond34.test.
1226 Report from Elena A. Vengerova
1228 * doc/automake.texi (Multiple Outputs): Typo.
1230 * doc/automake.texi (Emacs Lisp): Typos.
1232 Support for conditional _LISP.
1233 * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
1234 from $(am__ELCFILES).
1235 * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
1236 * tests/lisp6.test: New file.
1237 * tests/Makefile.am (TESTS): Add it.
1239 * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
1240 $(am__ELCFILES), and always push it on @all. Do not mention
1242 * lib/am/lisp.am (.el.elc): Rewrite as ...
1243 ($(am__ELCFILES)): ... this, and depend on elc-stamp.
1244 (elc-stamp): Make sure elc-stamp is older that all .elc files, as
1245 explained in the manual entry below.
1247 * doc/automake.texi (Multiple Outputs): New node.
1249 2004-01-31 Alexandre Duret-Lutz <adl@gnu.org>
1251 * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
1252 * tests/regex.test: New file.
1253 * tests/Makefile.am (TESTS): Add regex.test.
1255 2004-01-28 Alexandre Duret-Lutz <adl@gnu.org>
1257 * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
1258 * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
1259 lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
1260 lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
1261 installation paths in install, uninstall, and installcheck rules,
1262 as well as in am__installdirs variables. This is for the sake
1263 of paths containing spaces.
1264 * lib/am/install.am (installdirs-am, installdirs): Do not try
1265 to create "" directories.
1266 * test/instspc.test: New file.
1267 * test/Makefile.am (TESTS): Add instspc.test.
1268 Report from James Amundson.
1270 * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
1271 (Extending): Make it a subsection of Not Enough.
1273 * lib/gnupload (GPG): Use an absolute path. Suggestion from Gary
1275 (passphrase): Unset it this variable before using it, in case it
1276 was exported. Report from Scott James Remnant.
1278 2004-01-25 Alexandre Duret-Lutz <adl@gnu.org>
1280 * lib/gnupload (usage): Fix example.
1281 * Makefile.am (cvs-release): Fix call to gnupload.
1284 2004-01-24 Alexandre Duret-Lutz <adl@gnu.org>
1286 * lib/gnupload: New script.
1287 * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
1288 * Makefile.am (cvs-release): New target.
1290 2004-01-23 Alexandre Duret-Lutz <adl@gnu.org>
1292 * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
1295 * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
1296 instead of `/xx/ s///p'; the latter fails when GNU sed is run with
1297 POSIXLY_CORRECT. Also strip superfluous -e.
1298 Report from Miloslav Trmac.
1300 2004-01-22 Alexandre Duret-Lutz <adl@gnu.org>
1302 * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
1303 this fixes a spurious failure reported by Andreas Schwab. Also
1304 make sure ylwrap is not installed unless needed, and exercise
1307 2004-01-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1309 * doc/automake.texi (Dist): Document limitations of distcheck-hook
1310 and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
1313 2004-01-20 Alexandre Duret-Lutz <adl@gnu.org>
1315 * doc/automake.texi (Upgrading): New node.
1317 2004-01-20 Gary V. Vaughan <gary@gnu.org>
1319 * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
1320 correctly called without arguments as evidenced by the libtool
1323 2004-01-13 Alexandre Duret-Lutz <adl@gnu.org>
1325 * tests/conflnk3.test: Skip if `test -e' does not work.
1326 Report from Lars Hecking.
1328 2004-01-13 Jim Meyering <jim@meyering.net>
1330 * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
1331 assignment. Remove spurious SPACEs before TABs.
1333 2004-01-12 Alexandre Duret-Lutz <adl@gnu.org>
1335 * lib/py-compile: Check input files after option processing.
1336 Ensure --basedir has an argument.
1337 * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
1338 if nothing was installed.
1339 * tests/python10.test: New file.
1340 * tests/Makefile.am (TESTS): Add python10.test.
1341 Suggested by Sander Niemeijer.
1343 * tests/txinfo29.test: Remove autom4te.cache.
1344 Report from Greg Schafer.
1346 * lib/install-sh: Do not use "$@" in a context where it may be empty,
1347 for the sake of OSF1/Tru64's shell.
1350 2004-01-11 Alexandre Duret-Lutz <adl@gnu.org>
1352 * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1355 * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
1356 copyright years and serial.
1358 * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
1360 2004-01-10 Peter Eisentraut <peter_e@gmx.net> (tiny change)
1362 * m4/as.m4 (AM_PROG_AS): Format and align help string more
1364 * m4/depend.m4 (AM_DEP_TRACK): Likewise.
1365 * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
1366 * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
1367 * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
1369 2004-01-10 Paul Eggert <eggert@twinsun.com>
1371 * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
1372 expressions; it doesn't conform to POSIX.
1374 2004-01-10 Alexandre Duret-Lutz <adl@gnu.org>
1376 * automake.in (shadow_unconditionally): New function...
1377 (handle_source_transform): ... extracted from here.
1378 (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
1379 * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
1380 lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
1381 * tests/cond33.test: Make sure all conditional files are distributed.
1382 Report from Ralf Corsepius.
1384 2004-01-08 Alexandre Duret-Lutz <adl@gnu.org>
1386 * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
1387 * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
1388 as well as `install-sh sources... dest' with multiple sources.
1389 * tests/cond33.test: New file.
1390 * tests/instsh2.test: Add more checks for install-sh.
1391 * tests/transform.test: Test for installdirs.
1392 * tests/Makefile.am (TESTS): Add cond33.test
1393 Report from Ralf Corsepius.
1395 * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
1396 do not look like DEST:SRC.
1397 * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
1399 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
1401 Fix for PR automake/289:
1402 * automake.in (Automake::Struct::libtool_tag): New attribute. Define
1403 it for the language that have a Libtool tag.
1404 (%libtool_tags): New variable.
1405 (handle_languages, define_compiler_variable)
1406 (define_linker_variable): Pass --tag=XXX to libtool if supported.
1407 (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
1408 * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
1411 2003-01-07 Eric Sunshine <sunshine@sunshineco.com> (tiny change)
1413 * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
1414 config.status.lineno.
1416 2004-01-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
1418 * doc/automake.texi (Rebuilding): Typo.
1420 2004-01-07 Alexandre Duret-Lutz <adl@gnu.org>
1422 * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
1424 2004-01-06 Alexandre Duret-Lutz <adl@gnu.org>
1426 * THANKS: Add Bruce Korb.
1428 2004-01-05 Alexandre Duret-Lutz <adl@gnu.org>
1430 Mimic Paul Eggert's changes to Autoconf.
1431 * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
1432 * lib/Automake/Makefile.am (Config.pm): Likewise.
1433 * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
1435 * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
1436 am__vpath_adj, and am__strip_dir.
1437 * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
1438 * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
1439 lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
1440 $(am__vpath_adj_setup), and $(am__strip_dir) in install and
1441 uninstall rules. This fixes installation of nobase_ files in
1442 VPATH setups with Sun and OSF1/Tru64 Make.
1443 * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
1444 $(am__strip_dir) to simplify install and uninstall rules.
1445 * tests/nobase.test: Augment to check installation from VPATH builds.
1447 * automake.in (%transformed_files): New variable.
1448 (initialize_per_input): Reset it.
1449 (make_paragraphs): Fill %transformed_files, and define %FIRST%
1450 each time a file is transformed for the first time.
1451 (handle_configure): Do not define %FIRST_CONFIG_HIN%.
1452 (am_install_var): Do not define %FIRST%.
1453 * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
1455 2004-01-04 Alexandre Duret-Lutz <adl@gnu.org>
1457 * lib/texinfo.tex: New upstream version.
1459 * m4/mkdirp.m4: Do not use `-m 0755'. This overrides special bits
1460 and break setups where 775 directories are expected. Just obey
1461 umask as we did in the past.
1462 Report from Harlan Stenn.
1464 2004-01-03 Alexandre Duret-Lutz <adl@gnu.org>
1466 * automake.in (scan_texinfo_file): Do not compare $outfile to ''
1467 as $outfile might not be defined at all.
1469 * lib/Automake/Variable.pm (define): Rework the way we check
1470 Automake variable definition. Ensure consistent :=/+=/=
1471 definitions only for variables that have been and are defined by
1472 Automake, and make it an internal error. Ignore Automake
1473 attempts to touch a user variable, even with += assignments.
1474 * tests/txinfo29.test: New file.
1475 * tests/Makefile.am (TESTS): Add txinfo29.test.
1476 Reported by Bruce Korb.
1478 2004-01-02 Tom Tromey <tromey@redhat.com>
1480 * automake.in (handle_source_transform): Don't generate dist
1481 variables when no-dist is set.
1482 (generate_makefile): Likewise.
1483 * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
1484 and that dist target does not exist.
1485 Reported by Tom Fitzsimmons.
1487 2004-01-02 Alexandre Duret-Lutz <adl@gnu.org>
1489 * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
1490 * tests/ltconv.test: Run automake with --add-missing, because
1491 the CVS version of libtoolize no longer install config.sub and
1492 config.guess by default.
1494 Fix for PR automake/319:
1495 * aclocal.in (scan_m4_files): Scan configure.ac.
1496 (trace_used_macros, write_aclocal): Remove configure.ac from the
1497 list of files to include.
1498 * tests/Makefile.am (TESTS): Add acloca15.test.
1499 * tests/acloca15.test: New file.
1501 * aclocal.in (%file_includes): New variable.
1502 (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
1503 (scan_file): Scan for included files, and process these files
1504 recursively. Fill %file_includes and %file_contents. Return the
1505 list of included files, not the contents.
1506 (scan_m4_files): Adjust calls to scan_files.
1507 (strip_redundant_includes): New function.
1508 (trace_used_macros): Call it.
1509 (write_aclocal): Likewise. Also check the mtime of included files.
1510 * tests/Makefile.am (TESTS): Add acloca14.test.
1511 * tests/acloca14.test: New file.
1512 Report from Phil Edwards.
1514 2004-01-01 Alexandre Duret-Lutz <adl@gnu.org>
1516 * automake.in (handle_languages): Do not define DEP_FILES.
1517 * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
1518 files with $(DEPDIR) in their name instead of DEP_FILES.
1519 * tests/depend.test, tests/depend4.test, tests/exsource.test:
1521 Suggested by Tom Tromey.
1523 Do not output .lo rules for programs and static libraries objects,
1524 and do not output .o/.obj rules for libtool libraries. This is
1525 about explicit rules only, not inference rules.
1526 * automake.in (handle_single_transform_list): Rename as ...
1527 (handle_single_transform): ... this. Take a single file
1528 to transform (it was only called this way) and accept a new
1529 %transform argument. Fill %lang_specific_files with list
1530 references instead of strings, and append %transform to each
1532 (define_objects_from_sources, handle_source_transform):
1533 Take a %transform argument, and forward it to &handle_single_transform.
1534 (handle_languages): Adjust to the new format of
1535 %lang_specific_files, and honor its %transform part.
1536 (handle_programs, handle_libraries, handle_ltlibraries): Override
1537 %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
1538 (make_paragraphs): Define %NONLIBTOOL% by default. Make sure
1539 %transform settings override global settings.
1540 * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
1541 * tests/libtool3.test: Augment to check Makefile.ins for unneeded
1543 Suggested by Thomas Fitzsimmons.
1545 * automake.in, aclocal.in: Bump copyright years.
1549 Copyright (C) 2003, 2004 Free Software Foundation, Inc.
1551 This file is part of GNU Automake.
1553 GNU Automake is free software; you can redistribute it and/or modify
1554 it under the terms of the GNU General Public License as published by
1555 the Free Software Foundation; either version 2, or (at your option)
1558 GNU Automake is distributed in the hope that it will be useful,
1559 but WITHOUT ANY WARRANTY; without even the implied warranty of
1560 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1561 GNU General Public License for more details.
1563 You should have received a copy of the GNU General Public License
1564 along with autoconf; see the file COPYING. If not, write to
1565 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1566 Boston, MA 02111-1307, USA.