* configure.ac, NEWS: Bump version to 1.9.
[automake.git] / ChangeLog
blob5c8520db0790b604b39ac86dff918c679fa86d65
1 2004-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
3         * configure.ac, NEWS: Bump version to 1.9.
5         * automake.in (generate_makefile): Update misleading comment about
6         libtool scripts.
8         * lib/texinfo.tex: New upstream version.
10 2004-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
12         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Remove `.' from the mkdir_p
13         definition, it causes `make install' to fails for user with no
14         right to write in the source-tree.
15         * automake.in (handle_configure): Do not use mkdir_p in the
16         definition for $(mkdir_p).
17         Report from Harlan Stenn.
19         * lib/am/texi-vers.am (%STAMPVTI%): Typo in comment.
21 2004-07-22  Alexandre Duret-Lutz  <adl@gnu.org>
23         * doc/automake.texi (Libtool Modules): Typo in example.
24         Report from Ulrich Eckhardt.
26 2004-07-21  Andreas Schwab  <schwab@suse.de>  (tiny change)
28         * automake.in (check_directory): Quote $dir in regexp.
30 2004-07-17  Alexandre Duret-Lutz  <adl@gnu.org>
32         * configure.ac, NEWS: Bump version to 1.8e.
34         * configure.ac, NEWS: Bump version to 1.8d.
36         * lib/config-ml.in, lib/config.sub, lib/config.guess, lib/texinfo.tex:
37         New upstream versions.
39         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
40         ?!GENERIC?%DEST_PREFIX%.html): Use $(X), not ${X}.
42         * tests/installdir.test: installdirs-local should appear three times,
43         since the change from 2004-07-11 will make it PHONY.
45         * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
46         that it is always defined.  This is less confusing for users
47         reading the generated Makefiles.
48         * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
50         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
51         ?!GENERIC?%DEST_PREFIX%.html): Output .htp, and then rename to .html
52         on success.  In case the target is a directory, this ensures its
53         time stamp is updated and the no files are left over inside.
54         * tests/txinfo21.test: Augment to test missing timestamp update
55         reported by Akim Demaille.
57         * doc/automake.texi (Top level): Rename as ...
58         (Directories): ... this, and split into ...
59         (Subdirectories, Conditional Subdirectories): ... these.
60         (Subdirectories): Illustrate the use of `.'.
61         (Conditional Subdirectories): Describe SUBDIRS and DIST_SUBDIRS
62         before the example.  Append a discussion about non-configured
63         conditional directories.
64         (Alternative): Move as a child of Directories.
65         (Subpackages): New section.
66         (Dist): Adjust links to Subdirectories, a Subpackages.
67         (Third-Party Makefiles): Link to Conditional Subdirectories.
69 2004-07-14  Alexandre Duret-Lutz  <adl@gnu.org>
71         * automake.in (target_hook): Accept %transform as last argument.
72         (handle_single_transform): Pass %transform to target_hook.
73         (handle_source_transform): Define DIST_SOURCE to tell whether
74         a the source of a file is distributed or not.
75         (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute
76         the generated header if the .y source is not distributed.
77         * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated
78         headers are not distributed.
80 2004-07-12  Simon Josefsson  <jas@extundo.com>  (tiny change)
82         * doc/automake.texi (Options): Improve ustar file name length
83         discussion.  Reference tar manual.
85 2004-07-12  Ray Simard  <rhs.techlists@sylvan-glade.com>  (tiny change)
87         * lib/Automake/Variable.pm (define): Fix precondition check.
89 2004-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91         For PR automake/428:
92         Support for conditionally defined -hook and -local rules.
93         * automake.in (user_phony_rule): New function.
94         (handle_dist, handle_install, handle_all, do_check_merge_target,
95         handle_factored_dependencies): Use user_phony_rule before
96         adding a user -hook or -local rule as a dependency to ensure
97         it is always defined an phony.
98         * tests/cond37.test, tests/condhook.test: New files.
99         * tests/Makefile.am (TESTS): Add them.
100         Report from Simon Josefsson and Nik A. Melchior.
102 2004-07-05  Paul Eggert  <eggert@cs.ucla.edu>
104         * doc/automake.texi (Install): Warn that you should create
105         /tmp/staging before installing into it, to avoid security problems.
106         * lib/install-sh: Remove support for -b= and -t= options; this
107         has been moribund for a decade.
108         Add support for -t and -T options (new in coreutils install).
109         -c option now does nothing (the default is to copy), for
110         compatibility with BSD and coreutils 'install'.
111         Fix usage message; it referred to nonexistent variables.
112         Don't assume 'lasterr' is unset in environment.
113         * tests/instsh2.test: Don't assume that install-sh without -c
114         moves (it now copies).  Add tests for new -t and -T options.
116 2004-06-16  Alexandre Duret-Lutz  <adl@gnu.org>
118         For Debian Bug#254372:
119         * doc/automake.texi (Invoking aclocal): Rewrite the paragraph
120         explaining m4_include is used for relative files.
122 2004-06-10  Alexandre Duret-Lutz  <adl@gnu.org>
124         For Debian Bug #251820:
125         * aclocal.in (scan_file): Keep track of the location where each
126         file is included, and display it when reporting a missing file.
127         Pass this location to scan_file as a second argument.
128         (scan_m4_files): Adjust calls to scan_file.
129         * tests/acloca14.test: Add a test for this diagnostic.
131 2004-06-07  Alexandre Duret-Lutz  <adl@gnu.org>
133         * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools
134         so it works with Solaris and Tru64 /bin/sh.
135         Report from Nicolas Joly.
137 2004-06-06  Alexandre Duret-Lutz  <adl@gnu.org>
139         * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a
140         bug in NetBSD /bin/sh.
141         Report from Nicolas Joly.
143 2004-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
145         * tests/defs.in (required=icc): Use `-V -help' instead of
146         `-V -dryrun'.  icc 8.0 fails on the latter.
147         * tests/depcomp5.test: Require depmode=icc for icc 7.x, and
148         depmod=gcc otherwise.
149         Report from Ralf Wildenhues.
151         * lib/am/clean.am (distclean-generic): Do no
152         `rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty.
153         Report from Nicolas Joly.
155 2004-05-31  Alexandre Duret-Lutz  <adl@gnu.org>
157         * NEWS: Make clearer that we do not output partial Makefile.ins on
158         error.
159         Suggested by Akim Demaille.
161         * lib/depcomp (tru64) [libtool]: Use $dir$base.o.d instead
162         of $dir.libs/$base.o.d.  Libtool 1.5 causes both to be output,
163         and we will clean the second automatically during distclean.
164         Using the latter and leaving the former as we did before cause
165         "files left in build directory" failures during distcheck.
166         Suggested by Nicolas Joly.
168         * doc/automake.texi (Built sources example): Explain what
169         nodist_foo_SOURCES is (not) useful to, and use it in all the
170         examples.
171         (Tags): Mention nodist_noinst_HEADERS and nodist_prog_SOURCES.
172         Suggested by Akim Demaille.
174 2004-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
176         * configure.ac, NEWS: Bump version to 1.8c.
178         * configure.ac, NEWS: Bump version to 1.8b.
180         * m4/tar.m4 (_AM_PROG_TAR) <cpio>: Specify -o and -i option first,
181         by POSIX; and use option -d in am_untar.
183         * tests/defs.in (PATH): Export it.
185         * lib/am/multilib.am: Add $(MAKE) comments to multido and
186         multiclean lines, to enable parallel make.  Based on a patch
187         by Alexandre Oliva applied to newlib on 2003-10-15.
189 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
191         * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG
192         instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been
193         changed.
194         * tests/libtool3.test: Do not grep for --tag=CC, since CVS
195         Libtool (unlike Libtool 1.5) does not has any CC tag.
197         * tests/tar2.test: Skip the test if no pax archiver were found.
199         * NEWS: Sync with branch-1-8, and reorganize current entry.
201         * automake.in (handle_libraries): Make the diagnostic about
202         non standard libraries a warning in foreign packages.  This
203         is already the case in handle_ltlibraries.
204         (handle_libraries, handle_ltlibraries): Suggest a standard
205         library name in the diagnostic, to help newcomers.
206         * tests/stdlib.test, tests/stdlib2.test: Check for these
207         suggestions.
209         Check directory names for unportable names.  Shaking the code
210         to check this also led to the removal of the no-"/"-in-SUBDIRS
211         restriction, and a fix to _do_recursive_traversal.
213         * automake.in (check_directory): New function extracted from
214         handle_subdirs, and augmented to check for reserved W32/DOS name.
215         (check_directories_in_var): New function.
216         (handle_subdirs): Call check_directories_in_var.  Doing so also
217         suppress the restriction that SUBDIRS should not contain slashes.
218         (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory
219         to ensure the argument exists and is safe.
220         * doc/automake.texi (Top level): Do not say that src/subdir
221         cannot be put in SUBDIRS.
222         (Dist): Mention that distdir and top_distdir can be absolute.
223         * lib/Automake/Variable.pm (_do_recursive_traversal) Support
224         undefined $fun_collect, and fix two bugs introduced with
225         skip_ac_subst on 2004-03-07.
226         * lib/am/distdir.am (distdir): Use absolute distdir and
227         top_distdir when recursing, because we can no longer prepend only
228         `..' in case of SUBDIRS with `/'.
229         * tests/auxdir4.test, tests/subdir9.test: New files.
230         * tests/Makefile.am (TESTS): Add auxdir4.test.
231         * tests/cond2.test, tests/subdir7.test: Augment to check location
232         in diagnostics.
234 2004-05-21  Eric Blake  <ebb9@byu.net>  (tiny changes)
236         * tests/txinfo22.test (AC_CONFIG_AUX_DIR): Use aux1, not aux, for
237         cygwin compatibility.
238         * tests/yacc6.test (AC_CONFIG_AUX_DIR): Likewise.
240         * tests/conflnk3.test: Isolate checking for working `test -e' into
241         a subshell, to skip this test on broken /bin/sh of solaris.
243 2004-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
245         * m4/cond.m4 (AM_CONDITIONAL): Double-quote diagnostic.
246         * tests/condd.test: Define a macro with the same name as a
247         conditional.
248         * tests/pr220.test: Modernize, and make sure the diagnostics
249         contains the macro name.
250         Report from Volker Boerchers.
252 2004-05-16  Alexandre Duret-Lutz  <adl@gnu.org>
254         * lib/texinfo.tex: New upstream version.
256 2004-05-15  Alexandre Duret-Lutz  <adl@gnu.org>
258         * automake.in (handle_dist): Always define DIST_SUBDIRS, even when
259         the no-dist or cygnus options are used.
260         * tests/clean2.test: New file.
261         * tests/Makefile.am (TESTS): Add clean2.test.
262         Report from Daniel Jacobowitz.
264         * aclocal.in (add_macro): Do not error out on undefined required
265         macros.  We are not sure they are really used, and Autoconf
266         already diagnoses them.
267         (scan_configure_dep): Diagnose missing AM_ macros as warnings rather
268         than errors.
269         * tests/aclocal3.test, tests/ammissing.test: Adjust to expect a
270         warning instead of an error.
271         * tests/aclocal8.test: AC_REQUIRE an undefined macro in an unused
272         macro, and ensure aclocal works anyway.
273         * tests/acloca17.test: New file.
274         * tests/error.test: Delete, superseded by tests/acloca17.test.
275         * tests/Makefile.am (TESTS): Add acloca17.test and remove error.test.
276         Report from Jim Meyering.
278         * lib/am/texibuild.am (?!GENERIC_INFO?%DEST_INFO_PREFIX%%DEST_SUFFIX%):
279         Fold a few lines to reduce the output by 5 lines.
280         Suggested by Karl Berry.
282         * automake.in (parse_arguments, MAIN): Give more precise
283         diagnostics when no input file is found.
284         * tests/output5.test: Adjust.
285         Suggested by Jens Petersen.
287 2004-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
289         * lib/am/libs.am (AR, ARFLAGS): Move these definition ...
290         * automake.in (handle_libraries): ... here, so that they are
291         output even for EXTRA_LIBRARIES.
292         * tests/ar2.test: New file.
293         * tests/Makefile.am (TESTS): Add it.
294         Report from Kevin Ryde.
296 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
298         * automake.in (generate_makefile): Do not output Makefile.in on
299         errors.
300         * tests/werror2.test: New file.
301         * tests/Makefile.am (TESTS): Add werror2.test.
302         * tests/substtarg.test, tests/cond36.test, tests/backsl4.test:
303         Adjust to run automake with -Wno-error when the output is expected
304         in spite of the error.
305         Report from Harlan Stenn.
307         * doc/automake.texi (Program and Library Variables): Remove
308         doubled word in footnote.
310         * automake.in (handle_source_transform): Also check for a
311         $(srcdir)/old_source rule when computing the default source name.
312         Propagate this $(srcdir) prefix in Automake variables.
313         * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to
314         $(srcdir)/zoo_d_old2_la.c.  This fixes another failure with BSD Make.
316 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
318         * Makefile.am (fetch): Work even with FreeBSD "make", which
319         uses sh -e and thus errors-out if a simple-command fails.
320         * lib/am/check.am (check-TESTS): Likewise.
321         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Likewise.
322         * lib/am/tags.am (TAGS): Likewise.
324 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
326         * tests/lex3.test, tests/yacc6.test: Require GNU Make.
327         Fixing these for BSD Make requires invasive changes (lexers and
328         parsers must be built into $srcdir, and--most annoyingly--all
329         references to parse.h must be changed to $(srcdir)/parse.h).
330         Report from Mark D. Baushke.
332 2004-05-10  Alexandre Duret-Lutz  <adl@gnu.org>
334         * tests/defs.in (GNUmake): Grep for GNU to parry FreeBSD make.
335         Report from Mark D. Baushke.
337 2004-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
339         * lib/texinfo.tex: New upstream version.
341         * lib/depcomp (tru64): Clarify comments.  Thanks to Nicolas Joly.
343         * doc/automake.texi (Headers): Revamp.
345 2004-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
347         * automake.in (check_typos): Clarify the diagnostic.
348         * tests/warnopts.test: Adjust.
350         * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into
351         VAR_PRETTY variables to work around make implementation with
352         limited line length, such as OSF1/Tru64 make.
353         * tests/longline.test: New file.
354         * tests/Makefile.am (TESTS): Add it.
355         * tests/pluseq3.test, tests/pluseq8.test: Adjust.
356         Report from Simon Josefsson.
358         * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if
359         --etags-include is used but no other files are supplied, so it
360         creates the TAGS file anyway.
361         Report from Akim Demaille.
363         * lib/depcomp (tru64) [libtool]: Nicolas Joly reported on
364         2002-06-12 that dependencies were output in $dir.libs/$base.lo.d.
365         Teun Burgers reported on 2004-03-30 they were in
366         $dir.libs/$base.o.d.  Try both.
368 2004-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
370         For PR automake/414:
371         Introduce option filename-length-max=99.
372         * doc/automake.texi (Options): Document it.
373         * configure.ac (AM_INIT_AUTOMAKE): Use it.
374         * lib/Automake/Options.pm (_process_option_list): Recognize it.
375         * automake.in (handle_dist): Set FILENAME_FILTER.
376         * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long
377         filenames.
378         * tests/fn99.test: New file.
379         * tests/Makefile.am (TESTS): Add fn99.test.
381 2004-04-20  Alexandre Duret-Lutz  <adl@gnu.org>
383         For PR automake/414:
384         Introduce options tar-v7, tar-ustar, and tar-pax to select
385         tar format.
386         * doc/automake.texi (Options): Document them.
387         * lib/Automake/Options.pm (_process_option_list): Process
388         these new options.
389         * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist,
390         distcheck): Adjust to use am__tar and am__untar.
391         * m4/tar.m4: New file.
392         * m4/Makefile.am (dist_m4data_DATA): Add tar.m4.
393         * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options
394         and call _AM_PROG_TAR.
395         * tests/tar.test, tests/tar2.test, tests/tar3.test: New files.
396         * tests/Makefile.am (TESTS): Add them.
398 2004-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
400         * lib/am/distdir.am (distcheck): Typo in shar decompression.
402         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
403         versions.
405 2004-04-17  Alexandre Duret-Lutz  <adl@gnu.org>
407         Fix PR automake/49:
408         * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose
409         calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE.
410         * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test,
411         tests/mdate3.test, tests/multlib.test, tests/reqd2.test,
412         tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test,
413         tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR
414         before AM_INIT_AUTOMAKE.
415         * tests/auxdir3.test: New file (exercise this diagnostic).
416         * tests/Makefile.am (TESTS): Add auxdir3.test.
418 2004-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
420         * aclocal.in (%map_traced_defs): New variable.
421         (scan_m4_files): Normalize filenames.
422         (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also
423         ask for the filename and the first argument.  Populate
424         %map_traced_defs.
425         (write_aclocal): Use $map_traced_defs to filter out unused
426         definitions.
427         * tests/acloca15.test: New file.
428         * tests/Makefile.am (TESTS): Add acloca15.test.
430 2004-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
432         * automake.in ($automake_needs_to_reprocess_all_files): Remove.
433         ($automake_will_process_aux_dir): New variable.
434         (scan_autoconf_traces): Reorder @input_files so that the Makefile
435         that distributes aux files is processed last.  This way we do not
436         have to process all files twice using
437         $automake_will_process_aux_dir.
438         (require_file_internal): Suggest a full run of automake when
439         appropriate.
440         (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files.
441         * tests/distcom7.test: New file.
442         * tests/reqd2.test: Do not check for the "running more than two"
443         message.
444         * tests/Makefile.am (TESTS): Add distcom7.test.
446         * automake.in (@config_aux_path, $config_aux_dir): Rename as ...
447         ($config_aux_dir, $am_config_aux_dir): ... these.
448         ($config_aux_dir_set_in_configure_in): Rename as ...
449         ($config_aux_dir_set_in_configure_ac): ... this.
450         (%require_file_found): Rename as ...
451         (%required_file_not_found): ... this.
452         (handle_languages, handle_texinfo_helper, handle_dist,
453         handle_configure, handle_emacs_lisp, handle_python,
454         scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names.
455         (scan_autoconf_traces): Call locate_aux_dir.
456         (locate_aux_dir): New function.
457         (@require_file_paths): Remove, not used anymore.
458         (require_file_internal): Look files in only one directory (instead
459         of @require_file_internal) passed in argument.
460         (require_file, require_conf_file): Pass the destination directory
461         to require_file_internal.
463         Fix for PR automake/416:
464         * m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
465         remarks.
466         From Peter Seiderer.
468 2004-04-10  Andreas Buening  <andreas.buening@nexgo.de>
470         * aclocal.in, automake.in, configure.ac, Makefile.am,
471         tests/aclocal.in, tests/automake.in, tests/defs.in:
472         Use PATH_SEPARATOR from autoconf instead of ':'.
474 2004-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
476         * automake.in (handle_lib_objects): Pass the condition of
477         the variable definition to handle_LIBOBJS and handle_ALLOCA,
478         not the aggregated conditions.
479         * tests/Makefile.am (TESTS): Add libobj14.test.
480         * tests/libobj14.test: New file.
481         Report from Bill Davidson.
483 2004-04-02  Mike Nolta  <mike@nolta.net>
485         Better support for Fortran 9x.
486         * automake.in: Add "fc" and "ppfc" languages for Fortran 9x.
487         * doc/automake.texi (Fortran 9x Support): New section.
488         * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC.
489         * tests/compile_f90_c_cxx.test: New file.
490         * tests/ext.test: Add AC_PROG_FC.
491         * tests/f90only.test: New file.
492         * tests/link_f90_only.test: New file.
493         * tests/Makefile.am (TESTS): Add new tests.
495 2004-04-01  Paul Eggert  <eggert@twinsun.com>
497         * lib/install-sh: If "mv -f" works, use it, and fall back to
498         the old "test -f" + "rm -f" + "mv" method only if "mv -f" does
499         not work.  This improves performance in the usual case where
500         "mv -f" works.  It also lets us install the "mv" command
501         without worrying about a small window where "mv" does not
502         exist (this problem was reported by Raul Nunez de Arenas
503         Coronado).
505 2004-03-26  Alexandre Duret-Lutz  <adl@gnu.org>
507         * m4/python.m4 (AM_PATH_PYTHON): Make sure am_display_PYTHON is
508         set when $PYTHON has been set by the user.
509         From Esben Haabendal Soerensen.
511 2004-03-22  Alexandre Duret-Lutz  <adl@gnu.org>
513         * doc/automake.texi (Default _SOURCES): Typo.
514         (true): Correct _'s placement in example.
515         Report from Stepan Kasal.
517 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
519         Overriding JAVAROOT is legitimate, do not warn about it.
520         * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT.
521         * tests/java2.test: Run automake without -Wno-override.
522         Report from Simon Josefsson.
524 2004-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
526         * automake.in (handle_texinfo_helper): Typos in comment.
528 2004-03-07  Alexandre Duret-Lutz  <adl@gnu.org>
530         * lib/config.guess: New upstream version.
532         Fix for PR automake/285:
533         * automake.in (handle_ltlibraries): Keep track of installation
534         directories for each condition, then define a $(am_TARGET_rpath)
535         variable to hold the -rpath flags of Libtool libraries conditionally
536         installed in different directories.
537         * lib/Automake/DisjConditions.pm (merge): New function.
538         * tests/libtool6.test: Adjust.
539         * tests/libtool8.test: New file.
540         * tests/Makefile.am (TEST): Add libtool8.test.
542         * lib/Automake/Variable.pm (traverse_recursively,
543         _do_recursive_traversal): Honor the skip_ac_subst option.
544         * automake.in (handle_dist): Use skip_ac_subst.
546 2004-02-29  Alexandre Duret-Lutz  <adl@gnu.org>
548         * Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
549         ~ftp/automake.
550         * lib/gnupload (Example): Update example.
552         * lib/config-ml.in, lib/config.guess, lib/config.sub,
553         lib/texinfo.tex: New upstream versions.
555         * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
556         to create numbered dependencies.  This fixes a portability issue
557         when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
558         Reported by Mark Phillips.
560         * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
561         so that rules for the same headers are not output twice.
562         * lib/Automake/Variable.pm (value_as_list_recursive): Do not
563         call `return' inside `map'.
564         * tests/cond30.test: Make sure `a.c' and `b.c' both appear
565         in the Makefile.in.
566         * tests/cond35.test, tests/cond36.test: New files.
567         * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
568         Report from Roman Fietze.
570         Fix for PR/413:
571         * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
572         077 && mkdir' instead of `$(mkdir_p)'.  This prevents possible
573         symlink attacks reported by Stefan Nordhausen.
575 2004-02-16  Alexandre Duret-Lutz  <adl@gnu.org>
577         * doc/automake.texi (Multiple Outputs): More text, based on
578         comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
580 2004-02-15  Alexandre Duret-Lutz  <adl@gnu.org>
582         * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
583         Solaris 8's mkdir is not thread-safe.
584         * lib/mkinstalldirs: Likewise.
585         * lib/install-sh: Abort when mkdir fails to create a directory.
586         Report from Nathanael Nerode.
588 2004-02-07  Alexandre Duret-Lutz  <adl@gnu.org>
590         * aclocal.in (rel2abs): New function.
591         (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
592         the later does was introduced in Perl 5.6 so using it breaks with
593         Perl 5.005.
594         Report from Werner John.
596 2004-02-03  Alexandre Duret-Lutz  <adl@gnu.org>
598         * doc/automake.texi (Future of aclocal): Make clearer that
599         it's ok to install macros into /usr/share/aclocal/.
601 2004-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
603         * tests/lisp.test: Delete (pointless).
604         * tests/Makefile.am (TESTS): Remove lisp.test.
606         * lib/Automake/Variable.pm (transform_variable_recursively):
607         Define rewritten variables in all conditions not *covered* by user
608         definitions, not simply in conditions without a previous
609         definition.
610         * tests/cond34.test: New file.
611         * tests/Makefile.am (TESTS): Add cond34.test.
612         Report from Elena A. Vengerova
614         * doc/automake.texi (Multiple Outputs): Typo.
616         * doc/automake.texi (Emacs Lisp): Typos.
618         Support for conditional _LISP.
619         * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
620         from $(am__ELCFILES).
621         * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
622         * tests/lisp6.test: New file.
623         * tests/Makefile.am (TESTS): Add it.
625         * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
626         $(am__ELCFILES), and always push it on @all.  Do not mention
627         elc-stamp.
628         * lib/am/lisp.am (.el.elc): Rewrite as ...
629         ($(am__ELCFILES)): ... this, and depend on elc-stamp.
630         (elc-stamp): Make sure elc-stamp is older that all .elc files, as
631         explained in the manual entry below.
633         * doc/automake.texi (Multiple Outputs): New node.
635 2004-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
637         * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
638         * tests/regex.test: New file.
639         * tests/Makefile.am (TESTS): Add regex.test.
641 2004-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
643         * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
644         * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
645         lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
646         lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
647         installation paths in install, uninstall, and installcheck rules,
648         as well as in am__installdirs variables.  This is for the sake
649         of paths containing spaces.
650         * lib/am/install.am (installdirs-am, installdirs): Do not try
651         to create "" directories.
652         * test/instspc.test: New file.
653         * test/Makefile.am (TESTS): Add instspc.test.
654         Report from James Amundson.
656         * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
657         (Extending): Make it a subsection of Not Enough.
659         * lib/gnupload (GPG): Use an absolute path.  Suggestion from Gary
660         V. Vaughan.
661         (passphrase): Unset it this variable before using it, in case it
662         was exported.  Report from Scott James Remnant.
664 2004-01-25  Alexandre Duret-Lutz  <adl@gnu.org>
666         * lib/gnupload (usage): Fix example.
667         * Makefile.am (cvs-release): Fix call to gnupload.
668         From Jim Meyering.
670 2004-01-24  Alexandre Duret-Lutz  <adl@gnu.org>
672         * lib/gnupload: New script.
673         * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
674         * Makefile.am (cvs-release): New target.
676 2004-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
678         * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
679         Fix python10.test.
681         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
682         instead of `/xx/ s///p'; the latter fails when GNU sed is run with
683         POSIXLY_CORRECT.  Also strip superfluous -e.
684         Report from Miloslav Trmac.
686 2004-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
688         * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
689         this fixes a spurious failure reported by Andreas Schwab.  Also
690         make sure ylwrap is not installed unless needed, and exercise
691         --no-force.
693 2004-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
695         * doc/automake.texi (Dist): Document limitations of distcheck-hook
696         and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
697         subpackages.
699 2004-01-20  Alexandre Duret-Lutz  <adl@gnu.org>
701         * doc/automake.texi (Upgrading): New node.
703 2004-01-20  Gary V. Vaughan  <gary@gnu.org>
705         * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
706         correctly called without arguments as evidenced by the libtool
707         demo directories.
709 2004-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
711         * tests/conflnk3.test: Skip if `test -e' does not work.
712         Report from Lars Hecking.
714 2004-01-13  Jim Meyering  <jim@meyering.net>
716         * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
717         assignment.  Remove spurious SPACEs before TABs.
719 2004-01-12  Alexandre Duret-Lutz  <adl@gnu.org>
721         * lib/py-compile: Check input files after option processing.
722         Ensure --basedir has an argument.
723         * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
724         if nothing was installed.
725         * tests/python10.test: New file.
726         * tests/Makefile.am (TESTS): Add python10.test.
727         Suggested by Sander Niemeijer.
729         * tests/txinfo29.test: Remove autom4te.cache.
730         Report from Greg Schafer.
732         * lib/install-sh: Do not use "$@" in a context where it may be empty,
733         for the sake of OSF1/Tru64's shell.
734         Report from He Li.
736 2004-01-11  Alexandre Duret-Lutz  <adl@gnu.org>
738         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
739         versions.
741         * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
742         copyright years and serial.
744         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
746 2004-01-10  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
748         * m4/as.m4 (AM_PROG_AS): Format and align help string more
749         consistently.
750         * m4/depend.m4 (AM_DEP_TRACK): Likewise.
751         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
752         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
753         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
755 2004-01-10  Paul Eggert  <eggert@twinsun.com>
757         * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
758         expressions; it doesn't conform to POSIX.
760 2004-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
762         * automake.in (shadow_unconditionally): New function...
763         (handle_source_transform): ... extracted from here.
764         (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
765         * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
766         lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
767         * tests/cond33.test: Make sure all conditional files are distributed.
768         Report from Ralf Corsepius.
770 2004-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
772         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
773         * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
774         as well as `install-sh sources... dest' with multiple sources.
775         * tests/cond33.test: New file.
776         * tests/instsh2.test: Add more checks for install-sh.
777         * tests/transform.test: Test for installdirs.
778         * tests/Makefile.am (TESTS): Add cond33.test
779         Report from Ralf Corsepius.
781         * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
782         do not look like DEST:SRC.
783         * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
785 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
787         Fix for PR automake/289:
788         * automake.in (Automake::Struct::libtool_tag): New attribute.  Define
789         it for the language that have a Libtool tag.
790         (%libtool_tags): New variable.
791         (handle_languages, define_compiler_variable)
792         (define_linker_variable): Pass --tag=XXX to libtool if supported.
793         (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
794         * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
795         output.
797 2003-01-07  Eric Sunshine  <sunshine@sunshineco.com>  (tiny change)
799         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
800         config.status.lineno.
802 2004-01-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
804         * doc/automake.texi (Rebuilding): Typo.
806 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
808         * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
810 2004-01-06  Alexandre Duret-Lutz  <adl@gnu.org>
812         * THANKS: Add Bruce Korb.
814 2004-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
816         Mimic Paul Eggert's changes to Autoconf.
817         * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
818         * lib/Automake/Makefile.am (Config.pm): Likewise.
819         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
821         * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
822         am__vpath_adj, and am__strip_dir.
823         * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
824         * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
825         lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
826         $(am__vpath_adj_setup), and $(am__strip_dir) in install and
827         uninstall rules.  This fixes installation of nobase_ files in
828         VPATH setups with Sun and OSF1/Tru64 Make.
829         * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
830         $(am__strip_dir) to simplify install and uninstall rules.
831         * tests/nobase.test: Augment to check installation from VPATH builds.
833         * automake.in (%transformed_files): New variable.
834         (initialize_per_input): Reset it.
835         (make_paragraphs): Fill %transformed_files, and define %FIRST%
836         each time a file is transformed for the first time.
837         (handle_configure): Do not define %FIRST_CONFIG_HIN%.
838         (am_install_var): Do not define %FIRST%.
839         * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
841 2004-01-04  Alexandre Duret-Lutz  <adl@gnu.org>
843         * lib/texinfo.tex: New upstream version.
845         * m4/mkdirp.m4: Do not use `-m 0755'.  This overrides special bits
846         and break setups where 775 directories are expected.  Just obey
847         umask as we did in the past.
848         Report from Harlan Stenn.
850 2004-01-03  Alexandre Duret-Lutz  <adl@gnu.org>
852         * automake.in (scan_texinfo_file): Do not compare $outfile to ''
853         as $outfile might not be defined at all.
855         * lib/Automake/Variable.pm (define): Rework the way we check
856         Automake variable definition.  Ensure consistent :=/+=/=
857         definitions only for variables that have been and are defined by
858         Automake, and make it an internal error.  Ignore Automake
859         attempts to touch a user variable, even with += assignments.
860         * tests/txinfo29.test: New file.
861         * tests/Makefile.am (TESTS): Add txinfo29.test.
862         Reported by Bruce Korb.
864 2004-01-02  Tom Tromey  <tromey@redhat.com>
866         * automake.in (handle_source_transform): Don't generate dist
867         variables when no-dist is set.
868         (generate_makefile): Likewise.
869         * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
870         and that dist target does not exist.
871         Reported by Tom Fitzsimmons.
873 2004-01-02  Alexandre Duret-Lutz  <adl@gnu.org>
875         * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
876         * tests/ltconv.test: Run automake with --add-missing, because
877         the CVS version of libtoolize no longer install config.sub and
878         config.guess by default.
880         Fix for PR automake/319:
881         * aclocal.in (scan_m4_files): Scan configure.ac.
882         (trace_used_macros, write_aclocal): Remove configure.ac from the
883         list of files to include.
884         * tests/Makefile.am (TESTS): Add acloca15.test.
885         * tests/acloca15.test: New file.
887         * aclocal.in (%file_includes): New variable.
888         (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
889         (scan_file): Scan for included files, and process these files
890         recursively.  Fill %file_includes and %file_contents.  Return the
891         list of included files, not the contents.
892         (scan_m4_files): Adjust calls to scan_files.
893         (strip_redundant_includes): New function.
894         (trace_used_macros): Call it.
895         (write_aclocal): Likewise.  Also check the mtime of included files.
896         * tests/Makefile.am (TESTS): Add acloca14.test.
897         * tests/acloca14.test: New file.
898         Report from Phil Edwards.
900 2004-01-01  Alexandre Duret-Lutz  <adl@gnu.org>
902         * automake.in (handle_languages): Do not define DEP_FILES.
903         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
904         files with $(DEPDIR) in their name instead of DEP_FILES.
905         * tests/depend.test, tests/depend4.test, tests/exsource.test:
906         Adjust.
907         Suggested by Tom Tromey.
909         Do not output .lo rules for programs and static libraries objects,
910         and do not output .o/.obj rules for libtool libraries.  This is
911         about explicit rules only, not inference rules.
912         * automake.in (handle_single_transform_list): Rename as ...
913         (handle_single_transform): ... this.  Take a single file
914         to transform (it was only called this way) and accept a new
915         %transform argument.  Fill %lang_specific_files with list
916         references instead of strings, and append %transform to each
917         of these lists.
918         (define_objects_from_sources, handle_source_transform):
919         Take a %transform argument, and forward it to &handle_single_transform.
920         (handle_languages): Adjust to the new format of
921         %lang_specific_files, and honor its %transform part.
922         (handle_programs, handle_libraries, handle_ltlibraries): Override
923         %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
924         (make_paragraphs): Define %NONLIBTOOL% by default.  Make sure
925         %transform settings override global settings.
926         * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
927         * tests/libtool3.test: Augment to check Makefile.ins for unneeded
928         rules.
929         Suggested by Thomas Fitzsimmons.
931         * automake.in, aclocal.in: Bump copyright years.
933 2003-12-31  Alexandre Duret-Lutz  <adl@gnu.org>
935         * automake.in (generate_makefile): Update misleading comment.
937         * automake.in (handle_languages): Define %DEPBASE% conditionally
938         on subdir-objects.  Define SUBDIROBJ.  Do not clean *_.c files
939         here ...
940         (lang_c_finish): ... do it here.
941         (handle_single_transform_list): Do not output specific rules for
942         subdir-objects files which are not renamed.  This should reduce
943         the size of Makefiles with lots of subdirectory sources.
944         * lib/depcomp: Simplify computation of dependency output, and use
945         DEPDIR.
946         * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
947         to depcomp.  Compute depbase on-the-fly in generic fastdep rules
948         for subdir-objects.
949         * tests/ansi9.test: Do not grep for an explicit rule that
950         we no longer expect.  Really run $MAKE to make sure the chain
951         of rules works.
952         * tests/yacc5.test: Do not grep for an explicit rule that
953         we no longer expect.  Adjust to use set -e.
955 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
957         * automake.in (@common_files): Move configure, configure.ac, and
958         configure.in ...
959         (@common_sometimes): ... here so that these files do not appear
960         twice in DIST_COMMON.
962         * automake.in (maybe_push_required_file): Add $(srcdir) in front
963         a required files outside the current directory or its subdirectories.
964         * lib/am/distdir.am (distdir): Update comment.
965         Report from Nicolas Joly.
967 2003-12-26  Alexandre Duret-Lutz  <adl@gnu.org>
969         * doc/automake.texi (@copying): Do not repeat the version.
970         (Top): Use @insertcopying.  Add a @detailmenu, this works around
971         Emacs 21's inability to lookup indices in sub-nodes (reported
972         by Kevin Ryde).
973         (C++ Support, Assembly Support, Fortran 77 Support, Java Support,
974         Support for Other Languages, Preprocessing Fortran 77, Compiling
975         Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
976         is Chosen): Add missing descriptions in menus.
977         (Fortran 77 and Autoconf): Remove, this node was just saying "use
978         Autoconf 2.53 or greater".
980 2003-12-26  Santiago Vila  <sanvila@unex.es>  (tiny change)
982         * NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
984 2003-12-25  Nicolas Joly  <njoly@pasteur.fr>  (tiny change)
986         * doc/automake.texi (Conditional Sources): Typo.
988 2003-12-25  Alexandre Duret-Lutz  <adl@gnu.org>
990         * lib/Automake/Config.in: Require Exporter.
991         Report from Kevin Ryde (failure with Perl 5.005_03).
993 2003-12-15  Alexandre Duret-Lutz  <adl@gnu.org>
995         * tests/aclocal6.test: Check for autom4te.cache only if it has
996         been created.
997         * tests/maintclean.test: Update comment.
998         Report from Bruno Haible.
1000         * tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
1001         Require texi2dvi-o.
1002         Report from Václav Haisman.
1004 2003-12-10  Alexandre Duret-Lutz  <adl@gnu.org>
1006         * configure.ac, NEWS: Bump version to 1.8a.
1008         * configure.ac, NEWS: Bump version to 1.8.
1010         * lib/texinfo.tex: New upstream version.
1012         * Makefile.am (INSTALL): Copy the source from $(srcdir).
1014 2003-12-09  Alexandre Duret-Lutz  <adl@gnu.org>
1016         * lib/Automake/Rule.pm (define): Remove debugging traces.
1017         Report from Akim Demaille.
1019 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1020             Alexandre Duret-Lutz  <adl@gnu.org>
1022         * Makefile.am (do_subst): Fix the substitution of @configure_input@.
1023         (automake, aclocal): Create the output atomically and make it
1024         read-only, as done in the Autoconf package.
1025         * lib/Automake/Makefile.am (do_subst): Fix the substitution of
1026         @configure_input@.
1027         (Config.pm): Create the output atomically and make it read-only.
1028         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
1029         @configure_input@ and make the output read-only.
1030         * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
1031         tests/automake.in, tests/defs.in: Add a @configure_input@ line.
1033 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1035         * doc/automake.texi (Local Macros, CVS): Typos.
1037 2003-12-08  Alexandre Duret-Lutz  <adl@gnu.org>
1039         * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $\&.
1040         Perl 5.6.0 will not accept a reference sub reference for the
1041         latter.
1042         * automake.in (var_SUFFIXES_trigger): Adjust registration via
1043         Automake::Variable::hook.
1044         (handle_texinfo_helper): Make sure `inner_expand => 1' appears
1045         on one line, so that Perl 5.6.0 does not complain about
1046         inner_expand being a bare identifier.
1048 2003-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
1050         * aclocal.in (check_acinclude, scan_file): Output `warning:' in
1051         front of warnings.
1052         Report from Pavel Roskin.
1054 2003-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
1056         * TODO: Remove some old entries.
1058         * doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
1059         and CONFIG_STATUS_DEPENDENCIES.  Move this sections later
1060         in the manual since it's pretty advanced material.
1062         * automake.in ($config_header_location): Remove.  Use
1063         %ac_config_files_location instead.
1064         (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
1065         at the top-level.
1066         (handle_configure): Use rewrite_inputs_into_dependencies to
1067         distribute and compute AC_CONFIG_HEADERS dependencies.
1068         (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
1069         %ac_config_files_location.
1070         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
1071         (%CONFIG_HIN%): ... this.  $(srcdir) is already added in
1072         scan_autoconf_traces.
1073         * tests/Makefile.am (TESTS): Add confh5.test.
1074         * tests/confh5.test: New file.
1076         * tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
1077         $< is not portable and the source is in $(srcdir).
1079 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
1080             Alexandre Duret-Lutz  <adl@gnu.org>
1082         * automake.in (handle_configure): Do not require link sources if
1083         they contain a dollar, or if they were built.  Likewise, do not
1084         clean link destination if they contain a dollar.
1085         (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
1086         %ac_config_files_location with link destinations.  Do not
1087         store locations in @config_links, now that %ac_config_files_location
1088         have them.
1089         * tests/conflnk3.test: New file.
1090         * tests/Makefile.am (TESTS): Add conflnk3.test.
1092 2003-12-02  Alexandre Duret-Lutz  <adl@gnu.org>
1094         * configure.ac, NEWS: Bump version to 1.7i.
1096         * configure.ac, NEWS: Bump version to 1.7h.
1098         * doc/automake.texi (Default _SOURCES): Fix reference to true.
1100         * lib/texinfo.tex: New upstream version.
1102 2003-11-30  Alexandre Duret-Lutz  <adl@gnu.org>
1104         * automake.in (handle_source_transform): If it's present, use
1105         libfoo_la.c instead of libfoo.c as the default source of
1106         libfoo.la, and issue an -Wobsolete diagnostic.  Do not be
1107         greedy in the suffix replacement regex.
1108         * doc/automake.texi (Default _SOURCES): New node.
1109         (Program Sources, Libtool Modules): Refer to it.
1110         * tests/ltlibsrc.test: Update to check for old default source files.
1112 2003-11-30  Gary V. Vaughan  <gary@gnu.org>
1114         * automake.in (&handle_source_transform): Calculate a default file
1115         for use in the absence of an appropriate _SOURCES declaration by
1116         first stripping any suffix from the unxformed target name, and
1117         appending `.c'.
1118         * doc/automake.texi (Program Sources, Libtool Modules): Document this.
1119         * tests/ltlibsrc.test: New file.
1120         * tests/Makefile.am (TESTS): Add ltlibsrc.test.
1122 2003-11-29  Alexandre Duret-Lutz  <adl@gnu.org>
1124         * lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
1125         _value_as_list_recursive_worker): Merge into ...
1126         (value_as_list_recursive): ... this function.  Pass options
1127         as a hash argument, and use the `location' option to trigger
1128         the behavior of loc_and_value_as_list_recursive.
1129         (traverse_recursively, transform_variable_recursively): Take
1130         options as a %options argument.
1131         (_do_recursive_traversal): Perform expansion of inner variables
1132         (as in `$(FILE).ext') on request.
1133         * automake.in (handle_options, check_libobjs_sources)
1134         (handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
1135         (handle_ltlibraries, handle_man_pages, handle_dist)
1136         (handle_gettext, am_install_var): Adjust usage of
1137         value_as_list_recursive.
1138         (handle_texinfo_helper): Pass inner_expand to
1139         value_as_list_recursive.
1140         * tests/txinfo28.test: New file.
1141         * tests/Makefile.am (TESTS): Add txinfo28.test.
1142         Report from Ralf Corsepius.
1144         * lib/Automake/Variable.pm (_do_recursive_traversal): Do not
1145         update @_substfroms and @_substfroms for undefined variables.
1146         * tests/substre2.test: New file.
1147         * tests/Makefile.am (TESTS): Add substre2.test.
1149         * lib/Automake/VarDef.pm (value): Rename as ...
1150         (raw_value): ... this.
1151         (value): New method, strip # and \\\n.
1152         (dump): Use raw_value.
1153         * lib/Automake/Variable.pm (output): Use raw_value.
1154         (value_as_list): Simplify, now that backslash and comments
1155         are already removed.
1156         * tests/txinfo22.test: Make sure Automake isn't confused
1157         by comments in variables.
1159 2003-11-27  Alexandre Duret-Lutz  <adl@gnu.org>
1161         * doc/automake.texi: More target vs. rule editing.  Back out some
1162         of the previous changes.  It's OK to talk about targets as "entry
1163         points", or as thing to build, but targets cannot be run: rules
1164         are run.
1166         * doc/automake.texi: s/target/rule/ where appropriate.  A target
1167         is the destination of a target rule, not the rule itself.
1168         Suggested by Bruno Haible.
1170 2003-11-25  Alexandre Duret-Lutz  <adl@gnu.org>
1172         * configure.ac, NEWS: Bump version to 1.7g.
1174         * configure.ac, NEWS: Bump version to 1.7f.
1176         * automake.in (prepend_srcdir): Parenthesize @inputs to remove
1177         a maintainer-check warning.
1178         * tests/subst2.test: Rewrite the $MAKE invocation to please
1179         maintainer-check.
1181         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1182         versions.
1184         * doc/automake.texi (Program variables): Mention per-target
1185         _CPPFLAGS in the documentation of INCLUDES.
1186         * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic.
1187         Report from Bob Friesenhahn.
1189         * doc/automake.texi (Extending): Elaborate on overriding.
1190         * NEWS: Likewise.
1191         Suggested by Bruno Haible.
1193 2003-11-24  Alexandre Duret-Lutz  <adl@gnu.org>
1195         * lib/Automake/Variable.pm (output): Add $(am__empty) to variable
1196         definitions that end with a line full of @substitutions@ that
1197         would confuse HP-UX Make if it were blank.
1198         (transform_variable_recursively): Make sure not to erase empty
1199         variables.
1200         * tests/Makefile.am (TESTS): Add subst2.test.
1201         * tests/subst2.test: New file.
1202         Report from Harlan Stenn.
1204         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Work around a
1205         Texinfo 4.1 bug.
1206         Report from Dalibor Topic.
1208 2003-11-22  Alexandre Duret-Lutz  <adl@gnu.org>
1210         Fix for PR automake/411:
1211         * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename
1212         into ...
1213         (prepend_srcdir): ... this.
1214         (rewrite_inputs_into_dependencies): New function, extracted from ...
1215         (handle_configure): ... here.  Adjust to use prepend_srcdir
1216         or rewrite_inputs_into_dependencies where needed.  Especially,
1217         using (the new) rewrite_inputs_into_dependencies to compute
1218         Makefile dependencies will fix PR/411.
1219         * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's
1220         already distributed by rewrite_inputs_into_dependencies.
1221         * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test.
1222         * tests/colon3.test: Use set -e.  Don't allow any AUTOMAKE
1223         invocation refer to zardoz.  Make sure two.in and three.in
1224         appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies.
1225         * tests/distcom.test: Delete.  This is covered by tests/output9.test.
1226         * tests/output10.test: New file, for PR/411.
1228 2003-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
1230         * automake.in (append_exeext): Do not append $(EXEEXT) to
1231         @substitutions@.
1232         * tests/exeext4.test: New file.
1233         * tests/Makefile.am (TESTS): Add exeext4.test.
1235 2003-11-19  Alexandre Duret-Lutz  <adl@gnu.org>
1237         * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%,
1238         mistakenly added on 2001-03-05.
1239         * tests/remake5.test: New file.
1240         * tests/Makefile.am (TESTS): Add remake5.test.
1241         Report from Ralf Corsepius.
1243 2003-11-18  Alexandre Duret-Lutz  <adl@gnu.org>
1245         * configure.ac, NEWS: Bump version to 1.7e.
1247         * configure.ac, NEWS: Bump version to 1.7d.
1249         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New
1250         upstream versions.
1252 2003-11-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>  (tiny change)
1253             Alexandre Duret-Lutz  <adl@gnu.org>
1255         * lib/am/texinfos.am (install-info): Depend on
1256         install-info-recursive or install-info-am even if no-installinfo.
1257         * tests/txinfo27.test: New file.
1258         * tests/Makefile.am (TESTS): Add txinfo26.test.
1260 2003-11-18  Paolo Bonzini  <bonzini@gnu.org>
1261             Alexandre Duret-Lutz  <adl@gnu.org>
1263         * lib/ylwrap: Do not overwrite headers if they haven't changed.
1264         Fix the include guard substitution.
1265         * tests/yacc6.test: Augment to run ylwrap, and make sure it
1266         does not needlessly update headers.
1267         * tests/yacc8.test: Make sure headers are not needlessly updated
1268         with ylwrap is not used.  Move `test -f foo.o' into the
1269         Makefile as `test -f foo.$(OBJEXT)' for portability.
1271 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
1273         * automake.in (generate_makefile): Define SUBDIRS if it is
1274         not defined and DIST_SUBDIRS is.
1275         * tests/subpkg2.test: New file.
1276         * tests/Makefile.am (TESTS): Add subpkg2.test.
1277         Report from Gary V. Vaughan.
1279         * tests/suffix11.test: Check for suffixes containing `-'.
1280         * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
1281         suffixes.
1283         * lib/Automake/Rule.pm (define): Suggest using target-local instead
1284         of target-am, not target-am-local.
1285         * tests/overrid.test: Check the diagnostic for clean-am.
1286         Report from Bruno Haible.
1288 2003-11-17  Jim Meyering  <jim@meyering.net>
1290         * bootstrap: Require not only that `perl' have the executable
1291         bit set, but also that it is not a directory.
1293         * lib/am/configure.am: Mark %MAKEFILE% as `.PRECIOUS'.
1295 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
1297         * automake.in (ac_config_files_location): Declare as a hash.
1298         (handle_configure): Rewrite the computation of AC_CONFIG_FILES
1299         dependencies; make sure we don't use $(srcdir) or $(top_srcdir)
1300         for inputs which are also outputs, and do not check inputs
1301         relatively to the current directory.
1302         (scan_autoconf_config_files): Take $where as argument, and
1303         fill $ac_config_files_location.
1304         * tests/output8.test, tests/output9.test: New files.
1305         * tests/Makefile.am (TESTS): Add output8.test and output9.test.
1306         Report from Bruno Haible.
1308 2003-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
1310         * tests/aclibobj.test, tests/aclocal.test, tests/aclocal3.test,
1311         tests/acoutbs.test, tests/acoutbs2.test, tests/acoutnoq.test,
1312         tests/acoutpt.test, tests/acoutpt2.test, tests/acoutqnl.test,
1313         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
1314         tests/all.test, tests/alpha.test, tests/amassign.test,
1315         tests/ammissing.test, tests/ansi.test, tests/ansi10.test,
1316         tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
1317         tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
1318         tests/ansi7.test, tests/ansi9.test, tests/ar.test,
1319         tests/autohdr.test, tests/autohdr2.test, tests/auxdir.test,
1320         tests/auxdir2.test, tests/backsl.test, tests/backsl2.test,
1321         tests/badprog.test, tests/block.test, tests/canon2.test,
1322         tests/canon3.test, tests/canon4.test, tests/canon5.test,
1323         tests/ccnoco.test, tests/check.test, tests/check2.test,
1324         tests/check3.test, tests/checkall.test, tests/clean.test,
1325         tests/colneq2.test, tests/colon.test, tests/colon2.test,
1326         tests/colon3.test, tests/colon4.test, tests/colon5.test,
1327         tests/colon6.test, tests/colon7.test, tests/comment.test,
1328         tests/comment2.test, tests/comment4.test, tests/comment6.test,
1329         tests/comment7.test, tests/compile_f_c_cxx.test, tests/cond.test,
1330         tests/cond10.test, tests/cond11.test, tests/cond13.test,
1331         tests/cond14.test, tests/cond15.test, tests/cond16.test,
1332         tests/cond17.test, tests/cond18.test, tests/cond19.test,
1333         tests/cond21.test, tests/cond22.test, tests/cond25.test,
1334         tests/cond26.test, tests/cond28.test, tests/cond3.test,
1335         tests/cond4.test, tests/cond5.test, tests/cond6.test,
1336         tests/cond7.test, tests/cond8.test, tests/cond9.test,
1337         tests/condd.test, tests/condinc.test, tests/condlib.test,
1338         tests/condman.test, tests/condman2.test, tests/conf2.test,
1339         tests/confdeps.test, tests/confh.test, tests/confh4.test,
1340         tests/config.test, tests/confincl.test, tests/conflnk.test,
1341         tests/conflnk2.test, tests/confsub.test, tests/confvar.test,
1342         tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1343         tests/cxx.test, tests/cxxansi.test, tests/cxxcpp.test,
1344         tests/cxxlibobj.test, tests/cxxlink.test, tests/cxxnoc.test,
1345         tests/cxxo.test, tests/cygwin32.test, tests/dash.test,
1346         tests/defun.test, tests/defun2.test, tests/dejagnu.test,
1347         tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test,
1348         tests/dejagnu6.test, tests/dejagnu7.test, tests/depacl2.test,
1349         tests/depcomp.test, tests/depcomp2.test, tests/depcomp4.test,
1350         tests/depdist.test, tests/depend.test, tests/depend2.test,
1351         tests/depend3.test, tests/depend4.test, tests/destdir.test,
1352         tests/dirlist.test, tests/discover.test, tests/distcom.test,
1353         tests/distcom2.test, tests/distdir.test, tests/distname.test,
1354         tests/dollar.test, tests/double.test, tests/dup2.test,
1355         tests/empty.test, tests/empty2.test, tests/empty3.test,
1356         tests/empty4.test, tests/error.test, tests/exdir.test,
1357         tests/exeext.test, tests/exeext3.test, tests/exsource.test,
1358         tests/ext.test, tests/ext2.test, tests/extra.test,
1359         tests/extra2.test, tests/extra3.test, tests/extra4.test,
1360         tests/extra5.test, tests/extra6.test, tests/extra7.test,
1361         tests/flibs.test, tests/fnoc.test, tests/fo.test,
1362         tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1363         tests/fpinstall.test, tests/gcj.test, tests/gcj3.test,
1364         tests/gcj4.test, tests/gnits2.test, tests/gnits3.test,
1365         tests/header.test, tests/implicit.test, tests/include.test,
1366         tests/include2.test, tests/info.test, tests/insh2.test,
1367         tests/install2.test, tests/installdir.test, tests/instdat.test,
1368         tests/instdat2.test, tests/instexec.test, tests/insthook.test,
1369         tests/instman.test, tests/instman2.test, tests/instsh.test,
1370         tests/instsh2.test, tests/interp.test, tests/interp2.test,
1371         tests/java.test, tests/java2.test, tests/javaprim.test,
1372         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
1373         tests/lex.test, tests/lex3.test, tests/lex4.test, tests/lex5.test,
1374         tests/libobj11.test, tests/libobj2.test, tests/libobj4.test,
1375         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
1376         tests/library.test, tests/libtool.test, tests/libtool2.test,
1377         tests/libtool3.test, tests/libtool5.test, tests/link_c_cxx.test,
1378         tests/link_dist.test, tests/link_f_only.test, tests/link_fc.test,
1379         tests/link_fccxx.test, tests/link_fcxx.test, tests/lisp.test,
1380         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
1381         tests/maintclean.test, tests/make.test, tests/makej.test,
1382         tests/makevars.test, tests/man.test, tests/man2.test,
1383         tests/mclean.test, tests/mdate.test, tests/mdate2.test,
1384         tests/mdate3.test, tests/mdate4.test, tests/mkinst2.test,
1385         tests/mkinstall.test, tests/nobase.test, tests/nodef.test,
1386         tests/nodef2.test, tests/nodep.test, tests/nodepcomp.test,
1387         tests/nodist.test, tests/nodist2.test, tests/nodist3.test,
1388         tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
1389         tests/nostdinc.test, tests/number.test, tests/obsolete.test,
1390         tests/order.test, tests/outdir.test, tests/output.test,
1391         tests/output2.test, tests/output3.test, tests/output4.test,
1392         tests/parse.test, tests/phony.test, tests/pluseq.test,
1393         tests/pluseq10.test, tests/pluseq2.test, tests/pluseq3.test,
1394         tests/pluseq4.test, tests/pluseq6.test, tests/pluseq8.test,
1395         tests/postproc.test, tests/ppf77.test, tests/pr2.test,
1396         tests/pr204.test, tests/pr220.test, tests/pr224.test,
1397         tests/pr229.test, tests/pr243.test, tests/pr266.test,
1398         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
1399         tests/pr300-lib.test, tests/pr300-ltlib.test,
1400         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
1401         tests/pr87.test, tests/pr9.test, tests/prefix.test,
1402         tests/proginst.test, tests/python.test, tests/python3.test,
1403         tests/python4.test, tests/python5.test, tests/python6.test,
1404         tests/python7.test, tests/python8.test, tests/python9.test,
1405         tests/recurs2.test, tests/remake.test, tests/remake2.test,
1406         tests/remake3.test, tests/req.test, tests/reqd.test,
1407         tests/rulepat.test, tests/scripts.test, tests/sinclude.test,
1408         tests/space.test, tests/specflg3.test, tests/specflg6.test,
1409         tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
1410         tests/spell3.test, tests/spelling.test, tests/spy.test,
1411         tests/stamph2.test, tests/stdlib2.test, tests/strip.test,
1412         tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
1413         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
1414         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
1415         tests/subdirbuiltsources.test, tests/subobj.test,
1416         tests/subobj2.test, tests/subobj3.test, tests/subobj4.test,
1417         tests/subobj5.test, tests/subobj6.test, tests/subobj7.test,
1418         tests/subobj8.test, tests/subobj9.test, tests/subobjname.test,
1419         tests/subpkg.test, tests/subst.test, tests/substref.test,
1420         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
1421         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
1422         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
1423         tests/suffix9.test, tests/symlink2.test, tests/symlink3.test,
1424         tests/tags.test, tests/tagsub.test, tests/target-cflags.test,
1425         tests/transform.test, tests/txinfo.test, tests/txinfo10.test,
1426         tests/txinfo13.test, tests/txinfo16.test, tests/txinfo17.test,
1427         tests/txinfo18.test, tests/txinfo2.test, tests/txinfo23.test,
1428         tests/txinfo24.test, tests/txinfo25.test, tests/txinfo26.test,
1429         tests/txinfo3.test, tests/txinfo5.test, tests/txinfo6.test,
1430         tests/txinfo7.test, tests/txinfo8.test, tests/txinfo9.test,
1431         tests/unused.test, tests/vars.test, tests/vars3.test,
1432         tests/vartar.test, tests/version.test, tests/version2.test,
1433         tests/version4.test, tests/version6.test, tests/version7.test,
1434         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
1435         tests/werror.test, tests/whoami.test, tests/yacc.test,
1436         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
1437         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
1438         tests/yaccpp.test, tests/yaccvpath.test: Fix license to refer
1439         to Automake, not autoconf.
1441         Fix for PR automake/408:
1442         * lib/am/texinfos.am (install-info-am): Strip any $(srcdir)/ prefix
1443         from $file, as already done for dist-info.
1444         * tests/Makefile.am (TESTS): Add txinfo26.test.
1445         * tests/txinfo26.test: New file.
1446         Report from Nicholas Wourms.
1448 2003-11-13  Alexandre Duret-Lutz  <adl@gnu.org>
1450         * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
1451         running AC_CHECK_PROGS(EMACS).
1452         * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
1453         Report from Jens Petersen.
1455         * tests/mkinst2.test: Rewrite.
1457         * m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
1459 2003-11-12  Alexandre Duret-Lutz  <adl@gnu.org>
1461         * automake.in (scan_autoconf_traces): Honor sinclude.
1462         * tests/sinclude.test: Check for sinclude.
1463         Report from Roberto Bagnara.
1465 2003-11-11  Alexandre Duret-Lutz  <adl@gnu.org>
1467         * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck'
1468         already build the tarballs.  Commit files right before tagging.
1469         Check NEWS before running distcheck.
1471         * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space.
1473         * configure.ac, NEWS: Bump version to 1.7c.
1475         * configure.ac, NEWS: Bump version to 1.7b.
1476         * Makefile.am (maintainer-check): Ignore comments while
1477         scanning for rm without -f.
1479         * Makefile.am (fetch): Get all files from savannah.  Do not
1480         postprocess Struct.pm and XFiles.pm, since we now are the master
1481         of these.
1482         * lib/config.sub, lib/config.guess, lib/config-ml.in,
1483         lib/texinfo.tex: New upstream versions.
1485         * configure.ac: Check that autoconf is installed, that it works,
1486         and that it is recent enough in three steps, not one.
1488         * NEWS: Minor edits.
1490         * lib/Makefile.am (dist_script_DATA): Move config-ml.in ...
1491         (dist_pkgvdata_DATA): ... here.
1493         * tests/spy.test: Document overlapping ::-rules incompatibilities,
1494         and check only non-overlapping ::-rules.
1496         * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
1497         MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
1498         TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
1499         (Uniform): Do not speak of missing HTML support, this is
1500         confusing.
1501         * lib/Automake/Variable.pm (_silent_variable_override): Add
1502         AM_MAKEINFOHTMLFLAGS.
1503         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
1504         AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
1505         * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
1506         * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
1508 2003-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
1510         * tests/spy.test: New file.
1511         * tests/Makefile.am (TESTS): Add spy.test.
1513         * automake.in (handle_configure): Distribute and define mkinstalldirs
1514         only if it is already present in the package.
1515         (scan_autoconf_files): Do not require mkinstalldirs.
1516         (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs).
1517         * lib/am/data.am, lib/am/distdir.am, lib/am/install.am,
1518         lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am,
1519         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
1520         lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs).
1521         * m4/mkdirp.m4: New file.
1522         * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4.
1523         * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P.
1524         * tests/Makefile.am (TESTS): Remove insh.test.
1525         * tests/insh.test: Delete.
1526         * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs.
1527         * tests/auxdir.test: Install mkinstalldirs.
1528         * tests/distdir.test, tests/instman.test, tests/pr2.test: Use
1529         $(mkdir_p), not $(mkinstalldirs).
1530         * tests/empty.test: Run configure, do not substitute things by hand.
1531         * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh
1532         as an example, not mkinstalldirs.
1533         (Auxiliary Programs) <mkinstalldirs>: Update.
1535         * tests/defs.in: Handle required=bzip2.
1537         * tests/defs.in: Export SHELL.
1538         * tests/cond11.test: Missing quotes.
1539         * tests/nogzip2.test: Require bzip2.
1541 2003-11-09  Alexandre Duret-Lutz  <adl@gnu.org>
1543         * NEWS: Add news entries from 1.6.x and 1.7.x.
1545         * automake.texi (Optional) <AC_SUBST>: Grammar fixes.
1547         * automake.in (check_gnu_standards): Install COPYING only if
1548         none of COPYING, COPYING.LIB, or COPYING.LESSER exist.  Do not
1549         overwrite the license otherwise.
1550         * tests/Makefile.am (TESTS): Add license.test.
1551         * tests/license.test: New file.
1553         * lib/mkinstalldirs: Mention automake-patches@gnu.org and
1554         bug-automake@gnu.org.
1555         * lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
1556         Likewise.  Also add support for --help and --version.
1557         * lib/py-compile, lib/ylwrap: Likewise, and reindent.
1559 2003-11-08  Alexandre Duret-Lutz  <adl@gnu.org>
1561         * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
1562         * lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
1563         * lib/am/java.am (JAVACFLAGS): Remove.
1564         * tests/dejagnu3.test: Check that the environment value
1565         of RUNTESTFLAGS get passed down to runtest.
1566         Suggested by Mark Mitchell.
1568         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
1569         (?GENERIC?%EXT%.lo): Do not echo compile command manually, this
1570         breaks `make -s'.  Instead, fold the compile command on two lines,
1571         so that it take less space on the display.
1572         Suggested by Karl Berry and William Fulton.
1574         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
1575         (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
1576         to select $(srcdir) or `.' builds.
1577         (INFO_DEPS): Define here.
1578         * lib/am/texinfos.am (dist-info): Strip filename starting with
1579         "$(srcdir)/".
1580         * automake.in (output_texinfo_build_rules): Take a new argument
1581         $insrc, and adjust substitutions in 'texibuild'.
1582         (handle_texinfo_helper): Compute a regex of all user-cleaned
1583         files, and use this to select whether to build .info files in `.'
1584         or $(srcdir).  Give an account of the $(srcdir) vs `.' debacle.
1585         Alway build the version.texi and stamp files in $(srcdir).  Do not
1586         define INFO_DEPS.
1587         * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
1588         and txinfo25.test.
1589         * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
1590         New files.
1591         * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
1592         tests/vtexi.test: Adjust to new rules.
1594 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
1596         * m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
1597         * configure.ac: Require Autoconf 2.58a, and check for 2.58.
1599 2003-10-27  Alexandre Duret-Lutz  <adl@gnu.org>
1601         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
1602         * tests/Makefile.am (TESTS): Add autohdr3.test
1603         * tests/autohdr3.test: New file.
1605         * automake.in (handle_configure): Rename am__configure_deps
1606         as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
1607         $configure_ac.  Define am__configure_deps as am__aclocal_m4_deps
1608         + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4).  Do not define
1609         ACLOCAL_M4_DEPS while processing configure.am.
1610         (make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
1611         (scan_aclocal_m4): Do not distribute aclocal.m4, this
1612         is done from lib/am/configure.am.
1613         * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
1614         $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
1615         $(am__configure_deps) or $(am__aclocal_m4_deps).
1616         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
1618 2003-10-26  Alexandre Duret-Lutz  <adl@gnu.org>
1620         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
1621         $(am__configure_deps).
1623         * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
1624         sources, and without using require_file.  Define %CONFIG_H_DEPS%
1625         and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
1626         * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
1627         of (srcdir)/%CONFIG_HIN%.  Output the $(srcdir)/%CONFIG_HIN%
1628         rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
1629         * tests/autohdr4.test: New file.
1630         * tests/Makefile.am (TESTS): Add autohdr4.test.
1631         * tests/config.test: Do not grep, run things to see if they work.
1633 2003-10-25  Alexandre Duret-Lutz  <adl@gnu.org>
1635         * tests/output7.test: Populate sub/ with a dummy file, so that it
1636         is not empty.  This fixes a failure reported by Patrick Welche.
1637         * lib/am/distdir.am: Add note about tar's `-o' option and empty
1638         directories.
1640 2003-10-24  Didier Cassirame  <faded@free.fr>  (tiny change)
1642         * lib/ylwrap: Typo in regex.
1644 2003-10-23  Paul Eggert  <eggert@twinsun.com>
1646         * lib/Automake/XFile.pm: Don't assume -j is solo.
1647         Issue a more-informative diagnostic.
1648         Problems reported by Eric Sunshine.
1650 2003-10-21  Alexandre Duret-Lutz  <adl@gnu.org>
1652         * m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
1653         Always define lispdir.
1654         * lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
1655         $(EMACS) to decide whether _LISP files must be installed,
1656         not $(lispdir).
1657         * doc/automake.texi (Emacs Lisp): Mention the two ways to install
1658         non byte-compiled Emacs lisp files.
1659         * tests/lisp4.test, tests/lisp5.test: Check "make install"
1660         when EMACS=no.
1661         Suggested by Simon Josefsson.
1663         * NEWS: Clarify the entry about multiple conditional definitions
1664         of _PROGRAMS, _LDADD, and _LIBADD.
1665         Report from Simon Josefsson.
1667         * lib/am/install.am (install-strip): Override install_sh_PROGRAM
1668         too.
1669         Report from Elmar Hoffmann.
1671 2003-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
1673         * aclocal.in ("MAIN", usage, parse_arguments): Move near
1674         the end, so "MAIN" can use prototypes.
1675         (scan_configure): Move later too, for the sake of prototypes.
1676         (scan_configure_dep): Fix setting of $scanned_configure_dep.
1677         (trace_used_macros): Do not take any argument.
1679 2003-10-06  Alexandre Duret-Lutz  <adl@gnu.org>
1681         * tests/stdlib2.test: Check AM_LDFLAGS alone.
1683         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
1684         versions.
1686         * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
1687         * tests/stdlib2.test: New file.
1688         * tests/Makefile.am (TESTS): Add stdlib2.test.
1689         Report from Kevin P. Fleming.
1691 2003-10-03  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
1693         * tests/defs.in: For required=runtest, check that we are using
1694         a DejaGnu that supports specifying the program on the command-line.
1696 2003-10-03  Alexandre Duret-Lutz  <adl@gnu.org>
1698         For Debian Bug #213524:
1699         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
1700         stderr and stdout, and grep only the first line while testing
1701         install-info --version's output.  This revert part of the change
1702         from 2001-05-18.
1704 2003-10-01  Akim Demaille  <akim@epita.fr>
1706         * m4/amversion.in: Add (C) to the Copyright notice.
1708 2003-10-01  Paul Eggert  <eggert@twinsun.com>
1710         * lib/Automake/XFile.pm: Use Errno.
1711         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
1712         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
1714 2003-09-30  Tom Tromey  <tromey@redhat.com>
1716         * lib/Automake/Options.pm (_process_option_list): Recognize
1717         no-dist.
1718         * NEWS: Update.
1719         * doc/automake.texi (Options): Document no-dist.
1720         * automake.in (check_cygnus): Set no-dist option.
1721         (handle_dist): Recognize no-dist.
1722         * tests/nodist3.test: New file.
1723         * tests/Makefile.am (TESTS): Added nodist3.test.
1725 2003-09-29  Alexandre Duret-Lutz  <adl@gnu.org>
1727         * automake.in (handle_clean): Take $makefile as argument, and
1728         define %MAKEFILE% while processing clean.am.
1729         (generate_makefile): Pass $makefile to handle_clean.
1730         * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
1731         not Makefile.
1732         * tests/gnumake.test: New file.
1733         * tests/Makefile.am (TESTS): Add gnumake.test.
1734         Report from Braden N. McDaniel.
1736 2003-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
1738         * doc/automake.texi (Scripts): Update the example about automake.
1739         Mention `dist_' for distributed scripts.
1741         * lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
1742         Suggested by Eric Sunshine.
1744 2003-09-25  Alexandre Duret-Lutz  <adl@gnu.org>
1746         * README: More mailing lists.
1748         * NEWS: Mention the switch to GNU FDL for the manual.
1750 2003-09-24  Alexandre Duret-Lutz  <adl@gnu.org>
1752         * lib/install-sh (src, dst): Protect names starting with `-',
1753         as in mkinstalldirs.
1755         * configure.in: Rename as ...
1756         * configure.ac: ... this.
1757         * README: s/configure.in/configure.ac/.
1759         * doc/fdl.texi: New file.
1760         * doc/Makefile.am (automake_TEXINFOS): New variable.
1761         * doc/automake.texi (Copying This Manual): New appendix, include
1762         fdl.texi.
1763         (Macro and Variable Index, General Index): Move as subsections of ...
1764         (Indices): This new appendix.
1766         * doc/automake.texi: Refer to configure.ac instead of configure.in.
1768         * automake.texi: Move ...
1769         * doc/automake.texi: ... here.
1770         * doc/Makefile.am: New file.
1771         * configure.in: Output doc/Makefile.
1772         * Makefile.am (SUBDIRS): Add doc.
1773         (ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.
1775 2003-09-23  Alexandre Duret-Lutz  <adl@gnu.org>
1777         * aclocal.in (write_aclocal): Consider files with relative
1778         paths as local to the project, i.e., subject to m4_include.
1779         * tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
1780         is also used for .m4 files in the outer project.
1782         Support for multiple inputs in AC_CONFIG_FILES.
1783         Requested long ago by Harlan Stenn.
1784         * automake.in (handle_dist): Remove unused argument $makefile.
1785         (handle_subdirs): Expect SUBDIRS elements in $relative_dir,
1786         not $am_relative_dir.
1787         (rewrite_inputs_into_dependencies): Allow $add_srcdir to
1788         be a filename that must always be prefixed by $(srcdir) or
1789         $(top_srcdir).
1790         (handle_configure, generate_makefile): Revamp to make the
1791         Makefile.am, Makefile.in, Makefile more independent.
1792         (locate_am): New function.
1793         (scan_configure_dep, parse_arguments): Use locate_am.
1794         (MAIN): Adjust call to generate_makefile.
1795         * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
1796         of %MAKEFILE%.  %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
1797         * tests/output6.test, tests/output7.test: New files.
1798         * tests/Makefile.am (TESTS): Add them.
1799         * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
1800         multiple inputs are scanned.
1802 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
1804         * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
1805         and lib/Automake/Struct.pm from Autoconf.
1806         * lib/Automake/XFile.pm: Update comment, Automake is now
1807         the master for this file.  Cosmetic changes.
1809 2003-09-09  Akim Demaille  <akim@epita.fr>
1811         * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
1812         Reported by Gary Vaughan.
1813         (&find_file): Walk the @include in forward order.
1815 2003-09-09  Akim Demaille  <akim@epita.fr>
1817         * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
1818         trailing files.
1820 2003-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
1822         Changes to m4_included files should also cause aclocal.m4 to change.
1823         * aclocal.in (m4_include_rx): New variable.
1824         (scan_configure_dep): New function.
1825         (scan_configure, add_file): Simplify using scan_configure_dep.
1826         * tests/Makefile.am (TESTS): Add acloca13.test.
1827         * tests/aclocal13.test: New file.
1829         * tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
1830         that we have fake version in the $PATH.
1832         * aclocal.in (add_file): Remove useless filling of $output, probably
1833         left a after CVS conflict.  This code is now in write_aclocal.
1835         * aclocal.in (configure_ac): Do not call require_configure_ac
1836         before parsing the options.
1837         * automake.in (configure_ac): Likewise.
1838         * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
1839         find it.
1840         * lib/Automake/Configure_ac.pm (require_configure_ac):
1841         find_configure_ac never return an undefined value, so test
1842         the file's existence instead.
1843         * tests/Makefile.am (TESTS): Add help.test.
1844         * tests/help.test: New file.
1846 2003-09-06  Alexandre Duret-Lutz  <adl@gnu.org>
1848         * lib/Automake/XFile.pm: Update to use ChannelDefs.
1849         (close): Call Automake::FileUtils::handle_exec_errors on errors.
1850         * automake.in (scan_autoconf_files): Exit with $?=63 on version
1851         mismatch.
1852         (scan_autoconf_traces): Likewise.  Close the autoconf pipe to
1853         capture abnormal exits.
1854         * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
1855         instead.
1856         (trace_used_macros): Close the autom4te pipe to capture abnormal exits.
1857         * lib/missing: When a tool has run and exited with $?=63, emulate
1858         it.  Adjust the diagnostic and pretend the tool is tool old in this
1859         case.  Use an emacs-updated "scriptversion" variable.
1860         * configure.in: Output tests/aclocal-${APIVERSION} and
1861         tests/automake-${APIVERSION}.
1862         * tests/aclocal.in, tests/automake.in,
1863         tests/missing.test, tests/missing2.test: New files.
1864         * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
1865         to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
1866         * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
1867         already testing for this.
1868         * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
1869         configure.in so that aclocal works.
1870         * tests/defun.test: Quote the AC_DEFUN body.
1871         * tests/Makefile.am (TESTS): Add missing.test and missing2.test,
1872         and remove dup3.test.
1873         (check_SCRIPTS): Add aclocal and automake.
1875         * tests/unused.test: Quote AC_DEFUN arguments.
1877 2003-09-05  Paul Eggert  <eggert@twinsun.com>
1879         * NEWS, aclocal.in, automake.in, automake.texi, lib/ansi2knr.c,
1880         lib/depcomp, lib/missing, lib/py-compile,
1881         lib/Automake/Channels.pm, lib/Automake/Rule.pm,
1882         lib/Automake/Variable.pm, lib/Automake/tests/Condition.pl,
1883         lib/am/dejagnu.am, lib/am/depend.am, lib/am/lisp.am,
1884         lib/am/remake-hdr.am, lib/am/texi-vers.am, m4/obsolete.m4,
1885         m4/python.m4, tests/backsl4.test, tests/defs.in,
1886         tests/dejagnu7.test, tests/depacl2.test, tests/dirlist.test,
1887         tests/error.test, tests/getopt.test, tests/gnuwarn.test,
1888         tests/include2.test, tests/libobj10.test, tests/libtool5.test,
1889         tests/libtool6.test, tests/lisp3.test, tests/phony.test,
1890         tests/pr220.test, tests/subcond2.test, tests/subcond3.test,
1891         tests/vtexi.test:
1892         Spelling and minor grammar fixes.
1894 2003-09-01  Alexandre Duret-Lutz  <adl@gnu.org>
1896         * lib/config.sub, lib/config.guess, lib/texinfo.tex,
1897         lib/config-ml.in, lib/symlink-tree: New upstream versions.
1899 2003-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
1901         * tests/yacc7.test: Require bison.
1903 2003-08-31  Alexandre Duret-Lutz  <adl@gnu.org>
1905         * aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
1906         ($underquoted_manual_once): New variable.
1907         * automake.texi (Extending aclocal): Document this.
1909 2003-08-29  Alexandre Duret-Lutz  <adl@gnu.org>
1911         * aclocal.in (@file_order): New variable, to make sure
1912         files are output in the opposite order of the -I arguments.
1913         (scan_file): Fill it.
1914         (trace_used_macros, write_aclocal): Use it.
1915         (scan_m4_files): Reverse the directory contents, so that
1916         macros from the lexicographically greatest files are preferred.
1917         * tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
1918         New files.
1919         * tests/Makefile.am (TESTS): Add them.
1921 2003-08-24  Alexandre Duret-Lutz  <adl@gnu.org>
1923         For Debian Bug #206299:
1924         * automake.in ($configure_deps_greatest_timestamp,
1925         $output_deps_greatest_timestamp): New variables.
1926         (initialize_per_input): Reset $output_deps_greatest_timestamp.
1927         (scan_autoconf_traces, scan_autoconf_files, read_am_file):
1928         Update $configure_deps_greatest_timestamp and
1929         $output_deps_greatest_timestamp
1930         (generate_makefile): Rewrite the logic to decide whether
1931         to rewrite the output.  Move the leading dup_channel_setup
1932         and trailing drop_channel_setup to MAIN, so that
1933         drop_channel_setup is executed for all exit paths.
1934         * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
1935         * tests/distcom6.test: New file.  Report from Scott James Remnant.
1936         * tests/Makefile.am (TESTS): Add distcom6.test.
1938         * configure.in: Require Autoconf 2.57b to be sure
1939         aclocal can use autom4te --language Autoconf-without-aclocal-m4.
1940         * m4/init.m4: Likewise.  Move the AC_PREREQ and m4_pattern_allow
1941         calls inside the AM_INIT_AUTOMAKE macro.
1942         * m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
1943         AC_PREREQ calls inside the macros.
1944         * m4/header.m4: Remove AC_PREREQ.
1946         * automake.in (file_contents_internal): Do not add newlines before
1947         empty actions.
1949         * aclocal.in (write_aclocal): Take an output file and list of
1950         used macros in arguments and make up the file contents here.
1951         (trace_used_macros): New function.
1952         (add_file): Do not update $output.
1953         ($output): Delete.
1954         (MAIN): Call trace_used_macros.  Then rewrite aclocal.m4 only
1955         for these traced macros.  This should shorten aclocal.m4 by
1956         stripping out unused macros.
1957         * automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
1958         * tests/aclibobj.test: Make sure configure.in exists by the time
1959         aclocal runs.
1960         * tests/aclocal8.test: New file.
1961         * tests/Makefile.am (TESTS): Add aclocal8.test.
1962         Suggested by Bruno Haible and Akim Demaille.
1964 2003-08-21  Akim Demaille  <akim@epita.fr>
1966         * lib/Automake/Configure_ac.pm (&find_configure_ac)
1967         (&require_configure_ac): Accept an optional directory argument.
1968         ($configure_ac): Remove.
1969         * aclocal.in, automake.in ($configure_ac): New.
1970         * lib/Automake/Variable.pm: Don't use $configure_ac, just
1971         configure.ac.
1973 2003-08-20  Akim Demaille  <akim@epita.fr>
1975         * lib/Automake/FileUtils.pm: More perldoc.
1976         (&up_to_date_p): New.
1978 2003-08-17  Alexandre Duret-Lutz  <adl@gnu.org>
1980         Fix for PR automake/398:
1981         * m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
1982         set.  Display `none' instead of `:' and $PYTHON is set to `:'
1983         when no suitable interpreter is found.  Honor ACTION-IF-FOUND and
1984         ACTION-IF-NOT-FOUND.
1985         * automake.texi (Python): Document ACTION-IF-FOUND and
1986         ACTION-IF-NOT-FOUND.
1987         * tests/python4.test, tests/python5.test, tests/python6.test,
1988         tests/python7.test, tests/python8.test, tests/python9.test: New
1989         files.
1990         * tests/Makefile.am (TESTS): Add them.
1991         Report from Per Cederqvist.
1993 2003-08-13  Alexandre Duret-Lutz  <adl@gnu.org>
1995         Fix for PR automake/399:
1996         * m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
1997         Report from Per Cederqvist.
1999 2003-08-12  Raja R Harinath  <harinath@acm.org>
2001         * lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
2002         (not): Replace loop with 'map'.
2003         * lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
2004         * lib/Automake/Item.pm (not_alwasy_defined_in_cond):
2005         Don't 'simplify' result of 'invert', since it's already in
2006         canonical form.
2007         * lib/Automake/Rule.pm (define): Replace loop with
2008         'not_always_defined_in_cond'.
2010         * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
2011         * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
2012         (define): Reword comment slightly.
2013         * Variable.pm (_var_order, msg_cond_var): Typo in comment.
2014         * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
2015         spurious automake error exit.
2017 2003-08-12  Alexandre Duret-Lutz  <adl@gnu.org>
2019         * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
2020         * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
2021         * lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
2022         * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
2023         (new): Adjust to call Automake::ItemDef::new.
2024         (comment, location, owner): Delete.  Now inherited from ItemDef.
2025         * lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
2026         (_new): Adjust to call Automake::Item::new.
2027         (name, def, rdef, _set, conditions, not_always_defined_in_cond):
2028         Delete.  How inherited from Item, where `_set' is called `set'.
2029         * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
2030         (suffix_rules_default): Delete.  Now
2031         Automake::Rule::_suffix_rules_default
2032         (suffixes): Delete.  Now Automake::Rule::suffixes.
2033         (TARGET_AUTOMAKE, TARGET_USER): Delete.  Now
2034         Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
2035         (%targets, %target_source, %target_name, %target_owner): Delete,
2036         replaced by the Rule and RuleDef classes.
2037         (dependencies, depend, actions): Delete.  Now in Automake::Rule.
2038         (suffix_rules, register_suffix_rule): Likewise.
2039         (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
2040         (known_extensions_list): Delete.  Now
2041         Automake::Rule::_known_extensions_list.
2042         (target_conditions): Delete.  Now inherited by Automake::Rule
2043         from Automake::Item::conditions.
2044         (rule_define): Delete.  Now Automake::Rule::define.  Adjust all
2045         callers.
2046         (target_defined): Delete.  Now Automake::Rule::rule.  Adjust all
2047         callers.
2048         (initialize_per_input): Adjust to call Automake::Rule::reset.
2049         (err_target, err_cond_target, msg_cond_target, msg_target,
2050         reject_target): Delete.  Now defined in Automake::Rule as
2051         err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
2052         Adjust all callers.
2053         (handle_languages): Call suffix_rules_count.
2054         * tests/location.test: Adjust expected diagnostics.  We now display
2055         $(EXEEXT) accurately.
2057 2003-08-10  Alexandre Duret-Lutz  <adl@gnu.org>
2059         Revert the fix for PR automake/291:
2060         * lib/Automake/Variable.pm (define): Do not warn about variables
2061         starting with `_' which are an issue on NEWS-OS 4.2R.  According
2062         to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
2063         was released on 1996 and is not in wide use.  On the other hand,
2064         variables starting with `_' are mandatory in several situations,
2065         so diagnosing them is more annoying than useful.
2066         * tests/canon5.test: Do not use -Wno-portability.
2067         * tests/vars2.test: Delete.
2068         * tests/Makefile.am (TESTS): Remove vars2.test.
2069         Suggested by Jim Meyering.
2071 2003-08-09  Raja R Harinath  <harinath@acm.org>
2073         * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
2074         * lib/Automake/tests/DisjConditions.pl (test_ambig): Test
2075         Automake::Disjunctions::ambiguous_p.
2077 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
2079         * lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
2080         * lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
2081         * automake.in (rule_define): Adjust usage.
2082         * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
2084         * lib/Automake/Options.pm: New file.
2085         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
2086         * automake.in (FOREIGN, GNU, GNITS, $default_strictness)
2087         ($default_strictness_name, $strictness, $strictness_name)
2088         (%options, %global_options, process_option_list)
2089         (set_strictness): Remove, now in Options.pm.
2090         (initialize_per_input): Call Automake::Options::reset.
2091         (handle_options, get_object_extension, get_object_extension)
2092         (handle_languages, handle_single_transform_list, handle_compile)
2093         (handle_texinfo_helper, handle_man_pages, handle_dist)
2094         (handle_configure, do_check_merge_target)
2095         (handle_factored_dependencies, handle_tests)
2096         (handle_minor_options, scan_autoconf_traces, check_cygnus)
2097         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
2098         (make_paragraphs, am_install_var, parse_arguments): Adjust
2099         to set and read options via the new interface.
2101 2003-08-07  Raja R Harinath  <harinath@acm.org>
2103         * Makefile.am (maintainer-check): Update perllibdir.
2104         * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
2105         (EXTRA_DIST): Add Config.in.
2106         * Makefile.in, lib/Automake/Makefile.in: Regenerate.
2107         * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
2108         $perllibdir.
2110 2003-08-06  Raja R Harinath  <harinath@acm.org>
2112         * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
2113         from the builddir too, to pick up Automake::Config.
2114         * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
2115         * configure: Regenerate.
2116         * automake.in (BEGIN): Handle multiple directories in $perllibdir.
2117         * aclocal.in (BEGIN): Likewise.
2119 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
2121         * tests/ltcond.test: Thinko.
2123 2003-08-06  Alexandre Duret-Lutz  <adl@gnu.org>
2125         * lib/Automake/Config.in: New file.
2126         * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
2127         CLEANFILES): New variables.
2128         (Config.pm): New rule.
2129         * Makefile.am (maintainer-check): Adjust expected differences
2130         between automake.in and automake.
2131         * aclocal.in, automake.in: Use Automake::Config.
2133 2003-08-05  Alexandre Duret-Lutz  <adl@gnu.org>
2135         * tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
2137         * automake.in (handle_texinfo_helper): Use the user definition
2138         of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
2139         * tests/txinfo22.test: New file.
2140         * tests/Makefile.am (TESTS): Add txinfo22.test.
2141         Report from Tom Tromey.
2143 2003-08-03  Raja R Harinath  <harinath@acm.org>
2145         * lib/Automake/Variable.pm (@EXPORT): Remove
2146         traverse_variable_recursively and
2147         require_variables_for_variable.
2148         (require_variables_for_variable, traverse_variable_recursively)
2149         (_traverse_variable_recursively_worker): Convert to
2150         Automake::Variable methods, remove support for being
2151         invoked with variable names, and rename to ...
2152         (requires_variables, traverse_recursively)
2153         (_do_recursive_traversal): ... these.
2154         (_value_as_list_recursive_worker, transform_variable_recursively):
2155         Update to reflect changes.
2156         * automake.in (handle_LIBOBJS, handle_ALLOCA)
2157         (handle_libraries, handle_ltlibraries, am_primary_prefixes):
2158         Likewise.
2159         (define_objects_from_sources): Fix typo in comment.
2161 2003-08-02  Raja R Harinath  <harinath@acm.org>
2163         * automake.in (handle_source_transform): Replace 'grep' with 'map'.
2164         (register_language): Replace 'grep' with 'foreach' modifier.
2166 2003-08-01  Raja R Harinath  <harinath@acm.org>
2168         * lib/Automake/Variables.pm (variables): Return a list of
2169         Automake::Variable instances, not a list of strings.
2170         (dump): Remove support for being invoked with a string.
2171         (variables_dump): Adapt to these changes.
2172         * automake.in (check_typos): Likewise.
2173         (am_primary_prefixes): Likewise.
2175 2003-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
2177         * lib/depcomp (aix): Support AIX Compiler version 6.
2179 2003-07-31  Alexandre Duret-Lutz  <adl@gnu.org>
2181         * automake.texi (A Shared Library): Rewrite and split into
2182         subsections.  Valuable comments from Norman Gray, Harlan Stenn,
2183         Tim Van Holder, and Guido Draheim.
2184         * tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
2185         * tests/Makefile.am (TESTS): Add them.
2187 2003-07-30  Alexandre Duret-Lutz  <adl@gnu.org>
2189         * automake.in (handle_single_transform_list): Complain about
2190         foo.$(OBJEXT) being created both with libtool and without, not
2191         about foo.lo.
2192         Report from Tim Van Holder.
2194 2003-07-29  Alexandre Duret-Lutz  <adl@gnu.org>
2196         * Makefile.am (FETCHFILES, fetch): Add config-ml.in and
2197         symlink-tree.
2198         * lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
2199         upstream versions.
2201 2003-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
2203         * automake.in (handle_configure): Cosmetic change to avoid
2204         a maintainer-check complaint.
2206 2003-07-27  Alexandre Duret-Lutz  <adl@gnu.org>
2208         * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
2209         (variable_dump): Replace by ...
2210         (dump): ... this method.
2211         (rdef, _check_ambiguous_condition): Adjust to use ->dump.
2212         (define, variables_dump): Adjust to use Automake::Variable::dump
2214         * lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
2215         * automake.texi (Built sources example): Adjust example.
2217 2003-07-26  Alexandre Duret-Lutz  <adl@gnu.org>
2219         * automake.in (get_object_extension, handle_languages)
2220         (handle_single_transform_list, handle_compile, handle_compile)
2221         (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
2222         (handle_tests, handle_minor_options, check_gnu_standards)
2223         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
2224         Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
2226         Complete changes from 2003-07-08.
2227         * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
2228         replaced by $options{'no-dependencies'}.
2229         ($global_options): Remove.
2230         (%global_options): New variable.
2231         (initialize_per_input): Empty %options.
2232         (process_option_list): Take a location and %options ref argument,
2233         process no-dependencies as other options.
2234         (handle_options): Do not reparse the global options, just initialize
2235         %options from %global_options and fill it with local options.
2236         (handle_languages, handle_single_transform_list)
2237         (handle_configure, check_cygnus): Adjust usage of
2238         $options{'no-dependencies'}.
2239         (make_paragraphs): Adjust usage of $options{'cygnus'}.
2240         (parse_arguments): Set cygnus and no-dependencies in %global_options.
2241         (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
2242         to fill %global_options.
2244 2003-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
2246         * tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
2247         avoid the use of tar.
2249 2003-07-24  Alexandre Duret-Lutz  <adl@gnu.org>
2251         * tests/gnuwarn2.test: Typo.
2253         * tests/insthook.test: Use $MAKE, not make.
2255         Fix missing rebuilds during `make dist' with BSD make.
2256         * automake.in (generate_makefile): Do not push Makefile.in, and
2257         Makefile.am into DIST_COMMON here.
2258         * lib/am/configure.am (DIST_COMMON): Do it here, and use
2259         %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
2260         actually match the targets.   Prefix `configure' with `$(srcdir)/'
2261         to match the target.
2262         * tests/remake4.test: New file.
2263         * tests/Makefile.am (TESTS): Add remake4.test.
2264         Report from Akim Demaille.
2266 2003-07-23  Alexandre Duret-Lutz  <adl@gnu.org>
2268         * automake.in (handle_multilib): Register all-multi.
2269         (file_contents_internal): Insert \n when concatenating actions
2270         from "factored" rules.
2271         * lib/config-ml.in: New file, from GCC, including a patch
2272         from Ralf Corsepius (see GCC's PR 11526).
2273         * lib/symlink-tree.in: New file, from GCC.
2274         * lib/Makefile.am (dist_script_DATA): Add config-ml.in and
2275         symlink-tree.
2276         * lib/am/clean.am (distclean-generic): Do not delete Makefile here...
2277         (distclean, maintainer-clean): ... do it here.
2278         * lib/am/depend.am (distclean-depend): Likewise, replace by
2279         (distclean, maintainer-clean): ... these.
2280         * lib/am/multilib.am (all-recursive, install-recursive,
2281         mostlyclean-recursive, clean-recursive, distclean-recursive,
2282         maintainer-clean-recursive): Remove these rules.
2283         (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
2284         by ...
2285         (mostlyclean, clean, distclean, maintainer-clean): ... these.
2286         (all-am): Remove, done in handle_multilib.
2287         (install-am): Replace by ...
2288         (install-exec-am): ... this.
2289         * tests/Makefile.am (TESTS): Add multlib.test.
2290         * tests/multlib.test: New file, based on a test case by
2291         Ralf Corsepius
2293 2003-07-23  Tom Tromey  <tromey@redhat.com>
2295         * lib/missing (autom4te): Typo.
2297 2003-07-16  Derek Price  <derek@ximbiot.com>
2299         * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
2300         (handle_configure): Handle adding AC_CONFIG_LINKS arguments to
2301         distclean targets (CONFIG_CLEAN_FILES makefile var).
2302         * NEWS: Note new handling of AC_CONFIG_LINKS.
2303         * automake.texi (Other things Automake recognizes): Ditto.
2304         * tests/Makefile.am (TESTS): Add new tests.
2305         * tests/conflnk.test: New test that links are cleaned on distclean.
2306         * tests/conflnk2.test: New test that source files for links are
2307         distributed.
2309 2003-07-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>  (tiny change)
2311         * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to
2312         render $seen_multilib functional again.
2314 2003-07-10  Raja R Harinath  <harinath@cs.umn.edu>
2316         Avoid using refs as hash keys.
2317         * lib/Automake/Variable.pm ($_traversal): New.
2318         (reset): Reset $_traversal.
2319         (_new): New attribute 'scanned'.
2320         (%_vars_scanned): Remove.
2321         (traverse_variable_recursively)
2322         (traverse_variable_recursively_worker):
2323         Use $_traversal instead of %_vars_scanned to detect recursively
2324         defined variables.
2326         * lib/am/configure.am (am--refresh): Silence.
2328 2003-07-10  Alexandre Duret-Lutz  <adl@gnu.org>
2330         * lib/Automake/Variable.pm (define): Make clear the diagnostic
2331         about variable names starting with `_' is about *Make* variables.
2333         For Debian Bug #193907:
2334         * automake.texi (Clean): make maintainer-clean should still
2335         allow ./configure && make to run.
2337         * automake.texi (CVS): Typo.
2339 2003-07-09  Alexandre Duret-Lutz  <adl@gnu.org>
2341         * aclocal.in: Use Automake::FileUtils.
2342         (parse_arguments, scan_configure, scan_m4_files): Never call
2343         "die" to print an error message.  Use print and exit.
2344         * automake.in: Use Automake::FileUtils.
2345         * lib/Automake/General.pm ($debug, $help, $tmp, $verbose,
2346         $version, &debug, &getopt, &mktmpdir, &verbose): Remove.
2347         (END): Do not massage Perl's exit code.  Do not clean any temporary
2348         directory.
2349         (find_file, mtime, update_file, xsystem, contents): Move to ...
2350         * lib/Automake/FileUtils.pm: ... this new file.  Adjust to
2351         report errors using Channels.
2352         (handle_exec_errors, xqx): New functions, from Autoconf.
2353         * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
2355         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2356         Return the empty list on recursively defined variable.  This
2357         supersedes my change of 2003-07-02.
2359 2003-07-08  Akim Demaille  <akim@epita.fr>
2361         * automake.in ($cygnus_mode): Replace with $options{'cygnus'}.
2362         Adjust all dependencies.
2363         (&depend): Move next to %dependencies and prototype.
2364         (&initialize_per_input): Initialize the 'cygnus' field of
2365         '%options' to spare the code from 'exists' or 'defined' when
2366         testing it.
2367         (&handle_configure, &do_check_merge_target, &check_cygnus): Prototype.
2368         (&parse_arguments): Rename '%options' and '%options_1st_pass' as
2369         '%cli_options' and '%cli_options_1st_pass' to avoid clashes and
2370         inconsistencies.
2372 2003-07-07  Alexandre Duret-Lutz  <adl@gnu.org>
2374         * automake.in (generate_makefile): Move near the end of the
2375         file, after the definition of all called functions, so that
2376         prototypes can be enforced.
2378 2003-07-06  Akim Demaille  <akim@epita.fr>
2380         * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive,
2381         install-exec-recursive, install-data-recursive and
2382         uninstall-recursive addition to...
2383         * lib/am/texinfos.am: here.
2384         * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY
2385         declaration of RECURSIVE_TARGETS.
2387 2003-07-06  Akim Demaille  <akim@epita.fr>
2389         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm (VAR_SORTED):
2390         New variable type.
2391         Handle it.
2392         * automake.in (&handle_subdirs): Prototype.
2393         Adjust callers.
2394         Make RECURSIVE_TARGETS a VAR_SORTED.
2396 2003-07-06  Akim Demaille  <akim@epita.fr>
2398         * automake.in (&define_files_variable): New.
2399         (&handle_texinfo_helper): Move the handling of user variables from
2400         here, to...
2401         (&handle_texinfo): here.
2402         This is to balance the size of these functions, and to match the
2403         convention of other _helper functions.
2404         (&handle_texinfo_helper): Use &define_files_variable.
2405         Move some code to use less variables.
2406         Rename $info_cursor as $texi.
2407         (&handle_texinfo): Do not call handle_texinfo_helper if there are
2408         no TEXINFOS.
2409         * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps
2410         and html.
2411         Remove *-recursive targets from .PHONY, they are part of
2412         $(RECURSIVE_TARGETS) anyway.
2413         (install-info, mostlyclean-aminfo): Are .PHONY.
2415 2003-07-05  Akim Demaille  <akim@epita.fr>
2417         * lib/am/distdir.am: Use ';' as a terminator, not a separator, for
2418         sed complex commands, as required by NetBSD sed.
2419         Reported by Patrick Welche.
2421 2003-07-05  Alexandre Duret-Lutz  <adl@gnu.org>
2423         * lib/config.guess, lib/config.sub: New upstream version.
2425 2003-07-04  Alexandre Duret-Lutz  <adl@gnu.org>
2427         * automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
2428         are automatically distributed.
2430         * lib/depcomp (icc): Update to grok ICC 7.1's output.
2431         * m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
2432         in a subdirectory, and with many dependencies.  This
2433         catches more failures of depcomp.
2434         Reports from Ralf Wildenhues and Akim Demaille.
2436 2003-07-04  Akim Demaille  <akim@epita.fr>
2438         * automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
2439         (&handle_texinfo_helper, &handle_texinfo): Formatting changes.
2440         Prototype properly.
2441         Don't use & when calling functions.
2443 2003-07-03  Alexandre Duret-Lutz  <adl@gnu.org>
2445         * NEWS: Categorize entries.
2446         Suggested by Jim Meyering.
2448         * Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
2449         Ignore @...@ substitutions in comments.
2450         * tests/defs.in: Try to make the shell more POSIX compliant.
2451         (AUTOMAKE_run, AUTOMAKE_fails): New functions.
2452         * tests/README: Mention AUTOMAKE_fails.
2453         * tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
2454         * tests/asm.test, tests/backsl3.test, tests/backsl4.test,
2455         * tests/badline.test, tests/badopt.test, tests/canon.test,
2456         * tests/canon5.test, tests/colneq.test, tests/comment3.test,
2457         * tests/comment5.test, tests/cond2.test, tests/cond20.test,
2458         * tests/cond23.test, tests/cond24.test, tests/cond27.test,
2459         * tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
2460         * tests/dejagnu2.test, tests/dirforbid.test,
2461         * tests/distcom3.test, tests/else.test, tests/exdir2.test,
2462         * tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
2463         * tests/getopt.test, tests/gettext.test, tests/gettext2.test,
2464         * tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
2465         * tests/insh.test, tests/lex2.test, tests/libobj10.test,
2466         * tests/libobj12.test, tests/libobj13.test,
2467         * tests/libobj3.test, tests/library2.test,
2468         * tests/library3.test, tests/libtool4.test,
2469         * tests/libtool6.test, tests/lisp2.test, tests/location.test,
2470         * tests/nogzip2.test, tests/output5.test, tests/overrid.test,
2471         * tests/percent.test, tests/percent2.test,
2472         * tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
2473         * tests/pr211.test, tests/primary.test, tests/primary2.test,
2474         * tests/python2.test, tests/recurs.test, tests/reqd2.test,
2475         * tests/seenc.test, tests/specflg.test, tests/specflg2.test,
2476         * tests/spell.test, tests/spell2.test, tests/srcsub.test,
2477         * tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
2478         * tests/substtarg.test, tests/suffix11.test,
2479         * tests/symlink.test, tests/syntax.test,
2480         * tests/targetclash.test, tests/txinfo4.test,
2481         * tests/version3.test, tests/warnopts.test,
2482         * tests/xsource.test, tests/yacc2.test: Use set -e,
2483         AUTOMAKE_fails, and always grep error message.
2485         * automake.in (handle_ltlibraries): Fix call to msg.
2487         * tests/stamph.test: Delete.
2488         * tests/Makefile.am (TESTS): Remove stamph.test.
2490         * automake.in (handle_single_transform_list): Use $var->name
2491         to print variable in the configure-substitution diagnostic.
2492         Do not mention the parent when it is the variable itself.
2494         * tests/package.test: Delete.
2495         * tests/Makefile.am (TESTS): Remove package.test.
2497         * automake.in (cond_stack_else): Return FALSE if `if' was not
2498         used.
2499         (cond_stack_endif): Return TRUE if `if' was not used.  Do not
2500         display $negate and $cond, they are irrelevant and maybe undefined.
2502 2003-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
2504         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2505         Do not return undef when a variable is recursively defined, this
2506         causes warnings all over the place.  Return the empty string instead.
2508         * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
2509         from empty DIST_ARCHIVES.
2511 2003-07-01  Alexandre Duret-Lutz  <adl@gnu.org>
2513         * automake.in (scan_autoconf_traces): Check the expected
2514         number of arguments of each traced macro.
2515         * tests/overrid.test: Fix call to AM_CONDITIONAL.
2516         * tests/conff2.test: New files.
2517         * tests/Makefile.am (TESTS): Add conff2.test.
2518         Report from Paolo Bonzini.
2520 2003-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2522         * automake.in ($SUBST_REF_PATTERN): Do not define.
2523         (%gen_varname): Move to Variable.pm, as %_gen_varname.
2524         (initialize_per_input): Do not clean %gen_varname.
2525         (handle_options, check_libobjs_sources, handle_source_transform,
2526         handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
2527         handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
2528         am_install_var): Adjust to use value_as_list_recursive,
2529         loc_and_value_as_list_recursive, and has_conditional_contents.
2530         (require_file_with_macro): Accept an Automake::Variable as argument.
2531         (traverse_variable_recursively,
2532         traverse_variable_recursively_worker, gen_varname,
2533         transform_variable_recursively): Move ...
2534         * lib/Automake/Variable.pm (traverse_variable_recursively,
2535         _traverse_variable_recursively_worker,
2536         _gen_varname, transform_variable_recursively): ... here.
2537         * automake.in (variable_conditionally_defined,
2538         variable_value_as_list_recursive_worker,
2539         variable_value_as_list_recursive
2540         variable_loc_and_value_as_list_recursive): Move ...
2541         * lib/Automake/Variable.pm (has_conditional_contents,
2542         _value_as_list_recursive_worker,
2543         value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
2544         (reset): Reset %_gen_varname.
2545         (require_variables_for_variable): Accept an Automake::Variable
2546         as argument.
2548 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2550         * tests/aclocal6.test: Test maintainer-clean in VPATH
2551         builds. (For Ralf's fix.)
2553 2003-06-27  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>  (tiny change)
2555         * lib/am/configure.am (maintainer-clean): Remove
2556         $(top_srcdir)/autom4te.cache, not autom4te.cache.
2558 2003-06-27  Akim Demaille  <akim@epita.fr>
2560         * automake.texi: Use @node with a single argument.
2562 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2564         * m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
2566         * lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
2567         at the end of distcheck.  This was mistakenly removed on
2568         2003-06-15.
2569         * tests/subpkg.test: Make sure distcheck cleans up after itself.
2571         * m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
2572         ($(top_srcdir)/m4/amversion.m4): ... this.
2573         (DISTCLEANFILES): Remove.
2574         (nodist_m4data_DATA): Remove. amversion.m4 is automatically
2575         distributed.
2576         (EXTRA_DIST): Add amversion.in.
2578 2003-06-25  Akim Demaille  <akim@epita.fr>
2580         * automake.texi (Top): Use @copying and @insertcopying.
2581         Make Alexandre an author.
2582         * automake.in ($gen_copyright): Add the "(C)" to Copyright.
2583         * lib/depcomp: Likewise.
2585 2003-06-23  Alexandre Duret-Lutz  <adl@gnu.org>
2587         * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
2588         (variable_defined, examine_variable): Remove.
2589         (%_ac_macro_for_var): Add an entry for ALLOCA.
2590         (require_variables): Use vardef instead of variable_defined.
2591         Do not use _cvar.
2592         * automake.in (generate_makefile): Do not push $(SOURCE) into
2593         @sources.  Use define_pretty_variable to define SOURCES.
2594         (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
2595         to require LIBOBJS, LTLIBOBJS and ALLOCA.
2596         (handle_programs, handle_ltlibraries): Do not define an empty
2597         _DEPENDENCIES or _LDFLAGS variable when none is defined.
2598         (define_configure_variable): Do not check whether the variable
2599         already exists (it's Automake::Variable::define's job).
2600         (require_build_directory): Likewise, do not check
2601         the existence of am__dirstamp.
2602         (generate_makefile, handle_options, handle_languages)
2603         (check_libobjs_sources, handle_single_transform_list)
2604         (traverse_variable_recursively_worker, handle_source_transform)
2605         (handle_lib_objects, handle_LIBOBJS, handle_compile)
2606         (handle_libtool, handle_programs, handle_libraries)
2607         (handle_ltlibraries, check_typos, handle_texinfo_helper)
2608         (handle_man_pages, handle_tags, handle_dist, handle_subdirs)
2609         (scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
2610         (handle_all, do_check_merge_target, handle_clean, lang_c_finish)
2611         (handle_tests, lang_yacc_target_hook, define_pretty_variable)
2612         (define_compiler_variable, define_linker_variable)
2613         (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
2614         call var, vardef, or set_seen, instead of variable_defined.  Use
2615         set_seen only for variables which are actually checked by
2616         check_typos.
2617         * tests/target.test: Delete.
2618         * tests/alloca.test, tests/alloca2.test: New files.
2619         * tests/libobj3.test: Check error message.
2620         * tests/distcom4.test: Make sure configure is in DIST_COMMON.
2621         This replace confdist.test.
2622         * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
2623         (TESTS): Add alloca.test and alloca2.test.  Remove confdist.test.
2625 2003-06-20  Alexandre Duret-Lutz  <adl@gnu.org>
2627         * automake.in (handle_dist): Delete DIST_COMMON before redefining
2628         it.  Bug report from Akim Demaille.
2629         (rewrite_inputs_into_dependencies): Make sure we always return
2630         something, even when $add_srcdir is 0.
2631         * tests/distcom4.test, tests/distcom5.test: New files.
2632         * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
2634         * tests/cond29.test: Also check for _SOURCES.
2635         Report from Paolo Bonzini.
2637 2003-06-20  Akim Demaille  <akim@epita.fr>
2639         * lib/am/configure.am: Replace leading spaces with a real tab.
2641 2003-06-15  Alexandre Duret-Lutz  <adl@gnu.org>
2643         * tests/nogzip.test, tests/nogzip2.test: New files.
2644         * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
2646 2003-06-15  Akim Demaille  <akim@epita.fr>
2648         * automake.in (&make_paragraphs): Define %GZIP%.
2649         (&process_option_list): Accept no-dist-gzip2.
2650         (&handle_dist): Complain when no archive format is enabled.
2651         * lib/am/distdir.am (DIST_ARCHIVES): New variable.
2652         (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
2653         conditioned.
2654         (dist): Build $(distdir).tar.gz conditionally.
2655         (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
2656         to list built archives.  Run $(MAKE) dist instead of dist-gzip.
2657         * automake.texi (Options, The types of distributions): Adjust.
2659 2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)
2661         * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
2662         POSIXLY_CORRECT=1.
2664 2003-06-14  Karl Berry  <karl@gnu.org>
2665             Alexandre Duret-Lutz  <adl@gnu.org>
2667         * mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
2668         to update it each time the file is written, as in install-sh.
2669         (usage): Improve message.
2670         (--version): New option.
2671         (--help): Output to stdout, not stderr.
2673 2003-06-13  Paul Eggert  <eggert@twinsun.com>
2675         * lib/install-sh (dsttmp, rmtmp): Do not use '#' in file names;
2676         it's not guaranteed by POSIX and it doesn't work on OpenVMS.
2677         Bug reported by Bernard Giroud in:
2678         http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
2680 2003-06-05  Alexandre Duret-Lutz  <adl@gnu.org>
2682         * automake.in (check_gnu_standards): Use no-installman and
2683         no-installinfo's locations.
2684         (process_option_list): Fill %options with locations.
2685         (check_cygnus) Fill $options{'no-installinfo'} and
2686         $options{'no-dependencies'} with $cygnus_mode, so that it
2687         remains a Location.
2688         * tests/gnuwarn2.test: New file.
2689         * tests/Makefile.am (TESTS): Add gnuwarn2.test.
2691 2003-06-04  Alexandre Duret-Lutz  <adl@gnu.org>
2693         * automake.in (process_option_list): Record the location
2694         of ansi2knr's definition.
2695         (handle_compile): Use it.
2696         * tests/ansi3.test: Make sure the location appears correctly.
2697         Update to use set -e.
2698         * tests/ansi3b.test: New file.
2699         * tests/Makefile.am (TESTS): Add ansi3b.test.
2701         * tests/alpha.test: Really run $MAKE.  Augment to test
2702         subdirectories, and check-news report.
2703         * tests/alpha2.test: New file.  Bug report from Akim Demaille.
2704         * tests/gnits2.test: Make sure README-alpha is not distributed.
2705         * tests/Makefile.am (TESTS): Add alpha2.test.
2706         * automake.in (handle_minor_options): Distribute README-alpha
2707         using push_dist_common, not require_file_with_macro.
2709 2003-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
2711         * lib/Automake/Configure_ac.pm
2712         (search_configure_ac, find_configure_ac): Rename as ...
2713         (find_configure_ac, require_configure_ac): ... these.
2714         * aclocal.in (scan_configure): Adjust call to require_configure_ac.
2715         * automake.in (scan_autoconf_files): Likewise.
2716         Suggested by Tim Van Holder.
2718         * alocal.in: Use Automake::Configure_ac.
2719         ($configure_ac): Delete.
2720         (scan_configure): Adjust use of find_configure_ac;
2721         * automake.in: Use Automake::Configure_ac.
2722         ($configure_ac): Delete.
2723         (scan_autoconf_files): Adjust use of find_configure_ac;
2724         * lib/Automake/Configure_ac.pm: New file.
2725         * lib/Automake/General.pm (find_configure_ac): Delete.  Now
2726         replaced by Automake::Configure_ac::search_configure_ac.
2727         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
2728         * lib/Automake/Variable.pm: Use Automake::Configure_ac.
2729         (require_variables): Adjust use of $configure_ac.
2731 2003-06-02  Akim Demaille  <akim@epita.fr>
2733         * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
2734         * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
2735         * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
2736         * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
2737         * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
2738         * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
2739         * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
2740         * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
2741         * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
2742         * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
2743         * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
2744         * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
2745         * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
2746         * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
2747         * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
2748         * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
2749         * m4/Makefile.am: White space changes and Copyright updates.
2751 2003-05-29  Alexandre Duret-Lutz  <adl@gnu.org>
2753         * lib/Automake/Variable.pm (check_defined_unconditionally): Add
2754         the $parent_cond argument.
2755         (output): Use $self->name in diagnostic not $self.
2756         (variable_value_as_list): Rename as ...
2757         (value_as_list): ... this.  Declare as a method.  Take a $parent_cond
2758         argument and pass it to check_defined_unconditionally.  Do not call
2759         variable_assert, now that this is a method.
2760         (variable_assert): Delete (unused).
2761         * automake.in (traverse_variable_recursively_worker): Adjust to
2762         use check_defined_unconditionally and value_as_list as a methods.
2764         * lib/Automake/Variable.pm (output): Declare as a method, since it
2765         is only used this way.
2766         (define): Fix documentation of $cond.
2767         Suggested by Raja R. Harinath.
2769 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
2771         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
2772         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
2773         and VarDef.pm.
2774         * automake.in: Use Automake::Variable and Automake::VarDef.
2775         (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
2776         (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
2777         (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
2778         (silent_variable_override): Delete.  Now
2779         Automake::Variable::_silent_variable_override.
2780         (var_value, var_location, var_comment, var_type, var_owner,
2781         var_pretty, content_seen): Delete.  This functionality is now
2782         offered by Automake::Variable and Automake::VarDef.
2783         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
2784         Delete.  Now defined in Automake::VarDef.
2785         (var_order): Delete.  Now Automake::Variable::_var_order.
2786         (appendvar): Delete.  Now Automake::Variable::_appendvar.
2787         (var_SUFFIX_trigger): Register using Automake::Variable::hook.
2788         (initialize_per_input): Call Automake::Variable::reset.
2789         (err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
2790         defined in Automake::Variable.
2791         (generate_makefile, process_option_list, handle_languages)
2792         (traverse_variable_recursively_worker)
2793         (transform_variable_recursively, handle_compile)
2794         (handle_libraries, handle_ltlibraries)
2795         (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
2796         Adjust to use Automake::Variable functions.
2797         (check_ambiguous_condition): Delete.  Now
2798         Automake::Variable::_check_ambiguous_condition.
2799         (condition_ambiguous_p): Delete.  Now
2800         Automake::Variable::condition_ambiguous_p.
2801         (variable_not_always_defined_in_cond): Delete.  Now
2802         Automake::Variable::not_always_defined_in_cond.
2803         (macro_define): Delete.  Now Automake::Variable::define.
2804         (macro_delete): Delete.  Now Automake::Variable::variable_delete.
2805         (macro_dump): Delete.  Now Automake::Variable::variable_dump.
2806         (macros_dump): Delete.  Now Automake::Variable::variables_dump.
2807         (variable_defined): Delete.  Now
2808         Automake::Variable::variable_defined, with the target check
2809         temporarily disabled.
2810         (variable_assert): Delete.  Now Automake::Variable::variable_assert.
2811         (examine_variable): Delete.  Now
2812         Automake::Variable::examine_variable.
2813         (variable_conditions): Delete.  Now Automake::Variable::conditions.
2814         (scan_variable_expansions): Delete.  Now
2815         Automake::Variable::scan_variable_expansions.
2816         (check_variable_expansions): Delete.  Now
2817         Automake::Variable::check_variable_expansions.
2818         (check_variable_defined_unconditionally): Delete.  Now
2819         Automake::Variable::check_defined_unconditionally.
2820         (variable_value): Delete.  Now Automake::Variable::variable_value.
2821         (variable_value_as_list): Delete.  Now
2822         Automake::Variable::variable_value_as_list.
2823         (variable_value_as_list_recursive_worker): Adjust to use
2824         Automake::Variable functions.
2825         (variable_output): Delete.  Now Automake::Variable::output.
2826         (define_pretty_variable, define_configure_variable, read_am_file)
2827         (define_standard_variables, read_main_am_file): Adjust to use
2828         Automake::Variable functions.
2829         (handle_variables): Delete.  Now Automake::Variable::output_variables.
2830         (file_contents_internal, am_primary_prefixes, am_install_var)
2831         (require_file_with_macro, require_conf_file_with_macro)
2832         (push_dist_common): : Adjust to use
2833         Automake::Variable functions.
2834         (require_variables): Delete.  Now
2835         Automake::Variable::require_variables.
2836         (require_variables_for_macro): Delete.  Now
2837         Automake::Variable::require_variables_for_variable.
2838         * tests/Makefile.am (XFAIL_TESTS): Add target.test.
2840 2003-05-25  Christian Cornelssen  <ccorn@cs.tu-berlin.de>  (tiny change)
2842         * tests/dejagnu7.test: Check if runtest supports --status.
2844 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
2846         * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
2847         is undefined.
2849         * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
2850         $self contains only one Condition.
2852         * automake.in: Use plain strict, including refs.
2853         (macro_define, handle_single_transform_list): Use \&{'name'} to
2854         build references to named subroutines.
2856 2003-05-22  Karl Berry  <karl@gnu.org>
2858         * automake.texi: Update @dircategory to match the Free Software
2859         Directory.  End directory entries with dots.
2861 2003-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
2863         * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
2865         * lib/elisp-comp: s/François/Franc,ois/.
2866         Suggested by Paul Eggert.
2868         * automake.in: Move the "main" code at the end.
2869         (parse_arguments): Move near the end.
2870         ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
2871         accept_extensions, var_SUFFIXES_trigger): Move these definitions
2872         before any call to register_language.
2873         (am_file): Move the definition with all other global variables,
2874         do not use local to define it.
2875         * Makefile.am (maintainer-check): Expect no `local' in Automake.
2877 2003-05-21  Alexandre Duret-Lutz  <adl@gnu.org>
2879         * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
2880         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
2881         * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
2882         * automake.in (handle_texinfo_helper, pretty_print_rule)
2883         (variable_output): Adjust to use makefile_wrap instead of
2884         pretty_print_internal.
2885         (pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
2886         and augmented to accept the $eol and $max_len arguments.
2888 2003-05-18  Alexandre Duret-Lutz  <adl@gnu.org>
2890         * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
2891         lib/texinfo.tex: New upstream versions.
2893 2003-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
2895         * lib/am/install.am (install, install-exec, install-data, uninstall):
2896         Declare conditionally using a if/else/endif block instead of
2897         using ?SUBDIRS?-style conditions.  The latter fail when
2898         %maybe_BUILT_SOURCES% is replaced by several lines.
2899         This fixes a bug introduced on 2003-04-06.
2900         * tests/bsource.test: New file.
2901         * tests/Makefile.am (TESTS): Add bsource.test.
2902         Reported by Bruno Haible.
2904 2003-05-11  Alexandre Duret-Lutz  <adl@gnu.org>
2906         * automake.texi (renamed objects): New node.
2907         (Program and Library Variables): Move maude_DEPENDENCIES closer
2908         to maude_LDADD.  Define and use `per-target compilation flags' in the
2909         explanation for maude_CFLAGS et al.  Link to the `renamed objects'
2910         node.  Illustrate maude_SHORTNAME.
2912 2003-05-09  Alexandre Duret-Lutz  <adl@gnu.org>
2914         * lib/install-sh: Update copyright notice and license to that of
2915         X11R6.  This removes an advertising clause reported as Debian bug
2916         #191717.
2918 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2920         * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
2922         * m4/make.m4: Rename the doit target as am__doit,
2923         and make it phony.
2924         Reported by Philip S Tellis.
2926 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2928         * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
2929         status.
2930         * tests/makej.test: New file (test Autom4te's cache locking,
2931         new in CVS Autoconf).
2932         * tests/Makefile.am (TESTS): Add makej.test.
2934 2003-05-06  Alexandre Duret-Lutz  <adl@gnu.org>
2936         * lib/Automake/General.pm (contents): New function.
2937         * aclocal.in (greatest_mtime, force_output): New globals.
2938         (scan_configure, add_file): Update $greatest_mtime.
2939         (parse_arguments): Parse --force.
2940         (write_aclocal): Do not overwrite $output_file unless needed.
2941         * automake.texi (aclocal options): Document --force.
2942         * tests/aclocal7.test: New file.
2943         * tests/Makefile.am (TESTS): Add aclocal7.test.
2945 2003-05-05  Alexandre Duret-Lutz  <adl@gnu.org>
2947         * automake.texi (Optional): Document m4_include.
2948         (Invoking aclocal): Shake a bit to introduce the various uses
2949         of aclocal and explain that aclocal will use m4_include for
2950         local files.
2951         (Extending aclocal): Show how to install installable macros
2952         in $(datadir)/aclocal, and make it clearer that writing installable
2953         macros is not the only way to extend aclocal.
2954         (Local Macros, Future of aclocal): New sections.
2956 2003-04-27  Alexandre Duret-Lutz  <adl@gnu.org>
2958         * automake.in (@common_files): Remove acinclude.m4 since
2959         it will be m4_included by aclocal.m4 and files are always
2960         distributed.
2961         (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
2962         We will get this dependency when tracing m4_includes.
2963         * tests/aclocal6.test: Make sure acinclude.m4 is distributed
2964         when used.
2965         * tests/acinclude.test: Delete.
2966         * tests/Makefile.am (TESTS): Remove acinclude.test.
2968 2003-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
2970         * automake.in (handle_configure): Don't add @configure_deps to
2971         DIST_COMMON, we do this from lib/am/configure.am now.
2972         Define the am__configure_deps variable instead of substituing
2973         %CONFIGURE_DEPS%.
2974         * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
2975         $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
2976         (DIST_COMMON): Add $(am__configure_deps).
2978         * tests/aclocal6.test: New file.
2979         * lib/am/configure.am (am--refresh): New rule.
2980         (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
2981         $(top_srcdir)/configure): Call the top-level am--refresh from
2982         subdirectories.
2983         ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
2984         top-level am--refresh when not in the top-level directory.
2985         Fix jump directories for VPATH builds.
2986         Suggested by Raja R. Harinath.
2988 2003-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
2990         * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
2991         and glob for m4_files (We've got all local m4 files while
2992         tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
2993         Distribute aclocal.m4 only at the top-level.
2994         (my_glob): Remove.  This fixes PR automake/11.
2995         (handle_dist): Strip leading `./' from directories.
2996         * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
2997         of copying local files.
2998         (write_aclocal, parse_arguments): Bump copyright date.
2999         * configure.in: De not build m4/amversion.m4 from here ...
3000         * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
3001         (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
3002         of amversion.m4.
3003         * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
3004         (TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
3005         * tests/aclocal2.test: Delete (pointless).
3006         * tests/aclocal5.test: Make sure configure's dependencies are
3007         distributed.
3008         * tests/acinclude.test: Adjust to search for m4_include.
3009         * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
3010         configure instead of aclocal.m4.
3012         For PR automake/46:
3013         * automake.in (scan_aclocal_m4): Work in all directories, not only
3014         the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
3015         dependency.
3016         * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
3017         Define rebuild rules in each directory.
3018         * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
3019         from the top-level directory.
3020         * tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
3021         from a subdirectory.
3022         * tests/Makefile.am (TESTS): Add aclocal5.test.
3023         (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
3025 2003-04-24  Akim Demaille  <akim@epita.fr>
3026             Alexandre Duret-Lutz  <adl@gnu.org>
3028         For PR automake/46:
3029         * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
3030         because of one of configure's dependencies, run automake without
3031         argument to update the whole tree at once.  Depend upon
3032         %CONFIGURE_DEPS%.
3033         (%MAKEFILE%): If Makefile is rebuilt because config.status has
3034         been updated, run config.status without arguments.
3035         * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
3036         before all files in @configure_deps.
3037         * tests/subdir5.test: Modernize configure.in, make sure
3038         maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
3039         * tests/subdir8.test: New file.
3040         * tests/Makefile.am (TESTS): Add subdir8.test.
3041         (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
3043 2003-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
3045         * automake.texi (Requirements): Typo in index
3046         s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
3048         * lib/texinfo.tex: New upstream version.
3050 2003-04-21  Jim Meyering  <jim@meyering.net>
3052         * lib/mkinstalldirs: Remove each sequence of spaces before a
3053         TAB character.
3054         * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
3056 2003-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
3058         Fix for PR automake/389:
3059         * automake.in (handle_configure): Don't put $colon_infile in
3060         CONFIG-MAKEFILE.
3061         * tests/conff.test: New file.
3062         * tests/Makefile.am (TESTS): Add conff.test.
3063         Reported by Alexander Turbov.
3065 2003-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
3067         * tests/defs.in: Handle required=etags to work around
3068         Exuberant Ctags.
3070         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
3071         versions.
3073         * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
3074         Distribute dejagnu test cases, so that distcheck actually runs them.
3076 2003-04-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
3078         * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
3079         because we set that by invoking runtest with --tool.
3080         * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
3081         dejagnu6.test, dejagnu7.test.
3082         * tests/dejagnu4.test: New test.
3083         * tests/dejagnu5.test: New test.
3084         * tests/dejagnu6.test: New test.
3085         * tests/dejagnu7.test: New test.
3087         * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
3089 2003-04-18  Jim Meyering  <jim@meyering.net>
3091         * automake.in (variable_output): Fix typo in comment s/is/if/.
3093         * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
3094         directly to $@.  Instead, redirect to $@t and rename upon success.
3095         Also, move the commands that update $@ so they are last.  Otherwise,
3096         this rule could leave the user with an up to date target (.c file)
3097         but with a missing or corrupted corresponding .h file.
3099 2003-04-17  Richard Dawe  <rich@phekda.freeserve.co.uk>
3101         * tests/defs.in: Handle required=runtest, to detect runtest
3102         from DejaGnu.
3103         * tests/Makefile.am (TESTS): Add dejagnu3.test.
3104         * tests/dejagnu3.test: New test.
3106 2003-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
3108         * automake.in (rule_define): If the user tries to override
3109         an Automake which has a -local variant, suggest using the
3110         -local variant in the -Woverride diagnostic.
3111         (handle_factored_dependencies): Register factored
3112         rules with rule_define, and define them only in undefined
3113         conditions.
3114         * tests/Makefile.am (TESTS): Add override.test.
3115         * tests/overrid.test: New file.
3116         * tests/phony.test: Count the number of .PHONY targets.
3118 2003-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
3120         * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
3121         these rules, so that we don't confuse users by echoing
3122         "echo ERROR:" commands which are not run.
3124 2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
3125             Alexandre Duret-Lutz  <adl@gnu.org>
3127         * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
3128         initialize_per_input):  Add infrastructure for generating HTML
3129         documentation from texinfo source.
3130         * lib/am/texinfos.am: Add rules for building HTML documentation
3131         from texinfo source.
3132         * lib/am/texibuild.am: Likewise.
3133         * automake.texi (Texinfo): Document rules for building
3134         HTML documentation from texinfo source.
3135         * tests/txinfo21.test: New file.
3136         * tests/Makefile.am (TESTS): Add txinfo21.test.
3137         * tests/defs.in: Handle required=makeinfo-html.
3139 2003-04-14  Alexandre Duret-Lutz  <adl@gnu.org>
3141         * automake.in (%silent_variable_override): New variable.
3142         (macro_define): Warn about variable definitions overriding
3143         Automake variables.
3144         (rule_define): Warn about target definitions overriding
3145         Automake variables.  Fix $condmsg definition.
3146         * automake.texi (Invoking Automake): Document the `override'
3147         category.
3148         * lib/Automake/ChannelDefs.pm (usage): Likewise.
3149         * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
3150         this is already done in m4/init.m4.
3151         * tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
3152         -Wno-override, and make sure we get a warning without.
3153         * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
3154         and make sure we get a warning without.
3155         * tests/exeext3.test, tests/java2.test, tests/nolink.test,
3156         tests/subpkg.test, tests/vartest.test: Use -Wno-override.
3157         * tests/txinfo13.test: Use installcheck-local instead of overriding
3158         installcheck.
3159         * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
3160         used to succeed thanks to a failure...)
3161         * tests/location.test: Adjust expected messages.
3162         * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
3164 2003-04-12  Raja R Harinath  <harinath@acm.org>
3166         * lib/Automake/DisjConditions.pm (true): Don't cache answer.
3167         (invert): Update comment.
3168         (_simplify): Remove.
3169         (simplify): Implement using invert().
3170         * lib/Automake/tests/DisjConditions.pl (test_simplify):
3171         Update to reflect changes.
3173 2003-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
3175         * automake.in (scan_autoconf_files): Augment the error message
3176         about AM_INIT_AUTOMAKE not found.
3177         Suggested by Bruno Haible.
3179         * lib/Automake/Version.pm: New file.
3180         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
3181         * lib/Automake/tests/Version.pl: New file.
3182         * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
3183         * tests/Makefile.am (TESTS): Remove version5.test.
3184         * tests/version5.test: Delete.  Move the tests to Version.pl.
3185         * automake.in (version_split, version_compare, version_check): Move ...
3186         * lib/Automake/Version.pm (split, compare, check): ... here.
3188 2003-04-11  Alexandre Duret-Lutz  <adl@gnu.org>
3190         * lib/Automake/tests/Condition.pl (test_reduce_and)
3191         (test_reduce_or): Cosmetics.
3192         * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
3193         Fix a comment.
3194         * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
3195         in comment.
3196         * tests/yacc8.test, configure.in: Update copyright year.
3198 2003-04-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
3200         * configure.in: Get the build platform name.  Define
3201         MODIFICATION_DELAY as the time to wait after modifying a file,
3202         to cope with timestamp granularity issues, depending
3203         on the platform.
3204         * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
3206 2003-04-10  Eric Siegerman  <eric_97@pobox.com>  (tiny change)
3208         * automake.texi (Public macros): Clarify that the new
3209         AM_INIT_AUTOMAKE variant is preferred, and the old one
3210         deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
3211         (Hello): Caution that the example uses the deprecated
3212         AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
3214 2003-04-10  Alexandre Duret-Lutz  <adl@gnu.org>
3216         Retain all variable definitions until the whole Makefile.am has
3217         been processed, then output all variables in one step, at the top
3218         of Makefile.in.  (Older revisions used to output user variables
3219         before generating Automake targets, and to mix Automake variables
3220         with Automake targets, preventing redefinitions of previously
3221         output variables.)
3223         * automake.in (%var_pretty): New variable.
3224         (VAR_ASIS, VAR_PRETTY): New constants.
3225         (@var_list): Rename as ...
3226         (@var_order): ... this.
3227         (initialize_per_input): Clear %var_pretty.
3228         (handle_variables): New function, extracted from ...
3229         (read_main_am_file): ... here.
3230         (generate_makefile): Call handle_variable after everything else.
3231         (handle_dist): Use define_pretty_variable, not pretty_print.
3232         (pretty_print): Delete.
3233         (macro_define): Augment with $COMMENT and $PRETTY parameters.
3234         Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
3235         (variable_pretty_output): Merge with ...
3236         (variable_output): ... this, and choose the prettiness on a
3237         per-condition basis.
3238         (append_comments): Delete.  This work is now done by macro_define.
3239         (read_am_file, file_contents_internal): Don't call append_comments
3240         nor update @var_list, adjust calls to macro_define.
3241         (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
3242         just mark it as VAR_PRETTY.
3243         * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
3244         Report from Jim Meyering.
3246 2003-04-06  Alexandre Duret-Lutz  <adl@gnu.org>
3248         * automake.in (handle_installdirs): Rename as ...
3249         (handle_install): ... this.  Define maybe_BUILT_SOURCES.
3250         (generate_makefile): Adjust call to handle_install.
3251         * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
3252         * automake.texi (Sources, Built sources example): BUILT_SOURCES
3253         is honored by `make install' too.
3254         * tests/check3.test: Make sure that `make install' also depends
3255         upon BUILT_SOURCES.
3256         Report from Alexander Turbov.
3258         * lib/am/libs.am (ARFLAGS): Define.
3259         * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
3260         hard-coding `cru'.
3261         * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
3262         are used, and how they can be overridden.
3263         (Program and Library Variables): Adjust to show `$(ARFLAGS)'
3264         instead of `cru'
3265         * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
3266         * tests/ranlib.test: Delete, obsoleted by ar.test.
3267         * tests/Makefile.am (TESTS): Remove ranlib.test.
3268         Report from Paul Thomas.
3270 2003-04-03  Alexandre Duret-Lutz  <adl@gnu.org>
3272         * automake.in (check_trailing_slash): New function (variation on
3273         a patch by Peter Muir).  Diagnose whitespaces following trailing
3274         backslash.
3275         (read_am_file): Use it.
3276         * tests/backsl4.test: New file.
3277         * tests/Makefile.am (TESTS): Add backsl4.test.
3278         Reported by Peter Muir.
3280 2003-03-29  Raja R Harinath  <harinath@acm.org>
3282         Speedup Automake::DisjConditions::invert().
3283         * lib/Automake/Condition.pm (multiply): New.
3284         * lib/Automake/DisjConditions.pm (_multiply): Use it.
3285         (sub_conditions): Likewise.
3287         * lib/Automake/Condition.pm (reduce): Rename to ...
3288         (reduce_and): ... this.
3289         (reduce_or): New.
3290         * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
3291         * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
3292         (test_reduce_and): ... this.
3293         (test_reduce_or): New.
3294         * lib/Automake/tests/DisjConditions.pl
3295         (test_invert): Update to reflect effect of reduce_or().
3296         (test_simplify): Don't skip invert() on larger inputs.
3298 2003-03-29  Raja R Harinath  <harinath@cs.umn.edu>
3300         * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
3301         that timestamp will change.
3303 2003-03-23  Akim Demaille  <akim@epita.fr>
3304             Alexandre Duret-Lutz  <adl@gnu.org>
3306         * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
3307         when supported by etags (Exuberant Ctags).
3308         * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
3310 2003-03-20  Alexandre Duret-Lutz  <adl@gnu.org>
3312         For Debian Bug #185388:
3313         * automake.texi (Extending): Augment the install-exec-hook
3314         discussion with an example how to symlink a versioned binary.
3315         * tests/insthook.test: Rewrite to test the above example.
3316         Report from James R. Van Zandt.
3318 2003-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
3320         * Makefile.am (maintainer-check): Allow `automake:' tokens,
3321         occuring in location.test.  Automake now has 5 legitimate
3322         unsubstituted @strings@.
3324         * tests/aclocal4.test: Require GNU make.
3326 2003-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
3328         * tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
3329         * tests/Makefile.am (TESTS): Add aclocal4.test.
3331 2003-03-14  Jim Meyering  <jim@meyering.net>
3333         * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
3334         subdirectories.  Makefile.in depends on that variable.
3336 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
3338         * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
3340         Fix for PR automake/386:
3341         * m4/init.m4: Require Autoconf 2.55.
3342         Reported by Owen Taylor.
3344         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3345         (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
3346         Suggested by Matthias Andree.
3348         * tests/README: Typo.
3350 2003-03-08  Alexandre Duret-Lutz  <adl@gnu.org>
3352         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3353         (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
3354         Just echo the gcc command.
3355         Suggested by Karl Berry.
3357 2003-03-06  Alexandre Duret-Lutz  <adl@gnu.org>
3359         * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
3360         `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
3361         outputing suffix rules.  This follows 2003-02-25's change.
3362         * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3363         * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3365 2003-03-05  Alexandre Duret-Lutz  <adl@gnu.org>
3367         * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
3368         with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
3369         pretend otherwise.
3370         Reported by Rafael Laboissiere.
3372 2003-03-04  Andreas Buening  <andreas.buening@nexgo.de>
3374         * lib/mdate-sh: Find out which column of the ls -l output contains
3375         the month. Do not assume it is at least the fifth column.
3377 2003-02-26  Alexandre Duret-Lutz  <adl@gnu.org>
3379         * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
3381         * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
3382         instead of lisp_LISP when they don't want byte-compilation.
3383         Don't mention ELCFILES anymore.
3384         * automake.in (handle_data): Allow lisp_DATA.
3385         * tests/lisp5.test: New file.
3386         * tests/Makefile.am (TESTS): Add lisp5.test.
3388         * automake.in (handle_emacs_lisp): Don't build *.elc files
3389         if ELCFILES was set empty.
3390         * tests/lisp4.test: New file.
3391         * tests/Makefile.am (TESTS): Add lisp4.test.
3392         Reported by Simon Josefsson.
3394         * tests/lex3.test, tests/lex5.test: Require flex.
3395         Reported by Leo Davis.
3397 2003-02-25  Alexandre Duret-Lutz  <adl@gnu.org>
3399         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
3400         use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
3401         when outputing suffix rules.
3402         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
3403         (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
3404         Suggested by Bruno Haible.
3406         * automake.in (read_am_file): Catch trailing backslashes on last line.
3407         * tests/backsl3.test: New file.
3408         * tests/Makefile.am (TESTS): Add backsl3.test.
3409         Reported by Akim Demaille.
3411 2003-02-24  Alexandre Duret-Lutz  <adl@gnu.org>
3413         * ChangeLog: Move 2002's entries to ...
3414         * ChangeLog.02: ... this new file.
3415         * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
3417 2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>
3419         * tests/version7.test: Use $sleep to sleep before updating
3420         the version, to work around timestamp inconsistencies in Windows.
3422 2003-02-24  Bruno Haible  <bruno@clisp.org>
3423             Alexandre Duret-Lutz  <adl@gnu.org>
3425         * lib/am/texibuild.am: Don't remove the target info files. Instead,
3426         back up and restore them if makeinfo fails.
3427         * tests/txinfo20.test: New file.
3428         * tests/Makefile.am (TESTS): Add txinfo20.test.
3430 2003-02-23  Alexandre Duret-Lutz  <adl@gnu.org>
3432         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
3433         (distcleancheck): Fix typos and other errors reported by Karl
3434         Berry.
3436 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
3438         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
3439         instead of ${...}.
3441         * tests/defs.in: Handle required=ro-dir.
3442         * tests/destdir.test: Use this.
3444 2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
3446         * lib/am/distdir.am (distcheck): Strip any leading DOS drive
3447         from dc_install_base.
3449 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
3451         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
3452         DJGPP-style *.iNN info files.
3453         (maintainer-clean-aminfo): Rewrite using the same pattern
3454         as in uninstall-info-am.
3455         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
3456         DJGPP-style *.iNN info files before running $(MAKEINFO).
3457         * tests/txinfo19.test: New file.
3458         * tests/Makefile.am (TESTS): Add txinfo19.test.
3460 2003-02-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
3462         * lib/depcomp (dashmstdout): Cope with DOS filenames in
3463         dependencies.
3465 2003-02-17  Alexandre Duret-Lutz  <adl@gnu.org>
3467         * lib/depcomp (makedepend): Don't pass $object to makedepend.
3468         Reported by Stepan Kasal.
3470 2003-02-12  Alexandre Duret-Lutz  <adl@gnu.org>
3472         * tests/defs.in: Handle required=makedepend.
3474         * Makefile.am (maintainer-check): Update the diff check
3475         to account for the recent @SHELL@ substitution.
3477 2003-02-11  Alexandre Duret-Lutz  <adl@gnu.org>
3479         * lib/depcomp: Do not put comments on the `icc)' line.
3481         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
3482         versions.
3484         Fix for PR automake/381:
3485         * automake.in (handle_gettext): Do not print diagnostics
3486         about po/ and intl/ missing from SUBDIRS if po/ does not
3487         exist.  Warn if `SUBDIRS = intl' is used although libintl
3488         is 'external'.
3489         * tests/gettext.test: Make sure diagnostics are not output
3490         when po/ does not exist.
3491         * tests/gettext2.test: Test for unwanted intl/.
3492         PR from Alexander Turbov, fix suggested by Bruno Haible.
3494         * m4/depend.m4: Grep depcomp's stderr for icc warnings about
3495         ignored options.
3496         * lib/depcomp (icc): New mode.
3497         * tests/depcomp5.test: New file.
3498         * tests/defs.in: Handle required=icc.
3499         * tests/Makefile.am (TESTS): Add it.
3501         Temporary hack for PR automake/381:
3502         * automake.in (handle_gettext): Turn missing po/ and intl/ errors
3503         into -Wsyntax warnings.
3505 2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
3507         * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
3508         This makes the setting of SHELL work for DJGPP.
3510 2003-02-10  Alexandre Duret-Lutz  <adl@gnu.org>
3512         For PR automake/385:
3513         * lib/depcomp (makedepend): Strip any libtool call, before
3514         running makedepends.
3515         * tests/depcomp4.test: New file.
3516         * tests/Makefile.am (TESTS): Add it.
3517         Reported by Jeff Squyres.
3519         Related to PR automake/385:
3520         * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
3521         write dependencies to /dev/null.  `-o /dev/null' was added
3522         on 2002-06-13 just because I tried to replace `-o foo.o' by something
3523         else and didn't thought about removing it entirely.
3524         * tests/depcomp3.test: New file.
3525         * tests/Makefile.am (TESTS): Add it.
3527         * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
3528         SHELL for DJGPP.
3529         Suggested by Richard Dawe.
3531 2003-02-09  Alexandre Duret-Lutz  <adl@gnu.org>
3533         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
3534         (distcleancheck): New nodes.
3536 2003-02-06  Alexandre Duret-Lutz  <adl@gnu.org>
3538         * automake.in (scan_autoconf_files): Don't complain that
3539         AM_INIT_AUTOMAKE comes from an old version if it was not found.
3541 2003-02-05  Alexandre Duret-Lutz  <adl@gnu.org>
3543         * automake.in (am_install_var): Simplify filtering of
3544         variable_loc_and_value_as_list_recursive's output.
3546 2003-02-04  Alexandre Duret-Lutz  <adl@gnu.org>
3548         * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
3549         indexes of header files so we create stamp files with
3550         the right numbers when config.status is run on some headers.
3551         * tests/stamph2.test: Check for this.
3552         Reported by Sander Niemeijer.
3554 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3556         * automake.in (vars_scanned): Move near traverse_variable_recursively.
3557         (traverse_variable_recursively,
3558         traverse_variable_recursively_worker): Accept a $COND_FILTER argument
3559         to filter out conditions during recursion.  Don't recurse into
3560         undefined variables.  Don't pass empty results to &FUN_COLLECT.
3561         (value_to_list): Remove, was used by
3562         variable_value_as_list_recursive_worker only.
3563         (variable_value_as_list_recursive_worker): Rewrite using
3564         traverse_variable_recursively.  Remove the $parent argument.
3565         (variable_value_as_list_recursive,
3566         variable_loc_and_value_as_list_recursive): Adjust calls
3567         to variable_value_as_list_recursive_worker.  Don't reset
3568         %vars_scanned.
3569         * tests/cond3.test: Don't expect empty helper variables,
3570         we don't output them anymore.
3571         * tests/cond30.test: Use an undefined variable.
3573         * automake.in (handle_programs): Strip $(EXEEXT) before
3574         calling &check_canonical_spelling.
3575         * tests/exeext.test: Make sure we don't use a
3576         maude3__EXEEXT__OBJECTS variable.
3578 2003-02-02  Jeremy Nimmer  <jwnimmer@alum.mit.edu>  (tiny change)
3580         For Debian Bug #39542:
3581         * automake.texi (Invoking Automake, Optional): Document how
3582         AC_CONFIG_AUX_DIR interacts with missing files.
3584 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3586         * lib/Automake/DisjConditions.pm (_permutations_worker)
3587         (permutations): Remove, so that people aren't tempted to use it.
3588         * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
3590         * automake.in (variable_conditions_recursive): Remove.
3591         (variable_conditionally_defined): Rewrite using
3592         traverse_variable_recursively.
3594         * automake.in (traverse_variable_recursively,
3595         traverse_variable_recursively_worker): Pass one merged Condition
3596         instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
3597         (transform_variable_recursively, define_objects_from_sources)
3598         (handle_lib_objects, variable_conditions_recursive): Adjust usage.
3600 2003-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
3602         * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
3603         using transform_variable_recursively instead of
3604         variable_conditions_recursive and variable_value_as_list_recursive
3605         to avoid combinatorial explosion.
3606         (handle_lib_objects_cond): Merge into handle_lib_objects.
3607         * tests/cond11.test: Don't grep internal details in Makefile.in,
3608         run $MAKE to make sure the resulting Makefile runs as expected.
3609         * tests/cond29.test: Also exercise conditional _LDADD.
3610         * tests/cond31.test, tests/cond32.test: New files.
3611         * tests/Makefile.am (TESTS): Add tests/cond31.test and
3612         tests/cond32.test.
3614 2003-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
3616         * automake.in (handle_lib_objects_cond): Ignore -dlopen and
3617         -dlpreopen in _LIBADD variables too.
3618         (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
3619         handle_lib_objects_cond.
3620         * tests/libtool7.test: New file.
3621         * tests/Makefile.am (TESTS): Add libtool7.test.
3623         * automake.texi (Program and Library Variables): Clarify that
3624         _LIBADD is for libraries and _LDADD for programs.
3626         * automake.in (handle_source_transform): Correct typo from 2003-01-23.
3628 2003-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
3630         Fix for PR automake/352:
3631         * automake.in (transform_variable_recursively): If the destination
3632         and the source variables are the same, delete the source variable
3633         before defining the destination variable.
3634         (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
3635         or this will confuse handle_source_transform.
3636         (append_exeext): Rewrite using transform_variable_recursively.
3637         * tests/cond29.test, tests/cond30.test: New files.
3638         * tests/exeext.test: Run ./configure and make, this uncovered
3639         the above handle_programs issue.
3640         * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
3642         * automake.in (%subobjvar): Replace by ...
3643         (%gen_varname): ... this.
3644         (subobjname): Replace by ...
3645         (gen_varname): ... this.
3646         (initialize_per_input): Clean gen_varname instead of subobjname.
3647         (transform_variable_recursively): New function, extracted
3648         from define_objects_from_sources.
3649         (define_objects_from_sources): Use transform_variable_recursively.
3650         Remove the unused $parent argument.
3651         (handle_source_transform): Adjust call to define_objects_from_sources.
3653 2003-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
3655         * automake.in (@substfroms, @substtos): Move near
3656         traverse_variable_recursively.
3657         (traverse_variable_recursively, traverse_variable_recursively_worker):
3658         New functions, extracted from define_objects_from_sources.
3659         (define_objects_from_sources): Rewrite using
3660         traverse_variable_recursively.
3661         (handle_source_transform): Use variables_conditionally_defined
3662         instead of calling variable_conditions_recursive directly.
3663         Adjust the call to define_objects_from_sources; there is no need
3664         to reset @substtos, @substfroms, and %vars_scanned now.
3665         (variable_conditions_recursive): Rewrite using
3666         traverse_variable_recursively.
3667         (variable_conditions_recursive_sub): Remove.
3668         (variable_conditionally_defined): Fix condition comparison (the
3669         consequence was that DIST_SUBDIRS was always output).
3670         * lib/Automake/Condition.pm (merge): Allow merging several
3671         conditions at once.
3673 2003-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
3675         * automake.texi (Python): Explain that directory variables start
3676         with either ${prefix} or ${exec_prefix}, and point to the
3677         `Installation Directory Variables' section of the Autoconf manual.
3679 2003-01-21  Alexandre Duret-Lutz  <adl@gnu.org>
3681         * lib/am/distdir.am (top_distdir, distdir): Define these
3682         variables only in top level Makefile.  Redefine $(top_distdir)
3683         as $(distdir).
3684         (distdir): Fix passing of $(top_distdir) to sub-makes.
3685         * automake.in (handle_dist): Do not define the DISTDIR and
3686         TOP_DISTDIR transformations.  We don't need them anymore.
3687         * automake.texi (Dist): Reorder the dist-hook section, and move
3688         the DIST_SUBDIRS paragraph earlier.  Document distdir and
3689         top_distdir.
3690         * tests/subpkg.test: Update to check for $(distdir) and
3691         $(top_distdir).
3693 2003-01-19  Alexandre Duret-Lutz  <adl@gnu.org>
3695         Rename more files to accomodate 8+3 file systems, and adjust the
3696         vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
3697         and we call "condition" a conjunction of "conditionals".
3698         * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
3699         * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
3700         * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
3701         * lib/am/tests/ConditionalSet.pl: Rename to
3702         lib/am/tests/DisjConditions.pl
3703         * lib/am/Conditional.pm (condition_negate): Rename to ...
3704         * lib/am/Condition.pm (conditional_negate): ... this.
3705         * automake.in: Adjust references to Condition and DisjConditions.
3706         (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
3707         (check_ambiguous_condition, condition_ambiguous_p): ... these.
3709         * tests/README: New file.
3711         * automake.texi (Conditional Programs): Show a sample Makefile.am.
3712         Remind $(EXEEXT) must be appended to configure substitutions.
3713         Show how Automake conditionals can be used instead.
3714         * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
3715         appended to conditionally defined programs.
3717 2003-01-16  Jim Meyering  <jim@meyering.net>
3719         Accept --help and --version, and lots of syntactic clean-up.
3720         * lib/install-sh: Use consistent indentation, two spaces per level.
3721         (scriptversion): New variable.
3722         Change initializations like `variable=""' to `variable='.
3723         (usage): New variable.
3724         Use `test', not `['.
3725         Use `test -z "$var"', not `[ x"$var" = x ]'.
3726         Use `test -n "$var"', not `[ x"$var" != x ]'.
3727         Alphabetize case entries.
3728         Accept --help and --version options.
3729         Remove unnecessary `else :' clauses.
3730         Add a `Local variables' eval block to help emacs users update
3731         the time-stamp variable added above.
3732         Mostly from Karl Berry.
3734 2003-01-16  Alexandre Duret-Lutz  <adl@gnu.org>
3736         * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
3737         python2.3.
3739         * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
3740         or `pyexecdir', for the sake of 64-bit distributions that usually
3741         use lib64/ instead of lib/.  Fall back to the default directory
3742         if it doesn't work.
3743         Suggested by Gwenole Beauchesne.
3745 2003-01-14  Alexandre Duret-Lutz  <adl@gnu.org>
3747         For PR automake/382:
3748         * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
3749         Explain BUILT_SOURCES is usually needed in this case.
3750         Reported by William S Fulton.
3752 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3754         Rename some files for the sake of 8+3 file systems.
3755         * tests/aclocali.test:     Rename to tests/aclocal.test.
3756         * tests/aclocali1.test:    Rename to tests/aclocal2.test.
3757         * tests/aclocalii.test:    Rename to tests/aclocal3.test.
3758         * tests/acoutput.test:     Rename to tests/acoutpt.test.
3759         * tests/acoutput2.test:    Rename to tests/acoutpt2.test.
3760         * tests/acouttbs.test:     Rename to tests/acoutbs.test.
3761         * tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
3762         * tests/autoheader.test:   Rename to tests/autohdr.test.
3763         * tests/autoheader2.test:  Rename to tests/autohdr2.test.
3764         * tests/condincl.test:     Rename to tests/condinc.test.
3765         * tests/condincl2.test:    Rename to tests/condinc2.test.
3766         * tests/distcommon.test:   Rename to tests/distcom.test.
3767         * tests/distcommon2.test:  Rename to tests/distcom2.test.
3768         * tests/distcommon3.test:  Rename to tests/distcom3.test.
3769         * tests/installsh.test:    Rename to tests/instsh.test.
3770         * tests/installsh2.test:   Rename to tests/instsh2.test.
3771         * tests/instdata.test:     Rename to tests/instdat.test.
3772         * tests/instdata2.test:    Rename to tests/instdat2.test.
3773         * tests/libobj12b.test:    Rename to tests/libobj13.test.
3774         * tests/link_f_c.test:     Rename to tests/link_fc.test.
3775         * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
3776         * tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
3777         * tests/nodefine.test:     Rename to tests/nodef.test.
3778         * tests/nodefine2.test:    Rename to tests/nodef2.test.
3779         * tests/required.test:     Rename to tests/reqd.test.
3780         * tests/required2.test:    Rename to tests/reqd2.test.
3781         * tests/sourcesub.test:    Rename to tests/srcsub.test.
3782         * tests/sourcesub2.test:   Rename to tests/srcsub2.test.
3783         * tests/specflags.test:    Rename to tests/specflg.test.
3784         * tests/specflags2.test:   Rename to tests/specflg2.test.
3785         * tests/specflags3.test:   Rename to tests/specflg3.test.
3786         * tests/specflags6.test:   Rename to tests/specflg6.test.
3787         * tests/specflags7.test:   Rename to tests/specflg7.test.
3788         * tests/specflags8.test:   Rename to tests/specflg8.test.
3789         * tests/specflags9.test:   Rename to tests/specflg9.test.
3790         * tests/subdircond.test:   Rename to tests/subcond.test.
3791         * tests/subdircond2.test:  Rename to tests/subcond2.test.
3792         * tests/subdircond3.test:  Rename to tests/subcond3.test.
3793         * tests/texinfo.test:      Rename to tests/txinfo.test.
3794         * tests/texinfo2.test:     Rename to tests/txinfo2.test.
3795         * tests/texinfo3.test:     Rename to tests/txinfo3.test.
3796         * tests/texinfo4.test:     Rename to tests/txinfo4.test.
3797         * tests/texinfo5.test:     Rename to tests/txinfo5.test.
3798         * tests/texinfo6.test:     Rename to tests/txinfo6.test.
3799         * tests/texinfo7.test:     Rename to tests/txinfo7.test.
3800         * tests/texinfo8.test:     Rename to tests/txinfo8.test.
3801         * tests/texinfo9.test:     Rename to tests/txinfo9.test.
3802         * tests/texinfo10.test:    Rename to tests/txinfo10.test.
3803         * tests/texinfo13.test:    Rename to tests/txinfo13.test.
3804         * tests/texinfo16.test:    Rename to tests/txinfo16.test.
3805         * tests/texinfo17.test:    Rename to tests/txinfo17.test.
3806         * tests/texinfo18.test:    Rename to tests/txinfo18.test.
3807         * tests/Makefile.am (TESTS): Adjust.
3808         * ChangeLog.1996: Rename to ChangeLog.96.
3809         * ChangeLog.1998: Rename to ChangeLog.98.
3810         * ChangeLog.2000: Rename to ChangeLog.00.
3811         * ChangeLog.2001: Rename to ChangeLog.01.
3812         * Makefile.am (EXTRA_DIST): Adjust.
3813         Reported by Richard Dawe.
3815 2003-01-13  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
3817         * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
3818         Use '_build' and '_inst' instead of '=build' and '=inst'.
3819         * tests/man2.test: Reflect change automake: check for files in
3820         '_build' and '_inst' directories instead of '=build' and '=inst'.
3822 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3824         Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
3825         * m4/lead-dot.m4: New file.
3826         * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
3827         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
3828         * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
3829         DEPDIR using am__leading_dot.
3830         * automake.in (require_build_directory): Define am__dirstamp, a new
3831         variable for the dirstamp basename, based on am__leading_dot.
3832         * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
3833         use $(am__dirstamp).
3834         Reported by Richard Dawe.
3836         * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
3837         Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
3838         testing for programs.
3839         Reported by Richard Dawe.
3841 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
3843         * Makefile.am (maintainer-check): Suggest using $sleep instead of
3844         sleep 2.
3845         * tests/defs.in (sleep): New variable.
3846         * tests/asm.test, tests/confsub.test, tests/lisp3.test,
3847         tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
3848         Use $sleep instead of sleep 2, to work around timestamp
3849         inconsistencies in Windows.
3850         Reported by Richard Dawe.
3852         * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
3853         after $MAKE -e.
3854         * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
3855         tests/man2.test, tests/subobj3.test, tests/suffix8.test,
3856         tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
3857         $SHELL is overridden by tests/defs, so it won't hurt even
3858         if $MAKE -e uses the $SHELL envvar.
3859         * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
3860         tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
3861         Reported by Richard Dawe.
3863         Build elisp files all at once instead of one by one.
3864         * automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
3865         elc-stamp to all's dependencies.
3866         * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
3867         (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
3868         (clean-lisp): Clean elc-stamp.
3869         * lib/elisp-comp: Reindent.  Erase the temporatry directory
3870         from a trap.  Propagate Emacs's exit status.
3871         * tests/lisp3.test: New file.
3872         * tests/Makefile.am (TESTS): Add lisp3.test.
3873         Reported by Ryan T. Sammartino.
3875 2003-01-09  Akim Demaille  <akim@epita.fr>
3877         * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
3879 2003-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
3881         * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
3882         variables.  Suggested by Ryan T. Sammartino.
3884 2003-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3886         * automake.in (macro_define): Add missing `{$cond}' (typo from
3887         2002-09-18).
3888         ($gen_copyright): Append year 2003.
3889         (version): Increase year.
3891         * tests/defs.in: Substitute aclocaldir instead of running
3892         the installed aclocal.  Otherwise Libtool and Gettext
3893         tests get skipped when aclocal doesn't preexist.
3894         Reported by Imacat.
3895         * tests/listval.test, tests/suffix2.test: Remove pointless -I
3896         argument to aclocal.
3898 -----
3900 Copyright (C) 2003, 2004  Free Software Foundation, Inc.
3902 This file is part of GNU Automake.
3904 GNU Automake is free software; you can redistribute it and/or modify
3905 it under the terms of the GNU General Public License as published by
3906 the Free Software Foundation; either version 2, or (at your option)
3907 any later version.
3909 GNU Automake is distributed in the hope that it will be useful,
3910 but WITHOUT ANY WARRANTY; without even the implied warranty of
3911 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3912 GNU General Public License for more details.
3914 You should have received a copy of the GNU General Public License
3915 along with autoconf; see the file COPYING.  If not, write to
3916 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3917 Boston, MA 02111-1307, USA.