* lib/config-ml.in, lib/config.guess, lib/config.sub,
[automake.git] / ChangeLog
blob4c9257eefbc2fe3352ed29f0c04f86f0ae511d27
1 2004-02-29  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         * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
7         to create numbered dependencies.  This fixes a portability issue
8         when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
9         Reported by Mark Phillips.
11         * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
12         so that rules for the same headers are not output twice.
13         * lib/Automake/Variable.pm (value_as_list_recursive): Do not
14         call `return' inside `map'.
15         * tests/cond30.test: Make sure `a.c' and `b.c' both appear
16         in the Makefile.in.
17         * tests/cond35.test, tests/cond36.test: New files.
18         * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
19         Report from Roman Fietze.
21         Fix for PR/413:
22         * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
23         077 && mkdir' instead of `$(mkdir_p)'.  This prevents possible
24         symlink attacks reported by Stefan Nordhausen.
26 2004-02-16  Alexandre Duret-Lutz  <adl@gnu.org>
28         * doc/automake.texi (Multiple Outputs): More text, based on
29         comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
31 2004-02-15  Alexandre Duret-Lutz  <adl@gnu.org>
33         * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
34         Solaris 8's mkdir is not thread-safe.
35         * lib/mkinstalldirs: Likewise.
36         * lib/install-sh: Abort when mkdir fails to create a directory.
37         Report from Nathanael Nerode.
39 2004-02-07  Alexandre Duret-Lutz  <adl@gnu.org>
41         * aclocal.in (rel2abs): New function.
42         (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
43         the later does was introduced in Perl 5.6 so using it breaks with
44         Perl 5.005.
45         Report from Werner John.
47 2004-02-03  Alexandre Duret-Lutz  <adl@gnu.org>
49         * doc/automake.texi (Future of aclocal): Make clearer that
50         it's ok to install macros into /usr/share/aclocal/.
52 2004-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
54         * tests/lisp.test: Delete (pointless).
55         * tests/Makefile.am (TESTS): Remove lisp.test.
57         * lib/Automake/Variable.pm (transform_variable_recursively):
58         Define rewritten variables in all conditions not *covered* by user
59         definitions, not simply in conditions without a previous
60         definition.
61         * tests/cond34.test: New file.
62         * tests/Makefile.am (TESTS): Add cond34.test.
63         Report from Elena A. Vengerova
65         * doc/automake.texi (Multiple Outputs): Typo.
67         * doc/automake.texi (Emacs Lisp): Typos.
69         Support for conditional _LISP.
70         * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
71         from $(am__ELCFILES).
72         * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
73         * tests/lisp6.test: New file.
74         * tests/Makefile.am (TESTS): Add it.
76         * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
77         $(am__ELCFILES), and always push it on @all.  Do not mention
78         elc-stamp.
79         * lib/am/lisp.am (.el.elc): Rewrite as ...
80         ($(am__ELCFILES)): ... this, and depend on elc-stamp.
81         (elc-stamp): Make sure elc-stamp is older that all .elc files, as
82         explained in the manual entry below.
84         * doc/automake.texi (Multiple Outputs): New node.
86 2004-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
88         * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
89         * tests/regex.test: New file.
90         * tests/Makefile.am (TESTS): Add regex.test.
92 2004-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
94         * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
95         * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
96         lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
97         lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
98         installation paths in install, uninstall, and installcheck rules,
99         as well as in am__installdirs variables.  This is for the sake
100         of paths containing spaces.
101         * lib/am/install.am (installdirs-am, installdirs): Do not try
102         to create "" directories.
103         * test/instspc.test: New file.
104         * test/Makefile.am (TESTS): Add instspc.test.
105         Report from James Amundson.
107         * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
108         (Extending): Make it a subsection of Not Enough.
110         * lib/gnupload (GPG): Use an absolute path.  Suggestion from Gary
111         V. Vaughan.
112         (passphrase): Unset it this variable before using it, in case it
113         was exported.  Report from Scott James Remnant.
115 2004-01-25  Alexandre Duret-Lutz  <adl@gnu.org>
117         * lib/gnupload (usage): Fix example.
118         * Makefile.am (cvs-release): Fix call to gnupload.
119         From Jim Meyering.
121 2004-01-24  Alexandre Duret-Lutz  <adl@gnu.org>
123         * lib/gnupload: New script.
124         * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
125         * Makefile.am (cvs-release): New target.
127 2004-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
129         * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
130         Fix python10.test.
132         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
133         instead of `/xx/ s///p'; the latter fails when GNU sed is run with
134         POSIXLY_CORRECT.  Also strip superfluous -e.
135         Report from Miloslav Trmac.
137 2004-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
139         * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
140         this fixes a spurious failure reported by Andreas Schwab.  Also
141         make sure ylwrap is not installed unless needed, and exercise
142         --no-force.
144 2004-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
146         * doc/automake.texi (Dist): Document limitations of distcheck-hook
147         and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
148         subpackages.
150 2004-01-20  Alexandre Duret-Lutz  <adl@gnu.org>
152         * doc/automake.texi (Upgrading): New node.
154 2004-01-20  Gary V. Vaughan  <gary@gnu.org>
156         * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
157         correctly called without arguments as evidenced by the libtool
158         demo directories.
160 2004-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
162         * tests/conflnk3.test: Skip if `test -e' does not work.
163         Report from Lars Hecking.
165 2004-01-13  Jim Meyering  <jim@meyering.net>
167         * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
168         assignment.  Remove spurious SPACEs before TABs.
170 2004-01-12  Alexandre Duret-Lutz  <adl@gnu.org>
172         * lib/py-compile: Check input files after option processing.
173         Ensure --basedir has an argument.
174         * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
175         if nothing was installed.
176         * tests/python10.test: New file.
177         * tests/Makefile.am (TESTS): Add python10.test.
178         Suggested by Sander Niemeijer.
180         * tests/txinfo29.test: Remove autom4te.cache.
181         Report from Greg Schafer.
183         * lib/install-sh: Do not use "$@" in a context where it may be empty,
184         for the sake of OSF1/Tru64's shell.
185         Report from He Li.
187 2004-01-11  Alexandre Duret-Lutz  <adl@gnu.org>
189         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
190         versions.
192         * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
193         copyright years and serial.
195         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
197 2004-01-10  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
199         * m4/as.m4 (AM_PROG_AS): Format and align help string more
200         consistently.
201         * m4/depend.m4 (AM_DEP_TRACK): Likewise.
202         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
203         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
204         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
206 2004-01-10  Paul Eggert  <eggert@twinsun.com>
208         * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
209         expressions; it doesn't conform to POSIX.
211 2004-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
213         * automake.in (shadow_unconditionally): New function...
214         (handle_source_transform): ... extracted from here.
215         (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
216         * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
217         lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
218         * tests/cond33.test: Make sure all conditional files are distributed.
219         Report from Ralf Corsepius.
221 2004-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
223         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
224         * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
225         as well as `install-sh sources... dest' with multiple sources.
226         * tests/cond33.test: New file.
227         * tests/instsh2.test: Add more checks for install-sh.
228         * tests/transform.test: Test for installdirs.
229         * tests/Makefile.am (TESTS): Add cond33.test
230         Report from Ralf Corsepius.
232         * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
233         do not look like DEST:SRC.
234         * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
236 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
238         Fix for PR automake/289:
239         * automake.in (Automake::Struct::libtool_tag): New attribute.  Define
240         it for the language that have a Libtool tag.
241         (%libtool_tags): New variable.
242         (handle_languages, define_compiler_variable)
243         (define_linker_variable): Pass --tag=XXX to libtool if supported.
244         (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
245         * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
246         output.
248 2003-01-07  Eric Sunshine  <sunshine@sunshineco.com>  (tiny change)
250         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
251         config.status.lineno.
253 2004-01-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
255         * doc/automake.texi (Rebuilding): Typo.
257 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
259         * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
261 2004-01-06  Alexandre Duret-Lutz  <adl@gnu.org>
263         * THANKS: Add Bruce Korb.
265 2004-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
267         Mimic Paul Eggert's changes to Autoconf.
268         * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
269         * lib/Automake/Makefile.am (Config.pm): Likewise.
270         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
272         * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
273         am__vpath_adj, and am__strip_dir.
274         * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
275         * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
276         lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
277         $(am__vpath_adj_setup), and $(am__strip_dir) in install and
278         uninstall rules.  This fixes installation of nobase_ files in
279         VPATH setups with Sun and OSF1/Tru64 Make.
280         * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
281         $(am__strip_dir) to simplify install and uninstall rules.
282         * tests/nobase.test: Augment to check installation from VPATH builds.
284         * automake.in (%transformed_files): New variable.
285         (initialize_per_input): Reset it.
286         (make_paragraphs): Fill %transformed_files, and define %FIRST%
287         each time a file is transformed for the first time.
288         (handle_configure): Do not define %FIRST_CONFIG_HIN%.
289         (am_install_var): Do not define %FIRST%.
290         * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
292 2004-01-04  Alexandre Duret-Lutz  <adl@gnu.org>
294         * lib/texinfo.tex: New upstream version.
296         * m4/mkdirp.m4: Do not use `-m 0755'.  This overrides special bits
297         and break setups where 775 directories are expected.  Just obey
298         umask as we did in the past.
299         Report from Harlan Stenn.
301 2004-01-03  Alexandre Duret-Lutz  <adl@gnu.org>
303         * automake.in (scan_texinfo_file): Do not compare $outfile to ''
304         as $outfile might not be defined at all.
306         * lib/Automake/Variable.pm (define): Rework the way we check
307         Automake variable definition.  Ensure consistent :=/+=/=
308         definitions only for variables that have been and are defined by
309         Automake, and make it an internal error.  Ignore Automake
310         attempts to touch a user variable, even with += assignments.
311         * tests/txinfo29.test: New file.
312         * tests/Makefile.am (TESTS): Add txinfo29.test.
313         Reported by Bruce Korb.
315 2004-01-02  Tom Tromey  <tromey@redhat.com>
317         * automake.in (handle_source_transform): Don't generate dist
318         variables when no-dist is set.
319         (generate_makefile): Likewise.
320         * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
321         and that dist target does not exist.
322         Reported by Tom Fitzsimmons.
324 2004-01-02  Alexandre Duret-Lutz  <adl@gnu.org>
326         * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
327         * tests/ltconv.test: Run automake with --add-missing, because
328         the CVS version of libtoolize no longer install config.sub and
329         config.guess by default.
331         Fix for PR automake/319:
332         * aclocal.in (scan_m4_files): Scan configure.ac.
333         (trace_used_macros, write_aclocal): Remove configure.ac from the
334         list of files to include.
335         * tests/Makefile.am (TESTS): Add acloca15.test.
336         * tests/acloca15.test: New file.
338         * aclocal.in (%file_includes): New variable.
339         (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
340         (scan_file): Scan for included files, and process these files
341         recursively.  Fill %file_includes and %file_contents.  Return the
342         list of included files, not the contents.
343         (scan_m4_files): Adjust calls to scan_files.
344         (strip_redundant_includes): New function.
345         (trace_used_macros): Call it.
346         (write_aclocal): Likewise.  Also check the mtime of included files.
347         * tests/Makefile.am (TESTS): Add acloca14.test.
348         * tests/acloca14.test: New file.
349         Report from Phil Edwards.
351 2004-01-01  Alexandre Duret-Lutz  <adl@gnu.org>
353         * automake.in (handle_languages): Do not define DEP_FILES.
354         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
355         files with $(DEPDIR) in their name instead of DEP_FILES.
356         * tests/depend.test, tests/depend4.test, tests/exsource.test:
357         Adjust.
358         Suggested by Tom Tromey.
360         Do not output .lo rules for programs and static libraries objects,
361         and do not output .o/.obj rules for libtool libraries.  This is
362         about explicit rules only, not inference rules.
363         * automake.in (handle_single_transform_list): Rename as ...
364         (handle_single_transform): ... this.  Take a single file
365         to transform (it was only called this way) and accept a new
366         %transform argument.  Fill %lang_specific_files with list
367         references instead of strings, and append %transform to each
368         of these lists.
369         (define_objects_from_sources, handle_source_transform):
370         Take a %transform argument, and forward it to &handle_single_transform.
371         (handle_languages): Adjust to the new format of
372         %lang_specific_files, and honor its %transform part.
373         (handle_programs, handle_libraries, handle_ltlibraries): Override
374         %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
375         (make_paragraphs): Define %NONLIBTOOL% by default.  Make sure
376         %transform settings override global settings.
377         * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
378         * tests/libtool3.test: Augment to check Makefile.ins for unneeded
379         rules.
380         Suggested by Thomas Fitzsimmons.
382         * automake.in, aclocal.in: Bump copyright years.
384 2003-12-31  Alexandre Duret-Lutz  <adl@gnu.org>
386         * automake.in (generate_makefile): Update misleading comment.
388         * automake.in (handle_languages): Define %DEPBASE% conditionally
389         on subdir-objects.  Define SUBDIROBJ.  Do not clean *_.c files
390         here ...
391         (lang_c_finish): ... do it here.
392         (handle_single_transform_list): Do not output specific rules for
393         subdir-objects files which are not renamed.  This should reduce
394         the size of Makefiles with lots of subdirectory sources.
395         * lib/depcomp: Simplify computation of dependency output, and use
396         DEPDIR.
397         * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
398         to depcomp.  Compute depbase on-the-fly in generic fastdep rules
399         for subdir-objects.
400         * tests/ansi9.test: Do not grep for an explicit rule that
401         we no longer expect.  Really run $MAKE to make sure the chain
402         of rules works.
403         * tests/yacc5.test: Do not grep for an explicit rule that
404         we no longer expect.  Adjust to use set -e.
406 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
408         * automake.in (@common_files): Move configure, configure.ac, and
409         configure.in ...
410         (@common_sometimes): ... here so that these files do not appear
411         twice in DIST_COMMON.
413         * automake.in (maybe_push_required_file): Add $(srcdir) in front
414         a required files outside the current directory or its subdirectories.
415         * lib/am/distdir.am (distdir): Update comment.
416         Report from Nicolas Joly.
418 2003-12-26  Alexandre Duret-Lutz  <adl@gnu.org>
420         * doc/automake.texi (@copying): Do not repeat the version.
421         (Top): Use @insertcopying.  Add a @detailmenu, this works around
422         Emacs 21's inability to lookup indices in sub-nodes (reported
423         by Kevin Ryde).
424         (C++ Support, Assembly Support, Fortran 77 Support, Java Support,
425         Support for Other Languages, Preprocessing Fortran 77, Compiling
426         Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
427         is Chosen): Add missing descriptions in menus.
428         (Fortran 77 and Autoconf): Remove, this node was just saying "use
429         Autoconf 2.53 or greater".
431 2003-12-26  Santiago Vila  <sanvila@unex.es>  (tiny change)
433         * NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
435 2003-12-25  Nicolas Joly  <njoly@pasteur.fr>  (tiny change)
437         * doc/automake.texi (Conditional Sources): Typo.
439 2003-12-25  Alexandre Duret-Lutz  <adl@gnu.org>
441         * lib/Automake/Config.in: Require Exporter.
442         Report from Kevin Ryde (failure with Perl 5.005_03).
444 2003-12-15  Alexandre Duret-Lutz  <adl@gnu.org>
446         * tests/aclocal6.test: Check for autom4te.cache only if it has
447         been created.
448         * tests/maintclean.test: Update comment.
449         Report from Bruno Haible.
451         * tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
452         Require texi2dvi-o.
453         Report from Václav Haisman.
455 2003-12-10  Alexandre Duret-Lutz  <adl@gnu.org>
457         * configure.ac, NEWS: Bump version to 1.8a.
459         * configure.ac, NEWS: Bump version to 1.8.
461         * lib/texinfo.tex: New upstream version.
463         * Makefile.am (INSTALL): Copy the source from $(srcdir).
465 2003-12-09  Alexandre Duret-Lutz  <adl@gnu.org>
467         * lib/Automake/Rule.pm (define): Remove debugging traces.
468         Report from Akim Demaille.
470 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
471             Alexandre Duret-Lutz  <adl@gnu.org>
473         * Makefile.am (do_subst): Fix the substitution of @configure_input@.
474         (automake, aclocal): Create the output atomically and make it
475         read-only, as done in the Autoconf package.
476         * lib/Automake/Makefile.am (do_subst): Fix the substitution of
477         @configure_input@.
478         (Config.pm): Create the output atomically and make it read-only.
479         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
480         @configure_input@ and make the output read-only.
481         * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
482         tests/automake.in, tests/defs.in: Add a @configure_input@ line.
484 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
486         * doc/automake.texi (Local Macros, CVS): Typos.
488 2003-12-08  Alexandre Duret-Lutz  <adl@gnu.org>
490         * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $\&.
491         Perl 5.6.0 will not accept a reference sub reference for the
492         latter.
493         * automake.in (var_SUFFIXES_trigger): Adjust registration via
494         Automake::Variable::hook.
495         (handle_texinfo_helper): Make sure `inner_expand => 1' appears
496         on one line, so that Perl 5.6.0 does not complain about
497         inner_expand being a bare identifier.
499 2003-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
501         * aclocal.in (check_acinclude, scan_file): Output `warning:' in
502         front of warnings.
503         Report from Pavel Roskin.
505 2003-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
507         * TODO: Remove some old entries.
509         * doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
510         and CONFIG_STATUS_DEPENDENCIES.  Move this sections later
511         in the manual since it's pretty advanced material.
513         * automake.in ($config_header_location): Remove.  Use
514         %ac_config_files_location instead.
515         (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
516         at the top-level.
517         (handle_configure): Use rewrite_inputs_into_dependencies to
518         distribute and compute AC_CONFIG_HEADERS dependencies.
519         (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
520         %ac_config_files_location.
521         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
522         (%CONFIG_HIN%): ... this.  $(srcdir) is already added in
523         scan_autoconf_traces.
524         * tests/Makefile.am (TESTS): Add confh5.test.
525         * tests/confh5.test: New file.
527         * tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
528         $< is not portable and the source is in $(srcdir).
530 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
531             Alexandre Duret-Lutz  <adl@gnu.org>
533         * automake.in (handle_configure): Do not require link sources if
534         they contain a dollar, or if they were built.  Likewise, do not
535         clean link destination if they contain a dollar.
536         (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
537         %ac_config_files_location with link destinations.  Do not
538         store locations in @config_links, now that %ac_config_files_location
539         have them.
540         * tests/conflnk3.test: New file.
541         * tests/Makefile.am (TESTS): Add conflnk3.test.
543 2003-12-02  Alexandre Duret-Lutz  <adl@gnu.org>
545         * configure.ac, NEWS: Bump version to 1.7i.
547         * configure.ac, NEWS: Bump version to 1.7h.
549         * doc/automake.texi (Default _SOURCES): Fix reference to true.
551         * lib/texinfo.tex: New upstream version.
553 2003-11-30  Alexandre Duret-Lutz  <adl@gnu.org>
555         * automake.in (handle_source_transform): If it's present, use
556         libfoo_la.c instead of libfoo.c as the default source of
557         libfoo.la, and issue an -Wobsolete diagnostic.  Do not be
558         greedy in the suffix replacement regex.
559         * doc/automake.texi (Default _SOURCES): New node.
560         (Program Sources, Libtool Modules): Refer to it.
561         * tests/ltlibsrc.test: Update to check for old default source files.
563 2003-11-30  Gary V. Vaughan  <gary@gnu.org>
565         * automake.in (&handle_source_transform): Calculate a default file
566         for use in the absence of an appropriate _SOURCES declaration by
567         first stripping any suffix from the unxformed target name, and
568         appending `.c'.
569         * doc/automake.texi (Program Sources, Libtool Modules): Document this.
570         * tests/ltlibsrc.test: New file.
571         * tests/Makefile.am (TESTS): Add ltlibsrc.test.
573 2003-11-29  Alexandre Duret-Lutz  <adl@gnu.org>
575         * lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
576         _value_as_list_recursive_worker): Merge into ...
577         (value_as_list_recursive): ... this function.  Pass options
578         as a hash argument, and use the `location' option to trigger
579         the behavior of loc_and_value_as_list_recursive.
580         (traverse_recursively, transform_variable_recursively): Take
581         options as a %options argument.
582         (_do_recursive_traversal): Perform expansion of inner variables
583         (as in `$(FILE).ext') on request.
584         * automake.in (handle_options, check_libobjs_sources)
585         (handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
586         (handle_ltlibraries, handle_man_pages, handle_dist)
587         (handle_gettext, am_install_var): Adjust usage of
588         value_as_list_recursive.
589         (handle_texinfo_helper): Pass inner_expand to
590         value_as_list_recursive.
591         * tests/txinfo28.test: New file.
592         * tests/Makefile.am (TESTS): Add txinfo28.test.
593         Report from Ralf Corsepius.
595         * lib/Automake/Variable.pm (_do_recursive_traversal): Do not
596         update @_substfroms and @_substfroms for undefined variables.
597         * tests/substre2.test: New file.
598         * tests/Makefile.am (TESTS): Add substre2.test.
600         * lib/Automake/VarDef.pm (value): Rename as ...
601         (raw_value): ... this.
602         (value): New method, strip # and \\\n.
603         (dump): Use raw_value.
604         * lib/Automake/Variable.pm (output): Use raw_value.
605         (value_as_list): Simplify, now that backslash and comments
606         are already removed.
607         * tests/txinfo22.test: Make sure Automake isn't confused
608         by comments in variables.
610 2003-11-27  Alexandre Duret-Lutz  <adl@gnu.org>
612         * doc/automake.texi: More target vs. rule editing.  Back out some
613         of the previous changes.  It's OK to talk about targets as "entry
614         points", or as thing to build, but targets cannot be run: rules
615         are run.
617         * doc/automake.texi: s/target/rule/ where appropriate.  A target
618         is the destination of a target rule, not the rule itself.
619         Suggested by Bruno Haible.
621 2003-11-25  Alexandre Duret-Lutz  <adl@gnu.org>
623         * configure.ac, NEWS: Bump version to 1.7g.
625         * configure.ac, NEWS: Bump version to 1.7f.
627         * automake.in (prepend_srcdir): Parenthesize @inputs to remove
628         a maintainer-check warning.
629         * tests/subst2.test: Rewrite the $MAKE invocation to please
630         maintainer-check.
632         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
633         versions.
635         * doc/automake.texi (Program variables): Mention per-target
636         _CPPFLAGS in the documentation of INCLUDES.
637         * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic.
638         Report from Bob Friesenhahn.
640         * doc/automake.texi (Extending): Elaborate on overriding.
641         * NEWS: Likewise.
642         Suggested by Bruno Haible.
644 2003-11-24  Alexandre Duret-Lutz  <adl@gnu.org>
646         * lib/Automake/Variable.pm (output): Add $(am__empty) to variable
647         definitions that end with a line full of @substitutions@ that
648         would confuse HP-UX Make if it were blank.
649         (transform_variable_recursively): Make sure not to erase empty
650         variables.
651         * tests/Makefile.am (TESTS): Add subst2.test.
652         * tests/subst2.test: New file.
653         Report from Harlan Stenn.
655         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Work around a
656         Texinfo 4.1 bug.
657         Report from Dalibor Topic.
659 2003-11-22  Alexandre Duret-Lutz  <adl@gnu.org>
661         Fix for PR automake/411:
662         * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename
663         into ...
664         (prepend_srcdir): ... this.
665         (rewrite_inputs_into_dependencies): New function, extracted from ...
666         (handle_configure): ... here.  Adjust to use prepend_srcdir
667         or rewrite_inputs_into_dependencies where needed.  Especially,
668         using (the new) rewrite_inputs_into_dependencies to compute
669         Makefile dependencies will fix PR/411.
670         * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's
671         already distributed by rewrite_inputs_into_dependencies.
672         * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test.
673         * tests/colon3.test: Use set -e.  Don't allow any AUTOMAKE
674         invocation refer to zardoz.  Make sure two.in and three.in
675         appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies.
676         * tests/distcom.test: Delete.  This is covered by tests/output9.test.
677         * tests/output10.test: New file, for PR/411.
679 2003-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
681         * automake.in (append_exeext): Do not append $(EXEEXT) to
682         @substitutions@.
683         * tests/exeext4.test: New file.
684         * tests/Makefile.am (TESTS): Add exeext4.test.
686 2003-11-19  Alexandre Duret-Lutz  <adl@gnu.org>
688         * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%,
689         mistakenly added on 2001-03-05.
690         * tests/remake5.test: New file.
691         * tests/Makefile.am (TESTS): Add remake5.test.
692         Report from Ralf Corsepius.
694 2003-11-18  Alexandre Duret-Lutz  <adl@gnu.org>
696         * configure.ac, NEWS: Bump version to 1.7e.
698         * configure.ac, NEWS: Bump version to 1.7d.
700         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New
701         upstream versions.
703 2003-11-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>  (tiny change)
704             Alexandre Duret-Lutz  <adl@gnu.org>
706         * lib/am/texinfos.am (install-info): Depend on
707         install-info-recursive or install-info-am even if no-installinfo.
708         * tests/txinfo27.test: New file.
709         * tests/Makefile.am (TESTS): Add txinfo26.test.
711 2003-11-18  Paolo Bonzini  <bonzini@gnu.org>
712             Alexandre Duret-Lutz  <adl@gnu.org>
714         * lib/ylwrap: Do not overwrite headers if they haven't changed.
715         Fix the include guard substitution.
716         * tests/yacc6.test: Augment to run ylwrap, and make sure it
717         does not needlessly update headers.
718         * tests/yacc8.test: Make sure headers are not needlessly updated
719         with ylwrap is not used.  Move `test -f foo.o' into the
720         Makefile as `test -f foo.$(OBJEXT)' for portability.
722 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
724         * automake.in (generate_makefile): Define SUBDIRS if it is
725         not defined and DIST_SUBDIRS is.
726         * tests/subpkg2.test: New file.
727         * tests/Makefile.am (TESTS): Add subpkg2.test.
728         Report from Gary V. Vaughan.
730         * tests/suffix11.test: Check for suffixes containing `-'.
731         * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
732         suffixes.
734         * lib/Automake/Rule.pm (define): Suggest using target-local instead
735         of target-am, not target-am-local.
736         * tests/overrid.test: Check the diagnostic for clean-am.
737         Report from Bruno Haible.
739 2003-11-17  Jim Meyering  <jim@meyering.net>
741         * bootstrap: Require not only that `perl' have the executable
742         bit set, but also that it is not a directory.
744         * lib/am/configure.am: Mark %MAKEFILE% as `.PRECIOUS'.
746 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
748         * automake.in (ac_config_files_location): Declare as a hash.
749         (handle_configure): Rewrite the computation of AC_CONFIG_FILES
750         dependencies; make sure we don't use $(srcdir) or $(top_srcdir)
751         for inputs which are also outputs, and do not check inputs
752         relatively to the current directory.
753         (scan_autoconf_config_files): Take $where as argument, and
754         fill $ac_config_files_location.
755         * tests/output8.test, tests/output9.test: New files.
756         * tests/Makefile.am (TESTS): Add output8.test and output9.test.
757         Report from Bruno Haible.
759 2003-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
761         * tests/aclibobj.test, tests/aclocal.test, tests/aclocal3.test,
762         tests/acoutbs.test, tests/acoutbs2.test, tests/acoutnoq.test,
763         tests/acoutpt.test, tests/acoutpt2.test, tests/acoutqnl.test,
764         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
765         tests/all.test, tests/alpha.test, tests/amassign.test,
766         tests/ammissing.test, tests/ansi.test, tests/ansi10.test,
767         tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
768         tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
769         tests/ansi7.test, tests/ansi9.test, tests/ar.test,
770         tests/autohdr.test, tests/autohdr2.test, tests/auxdir.test,
771         tests/auxdir2.test, tests/backsl.test, tests/backsl2.test,
772         tests/badprog.test, tests/block.test, tests/canon2.test,
773         tests/canon3.test, tests/canon4.test, tests/canon5.test,
774         tests/ccnoco.test, tests/check.test, tests/check2.test,
775         tests/check3.test, tests/checkall.test, tests/clean.test,
776         tests/colneq2.test, tests/colon.test, tests/colon2.test,
777         tests/colon3.test, tests/colon4.test, tests/colon5.test,
778         tests/colon6.test, tests/colon7.test, tests/comment.test,
779         tests/comment2.test, tests/comment4.test, tests/comment6.test,
780         tests/comment7.test, tests/compile_f_c_cxx.test, tests/cond.test,
781         tests/cond10.test, tests/cond11.test, tests/cond13.test,
782         tests/cond14.test, tests/cond15.test, tests/cond16.test,
783         tests/cond17.test, tests/cond18.test, tests/cond19.test,
784         tests/cond21.test, tests/cond22.test, tests/cond25.test,
785         tests/cond26.test, tests/cond28.test, tests/cond3.test,
786         tests/cond4.test, tests/cond5.test, tests/cond6.test,
787         tests/cond7.test, tests/cond8.test, tests/cond9.test,
788         tests/condd.test, tests/condinc.test, tests/condlib.test,
789         tests/condman.test, tests/condman2.test, tests/conf2.test,
790         tests/confdeps.test, tests/confh.test, tests/confh4.test,
791         tests/config.test, tests/confincl.test, tests/conflnk.test,
792         tests/conflnk2.test, tests/confsub.test, tests/confvar.test,
793         tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
794         tests/cxx.test, tests/cxxansi.test, tests/cxxcpp.test,
795         tests/cxxlibobj.test, tests/cxxlink.test, tests/cxxnoc.test,
796         tests/cxxo.test, tests/cygwin32.test, tests/dash.test,
797         tests/defun.test, tests/defun2.test, tests/dejagnu.test,
798         tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test,
799         tests/dejagnu6.test, tests/dejagnu7.test, tests/depacl2.test,
800         tests/depcomp.test, tests/depcomp2.test, tests/depcomp4.test,
801         tests/depdist.test, tests/depend.test, tests/depend2.test,
802         tests/depend3.test, tests/depend4.test, tests/destdir.test,
803         tests/dirlist.test, tests/discover.test, tests/distcom.test,
804         tests/distcom2.test, tests/distdir.test, tests/distname.test,
805         tests/dollar.test, tests/double.test, tests/dup2.test,
806         tests/empty.test, tests/empty2.test, tests/empty3.test,
807         tests/empty4.test, tests/error.test, tests/exdir.test,
808         tests/exeext.test, tests/exeext3.test, tests/exsource.test,
809         tests/ext.test, tests/ext2.test, tests/extra.test,
810         tests/extra2.test, tests/extra3.test, tests/extra4.test,
811         tests/extra5.test, tests/extra6.test, tests/extra7.test,
812         tests/flibs.test, tests/fnoc.test, tests/fo.test,
813         tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
814         tests/fpinstall.test, tests/gcj.test, tests/gcj3.test,
815         tests/gcj4.test, tests/gnits2.test, tests/gnits3.test,
816         tests/header.test, tests/implicit.test, tests/include.test,
817         tests/include2.test, tests/info.test, tests/insh2.test,
818         tests/install2.test, tests/installdir.test, tests/instdat.test,
819         tests/instdat2.test, tests/instexec.test, tests/insthook.test,
820         tests/instman.test, tests/instman2.test, tests/instsh.test,
821         tests/instsh2.test, tests/interp.test, tests/interp2.test,
822         tests/java.test, tests/java2.test, tests/javaprim.test,
823         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
824         tests/lex.test, tests/lex3.test, tests/lex4.test, tests/lex5.test,
825         tests/libobj11.test, tests/libobj2.test, tests/libobj4.test,
826         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
827         tests/library.test, tests/libtool.test, tests/libtool2.test,
828         tests/libtool3.test, tests/libtool5.test, tests/link_c_cxx.test,
829         tests/link_dist.test, tests/link_f_only.test, tests/link_fc.test,
830         tests/link_fccxx.test, tests/link_fcxx.test, tests/lisp.test,
831         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
832         tests/maintclean.test, tests/make.test, tests/makej.test,
833         tests/makevars.test, tests/man.test, tests/man2.test,
834         tests/mclean.test, tests/mdate.test, tests/mdate2.test,
835         tests/mdate3.test, tests/mdate4.test, tests/mkinst2.test,
836         tests/mkinstall.test, tests/nobase.test, tests/nodef.test,
837         tests/nodef2.test, tests/nodep.test, tests/nodepcomp.test,
838         tests/nodist.test, tests/nodist2.test, tests/nodist3.test,
839         tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
840         tests/nostdinc.test, tests/number.test, tests/obsolete.test,
841         tests/order.test, tests/outdir.test, tests/output.test,
842         tests/output2.test, tests/output3.test, tests/output4.test,
843         tests/parse.test, tests/phony.test, tests/pluseq.test,
844         tests/pluseq10.test, tests/pluseq2.test, tests/pluseq3.test,
845         tests/pluseq4.test, tests/pluseq6.test, tests/pluseq8.test,
846         tests/postproc.test, tests/ppf77.test, tests/pr2.test,
847         tests/pr204.test, tests/pr220.test, tests/pr224.test,
848         tests/pr229.test, tests/pr243.test, tests/pr266.test,
849         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
850         tests/pr300-lib.test, tests/pr300-ltlib.test,
851         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
852         tests/pr87.test, tests/pr9.test, tests/prefix.test,
853         tests/proginst.test, tests/python.test, tests/python3.test,
854         tests/python4.test, tests/python5.test, tests/python6.test,
855         tests/python7.test, tests/python8.test, tests/python9.test,
856         tests/recurs2.test, tests/remake.test, tests/remake2.test,
857         tests/remake3.test, tests/req.test, tests/reqd.test,
858         tests/rulepat.test, tests/scripts.test, tests/sinclude.test,
859         tests/space.test, tests/specflg3.test, tests/specflg6.test,
860         tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
861         tests/spell3.test, tests/spelling.test, tests/spy.test,
862         tests/stamph2.test, tests/stdlib2.test, tests/strip.test,
863         tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
864         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
865         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
866         tests/subdirbuiltsources.test, tests/subobj.test,
867         tests/subobj2.test, tests/subobj3.test, tests/subobj4.test,
868         tests/subobj5.test, tests/subobj6.test, tests/subobj7.test,
869         tests/subobj8.test, tests/subobj9.test, tests/subobjname.test,
870         tests/subpkg.test, tests/subst.test, tests/substref.test,
871         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
872         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
873         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
874         tests/suffix9.test, tests/symlink2.test, tests/symlink3.test,
875         tests/tags.test, tests/tagsub.test, tests/target-cflags.test,
876         tests/transform.test, tests/txinfo.test, tests/txinfo10.test,
877         tests/txinfo13.test, tests/txinfo16.test, tests/txinfo17.test,
878         tests/txinfo18.test, tests/txinfo2.test, tests/txinfo23.test,
879         tests/txinfo24.test, tests/txinfo25.test, tests/txinfo26.test,
880         tests/txinfo3.test, tests/txinfo5.test, tests/txinfo6.test,
881         tests/txinfo7.test, tests/txinfo8.test, tests/txinfo9.test,
882         tests/unused.test, tests/vars.test, tests/vars3.test,
883         tests/vartar.test, tests/version.test, tests/version2.test,
884         tests/version4.test, tests/version6.test, tests/version7.test,
885         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
886         tests/werror.test, tests/whoami.test, tests/yacc.test,
887         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
888         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
889         tests/yaccpp.test, tests/yaccvpath.test: Fix license to refer
890         to Automake, not autoconf.
892         Fix for PR automake/408:
893         * lib/am/texinfos.am (install-info-am): Strip any $(srcdir)/ prefix
894         from $file, as already done for dist-info.
895         * tests/Makefile.am (TESTS): Add txinfo26.test.
896         * tests/txinfo26.test: New file.
897         Report from Nicholas Wourms.
899 2003-11-13  Alexandre Duret-Lutz  <adl@gnu.org>
901         * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
902         running AC_CHECK_PROGS(EMACS).
903         * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
904         Report from Jens Petersen.
906         * tests/mkinst2.test: Rewrite.
908         * m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
910 2003-11-12  Alexandre Duret-Lutz  <adl@gnu.org>
912         * automake.in (scan_autoconf_traces): Honor sinclude.
913         * tests/sinclude.test: Check for sinclude.
914         Report from Roberto Bagnara.
916 2003-11-11  Alexandre Duret-Lutz  <adl@gnu.org>
918         * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck'
919         already build the tarballs.  Commit files right before tagging.
920         Check NEWS before running distcheck.
922         * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space.
924         * configure.ac, NEWS: Bump version to 1.7c.
926         * configure.ac, NEWS: Bump version to 1.7b.
927         * Makefile.am (maintainer-check): Ignore comments while
928         scanning for rm without -f.
930         * Makefile.am (fetch): Get all files from savannah.  Do not
931         postprocess Struct.pm and XFiles.pm, since we now are the master
932         of these.
933         * lib/config.sub, lib/config.guess, lib/config-ml.in,
934         lib/texinfo.tex: New upstream versions.
936         * configure.ac: Check that autoconf is installed, that it works,
937         and that it is recent enough in three steps, not one.
939         * NEWS: Minor edits.
941         * lib/Makefile.am (dist_script_DATA): Move config-ml.in ...
942         (dist_pkgvdata_DATA): ... here.
944         * tests/spy.test: Document overlapping ::-rules incompatibilities,
945         and check only non-overlapping ::-rules.
947         * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
948         MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
949         TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
950         (Uniform): Do not speak of missing HTML support, this is
951         confusing.
952         * lib/Automake/Variable.pm (_silent_variable_override): Add
953         AM_MAKEINFOHTMLFLAGS.
954         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
955         AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
956         * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
957         * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
959 2003-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
961         * tests/spy.test: New file.
962         * tests/Makefile.am (TESTS): Add spy.test.
964         * automake.in (handle_configure): Distribute and define mkinstalldirs
965         only if it is already present in the package.
966         (scan_autoconf_files): Do not require mkinstalldirs.
967         (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs).
968         * lib/am/data.am, lib/am/distdir.am, lib/am/install.am,
969         lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am,
970         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
971         lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs).
972         * m4/mkdirp.m4: New file.
973         * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4.
974         * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P.
975         * tests/Makefile.am (TESTS): Remove insh.test.
976         * tests/insh.test: Delete.
977         * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs.
978         * tests/auxdir.test: Install mkinstalldirs.
979         * tests/distdir.test, tests/instman.test, tests/pr2.test: Use
980         $(mkdir_p), not $(mkinstalldirs).
981         * tests/empty.test: Run configure, do not substitute things by hand.
982         * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh
983         as an example, not mkinstalldirs.
984         (Auxiliary Programs) <mkinstalldirs>: Update.
986         * tests/defs.in: Handle required=bzip2.
988         * tests/defs.in: Export SHELL.
989         * tests/cond11.test: Missing quotes.
990         * tests/nogzip2.test: Require bzip2.
992 2003-11-09  Alexandre Duret-Lutz  <adl@gnu.org>
994         * NEWS: Add news entries from 1.6.x and 1.7.x.
996         * automake.texi (Optional) <AC_SUBST>: Grammar fixes.
998         * automake.in (check_gnu_standards): Install COPYING only if
999         none of COPYING, COPYING.LIB, or COPYING.LESSER exist.  Do not
1000         overwrite the license otherwise.
1001         * tests/Makefile.am (TESTS): Add license.test.
1002         * tests/license.test: New file.
1004         * lib/mkinstalldirs: Mention automake-patches@gnu.org and
1005         bug-automake@gnu.org.
1006         * lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
1007         Likewise.  Also add support for --help and --version.
1008         * lib/py-compile, lib/ylwrap: Likewise, and reindent.
1010 2003-11-08  Alexandre Duret-Lutz  <adl@gnu.org>
1012         * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
1013         * lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
1014         * lib/am/java.am (JAVACFLAGS): Remove.
1015         * tests/dejagnu3.test: Check that the environment value
1016         of RUNTESTFLAGS get passed down to runtest.
1017         Suggested by Mark Mitchell.
1019         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
1020         (?GENERIC?%EXT%.lo): Do not echo compile command manually, this
1021         breaks `make -s'.  Instead, fold the compile command on two lines,
1022         so that it take less space on the display.
1023         Suggested by Karl Berry and William Fulton.
1025         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
1026         (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
1027         to select $(srcdir) or `.' builds.
1028         (INFO_DEPS): Define here.
1029         * lib/am/texinfos.am (dist-info): Strip filename starting with
1030         "$(srcdir)/".
1031         * automake.in (output_texinfo_build_rules): Take a new argument
1032         $insrc, and adjust substitutions in 'texibuild'.
1033         (handle_texinfo_helper): Compute a regex of all user-cleaned
1034         files, and use this to select whether to build .info files in `.'
1035         or $(srcdir).  Give an account of the $(srcdir) vs `.' debacle.
1036         Alway build the version.texi and stamp files in $(srcdir).  Do not
1037         define INFO_DEPS.
1038         * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
1039         and txinfo25.test.
1040         * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
1041         New files.
1042         * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
1043         tests/vtexi.test: Adjust to new rules.
1045 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
1047         * m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
1048         * configure.ac: Require Autoconf 2.58a, and check for 2.58.
1050 2003-10-27  Alexandre Duret-Lutz  <adl@gnu.org>
1052         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
1053         * tests/Makefile.am (TESTS): Add autohdr3.test
1054         * tests/autohdr3.test: New file.
1056         * automake.in (handle_configure): Rename am__configure_deps
1057         as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
1058         $configure_ac.  Define am__configure_deps as am__aclocal_m4_deps
1059         + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4).  Do not define
1060         ACLOCAL_M4_DEPS while processing configure.am.
1061         (make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
1062         (scan_aclocal_m4): Do not distribute aclocal.m4, this
1063         is done from lib/am/configure.am.
1064         * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
1065         $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
1066         $(am__configure_deps) or $(am__aclocal_m4_deps).
1067         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
1069 2003-10-26  Alexandre Duret-Lutz  <adl@gnu.org>
1071         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
1072         $(am__configure_deps).
1074         * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
1075         sources, and without using require_file.  Define %CONFIG_H_DEPS%
1076         and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
1077         * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
1078         of (srcdir)/%CONFIG_HIN%.  Output the $(srcdir)/%CONFIG_HIN%
1079         rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
1080         * tests/autohdr4.test: New file.
1081         * tests/Makefile.am (TESTS): Add autohdr4.test.
1082         * tests/config.test: Do not grep, run things to see if they work.
1084 2003-10-25  Alexandre Duret-Lutz  <adl@gnu.org>
1086         * tests/output7.test: Populate sub/ with a dummy file, so that it
1087         is not empty.  This fixes a failure reported by Patrick Welche.
1088         * lib/am/distdir.am: Add note about tar's `-o' option and empty
1089         directories.
1091 2003-10-24  Didier Cassirame  <faded@free.fr>  (tiny change)
1093         * lib/ylwrap: Typo in regex.
1095 2003-10-23  Paul Eggert  <eggert@twinsun.com>
1097         * lib/Automake/XFile.pm: Don't assume -j is solo.
1098         Issue a more-informative diagnostic.
1099         Problems reported by Eric Sunshine.
1101 2003-10-21  Alexandre Duret-Lutz  <adl@gnu.org>
1103         * m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
1104         Always define lispdir.
1105         * lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
1106         $(EMACS) to decide whether _LISP files must be installed,
1107         not $(lispdir).
1108         * doc/automake.texi (Emacs Lisp): Mention the two ways to install
1109         non byte-compiled Emacs lisp files.
1110         * tests/lisp4.test, tests/lisp5.test: Check "make install"
1111         when EMACS=no.
1112         Suggested by Simon Josefsson.
1114         * NEWS: Clarify the entry about multiple conditional definitions
1115         of _PROGRAMS, _LDADD, and _LIBADD.
1116         Report from Simon Josefsson.
1118         * lib/am/install.am (install-strip): Override install_sh_PROGRAM
1119         too.
1120         Report from Elmar Hoffmann.
1122 2003-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
1124         * aclocal.in ("MAIN", usage, parse_arguments): Move near
1125         the end, so "MAIN" can use prototypes.
1126         (scan_configure): Move later too, for the sake of prototypes.
1127         (scan_configure_dep): Fix setting of $scanned_configure_dep.
1128         (trace_used_macros): Do not take any argument.
1130 2003-10-06  Alexandre Duret-Lutz  <adl@gnu.org>
1132         * tests/stdlib2.test: Check AM_LDFLAGS alone.
1134         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
1135         versions.
1137         * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
1138         * tests/stdlib2.test: New file.
1139         * tests/Makefile.am (TESTS): Add stdlib2.test.
1140         Report from Kevin P. Fleming.
1142 2003-10-03  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
1144         * tests/defs.in: For required=runtest, check that we are using
1145         a DejaGnu that supports specifying the program on the command-line.
1147 2003-10-03  Alexandre Duret-Lutz  <adl@gnu.org>
1149         For Debian Bug #213524:
1150         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
1151         stderr and stdout, and grep only the first line while testing
1152         install-info --version's output.  This revert part of the change
1153         from 2001-05-18.
1155 2003-10-01  Akim Demaille  <akim@epita.fr>
1157         * m4/amversion.in: Add (C) to the Copyright notice.
1159 2003-10-01  Paul Eggert  <eggert@twinsun.com>
1161         * lib/Automake/XFile.pm: Use Errno.
1162         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
1163         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
1165 2003-09-30  Tom Tromey  <tromey@redhat.com>
1167         * lib/Automake/Options.pm (_process_option_list): Recognize
1168         no-dist.
1169         * NEWS: Update.
1170         * doc/automake.texi (Options): Document no-dist.
1171         * automake.in (check_cygnus): Set no-dist option.
1172         (handle_dist): Recognize no-dist.
1173         * tests/nodist3.test: New file.
1174         * tests/Makefile.am (TESTS): Added nodist3.test.
1176 2003-09-29  Alexandre Duret-Lutz  <adl@gnu.org>
1178         * automake.in (handle_clean): Take $makefile as argument, and
1179         define %MAKEFILE% while processing clean.am.
1180         (generate_makefile): Pass $makefile to handle_clean.
1181         * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
1182         not Makefile.
1183         * tests/gnumake.test: New file.
1184         * tests/Makefile.am (TESTS): Add gnumake.test.
1185         Report from Braden N. McDaniel.
1187 2003-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
1189         * doc/automake.texi (Scripts): Update the example about automake.
1190         Mention `dist_' for distributed scripts.
1192         * lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
1193         Suggested by Eric Sunshine.
1195 2003-09-25  Alexandre Duret-Lutz  <adl@gnu.org>
1197         * README: More mailing lists.
1199         * NEWS: Mention the switch to GNU FDL for the manual.
1201 2003-09-24  Alexandre Duret-Lutz  <adl@gnu.org>
1203         * lib/install-sh (src, dst): Protect names starting with `-',
1204         as in mkinstalldirs.
1206         * configure.in: Rename as ...
1207         * configure.ac: ... this.
1208         * README: s/configure.in/configure.ac/.
1210         * doc/fdl.texi: New file.
1211         * doc/Makefile.am (automake_TEXINFOS): New variable.
1212         * doc/automake.texi (Copying This Manual): New appendix, include
1213         fdl.texi.
1214         (Macro and Variable Index, General Index): Move as subsections of ...
1215         (Indices): This new appendix.
1217         * doc/automake.texi: Refer to configure.ac instead of configure.in.
1219         * automake.texi: Move ...
1220         * doc/automake.texi: ... here.
1221         * doc/Makefile.am: New file.
1222         * configure.in: Output doc/Makefile.
1223         * Makefile.am (SUBDIRS): Add doc.
1224         (ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.
1226 2003-09-23  Alexandre Duret-Lutz  <adl@gnu.org>
1228         * aclocal.in (write_aclocal): Consider files with relative
1229         paths as local to the project, i.e., subject to m4_include.
1230         * tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
1231         is also used for .m4 files in the outer project.
1233         Support for multiple inputs in AC_CONFIG_FILES.
1234         Requested long ago by Harlan Stenn.
1235         * automake.in (handle_dist): Remove unused argument $makefile.
1236         (handle_subdirs): Expect SUBDIRS elements in $relative_dir,
1237         not $am_relative_dir.
1238         (rewrite_inputs_into_dependencies): Allow $add_srcdir to
1239         be a filename that must always be prefixed by $(srcdir) or
1240         $(top_srcdir).
1241         (handle_configure, generate_makefile): Revamp to make the
1242         Makefile.am, Makefile.in, Makefile more independent.
1243         (locate_am): New function.
1244         (scan_configure_dep, parse_arguments): Use locate_am.
1245         (MAIN): Adjust call to generate_makefile.
1246         * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
1247         of %MAKEFILE%.  %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
1248         * tests/output6.test, tests/output7.test: New files.
1249         * tests/Makefile.am (TESTS): Add them.
1250         * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
1251         multiple inputs are scanned.
1253 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
1255         * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
1256         and lib/Automake/Struct.pm from Autoconf.
1257         * lib/Automake/XFile.pm: Update comment, Automake is now
1258         the master for this file.  Cosmetic changes.
1260 2003-09-09  Akim Demaille  <akim@epita.fr>
1262         * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
1263         Reported by Gary Vaughan.
1264         (&find_file): Walk the @include in forward order.
1266 2003-09-09  Akim Demaille  <akim@epita.fr>
1268         * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
1269         trailing files.
1271 2003-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
1273         Changes to m4_included files should also cause aclocal.m4 to change.
1274         * aclocal.in (m4_include_rx): New variable.
1275         (scan_configure_dep): New function.
1276         (scan_configure, add_file): Simplify using scan_configure_dep.
1277         * tests/Makefile.am (TESTS): Add acloca13.test.
1278         * tests/aclocal13.test: New file.
1280         * tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
1281         that we have fake version in the $PATH.
1283         * aclocal.in (add_file): Remove useless filling of $output, probably
1284         left a after CVS conflict.  This code is now in write_aclocal.
1286         * aclocal.in (configure_ac): Do not call require_configure_ac
1287         before parsing the options.
1288         * automake.in (configure_ac): Likewise.
1289         * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
1290         find it.
1291         * lib/Automake/Configure_ac.pm (require_configure_ac):
1292         find_configure_ac never return an undefined value, so test
1293         the file's existence instead.
1294         * tests/Makefile.am (TESTS): Add help.test.
1295         * tests/help.test: New file.
1297 2003-09-06  Alexandre Duret-Lutz  <adl@gnu.org>
1299         * lib/Automake/XFile.pm: Update to use ChannelDefs.
1300         (close): Call Automake::FileUtils::handle_exec_errors on errors.
1301         * automake.in (scan_autoconf_files): Exit with $?=63 on version
1302         mismatch.
1303         (scan_autoconf_traces): Likewise.  Close the autoconf pipe to
1304         capture abnormal exits.
1305         * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
1306         instead.
1307         (trace_used_macros): Close the autom4te pipe to capture abnormal exits.
1308         * lib/missing: When a tool has run and exited with $?=63, emulate
1309         it.  Adjust the diagnostic and pretend the tool is tool old in this
1310         case.  Use an emacs-updated "scriptversion" variable.
1311         * configure.in: Output tests/aclocal-${APIVERSION} and
1312         tests/automake-${APIVERSION}.
1313         * tests/aclocal.in, tests/automake.in,
1314         tests/missing.test, tests/missing2.test: New files.
1315         * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
1316         to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
1317         * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
1318         already testing for this.
1319         * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
1320         configure.in so that aclocal works.
1321         * tests/defun.test: Quote the AC_DEFUN body.
1322         * tests/Makefile.am (TESTS): Add missing.test and missing2.test,
1323         and remove dup3.test.
1324         (check_SCRIPTS): Add aclocal and automake.
1326         * tests/unused.test: Quote AC_DEFUN arguments.
1328 2003-09-05  Paul Eggert  <eggert@twinsun.com>
1330         * NEWS, aclocal.in, automake.in, automake.texi, lib/ansi2knr.c,
1331         lib/depcomp, lib/missing, lib/py-compile,
1332         lib/Automake/Channels.pm, lib/Automake/Rule.pm,
1333         lib/Automake/Variable.pm, lib/Automake/tests/Condition.pl,
1334         lib/am/dejagnu.am, lib/am/depend.am, lib/am/lisp.am,
1335         lib/am/remake-hdr.am, lib/am/texi-vers.am, m4/obsolete.m4,
1336         m4/python.m4, tests/backsl4.test, tests/defs.in,
1337         tests/dejagnu7.test, tests/depacl2.test, tests/dirlist.test,
1338         tests/error.test, tests/getopt.test, tests/gnuwarn.test,
1339         tests/include2.test, tests/libobj10.test, tests/libtool5.test,
1340         tests/libtool6.test, tests/lisp3.test, tests/phony.test,
1341         tests/pr220.test, tests/subcond2.test, tests/subcond3.test,
1342         tests/vtexi.test:
1343         Spelling and minor grammar fixes.
1345 2003-09-01  Alexandre Duret-Lutz  <adl@gnu.org>
1347         * lib/config.sub, lib/config.guess, lib/texinfo.tex,
1348         lib/config-ml.in, lib/symlink-tree: New upstream versions.
1350 2003-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
1352         * tests/yacc7.test: Require bison.
1354 2003-08-31  Alexandre Duret-Lutz  <adl@gnu.org>
1356         * aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
1357         ($underquoted_manual_once): New variable.
1358         * automake.texi (Extending aclocal): Document this.
1360 2003-08-29  Alexandre Duret-Lutz  <adl@gnu.org>
1362         * aclocal.in (@file_order): New variable, to make sure
1363         files are output in the opposite order of the -I arguments.
1364         (scan_file): Fill it.
1365         (trace_used_macros, write_aclocal): Use it.
1366         (scan_m4_files): Reverse the directory contents, so that
1367         macros from the lexicographically greatest files are preferred.
1368         * tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
1369         New files.
1370         * tests/Makefile.am (TESTS): Add them.
1372 2003-08-24  Alexandre Duret-Lutz  <adl@gnu.org>
1374         For Debian Bug #206299:
1375         * automake.in ($configure_deps_greatest_timestamp,
1376         $output_deps_greatest_timestamp): New variables.
1377         (initialize_per_input): Reset $output_deps_greatest_timestamp.
1378         (scan_autoconf_traces, scan_autoconf_files, read_am_file):
1379         Update $configure_deps_greatest_timestamp and
1380         $output_deps_greatest_timestamp
1381         (generate_makefile): Rewrite the logic to decide whether
1382         to rewrite the output.  Move the leading dup_channel_setup
1383         and trailing drop_channel_setup to MAIN, so that
1384         drop_channel_setup is executed for all exit paths.
1385         * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
1386         * tests/distcom6.test: New file.  Report from Scott James Remnant.
1387         * tests/Makefile.am (TESTS): Add distcom6.test.
1389         * configure.in: Require Autoconf 2.57b to be sure
1390         aclocal can use autom4te --language Autoconf-without-aclocal-m4.
1391         * m4/init.m4: Likewise.  Move the AC_PREREQ and m4_pattern_allow
1392         calls inside the AM_INIT_AUTOMAKE macro.
1393         * m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
1394         AC_PREREQ calls inside the macros.
1395         * m4/header.m4: Remove AC_PREREQ.
1397         * automake.in (file_contents_internal): Do not add newlines before
1398         empty actions.
1400         * aclocal.in (write_aclocal): Take an output file and list of
1401         used macros in arguments and make up the file contents here.
1402         (trace_used_macros): New function.
1403         (add_file): Do not update $output.
1404         ($output): Delete.
1405         (MAIN): Call trace_used_macros.  Then rewrite aclocal.m4 only
1406         for these traced macros.  This should shorten aclocal.m4 by
1407         stripping out unused macros.
1408         * automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
1409         * tests/aclibobj.test: Make sure configure.in exists by the time
1410         aclocal runs.
1411         * tests/aclocal8.test: New file.
1412         * tests/Makefile.am (TESTS): Add aclocal8.test.
1413         Suggested by Bruno Haible and Akim Demaille.
1415 2003-08-21  Akim Demaille  <akim@epita.fr>
1417         * lib/Automake/Configure_ac.pm (&find_configure_ac)
1418         (&require_configure_ac): Accept an optional directory argument.
1419         ($configure_ac): Remove.
1420         * aclocal.in, automake.in ($configure_ac): New.
1421         * lib/Automake/Variable.pm: Don't use $configure_ac, just
1422         configure.ac.
1424 2003-08-20  Akim Demaille  <akim@epita.fr>
1426         * lib/Automake/FileUtils.pm: More perldoc.
1427         (&up_to_date_p): New.
1429 2003-08-17  Alexandre Duret-Lutz  <adl@gnu.org>
1431         Fix for PR automake/398:
1432         * m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
1433         set.  Display `none' instead of `:' and $PYTHON is set to `:'
1434         when no suitable interpreter is found.  Honor ACTION-IF-FOUND and
1435         ACTION-IF-NOT-FOUND.
1436         * automake.texi (Python): Document ACTION-IF-FOUND and
1437         ACTION-IF-NOT-FOUND.
1438         * tests/python4.test, tests/python5.test, tests/python6.test,
1439         tests/python7.test, tests/python8.test, tests/python9.test: New
1440         files.
1441         * tests/Makefile.am (TESTS): Add them.
1442         Report from Per Cederqvist.
1444 2003-08-13  Alexandre Duret-Lutz  <adl@gnu.org>
1446         Fix for PR automake/399:
1447         * m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
1448         Report from Per Cederqvist.
1450 2003-08-12  Raja R Harinath  <harinath@acm.org>
1452         * lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
1453         (not): Replace loop with 'map'.
1454         * lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
1455         * lib/Automake/Item.pm (not_alwasy_defined_in_cond):
1456         Don't 'simplify' result of 'invert', since it's already in
1457         canonical form.
1458         * lib/Automake/Rule.pm (define): Replace loop with
1459         'not_always_defined_in_cond'.
1461         * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
1462         * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
1463         (define): Reword comment slightly.
1464         * Variable.pm (_var_order, msg_cond_var): Typo in comment.
1465         * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
1466         spurious automake error exit.
1468 2003-08-12  Alexandre Duret-Lutz  <adl@gnu.org>
1470         * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
1471         * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
1472         * lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
1473         * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
1474         (new): Adjust to call Automake::ItemDef::new.
1475         (comment, location, owner): Delete.  Now inherited from ItemDef.
1476         * lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
1477         (_new): Adjust to call Automake::Item::new.
1478         (name, def, rdef, _set, conditions, not_always_defined_in_cond):
1479         Delete.  How inherited from Item, where `_set' is called `set'.
1480         * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
1481         (suffix_rules_default): Delete.  Now
1482         Automake::Rule::_suffix_rules_default
1483         (suffixes): Delete.  Now Automake::Rule::suffixes.
1484         (TARGET_AUTOMAKE, TARGET_USER): Delete.  Now
1485         Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
1486         (%targets, %target_source, %target_name, %target_owner): Delete,
1487         replaced by the Rule and RuleDef classes.
1488         (dependencies, depend, actions): Delete.  Now in Automake::Rule.
1489         (suffix_rules, register_suffix_rule): Likewise.
1490         (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
1491         (known_extensions_list): Delete.  Now
1492         Automake::Rule::_known_extensions_list.
1493         (target_conditions): Delete.  Now inherited by Automake::Rule
1494         from Automake::Item::conditions.
1495         (rule_define): Delete.  Now Automake::Rule::define.  Adjust all
1496         callers.
1497         (target_defined): Delete.  Now Automake::Rule::rule.  Adjust all
1498         callers.
1499         (initialize_per_input): Adjust to call Automake::Rule::reset.
1500         (err_target, err_cond_target, msg_cond_target, msg_target,
1501         reject_target): Delete.  Now defined in Automake::Rule as
1502         err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
1503         Adjust all callers.
1504         (handle_languages): Call suffix_rules_count.
1505         * tests/location.test: Adjust expected diagnostics.  We now display
1506         $(EXEEXT) accurately.
1508 2003-08-10  Alexandre Duret-Lutz  <adl@gnu.org>
1510         Revert the fix for PR automake/291:
1511         * lib/Automake/Variable.pm (define): Do not warn about variables
1512         starting with `_' which are an issue on NEWS-OS 4.2R.  According
1513         to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
1514         was released on 1996 and is not in wide use.  On the other hand,
1515         variables starting with `_' are mandatory in several situations,
1516         so diagnosing them is more annoying than useful.
1517         * tests/canon5.test: Do not use -Wno-portability.
1518         * tests/vars2.test: Delete.
1519         * tests/Makefile.am (TESTS): Remove vars2.test.
1520         Suggested by Jim Meyering.
1522 2003-08-09  Raja R Harinath  <harinath@acm.org>
1524         * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
1525         * lib/Automake/tests/DisjConditions.pl (test_ambig): Test
1526         Automake::Disjunctions::ambiguous_p.
1528 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
1530         * lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
1531         * lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
1532         * automake.in (rule_define): Adjust usage.
1533         * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
1535         * lib/Automake/Options.pm: New file.
1536         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
1537         * automake.in (FOREIGN, GNU, GNITS, $default_strictness)
1538         ($default_strictness_name, $strictness, $strictness_name)
1539         (%options, %global_options, process_option_list)
1540         (set_strictness): Remove, now in Options.pm.
1541         (initialize_per_input): Call Automake::Options::reset.
1542         (handle_options, get_object_extension, get_object_extension)
1543         (handle_languages, handle_single_transform_list, handle_compile)
1544         (handle_texinfo_helper, handle_man_pages, handle_dist)
1545         (handle_configure, do_check_merge_target)
1546         (handle_factored_dependencies, handle_tests)
1547         (handle_minor_options, scan_autoconf_traces, check_cygnus)
1548         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
1549         (make_paragraphs, am_install_var, parse_arguments): Adjust
1550         to set and read options via the new interface.
1552 2003-08-07  Raja R Harinath  <harinath@acm.org>
1554         * Makefile.am (maintainer-check): Update perllibdir.
1555         * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
1556         (EXTRA_DIST): Add Config.in.
1557         * Makefile.in, lib/Automake/Makefile.in: Regenerate.
1558         * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
1559         $perllibdir.
1561 2003-08-06  Raja R Harinath  <harinath@acm.org>
1563         * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
1564         from the builddir too, to pick up Automake::Config.
1565         * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
1566         * configure: Regenerate.
1567         * automake.in (BEGIN): Handle multiple directories in $perllibdir.
1568         * aclocal.in (BEGIN): Likewise.
1570 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
1572         * tests/ltcond.test: Thinko.
1574 2003-08-06  Alexandre Duret-Lutz  <adl@gnu.org>
1576         * lib/Automake/Config.in: New file.
1577         * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
1578         CLEANFILES): New variables.
1579         (Config.pm): New rule.
1580         * Makefile.am (maintainer-check): Adjust expected differences
1581         between automake.in and automake.
1582         * aclocal.in, automake.in: Use Automake::Config.
1584 2003-08-05  Alexandre Duret-Lutz  <adl@gnu.org>
1586         * tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
1588         * automake.in (handle_texinfo_helper): Use the user definition
1589         of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
1590         * tests/txinfo22.test: New file.
1591         * tests/Makefile.am (TESTS): Add txinfo22.test.
1592         Report from Tom Tromey.
1594 2003-08-03  Raja R Harinath  <harinath@acm.org>
1596         * lib/Automake/Variable.pm (@EXPORT): Remove
1597         traverse_variable_recursively and
1598         require_variables_for_variable.
1599         (require_variables_for_variable, traverse_variable_recursively)
1600         (_traverse_variable_recursively_worker): Convert to
1601         Automake::Variable methods, remove support for being
1602         invoked with variable names, and rename to ...
1603         (requires_variables, traverse_recursively)
1604         (_do_recursive_traversal): ... these.
1605         (_value_as_list_recursive_worker, transform_variable_recursively):
1606         Update to reflect changes.
1607         * automake.in (handle_LIBOBJS, handle_ALLOCA)
1608         (handle_libraries, handle_ltlibraries, am_primary_prefixes):
1609         Likewise.
1610         (define_objects_from_sources): Fix typo in comment.
1612 2003-08-02  Raja R Harinath  <harinath@acm.org>
1614         * automake.in (handle_source_transform): Replace 'grep' with 'map'.
1615         (register_language): Replace 'grep' with 'foreach' modifier.
1617 2003-08-01  Raja R Harinath  <harinath@acm.org>
1619         * lib/Automake/Variables.pm (variables): Return a list of
1620         Automake::Variable instances, not a list of strings.
1621         (dump): Remove support for being invoked with a string.
1622         (variables_dump): Adapt to these changes.
1623         * automake.in (check_typos): Likewise.
1624         (am_primary_prefixes): Likewise.
1626 2003-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1628         * lib/depcomp (aix): Support AIX Compiler version 6.
1630 2003-07-31  Alexandre Duret-Lutz  <adl@gnu.org>
1632         * automake.texi (A Shared Library): Rewrite and split into
1633         subsections.  Valuable comments from Norman Gray, Harlan Stenn,
1634         Tim Van Holder, and Guido Draheim.
1635         * tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
1636         * tests/Makefile.am (TESTS): Add them.
1638 2003-07-30  Alexandre Duret-Lutz  <adl@gnu.org>
1640         * automake.in (handle_single_transform_list): Complain about
1641         foo.$(OBJEXT) being created both with libtool and without, not
1642         about foo.lo.
1643         Report from Tim Van Holder.
1645 2003-07-29  Alexandre Duret-Lutz  <adl@gnu.org>
1647         * Makefile.am (FETCHFILES, fetch): Add config-ml.in and
1648         symlink-tree.
1649         * lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
1650         upstream versions.
1652 2003-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
1654         * automake.in (handle_configure): Cosmetic change to avoid
1655         a maintainer-check complaint.
1657 2003-07-27  Alexandre Duret-Lutz  <adl@gnu.org>
1659         * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
1660         (variable_dump): Replace by ...
1661         (dump): ... this method.
1662         (rdef, _check_ambiguous_condition): Adjust to use ->dump.
1663         (define, variables_dump): Adjust to use Automake::Variable::dump
1665         * lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
1666         * automake.texi (Built sources example): Adjust example.
1668 2003-07-26  Alexandre Duret-Lutz  <adl@gnu.org>
1670         * automake.in (get_object_extension, handle_languages)
1671         (handle_single_transform_list, handle_compile, handle_compile)
1672         (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
1673         (handle_tests, handle_minor_options, check_gnu_standards)
1674         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
1675         Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
1677         Complete changes from 2003-07-08.
1678         * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
1679         replaced by $options{'no-dependencies'}.
1680         ($global_options): Remove.
1681         (%global_options): New variable.
1682         (initialize_per_input): Empty %options.
1683         (process_option_list): Take a location and %options ref argument,
1684         process no-dependencies as other options.
1685         (handle_options): Do not reparse the global options, just initialize
1686         %options from %global_options and fill it with local options.
1687         (handle_languages, handle_single_transform_list)
1688         (handle_configure, check_cygnus): Adjust usage of
1689         $options{'no-dependencies'}.
1690         (make_paragraphs): Adjust usage of $options{'cygnus'}.
1691         (parse_arguments): Set cygnus and no-dependencies in %global_options.
1692         (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
1693         to fill %global_options.
1695 2003-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
1697         * tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
1698         avoid the use of tar.
1700 2003-07-24  Alexandre Duret-Lutz  <adl@gnu.org>
1702         * tests/gnuwarn2.test: Typo.
1704         * tests/insthook.test: Use $MAKE, not make.
1706         Fix missing rebuilds during `make dist' with BSD make.
1707         * automake.in (generate_makefile): Do not push Makefile.in, and
1708         Makefile.am into DIST_COMMON here.
1709         * lib/am/configure.am (DIST_COMMON): Do it here, and use
1710         %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
1711         actually match the targets.   Prefix `configure' with `$(srcdir)/'
1712         to match the target.
1713         * tests/remake4.test: New file.
1714         * tests/Makefile.am (TESTS): Add remake4.test.
1715         Report from Akim Demaille.
1717 2003-07-23  Alexandre Duret-Lutz  <adl@gnu.org>
1719         * automake.in (handle_multilib): Register all-multi.
1720         (file_contents_internal): Insert \n when concatenating actions
1721         from "factored" rules.
1722         * lib/config-ml.in: New file, from GCC, including a patch
1723         from Ralf Corsepius (see GCC's PR 11526).
1724         * lib/symlink-tree.in: New file, from GCC.
1725         * lib/Makefile.am (dist_script_DATA): Add config-ml.in and
1726         symlink-tree.
1727         * lib/am/clean.am (distclean-generic): Do not delete Makefile here...
1728         (distclean, maintainer-clean): ... do it here.
1729         * lib/am/depend.am (distclean-depend): Likewise, replace by
1730         (distclean, maintainer-clean): ... these.
1731         * lib/am/multilib.am (all-recursive, install-recursive,
1732         mostlyclean-recursive, clean-recursive, distclean-recursive,
1733         maintainer-clean-recursive): Remove these rules.
1734         (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
1735         by ...
1736         (mostlyclean, clean, distclean, maintainer-clean): ... these.
1737         (all-am): Remove, done in handle_multilib.
1738         (install-am): Replace by ...
1739         (install-exec-am): ... this.
1740         * tests/Makefile.am (TESTS): Add multlib.test.
1741         * tests/multlib.test: New file, based on a test case by
1742         Ralf Corsepius
1744 2003-07-23  Tom Tromey  <tromey@redhat.com>
1746         * lib/missing (autom4te): Typo.
1748 2003-07-16  Derek Price  <derek@ximbiot.com>
1750         * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
1751         (handle_configure): Handle adding AC_CONFIG_LINKS arguments to
1752         distclean targets (CONFIG_CLEAN_FILES makefile var).
1753         * NEWS: Note new handling of AC_CONFIG_LINKS.
1754         * automake.texi (Other things Automake recognizes): Ditto.
1755         * tests/Makefile.am (TESTS): Add new tests.
1756         * tests/conflnk.test: New test that links are cleaned on distclean.
1757         * tests/conflnk2.test: New test that source files for links are
1758         distributed.
1760 2003-07-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>  (tiny change)
1762         * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to
1763         render $seen_multilib functional again.
1765 2003-07-10  Raja R Harinath  <harinath@cs.umn.edu>
1767         Avoid using refs as hash keys.
1768         * lib/Automake/Variable.pm ($_traversal): New.
1769         (reset): Reset $_traversal.
1770         (_new): New attribute 'scanned'.
1771         (%_vars_scanned): Remove.
1772         (traverse_variable_recursively)
1773         (traverse_variable_recursively_worker):
1774         Use $_traversal instead of %_vars_scanned to detect recursively
1775         defined variables.
1777         * lib/am/configure.am (am--refresh): Silence.
1779 2003-07-10  Alexandre Duret-Lutz  <adl@gnu.org>
1781         * lib/Automake/Variable.pm (define): Make clear the diagnostic
1782         about variable names starting with `_' is about *Make* variables.
1784         For Debian Bug #193907:
1785         * automake.texi (Clean): make maintainer-clean should still
1786         allow ./configure && make to run.
1788         * automake.texi (CVS): Typo.
1790 2003-07-09  Alexandre Duret-Lutz  <adl@gnu.org>
1792         * aclocal.in: Use Automake::FileUtils.
1793         (parse_arguments, scan_configure, scan_m4_files): Never call
1794         "die" to print an error message.  Use print and exit.
1795         * automake.in: Use Automake::FileUtils.
1796         * lib/Automake/General.pm ($debug, $help, $tmp, $verbose,
1797         $version, &debug, &getopt, &mktmpdir, &verbose): Remove.
1798         (END): Do not massage Perl's exit code.  Do not clean any temporary
1799         directory.
1800         (find_file, mtime, update_file, xsystem, contents): Move to ...
1801         * lib/Automake/FileUtils.pm: ... this new file.  Adjust to
1802         report errors using Channels.
1803         (handle_exec_errors, xqx): New functions, from Autoconf.
1804         * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
1806         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
1807         Return the empty list on recursively defined variable.  This
1808         supersedes my change of 2003-07-02.
1810 2003-07-08  Akim Demaille  <akim@epita.fr>
1812         * automake.in ($cygnus_mode): Replace with $options{'cygnus'}.
1813         Adjust all dependencies.
1814         (&depend): Move next to %dependencies and prototype.
1815         (&initialize_per_input): Initialize the 'cygnus' field of
1816         '%options' to spare the code from 'exists' or 'defined' when
1817         testing it.
1818         (&handle_configure, &do_check_merge_target, &check_cygnus): Prototype.
1819         (&parse_arguments): Rename '%options' and '%options_1st_pass' as
1820         '%cli_options' and '%cli_options_1st_pass' to avoid clashes and
1821         inconsistencies.
1823 2003-07-07  Alexandre Duret-Lutz  <adl@gnu.org>
1825         * automake.in (generate_makefile): Move near the end of the
1826         file, after the definition of all called functions, so that
1827         prototypes can be enforced.
1829 2003-07-06  Akim Demaille  <akim@epita.fr>
1831         * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive,
1832         install-exec-recursive, install-data-recursive and
1833         uninstall-recursive addition to...
1834         * lib/am/texinfos.am: here.
1835         * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY
1836         declaration of RECURSIVE_TARGETS.
1838 2003-07-06  Akim Demaille  <akim@epita.fr>
1840         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm (VAR_SORTED):
1841         New variable type.
1842         Handle it.
1843         * automake.in (&handle_subdirs): Prototype.
1844         Adjust callers.
1845         Make RECURSIVE_TARGETS a VAR_SORTED.
1847 2003-07-06  Akim Demaille  <akim@epita.fr>
1849         * automake.in (&define_files_variable): New.
1850         (&handle_texinfo_helper): Move the handling of user variables from
1851         here, to...
1852         (&handle_texinfo): here.
1853         This is to balance the size of these functions, and to match the
1854         convention of other _helper functions.
1855         (&handle_texinfo_helper): Use &define_files_variable.
1856         Move some code to use less variables.
1857         Rename $info_cursor as $texi.
1858         (&handle_texinfo): Do not call handle_texinfo_helper if there are
1859         no TEXINFOS.
1860         * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps
1861         and html.
1862         Remove *-recursive targets from .PHONY, they are part of
1863         $(RECURSIVE_TARGETS) anyway.
1864         (install-info, mostlyclean-aminfo): Are .PHONY.
1866 2003-07-05  Akim Demaille  <akim@epita.fr>
1868         * lib/am/distdir.am: Use ';' as a terminator, not a separator, for
1869         sed complex commands, as required by NetBSD sed.
1870         Reported by Patrick Welche.
1872 2003-07-05  Alexandre Duret-Lutz  <adl@gnu.org>
1874         * lib/config.guess, lib/config.sub: New upstream version.
1876 2003-07-04  Alexandre Duret-Lutz  <adl@gnu.org>
1878         * automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
1879         are automatically distributed.
1881         * lib/depcomp (icc): Update to grok ICC 7.1's output.
1882         * m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
1883         in a subdirectory, and with many dependencies.  This
1884         catches more failures of depcomp.
1885         Reports from Ralf Wildenhues and Akim Demaille.
1887 2003-07-04  Akim Demaille  <akim@epita.fr>
1889         * automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
1890         (&handle_texinfo_helper, &handle_texinfo): Formatting changes.
1891         Prototype properly.
1892         Don't use & when calling functions.
1894 2003-07-03  Alexandre Duret-Lutz  <adl@gnu.org>
1896         * NEWS: Categorize entries.
1897         Suggested by Jim Meyering.
1899         * Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
1900         Ignore @...@ substitutions in comments.
1901         * tests/defs.in: Try to make the shell more POSIX compliant.
1902         (AUTOMAKE_run, AUTOMAKE_fails): New functions.
1903         * tests/README: Mention AUTOMAKE_fails.
1904         * tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
1905         * tests/asm.test, tests/backsl3.test, tests/backsl4.test,
1906         * tests/badline.test, tests/badopt.test, tests/canon.test,
1907         * tests/canon5.test, tests/colneq.test, tests/comment3.test,
1908         * tests/comment5.test, tests/cond2.test, tests/cond20.test,
1909         * tests/cond23.test, tests/cond24.test, tests/cond27.test,
1910         * tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
1911         * tests/dejagnu2.test, tests/dirforbid.test,
1912         * tests/distcom3.test, tests/else.test, tests/exdir2.test,
1913         * tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
1914         * tests/getopt.test, tests/gettext.test, tests/gettext2.test,
1915         * tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
1916         * tests/insh.test, tests/lex2.test, tests/libobj10.test,
1917         * tests/libobj12.test, tests/libobj13.test,
1918         * tests/libobj3.test, tests/library2.test,
1919         * tests/library3.test, tests/libtool4.test,
1920         * tests/libtool6.test, tests/lisp2.test, tests/location.test,
1921         * tests/nogzip2.test, tests/output5.test, tests/overrid.test,
1922         * tests/percent.test, tests/percent2.test,
1923         * tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
1924         * tests/pr211.test, tests/primary.test, tests/primary2.test,
1925         * tests/python2.test, tests/recurs.test, tests/reqd2.test,
1926         * tests/seenc.test, tests/specflg.test, tests/specflg2.test,
1927         * tests/spell.test, tests/spell2.test, tests/srcsub.test,
1928         * tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
1929         * tests/substtarg.test, tests/suffix11.test,
1930         * tests/symlink.test, tests/syntax.test,
1931         * tests/targetclash.test, tests/txinfo4.test,
1932         * tests/version3.test, tests/warnopts.test,
1933         * tests/xsource.test, tests/yacc2.test: Use set -e,
1934         AUTOMAKE_fails, and always grep error message.
1936         * automake.in (handle_ltlibraries): Fix call to msg.
1938         * tests/stamph.test: Delete.
1939         * tests/Makefile.am (TESTS): Remove stamph.test.
1941         * automake.in (handle_single_transform_list): Use $var->name
1942         to print variable in the configure-substitution diagnostic.
1943         Do not mention the parent when it is the variable itself.
1945         * tests/package.test: Delete.
1946         * tests/Makefile.am (TESTS): Remove package.test.
1948         * automake.in (cond_stack_else): Return FALSE if `if' was not
1949         used.
1950         (cond_stack_endif): Return TRUE if `if' was not used.  Do not
1951         display $negate and $cond, they are irrelevant and maybe undefined.
1953 2003-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
1955         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
1956         Do not return undef when a variable is recursively defined, this
1957         causes warnings all over the place.  Return the empty string instead.
1959         * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
1960         from empty DIST_ARCHIVES.
1962 2003-07-01  Alexandre Duret-Lutz  <adl@gnu.org>
1964         * automake.in (scan_autoconf_traces): Check the expected
1965         number of arguments of each traced macro.
1966         * tests/overrid.test: Fix call to AM_CONDITIONAL.
1967         * tests/conff2.test: New files.
1968         * tests/Makefile.am (TESTS): Add conff2.test.
1969         Report from Paolo Bonzini.
1971 2003-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
1973         * automake.in ($SUBST_REF_PATTERN): Do not define.
1974         (%gen_varname): Move to Variable.pm, as %_gen_varname.
1975         (initialize_per_input): Do not clean %gen_varname.
1976         (handle_options, check_libobjs_sources, handle_source_transform,
1977         handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
1978         handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
1979         am_install_var): Adjust to use value_as_list_recursive,
1980         loc_and_value_as_list_recursive, and has_conditional_contents.
1981         (require_file_with_macro): Accept an Automake::Variable as argument.
1982         (traverse_variable_recursively,
1983         traverse_variable_recursively_worker, gen_varname,
1984         transform_variable_recursively): Move ...
1985         * lib/Automake/Variable.pm (traverse_variable_recursively,
1986         _traverse_variable_recursively_worker,
1987         _gen_varname, transform_variable_recursively): ... here.
1988         * automake.in (variable_conditionally_defined,
1989         variable_value_as_list_recursive_worker,
1990         variable_value_as_list_recursive
1991         variable_loc_and_value_as_list_recursive): Move ...
1992         * lib/Automake/Variable.pm (has_conditional_contents,
1993         _value_as_list_recursive_worker,
1994         value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
1995         (reset): Reset %_gen_varname.
1996         (require_variables_for_variable): Accept an Automake::Variable
1997         as argument.
1999 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2001         * tests/aclocal6.test: Test maintainer-clean in VPATH
2002         builds. (For Ralf's fix.)
2004 2003-06-27  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>  (tiny change)
2006         * lib/am/configure.am (maintainer-clean): Remove
2007         $(top_srcdir)/autom4te.cache, not autom4te.cache.
2009 2003-06-27  Akim Demaille  <akim@epita.fr>
2011         * automake.texi: Use @node with a single argument.
2013 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2015         * m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
2017         * lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
2018         at the end of distcheck.  This was mistakenly removed on
2019         2003-06-15.
2020         * tests/subpkg.test: Make sure distcheck cleans up after itself.
2022         * m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
2023         ($(top_srcdir)/m4/amversion.m4): ... this.
2024         (DISTCLEANFILES): Remove.
2025         (nodist_m4data_DATA): Remove. amversion.m4 is automatically
2026         distributed.
2027         (EXTRA_DIST): Add amversion.in.
2029 2003-06-25  Akim Demaille  <akim@epita.fr>
2031         * automake.texi (Top): Use @copying and @insertcopying.
2032         Make Alexandre an author.
2033         * automake.in ($gen_copyright): Add the "(C)" to Copyright.
2034         * lib/depcomp: Likewise.
2036 2003-06-23  Alexandre Duret-Lutz  <adl@gnu.org>
2038         * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
2039         (variable_defined, examine_variable): Remove.
2040         (%_ac_macro_for_var): Add an entry for ALLOCA.
2041         (require_variables): Use vardef instead of variable_defined.
2042         Do not use _cvar.
2043         * automake.in (generate_makefile): Do not push $(SOURCE) into
2044         @sources.  Use define_pretty_variable to define SOURCES.
2045         (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
2046         to require LIBOBJS, LTLIBOBJS and ALLOCA.
2047         (handle_programs, handle_ltlibraries): Do not define an empty
2048         _DEPENDENCIES or _LDFLAGS variable when none is defined.
2049         (define_configure_variable): Do not check whether the variable
2050         already exists (it's Automake::Variable::define's job).
2051         (require_build_directory): Likewise, do not check
2052         the existence of am__dirstamp.
2053         (generate_makefile, handle_options, handle_languages)
2054         (check_libobjs_sources, handle_single_transform_list)
2055         (traverse_variable_recursively_worker, handle_source_transform)
2056         (handle_lib_objects, handle_LIBOBJS, handle_compile)
2057         (handle_libtool, handle_programs, handle_libraries)
2058         (handle_ltlibraries, check_typos, handle_texinfo_helper)
2059         (handle_man_pages, handle_tags, handle_dist, handle_subdirs)
2060         (scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
2061         (handle_all, do_check_merge_target, handle_clean, lang_c_finish)
2062         (handle_tests, lang_yacc_target_hook, define_pretty_variable)
2063         (define_compiler_variable, define_linker_variable)
2064         (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
2065         call var, vardef, or set_seen, instead of variable_defined.  Use
2066         set_seen only for variables which are actually checked by
2067         check_typos.
2068         * tests/target.test: Delete.
2069         * tests/alloca.test, tests/alloca2.test: New files.
2070         * tests/libobj3.test: Check error message.
2071         * tests/distcom4.test: Make sure configure is in DIST_COMMON.
2072         This replace confdist.test.
2073         * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
2074         (TESTS): Add alloca.test and alloca2.test.  Remove confdist.test.
2076 2003-06-20  Alexandre Duret-Lutz  <adl@gnu.org>
2078         * automake.in (handle_dist): Delete DIST_COMMON before redefining
2079         it.  Bug report from Akim Demaille.
2080         (rewrite_inputs_into_dependencies): Make sure we always return
2081         something, even when $add_srcdir is 0.
2082         * tests/distcom4.test, tests/distcom5.test: New files.
2083         * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
2085         * tests/cond29.test: Also check for _SOURCES.
2086         Report from Paolo Bonzini.
2088 2003-06-20  Akim Demaille  <akim@epita.fr>
2090         * lib/am/configure.am: Replace leading spaces with a real tab.
2092 2003-06-15  Alexandre Duret-Lutz  <adl@gnu.org>
2094         * tests/nogzip.test, tests/nogzip2.test: New files.
2095         * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
2097 2003-06-15  Akim Demaille  <akim@epita.fr>
2099         * automake.in (&make_paragraphs): Define %GZIP%.
2100         (&process_option_list): Accept no-dist-gzip2.
2101         (&handle_dist): Complain when no archive format is enabled.
2102         * lib/am/distdir.am (DIST_ARCHIVES): New variable.
2103         (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
2104         conditioned.
2105         (dist): Build $(distdir).tar.gz conditionally.
2106         (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
2107         to list built archives.  Run $(MAKE) dist instead of dist-gzip.
2108         * automake.texi (Options, The types of distributions): Adjust.
2110 2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)
2112         * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
2113         POSIXLY_CORRECT=1.
2115 2003-06-14  Karl Berry  <karl@gnu.org>
2116             Alexandre Duret-Lutz  <adl@gnu.org>
2118         * mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
2119         to update it each time the file is written, as in install-sh.
2120         (usage): Improve message.
2121         (--version): New option.
2122         (--help): Output to stdout, not stderr.
2124 2003-06-13  Paul Eggert  <eggert@twinsun.com>
2126         * lib/install-sh (dsttmp, rmtmp): Do not use '#' in file names;
2127         it's not guaranteed by POSIX and it doesn't work on OpenVMS.
2128         Bug reported by Bernard Giroud in:
2129         http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
2131 2003-06-05  Alexandre Duret-Lutz  <adl@gnu.org>
2133         * automake.in (check_gnu_standards): Use no-installman and
2134         no-installinfo's locations.
2135         (process_option_list): Fill %options with locations.
2136         (check_cygnus) Fill $options{'no-installinfo'} and
2137         $options{'no-dependencies'} with $cygnus_mode, so that it
2138         remains a Location.
2139         * tests/gnuwarn2.test: New file.
2140         * tests/Makefile.am (TESTS): Add gnuwarn2.test.
2142 2003-06-04  Alexandre Duret-Lutz  <adl@gnu.org>
2144         * automake.in (process_option_list): Record the location
2145         of ansi2knr's definition.
2146         (handle_compile): Use it.
2147         * tests/ansi3.test: Make sure the location appears correctly.
2148         Update to use set -e.
2149         * tests/ansi3b.test: New file.
2150         * tests/Makefile.am (TESTS): Add ansi3b.test.
2152         * tests/alpha.test: Really run $MAKE.  Augment to test
2153         subdirectories, and check-news report.
2154         * tests/alpha2.test: New file.  Bug report from Akim Demaille.
2155         * tests/gnits2.test: Make sure README-alpha is not distributed.
2156         * tests/Makefile.am (TESTS): Add alpha2.test.
2157         * automake.in (handle_minor_options): Distribute README-alpha
2158         using push_dist_common, not require_file_with_macro.
2160 2003-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
2162         * lib/Automake/Configure_ac.pm
2163         (search_configure_ac, find_configure_ac): Rename as ...
2164         (find_configure_ac, require_configure_ac): ... these.
2165         * aclocal.in (scan_configure): Adjust call to require_configure_ac.
2166         * automake.in (scan_autoconf_files): Likewise.
2167         Suggested by Tim Van Holder.
2169         * alocal.in: Use Automake::Configure_ac.
2170         ($configure_ac): Delete.
2171         (scan_configure): Adjust use of find_configure_ac;
2172         * automake.in: Use Automake::Configure_ac.
2173         ($configure_ac): Delete.
2174         (scan_autoconf_files): Adjust use of find_configure_ac;
2175         * lib/Automake/Configure_ac.pm: New file.
2176         * lib/Automake/General.pm (find_configure_ac): Delete.  Now
2177         replaced by Automake::Configure_ac::search_configure_ac.
2178         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
2179         * lib/Automake/Variable.pm: Use Automake::Configure_ac.
2180         (require_variables): Adjust use of $configure_ac.
2182 2003-06-02  Akim Demaille  <akim@epita.fr>
2184         * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
2185         * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
2186         * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
2187         * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
2188         * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
2189         * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
2190         * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
2191         * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
2192         * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
2193         * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
2194         * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
2195         * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
2196         * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
2197         * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
2198         * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
2199         * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
2200         * m4/Makefile.am: White space changes and Copyright updates.
2202 2003-05-29  Alexandre Duret-Lutz  <adl@gnu.org>
2204         * lib/Automake/Variable.pm (check_defined_unconditionally): Add
2205         the $parent_cond argument.
2206         (output): Use $self->name in diagnostic not $self.
2207         (variable_value_as_list): Rename as ...
2208         (value_as_list): ... this.  Declare as a method.  Take a $parent_cond
2209         argument and pass it to check_defined_unconditionally.  Do not call
2210         variable_assert, now that this is a method.
2211         (variable_assert): Delete (unused).
2212         * automake.in (traverse_variable_recursively_worker): Adjust to
2213         use check_defined_unconditionally and value_as_list as a methods.
2215         * lib/Automake/Variable.pm (output): Declare as a method, since it
2216         is only used this way.
2217         (define): Fix documentation of $cond.
2218         Suggested by Raja R. Harinath.
2220 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
2222         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
2223         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
2224         and VarDef.pm.
2225         * automake.in: Use Automake::Variable and Automake::VarDef.
2226         (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
2227         (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
2228         (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
2229         (silent_variable_override): Delete.  Now
2230         Automake::Variable::_silent_variable_override.
2231         (var_value, var_location, var_comment, var_type, var_owner,
2232         var_pretty, content_seen): Delete.  This functionality is now
2233         offered by Automake::Variable and Automake::VarDef.
2234         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
2235         Delete.  Now defined in Automake::VarDef.
2236         (var_order): Delete.  Now Automake::Variable::_var_order.
2237         (appendvar): Delete.  Now Automake::Variable::_appendvar.
2238         (var_SUFFIX_trigger): Register using Automake::Variable::hook.
2239         (initialize_per_input): Call Automake::Variable::reset.
2240         (err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
2241         defined in Automake::Variable.
2242         (generate_makefile, process_option_list, handle_languages)
2243         (traverse_variable_recursively_worker)
2244         (transform_variable_recursively, handle_compile)
2245         (handle_libraries, handle_ltlibraries)
2246         (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
2247         Adjust to use Automake::Variable functions.
2248         (check_ambiguous_condition): Delete.  Now
2249         Automake::Variable::_check_ambiguous_condition.
2250         (condition_ambiguous_p): Delete.  Now
2251         Automake::Variable::condition_ambiguous_p.
2252         (variable_not_always_defined_in_cond): Delete.  Now
2253         Automake::Variable::not_always_defined_in_cond.
2254         (macro_define): Delete.  Now Automake::Variable::define.
2255         (macro_delete): Delete.  Now Automake::Variable::variable_delete.
2256         (macro_dump): Delete.  Now Automake::Variable::variable_dump.
2257         (macros_dump): Delete.  Now Automake::Variable::variables_dump.
2258         (variable_defined): Delete.  Now
2259         Automake::Variable::variable_defined, with the target check
2260         temporarily disabled.
2261         (variable_assert): Delete.  Now Automake::Variable::variable_assert.
2262         (examine_variable): Delete.  Now
2263         Automake::Variable::examine_variable.
2264         (variable_conditions): Delete.  Now Automake::Variable::conditions.
2265         (scan_variable_expansions): Delete.  Now
2266         Automake::Variable::scan_variable_expansions.
2267         (check_variable_expansions): Delete.  Now
2268         Automake::Variable::check_variable_expansions.
2269         (check_variable_defined_unconditionally): Delete.  Now
2270         Automake::Variable::check_defined_unconditionally.
2271         (variable_value): Delete.  Now Automake::Variable::variable_value.
2272         (variable_value_as_list): Delete.  Now
2273         Automake::Variable::variable_value_as_list.
2274         (variable_value_as_list_recursive_worker): Adjust to use
2275         Automake::Variable functions.
2276         (variable_output): Delete.  Now Automake::Variable::output.
2277         (define_pretty_variable, define_configure_variable, read_am_file)
2278         (define_standard_variables, read_main_am_file): Adjust to use
2279         Automake::Variable functions.
2280         (handle_variables): Delete.  Now Automake::Variable::output_variables.
2281         (file_contents_internal, am_primary_prefixes, am_install_var)
2282         (require_file_with_macro, require_conf_file_with_macro)
2283         (push_dist_common): : Adjust to use
2284         Automake::Variable functions.
2285         (require_variables): Delete.  Now
2286         Automake::Variable::require_variables.
2287         (require_variables_for_macro): Delete.  Now
2288         Automake::Variable::require_variables_for_variable.
2289         * tests/Makefile.am (XFAIL_TESTS): Add target.test.
2291 2003-05-25  Christian Cornelssen  <ccorn@cs.tu-berlin.de>  (tiny change)
2293         * tests/dejagnu7.test: Check if runtest supports --status.
2295 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
2297         * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
2298         is undefined.
2300         * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
2301         $self contains only one Condition.
2303         * automake.in: Use plain strict, including refs.
2304         (macro_define, handle_single_transform_list): Use \&{'name'} to
2305         build references to named subroutines.
2307 2003-05-22  Karl Berry  <karl@gnu.org>
2309         * automake.texi: Update @dircategory to match the Free Software
2310         Directory.  End directory entries with dots.
2312 2003-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
2314         * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
2316         * lib/elisp-comp: s/François/Franc,ois/.
2317         Suggested by Paul Eggert.
2319         * automake.in: Move the "main" code at the end.
2320         (parse_arguments): Move near the end.
2321         ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
2322         accept_extensions, var_SUFFIXES_trigger): Move these definitions
2323         before any call to register_language.
2324         (am_file): Move the definition with all other global variables,
2325         do not use local to define it.
2326         * Makefile.am (maintainer-check): Expect no `local' in Automake.
2328 2003-05-21  Alexandre Duret-Lutz  <adl@gnu.org>
2330         * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
2331         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
2332         * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
2333         * automake.in (handle_texinfo_helper, pretty_print_rule)
2334         (variable_output): Adjust to use makefile_wrap instead of
2335         pretty_print_internal.
2336         (pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
2337         and augmented to accept the $eol and $max_len arguments.
2339 2003-05-18  Alexandre Duret-Lutz  <adl@gnu.org>
2341         * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
2342         lib/texinfo.tex: New upstream versions.
2344 2003-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
2346         * lib/am/install.am (install, install-exec, install-data, uninstall):
2347         Declare conditionally using a if/else/endif block instead of
2348         using ?SUBDIRS?-style conditions.  The latter fail when
2349         %maybe_BUILT_SOURCES% is replaced by several lines.
2350         This fixes a bug introduced on 2003-04-06.
2351         * tests/bsource.test: New file.
2352         * tests/Makefile.am (TESTS): Add bsource.test.
2353         Reported by Bruno Haible.
2355 2003-05-11  Alexandre Duret-Lutz  <adl@gnu.org>
2357         * automake.texi (renamed objects): New node.
2358         (Program and Library Variables): Move maude_DEPENDENCIES closer
2359         to maude_LDADD.  Define and use `per-target compilation flags' in the
2360         explanation for maude_CFLAGS et al.  Link to the `renamed objects'
2361         node.  Illustrate maude_SHORTNAME.
2363 2003-05-09  Alexandre Duret-Lutz  <adl@gnu.org>
2365         * lib/install-sh: Update copyright notice and license to that of
2366         X11R6.  This removes an advertising clause reported as Debian bug
2367         #191717.
2369 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2371         * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
2373         * m4/make.m4: Rename the doit target as am__doit,
2374         and make it phony.
2375         Reported by Philip S Tellis.
2377 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2379         * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
2380         status.
2381         * tests/makej.test: New file (test Autom4te's cache locking,
2382         new in CVS Autoconf).
2383         * tests/Makefile.am (TESTS): Add makej.test.
2385 2003-05-06  Alexandre Duret-Lutz  <adl@gnu.org>
2387         * lib/Automake/General.pm (contents): New function.
2388         * aclocal.in (greatest_mtime, force_output): New globals.
2389         (scan_configure, add_file): Update $greatest_mtime.
2390         (parse_arguments): Parse --force.
2391         (write_aclocal): Do not overwrite $output_file unless needed.
2392         * automake.texi (aclocal options): Document --force.
2393         * tests/aclocal7.test: New file.
2394         * tests/Makefile.am (TESTS): Add aclocal7.test.
2396 2003-05-05  Alexandre Duret-Lutz  <adl@gnu.org>
2398         * automake.texi (Optional): Document m4_include.
2399         (Invoking aclocal): Shake a bit to introduce the various uses
2400         of aclocal and explain that aclocal will use m4_include for
2401         local files.
2402         (Extending aclocal): Show how to install installable macros
2403         in $(datadir)/aclocal, and make it clearer that writing installable
2404         macros is not the only way to extend aclocal.
2405         (Local Macros, Future of aclocal): New sections.
2407 2003-04-27  Alexandre Duret-Lutz  <adl@gnu.org>
2409         * automake.in (@common_files): Remove acinclude.m4 since
2410         it will be m4_included by aclocal.m4 and files are always
2411         distributed.
2412         (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
2413         We will get this dependency when tracing m4_includes.
2414         * tests/aclocal6.test: Make sure acinclude.m4 is distributed
2415         when used.
2416         * tests/acinclude.test: Delete.
2417         * tests/Makefile.am (TESTS): Remove acinclude.test.
2419 2003-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
2421         * automake.in (handle_configure): Don't add @configure_deps to
2422         DIST_COMMON, we do this from lib/am/configure.am now.
2423         Define the am__configure_deps variable instead of substituing
2424         %CONFIGURE_DEPS%.
2425         * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
2426         $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
2427         (DIST_COMMON): Add $(am__configure_deps).
2429         * tests/aclocal6.test: New file.
2430         * lib/am/configure.am (am--refresh): New rule.
2431         (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
2432         $(top_srcdir)/configure): Call the top-level am--refresh from
2433         subdirectories.
2434         ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
2435         top-level am--refresh when not in the top-level directory.
2436         Fix jump directories for VPATH builds.
2437         Suggested by Raja R. Harinath.
2439 2003-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
2441         * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
2442         and glob for m4_files (We've got all local m4 files while
2443         tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
2444         Distribute aclocal.m4 only at the top-level.
2445         (my_glob): Remove.  This fixes PR automake/11.
2446         (handle_dist): Strip leading `./' from directories.
2447         * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
2448         of copying local files.
2449         (write_aclocal, parse_arguments): Bump copyright date.
2450         * configure.in: De not build m4/amversion.m4 from here ...
2451         * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
2452         (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
2453         of amversion.m4.
2454         * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
2455         (TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
2456         * tests/aclocal2.test: Delete (pointless).
2457         * tests/aclocal5.test: Make sure configure's dependencies are
2458         distributed.
2459         * tests/acinclude.test: Adjust to search for m4_include.
2460         * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
2461         configure instead of aclocal.m4.
2463         For PR automake/46:
2464         * automake.in (scan_aclocal_m4): Work in all directories, not only
2465         the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
2466         dependency.
2467         * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
2468         Define rebuild rules in each directory.
2469         * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
2470         from the top-level directory.
2471         * tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
2472         from a subdirectory.
2473         * tests/Makefile.am (TESTS): Add aclocal5.test.
2474         (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
2476 2003-04-24  Akim Demaille  <akim@epita.fr>
2477             Alexandre Duret-Lutz  <adl@gnu.org>
2479         For PR automake/46:
2480         * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
2481         because of one of configure's dependencies, run automake without
2482         argument to update the whole tree at once.  Depend upon
2483         %CONFIGURE_DEPS%.
2484         (%MAKEFILE%): If Makefile is rebuilt because config.status has
2485         been updated, run config.status without arguments.
2486         * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
2487         before all files in @configure_deps.
2488         * tests/subdir5.test: Modernize configure.in, make sure
2489         maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
2490         * tests/subdir8.test: New file.
2491         * tests/Makefile.am (TESTS): Add subdir8.test.
2492         (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
2494 2003-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
2496         * automake.texi (Requirements): Typo in index
2497         s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
2499         * lib/texinfo.tex: New upstream version.
2501 2003-04-21  Jim Meyering  <jim@meyering.net>
2503         * lib/mkinstalldirs: Remove each sequence of spaces before a
2504         TAB character.
2505         * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
2507 2003-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
2509         Fix for PR automake/389:
2510         * automake.in (handle_configure): Don't put $colon_infile in
2511         CONFIG-MAKEFILE.
2512         * tests/conff.test: New file.
2513         * tests/Makefile.am (TESTS): Add conff.test.
2514         Reported by Alexander Turbov.
2516 2003-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
2518         * tests/defs.in: Handle required=etags to work around
2519         Exuberant Ctags.
2521         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2522         versions.
2524         * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
2525         Distribute dejagnu test cases, so that distcheck actually runs them.
2527 2003-04-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
2529         * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
2530         because we set that by invoking runtest with --tool.
2531         * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
2532         dejagnu6.test, dejagnu7.test.
2533         * tests/dejagnu4.test: New test.
2534         * tests/dejagnu5.test: New test.
2535         * tests/dejagnu6.test: New test.
2536         * tests/dejagnu7.test: New test.
2538         * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
2540 2003-04-18  Jim Meyering  <jim@meyering.net>
2542         * automake.in (variable_output): Fix typo in comment s/is/if/.
2544         * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
2545         directly to $@.  Instead, redirect to $@t and rename upon success.
2546         Also, move the commands that update $@ so they are last.  Otherwise,
2547         this rule could leave the user with an up to date target (.c file)
2548         but with a missing or corrupted corresponding .h file.
2550 2003-04-17  Richard Dawe  <rich@phekda.freeserve.co.uk>
2552         * tests/defs.in: Handle required=runtest, to detect runtest
2553         from DejaGnu.
2554         * tests/Makefile.am (TESTS): Add dejagnu3.test.
2555         * tests/dejagnu3.test: New test.
2557 2003-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
2559         * automake.in (rule_define): If the user tries to override
2560         an Automake which has a -local variant, suggest using the
2561         -local variant in the -Woverride diagnostic.
2562         (handle_factored_dependencies): Register factored
2563         rules with rule_define, and define them only in undefined
2564         conditions.
2565         * tests/Makefile.am (TESTS): Add override.test.
2566         * tests/overrid.test: New file.
2567         * tests/phony.test: Count the number of .PHONY targets.
2569 2003-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
2571         * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
2572         these rules, so that we don't confuse users by echoing
2573         "echo ERROR:" commands which are not run.
2575 2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
2576             Alexandre Duret-Lutz  <adl@gnu.org>
2578         * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
2579         initialize_per_input):  Add infrastructure for generating HTML
2580         documentation from texinfo source.
2581         * lib/am/texinfos.am: Add rules for building HTML documentation
2582         from texinfo source.
2583         * lib/am/texibuild.am: Likewise.
2584         * automake.texi (Texinfo): Document rules for building
2585         HTML documentation from texinfo source.
2586         * tests/txinfo21.test: New file.
2587         * tests/Makefile.am (TESTS): Add txinfo21.test.
2588         * tests/defs.in: Handle required=makeinfo-html.
2590 2003-04-14  Alexandre Duret-Lutz  <adl@gnu.org>
2592         * automake.in (%silent_variable_override): New variable.
2593         (macro_define): Warn about variable definitions overriding
2594         Automake variables.
2595         (rule_define): Warn about target definitions overriding
2596         Automake variables.  Fix $condmsg definition.
2597         * automake.texi (Invoking Automake): Document the `override'
2598         category.
2599         * lib/Automake/ChannelDefs.pm (usage): Likewise.
2600         * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
2601         this is already done in m4/init.m4.
2602         * tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
2603         -Wno-override, and make sure we get a warning without.
2604         * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
2605         and make sure we get a warning without.
2606         * tests/exeext3.test, tests/java2.test, tests/nolink.test,
2607         tests/subpkg.test, tests/vartest.test: Use -Wno-override.
2608         * tests/txinfo13.test: Use installcheck-local instead of overriding
2609         installcheck.
2610         * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
2611         used to succeed thanks to a failure...)
2612         * tests/location.test: Adjust expected messages.
2613         * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
2615 2003-04-12  Raja R Harinath  <harinath@acm.org>
2617         * lib/Automake/DisjConditions.pm (true): Don't cache answer.
2618         (invert): Update comment.
2619         (_simplify): Remove.
2620         (simplify): Implement using invert().
2621         * lib/Automake/tests/DisjConditions.pl (test_simplify):
2622         Update to reflect changes.
2624 2003-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
2626         * automake.in (scan_autoconf_files): Augment the error message
2627         about AM_INIT_AUTOMAKE not found.
2628         Suggested by Bruno Haible.
2630         * lib/Automake/Version.pm: New file.
2631         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
2632         * lib/Automake/tests/Version.pl: New file.
2633         * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
2634         * tests/Makefile.am (TESTS): Remove version5.test.
2635         * tests/version5.test: Delete.  Move the tests to Version.pl.
2636         * automake.in (version_split, version_compare, version_check): Move ...
2637         * lib/Automake/Version.pm (split, compare, check): ... here.
2639 2003-04-11  Alexandre Duret-Lutz  <adl@gnu.org>
2641         * lib/Automake/tests/Condition.pl (test_reduce_and)
2642         (test_reduce_or): Cosmetics.
2643         * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
2644         Fix a comment.
2645         * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
2646         in comment.
2647         * tests/yacc8.test, configure.in: Update copyright year.
2649 2003-04-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
2651         * configure.in: Get the build platform name.  Define
2652         MODIFICATION_DELAY as the time to wait after modifying a file,
2653         to cope with timestamp granularity issues, depending
2654         on the platform.
2655         * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
2657 2003-04-10  Eric Siegerman  <eric_97@pobox.com>  (tiny change)
2659         * automake.texi (Public macros): Clarify that the new
2660         AM_INIT_AUTOMAKE variant is preferred, and the old one
2661         deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
2662         (Hello): Caution that the example uses the deprecated
2663         AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
2665 2003-04-10  Alexandre Duret-Lutz  <adl@gnu.org>
2667         Retain all variable definitions until the whole Makefile.am has
2668         been processed, then output all variables in one step, at the top
2669         of Makefile.in.  (Older revisions used to output user variables
2670         before generating Automake targets, and to mix Automake variables
2671         with Automake targets, preventing redefinitions of previously
2672         output variables.)
2674         * automake.in (%var_pretty): New variable.
2675         (VAR_ASIS, VAR_PRETTY): New constants.
2676         (@var_list): Rename as ...
2677         (@var_order): ... this.
2678         (initialize_per_input): Clear %var_pretty.
2679         (handle_variables): New function, extracted from ...
2680         (read_main_am_file): ... here.
2681         (generate_makefile): Call handle_variable after everything else.
2682         (handle_dist): Use define_pretty_variable, not pretty_print.
2683         (pretty_print): Delete.
2684         (macro_define): Augment with $COMMENT and $PRETTY parameters.
2685         Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
2686         (variable_pretty_output): Merge with ...
2687         (variable_output): ... this, and choose the prettiness on a
2688         per-condition basis.
2689         (append_comments): Delete.  This work is now done by macro_define.
2690         (read_am_file, file_contents_internal): Don't call append_comments
2691         nor update @var_list, adjust calls to macro_define.
2692         (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
2693         just mark it as VAR_PRETTY.
2694         * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
2695         Report from Jim Meyering.
2697 2003-04-06  Alexandre Duret-Lutz  <adl@gnu.org>
2699         * automake.in (handle_installdirs): Rename as ...
2700         (handle_install): ... this.  Define maybe_BUILT_SOURCES.
2701         (generate_makefile): Adjust call to handle_install.
2702         * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
2703         * automake.texi (Sources, Built sources example): BUILT_SOURCES
2704         is honored by `make install' too.
2705         * tests/check3.test: Make sure that `make install' also depends
2706         upon BUILT_SOURCES.
2707         Report from Alexander Turbov.
2709         * lib/am/libs.am (ARFLAGS): Define.
2710         * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
2711         hard-coding `cru'.
2712         * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
2713         are used, and how they can be overridden.
2714         (Program and Library Variables): Adjust to show `$(ARFLAGS)'
2715         instead of `cru'
2716         * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
2717         * tests/ranlib.test: Delete, obsoleted by ar.test.
2718         * tests/Makefile.am (TESTS): Remove ranlib.test.
2719         Report from Paul Thomas.
2721 2003-04-03  Alexandre Duret-Lutz  <adl@gnu.org>
2723         * automake.in (check_trailing_slash): New function (variation on
2724         a patch by Peter Muir).  Diagnose whitespaces following trailing
2725         backslash.
2726         (read_am_file): Use it.
2727         * tests/backsl4.test: New file.
2728         * tests/Makefile.am (TESTS): Add backsl4.test.
2729         Reported by Peter Muir.
2731 2003-03-29  Raja R Harinath  <harinath@acm.org>
2733         Speedup Automake::DisjConditions::invert().
2734         * lib/Automake/Condition.pm (multiply): New.
2735         * lib/Automake/DisjConditions.pm (_multiply): Use it.
2736         (sub_conditions): Likewise.
2738         * lib/Automake/Condition.pm (reduce): Rename to ...
2739         (reduce_and): ... this.
2740         (reduce_or): New.
2741         * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
2742         * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
2743         (test_reduce_and): ... this.
2744         (test_reduce_or): New.
2745         * lib/Automake/tests/DisjConditions.pl
2746         (test_invert): Update to reflect effect of reduce_or().
2747         (test_simplify): Don't skip invert() on larger inputs.
2749 2003-03-29  Raja R Harinath  <harinath@cs.umn.edu>
2751         * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
2752         that timestamp will change.
2754 2003-03-23  Akim Demaille  <akim@epita.fr>
2755             Alexandre Duret-Lutz  <adl@gnu.org>
2757         * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
2758         when supported by etags (Exuberant Ctags).
2759         * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
2761 2003-03-20  Alexandre Duret-Lutz  <adl@gnu.org>
2763         For Debian Bug #185388:
2764         * automake.texi (Extending): Augment the install-exec-hook
2765         discussion with an example how to symlink a versioned binary.
2766         * tests/insthook.test: Rewrite to test the above example.
2767         Report from James R. Van Zandt.
2769 2003-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
2771         * Makefile.am (maintainer-check): Allow `automake:' tokens,
2772         occuring in location.test.  Automake now has 5 legitimate
2773         unsubstituted @strings@.
2775         * tests/aclocal4.test: Require GNU make.
2777 2003-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
2779         * tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
2780         * tests/Makefile.am (TESTS): Add aclocal4.test.
2782 2003-03-14  Jim Meyering  <jim@meyering.net>
2784         * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
2785         subdirectories.  Makefile.in depends on that variable.
2787 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
2789         * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
2791         Fix for PR automake/386:
2792         * m4/init.m4: Require Autoconf 2.55.
2793         Reported by Owen Taylor.
2795         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
2796         (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
2797         Suggested by Matthias Andree.
2799         * tests/README: Typo.
2801 2003-03-08  Alexandre Duret-Lutz  <adl@gnu.org>
2803         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
2804         (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
2805         Just echo the gcc command.
2806         Suggested by Karl Berry.
2808 2003-03-06  Alexandre Duret-Lutz  <adl@gnu.org>
2810         * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
2811         `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
2812         outputing suffix rules.  This follows 2003-02-25's change.
2813         * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
2814         * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
2816 2003-03-05  Alexandre Duret-Lutz  <adl@gnu.org>
2818         * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
2819         with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
2820         pretend otherwise.
2821         Reported by Rafael Laboissiere.
2823 2003-03-04  Andreas Buening  <andreas.buening@nexgo.de>
2825         * lib/mdate-sh: Find out which column of the ls -l output contains
2826         the month. Do not assume it is at least the fifth column.
2828 2003-02-26  Alexandre Duret-Lutz  <adl@gnu.org>
2830         * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
2832         * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
2833         instead of lisp_LISP when they don't want byte-compilation.
2834         Don't mention ELCFILES anymore.
2835         * automake.in (handle_data): Allow lisp_DATA.
2836         * tests/lisp5.test: New file.
2837         * tests/Makefile.am (TESTS): Add lisp5.test.
2839         * automake.in (handle_emacs_lisp): Don't build *.elc files
2840         if ELCFILES was set empty.
2841         * tests/lisp4.test: New file.
2842         * tests/Makefile.am (TESTS): Add lisp4.test.
2843         Reported by Simon Josefsson.
2845         * tests/lex3.test, tests/lex5.test: Require flex.
2846         Reported by Leo Davis.
2848 2003-02-25  Alexandre Duret-Lutz  <adl@gnu.org>
2850         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
2851         use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
2852         when outputing suffix rules.
2853         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
2854         (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
2855         Suggested by Bruno Haible.
2857         * automake.in (read_am_file): Catch trailing backslashes on last line.
2858         * tests/backsl3.test: New file.
2859         * tests/Makefile.am (TESTS): Add backsl3.test.
2860         Reported by Akim Demaille.
2862 2003-02-24  Alexandre Duret-Lutz  <adl@gnu.org>
2864         * ChangeLog: Move 2002's entries to ...
2865         * ChangeLog.02: ... this new file.
2866         * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
2868 2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>
2870         * tests/version7.test: Use $sleep to sleep before updating
2871         the version, to work around timestamp inconsistencies in Windows.
2873 2003-02-24  Bruno Haible  <bruno@clisp.org>
2874             Alexandre Duret-Lutz  <adl@gnu.org>
2876         * lib/am/texibuild.am: Don't remove the target info files. Instead,
2877         back up and restore them if makeinfo fails.
2878         * tests/txinfo20.test: New file.
2879         * tests/Makefile.am (TESTS): Add txinfo20.test.
2881 2003-02-23  Alexandre Duret-Lutz  <adl@gnu.org>
2883         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
2884         (distcleancheck): Fix typos and other errors reported by Karl
2885         Berry.
2887 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
2889         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
2890         instead of ${...}.
2892         * tests/defs.in: Handle required=ro-dir.
2893         * tests/destdir.test: Use this.
2895 2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
2897         * lib/am/distdir.am (distcheck): Strip any leading DOS drive
2898         from dc_install_base.
2900 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
2902         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
2903         DJGPP-style *.iNN info files.
2904         (maintainer-clean-aminfo): Rewrite using the same pattern
2905         as in uninstall-info-am.
2906         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
2907         DJGPP-style *.iNN info files before running $(MAKEINFO).
2908         * tests/txinfo19.test: New file.
2909         * tests/Makefile.am (TESTS): Add txinfo19.test.
2911 2003-02-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
2913         * lib/depcomp (dashmstdout): Cope with DOS filenames in
2914         dependencies.
2916 2003-02-17  Alexandre Duret-Lutz  <adl@gnu.org>
2918         * lib/depcomp (makedepend): Don't pass $object to makedepend.
2919         Reported by Stepan Kasal.
2921 2003-02-12  Alexandre Duret-Lutz  <adl@gnu.org>
2923         * tests/defs.in: Handle required=makedepend.
2925         * Makefile.am (maintainer-check): Update the diff check
2926         to account for the recent @SHELL@ substitution.
2928 2003-02-11  Alexandre Duret-Lutz  <adl@gnu.org>
2930         * lib/depcomp: Do not put comments on the `icc)' line.
2932         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2933         versions.
2935         Fix for PR automake/381:
2936         * automake.in (handle_gettext): Do not print diagnostics
2937         about po/ and intl/ missing from SUBDIRS if po/ does not
2938         exist.  Warn if `SUBDIRS = intl' is used although libintl
2939         is 'external'.
2940         * tests/gettext.test: Make sure diagnostics are not output
2941         when po/ does not exist.
2942         * tests/gettext2.test: Test for unwanted intl/.
2943         PR from Alexander Turbov, fix suggested by Bruno Haible.
2945         * m4/depend.m4: Grep depcomp's stderr for icc warnings about
2946         ignored options.
2947         * lib/depcomp (icc): New mode.
2948         * tests/depcomp5.test: New file.
2949         * tests/defs.in: Handle required=icc.
2950         * tests/Makefile.am (TESTS): Add it.
2952         Temporary hack for PR automake/381:
2953         * automake.in (handle_gettext): Turn missing po/ and intl/ errors
2954         into -Wsyntax warnings.
2956 2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
2958         * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
2959         This makes the setting of SHELL work for DJGPP.
2961 2003-02-10  Alexandre Duret-Lutz  <adl@gnu.org>
2963         For PR automake/385:
2964         * lib/depcomp (makedepend): Strip any libtool call, before
2965         running makedepends.
2966         * tests/depcomp4.test: New file.
2967         * tests/Makefile.am (TESTS): Add it.
2968         Reported by Jeff Squyres.
2970         Related to PR automake/385:
2971         * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
2972         write dependencies to /dev/null.  `-o /dev/null' was added
2973         on 2002-06-13 just because I tried to replace `-o foo.o' by something
2974         else and didn't thought about removing it entirely.
2975         * tests/depcomp3.test: New file.
2976         * tests/Makefile.am (TESTS): Add it.
2978         * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
2979         SHELL for DJGPP.
2980         Suggested by Richard Dawe.
2982 2003-02-09  Alexandre Duret-Lutz  <adl@gnu.org>
2984         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
2985         (distcleancheck): New nodes.
2987 2003-02-06  Alexandre Duret-Lutz  <adl@gnu.org>
2989         * automake.in (scan_autoconf_files): Don't complain that
2990         AM_INIT_AUTOMAKE comes from an old version if it was not found.
2992 2003-02-05  Alexandre Duret-Lutz  <adl@gnu.org>
2994         * automake.in (am_install_var): Simplify filtering of
2995         variable_loc_and_value_as_list_recursive's output.
2997 2003-02-04  Alexandre Duret-Lutz  <adl@gnu.org>
2999         * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
3000         indexes of header files so we create stamp files with
3001         the right numbers when config.status is run on some headers.
3002         * tests/stamph2.test: Check for this.
3003         Reported by Sander Niemeijer.
3005 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3007         * automake.in (vars_scanned): Move near traverse_variable_recursively.
3008         (traverse_variable_recursively,
3009         traverse_variable_recursively_worker): Accept a $COND_FILTER argument
3010         to filter out conditions during recursion.  Don't recurse into
3011         undefined variables.  Don't pass empty results to &FUN_COLLECT.
3012         (value_to_list): Remove, was used by
3013         variable_value_as_list_recursive_worker only.
3014         (variable_value_as_list_recursive_worker): Rewrite using
3015         traverse_variable_recursively.  Remove the $parent argument.
3016         (variable_value_as_list_recursive,
3017         variable_loc_and_value_as_list_recursive): Adjust calls
3018         to variable_value_as_list_recursive_worker.  Don't reset
3019         %vars_scanned.
3020         * tests/cond3.test: Don't expect empty helper variables,
3021         we don't output them anymore.
3022         * tests/cond30.test: Use an undefined variable.
3024         * automake.in (handle_programs): Strip $(EXEEXT) before
3025         calling &check_canonical_spelling.
3026         * tests/exeext.test: Make sure we don't use a
3027         maude3__EXEEXT__OBJECTS variable.
3029 2003-02-02  Jeremy Nimmer  <jwnimmer@alum.mit.edu>  (tiny change)
3031         For Debian Bug #39542:
3032         * automake.texi (Invoking Automake, Optional): Document how
3033         AC_CONFIG_AUX_DIR interacts with missing files.
3035 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3037         * lib/Automake/DisjConditions.pm (_permutations_worker)
3038         (permutations): Remove, so that people aren't tempted to use it.
3039         * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
3041         * automake.in (variable_conditions_recursive): Remove.
3042         (variable_conditionally_defined): Rewrite using
3043         traverse_variable_recursively.
3045         * automake.in (traverse_variable_recursively,
3046         traverse_variable_recursively_worker): Pass one merged Condition
3047         instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
3048         (transform_variable_recursively, define_objects_from_sources)
3049         (handle_lib_objects, variable_conditions_recursive): Adjust usage.
3051 2003-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
3053         * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
3054         using transform_variable_recursively instead of
3055         variable_conditions_recursive and variable_value_as_list_recursive
3056         to avoid combinatorial explosion.
3057         (handle_lib_objects_cond): Merge into handle_lib_objects.
3058         * tests/cond11.test: Don't grep internal details in Makefile.in,
3059         run $MAKE to make sure the resulting Makefile runs as expected.
3060         * tests/cond29.test: Also exercise conditional _LDADD.
3061         * tests/cond31.test, tests/cond32.test: New files.
3062         * tests/Makefile.am (TESTS): Add tests/cond31.test and
3063         tests/cond32.test.
3065 2003-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
3067         * automake.in (handle_lib_objects_cond): Ignore -dlopen and
3068         -dlpreopen in _LIBADD variables too.
3069         (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
3070         handle_lib_objects_cond.
3071         * tests/libtool7.test: New file.
3072         * tests/Makefile.am (TESTS): Add libtool7.test.
3074         * automake.texi (Program and Library Variables): Clarify that
3075         _LIBADD is for libraries and _LDADD for programs.
3077         * automake.in (handle_source_transform): Correct typo from 2003-01-23.
3079 2003-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
3081         Fix for PR automake/352:
3082         * automake.in (transform_variable_recursively): If the destination
3083         and the source variables are the same, delete the source variable
3084         before defining the destination variable.
3085         (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
3086         or this will confuse handle_source_transform.
3087         (append_exeext): Rewrite using transform_variable_recursively.
3088         * tests/cond29.test, tests/cond30.test: New files.
3089         * tests/exeext.test: Run ./configure and make, this uncovered
3090         the above handle_programs issue.
3091         * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
3093         * automake.in (%subobjvar): Replace by ...
3094         (%gen_varname): ... this.
3095         (subobjname): Replace by ...
3096         (gen_varname): ... this.
3097         (initialize_per_input): Clean gen_varname instead of subobjname.
3098         (transform_variable_recursively): New function, extracted
3099         from define_objects_from_sources.
3100         (define_objects_from_sources): Use transform_variable_recursively.
3101         Remove the unused $parent argument.
3102         (handle_source_transform): Adjust call to define_objects_from_sources.
3104 2003-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
3106         * automake.in (@substfroms, @substtos): Move near
3107         traverse_variable_recursively.
3108         (traverse_variable_recursively, traverse_variable_recursively_worker):
3109         New functions, extracted from define_objects_from_sources.
3110         (define_objects_from_sources): Rewrite using
3111         traverse_variable_recursively.
3112         (handle_source_transform): Use variables_conditionally_defined
3113         instead of calling variable_conditions_recursive directly.
3114         Adjust the call to define_objects_from_sources; there is no need
3115         to reset @substtos, @substfroms, and %vars_scanned now.
3116         (variable_conditions_recursive): Rewrite using
3117         traverse_variable_recursively.
3118         (variable_conditions_recursive_sub): Remove.
3119         (variable_conditionally_defined): Fix condition comparison (the
3120         consequence was that DIST_SUBDIRS was always output).
3121         * lib/Automake/Condition.pm (merge): Allow merging several
3122         conditions at once.
3124 2003-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
3126         * automake.texi (Python): Explain that directory variables start
3127         with either ${prefix} or ${exec_prefix}, and point to the
3128         `Installation Directory Variables' section of the Autoconf manual.
3130 2003-01-21  Alexandre Duret-Lutz  <adl@gnu.org>
3132         * lib/am/distdir.am (top_distdir, distdir): Define these
3133         variables only in top level Makefile.  Redefine $(top_distdir)
3134         as $(distdir).
3135         (distdir): Fix passing of $(top_distdir) to sub-makes.
3136         * automake.in (handle_dist): Do not define the DISTDIR and
3137         TOP_DISTDIR transformations.  We don't need them anymore.
3138         * automake.texi (Dist): Reorder the dist-hook section, and move
3139         the DIST_SUBDIRS paragraph earlier.  Document distdir and
3140         top_distdir.
3141         * tests/subpkg.test: Update to check for $(distdir) and
3142         $(top_distdir).
3144 2003-01-19  Alexandre Duret-Lutz  <adl@gnu.org>
3146         Rename more files to accomodate 8+3 file systems, and adjust the
3147         vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
3148         and we call "condition" a conjunction of "conditionals".
3149         * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
3150         * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
3151         * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
3152         * lib/am/tests/ConditionalSet.pl: Rename to
3153         lib/am/tests/DisjConditions.pl
3154         * lib/am/Conditional.pm (condition_negate): Rename to ...
3155         * lib/am/Condition.pm (conditional_negate): ... this.
3156         * automake.in: Adjust references to Condition and DisjConditions.
3157         (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
3158         (check_ambiguous_condition, condition_ambiguous_p): ... these.
3160         * tests/README: New file.
3162         * automake.texi (Conditional Programs): Show a sample Makefile.am.
3163         Remind $(EXEEXT) must be appended to configure substitutions.
3164         Show how Automake conditionals can be used instead.
3165         * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
3166         appended to conditionally defined programs.
3168 2003-01-16  Jim Meyering  <jim@meyering.net>
3170         Accept --help and --version, and lots of syntactic clean-up.
3171         * lib/install-sh: Use consistent indentation, two spaces per level.
3172         (scriptversion): New variable.
3173         Change initializations like `variable=""' to `variable='.
3174         (usage): New variable.
3175         Use `test', not `['.
3176         Use `test -z "$var"', not `[ x"$var" = x ]'.
3177         Use `test -n "$var"', not `[ x"$var" != x ]'.
3178         Alphabetize case entries.
3179         Accept --help and --version options.
3180         Remove unnecessary `else :' clauses.
3181         Add a `Local variables' eval block to help emacs users update
3182         the time-stamp variable added above.
3183         Mostly from Karl Berry.
3185 2003-01-16  Alexandre Duret-Lutz  <adl@gnu.org>
3187         * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
3188         python2.3.
3190         * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
3191         or `pyexecdir', for the sake of 64-bit distributions that usually
3192         use lib64/ instead of lib/.  Fall back to the default directory
3193         if it doesn't work.
3194         Suggested by Gwenole Beauchesne.
3196 2003-01-14  Alexandre Duret-Lutz  <adl@gnu.org>
3198         For PR automake/382:
3199         * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
3200         Explain BUILT_SOURCES is usually needed in this case.
3201         Reported by William S Fulton.
3203 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3205         Rename some files for the sake of 8+3 file systems.
3206         * tests/aclocali.test:     Rename to tests/aclocal.test.
3207         * tests/aclocali1.test:    Rename to tests/aclocal2.test.
3208         * tests/aclocalii.test:    Rename to tests/aclocal3.test.
3209         * tests/acoutput.test:     Rename to tests/acoutpt.test.
3210         * tests/acoutput2.test:    Rename to tests/acoutpt2.test.
3211         * tests/acouttbs.test:     Rename to tests/acoutbs.test.
3212         * tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
3213         * tests/autoheader.test:   Rename to tests/autohdr.test.
3214         * tests/autoheader2.test:  Rename to tests/autohdr2.test.
3215         * tests/condincl.test:     Rename to tests/condinc.test.
3216         * tests/condincl2.test:    Rename to tests/condinc2.test.
3217         * tests/distcommon.test:   Rename to tests/distcom.test.
3218         * tests/distcommon2.test:  Rename to tests/distcom2.test.
3219         * tests/distcommon3.test:  Rename to tests/distcom3.test.
3220         * tests/installsh.test:    Rename to tests/instsh.test.
3221         * tests/installsh2.test:   Rename to tests/instsh2.test.
3222         * tests/instdata.test:     Rename to tests/instdat.test.
3223         * tests/instdata2.test:    Rename to tests/instdat2.test.
3224         * tests/libobj12b.test:    Rename to tests/libobj13.test.
3225         * tests/link_f_c.test:     Rename to tests/link_fc.test.
3226         * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
3227         * tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
3228         * tests/nodefine.test:     Rename to tests/nodef.test.
3229         * tests/nodefine2.test:    Rename to tests/nodef2.test.
3230         * tests/required.test:     Rename to tests/reqd.test.
3231         * tests/required2.test:    Rename to tests/reqd2.test.
3232         * tests/sourcesub.test:    Rename to tests/srcsub.test.
3233         * tests/sourcesub2.test:   Rename to tests/srcsub2.test.
3234         * tests/specflags.test:    Rename to tests/specflg.test.
3235         * tests/specflags2.test:   Rename to tests/specflg2.test.
3236         * tests/specflags3.test:   Rename to tests/specflg3.test.
3237         * tests/specflags6.test:   Rename to tests/specflg6.test.
3238         * tests/specflags7.test:   Rename to tests/specflg7.test.
3239         * tests/specflags8.test:   Rename to tests/specflg8.test.
3240         * tests/specflags9.test:   Rename to tests/specflg9.test.
3241         * tests/subdircond.test:   Rename to tests/subcond.test.
3242         * tests/subdircond2.test:  Rename to tests/subcond2.test.
3243         * tests/subdircond3.test:  Rename to tests/subcond3.test.
3244         * tests/texinfo.test:      Rename to tests/txinfo.test.
3245         * tests/texinfo2.test:     Rename to tests/txinfo2.test.
3246         * tests/texinfo3.test:     Rename to tests/txinfo3.test.
3247         * tests/texinfo4.test:     Rename to tests/txinfo4.test.
3248         * tests/texinfo5.test:     Rename to tests/txinfo5.test.
3249         * tests/texinfo6.test:     Rename to tests/txinfo6.test.
3250         * tests/texinfo7.test:     Rename to tests/txinfo7.test.
3251         * tests/texinfo8.test:     Rename to tests/txinfo8.test.
3252         * tests/texinfo9.test:     Rename to tests/txinfo9.test.
3253         * tests/texinfo10.test:    Rename to tests/txinfo10.test.
3254         * tests/texinfo13.test:    Rename to tests/txinfo13.test.
3255         * tests/texinfo16.test:    Rename to tests/txinfo16.test.
3256         * tests/texinfo17.test:    Rename to tests/txinfo17.test.
3257         * tests/texinfo18.test:    Rename to tests/txinfo18.test.
3258         * tests/Makefile.am (TESTS): Adjust.
3259         * ChangeLog.1996: Rename to ChangeLog.96.
3260         * ChangeLog.1998: Rename to ChangeLog.98.
3261         * ChangeLog.2000: Rename to ChangeLog.00.
3262         * ChangeLog.2001: Rename to ChangeLog.01.
3263         * Makefile.am (EXTRA_DIST): Adjust.
3264         Reported by Richard Dawe.
3266 2003-01-13  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
3268         * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
3269         Use '_build' and '_inst' instead of '=build' and '=inst'.
3270         * tests/man2.test: Reflect change automake: check for files in
3271         '_build' and '_inst' directories instead of '=build' and '=inst'.
3273 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3275         Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
3276         * m4/lead-dot.m4: New file.
3277         * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
3278         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
3279         * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
3280         DEPDIR using am__leading_dot.
3281         * automake.in (require_build_directory): Define am__dirstamp, a new
3282         variable for the dirstamp basename, based on am__leading_dot.
3283         * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
3284         use $(am__dirstamp).
3285         Reported by Richard Dawe.
3287         * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
3288         Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
3289         testing for programs.
3290         Reported by Richard Dawe.
3292 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
3294         * Makefile.am (maintainer-check): Suggest using $sleep instead of
3295         sleep 2.
3296         * tests/defs.in (sleep): New variable.
3297         * tests/asm.test, tests/confsub.test, tests/lisp3.test,
3298         tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
3299         Use $sleep instead of sleep 2, to work around timestamp
3300         inconsistencies in Windows.
3301         Reported by Richard Dawe.
3303         * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
3304         after $MAKE -e.
3305         * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
3306         tests/man2.test, tests/subobj3.test, tests/suffix8.test,
3307         tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
3308         $SHELL is overridden by tests/defs, so it won't hurt even
3309         if $MAKE -e uses the $SHELL envvar.
3310         * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
3311         tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
3312         Reported by Richard Dawe.
3314         Build elisp files all at once instead of one by one.
3315         * automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
3316         elc-stamp to all's dependencies.
3317         * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
3318         (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
3319         (clean-lisp): Clean elc-stamp.
3320         * lib/elisp-comp: Reindent.  Erase the temporatry directory
3321         from a trap.  Propagate Emacs's exit status.
3322         * tests/lisp3.test: New file.
3323         * tests/Makefile.am (TESTS): Add lisp3.test.
3324         Reported by Ryan T. Sammartino.
3326 2003-01-09  Akim Demaille  <akim@epita.fr>
3328         * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
3330 2003-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
3332         * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
3333         variables.  Suggested by Ryan T. Sammartino.
3335 2003-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3337         * automake.in (macro_define): Add missing `{$cond}' (typo from
3338         2002-09-18).
3339         ($gen_copyright): Append year 2003.
3340         (version): Increase year.
3342         * tests/defs.in: Substitute aclocaldir instead of running
3343         the installed aclocal.  Otherwise Libtool and Gettext
3344         tests get skipped when aclocal doesn't preexist.
3345         Reported by Imacat.
3346         * tests/listval.test, tests/suffix2.test: Remove pointless -I
3347         argument to aclocal.
3349 -----
3351 Copyright (C) 2003  Free Software Foundation, Inc.
3353 This file is part of GNU Automake.
3355 GNU Automake is free software; you can redistribute it and/or modify
3356 it under the terms of the GNU General Public License as published by
3357 the Free Software Foundation; either version 2, or (at your option)
3358 any later version.
3360 GNU Automake is distributed in the hope that it will be useful,
3361 but WITHOUT ANY WARRANTY; without even the implied warranty of
3362 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3363 GNU General Public License for more details.
3365 You should have received a copy of the GNU General Public License
3366 along with autoconf; see the file COPYING.  If not, write to
3367 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3368 Boston, MA 02111-1307, USA.