* automake.in (parse_arguments, MAIN): Give more precise
[automake.git] / ChangeLog
blobe55b80fdf5e147de01efa9c680a2e95c6003a706
1 2004-05-15  Alexandre Duret-Lutz  <adl@gnu.org>
3         * automake.in (parse_arguments, MAIN): Give more precise
4         diagnostics when not input file is found.
5         * tests/output5.test: Adjust.
6         Suggested by Jens Petersen.
8 2004-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
10         * lib/am/libs.am (AR, ARFLAGS): Move these definition ...
11         * automake.in (handle_libraries): ... here, so that they are
12         output even for EXTRA_LIBRARIES.
13         * tests/ar2.test: New file.
14         * tests/Makefile.am (TESTS): Add it.
15         Report from Kevin Ryde.
17 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
19         * automake.in (generate_makefile): Do not output Makefile.in on
20         errors.
21         * tests/werror2.test: New file.
22         * tests/Makefile.am (TESTS): Add werror2.test.
23         * tests/substtarg.test, tests/cond36.test, tests/backsl4.test:
24         Adjust to run automake with -Wno-error when the output is expected
25         in spite of the error.
26         Report from Harlan Stenn.
28         * doc/automake.texi (Program and Library Variables): Remove
29         doubled word in footnote.
31         * automake.in (handle_source_transform): Also check for a
32         $(srcdir)/old_source rule when computing the default source name.
33         Propagate this $(srcdir) prefix in Automake variables.
34         * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to
35         $(srcdir)/zoo_d_old2_la.c.  This fixes another failure with BSD Make.
37 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39         * Makefile.am (fetch): Work even with FreeBSD "make", which
40         uses sh -e and thus errors-out if a simple-command fails.
41         * lib/am/check.am (check-TESTS): Likewise.
42         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Likewise.
43         * lib/am/tags.am (TAGS): Likewise.
45 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
47         * tests/lex3.test, tests/yacc6.test: Require GNU Make.
48         Fixing these for BSD Make requires invasive changes (lexers and
49         parsers must be built into $srcdir, and--most annoyingly--all
50         references to parse.h must be changed to $(srcdir)/parse.h).
51         Report from Mark D. Baushke.
53 2004-05-10  Alexandre Duret-Lutz  <adl@gnu.org>
55         * tests/defs.in (GNUmake): Grep for GNU to parry FreeBSD make.
56         Report from Mark D. Baushke.
58 2004-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
60         * lib/texinfo.tex: New upstream version.
62         * lib/depcomp (tru64): Clarify comments.  Thanks to Nicolas Joly.
64         * doc/automake.texi (Headers): Revamp.
66 2004-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
68         * automake.in (check_typos): Clarify the diagnostic.
69         * tests/warnopts.test: Adjust.
71         * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into
72         VAR_PRETTY variables to work around make implementation with
73         limited line length, such as OSF1/Tru64 make.
74         * tests/longline.test: New file.
75         * tests/Makefile.am (TESTS): Add it.
76         * tests/pluseq3.test, tests/pluseq8.test: Adjust.
77         Report from Simon Josefsson.
79         * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if
80         --etags-include is used but no other files are supplied, so it
81         creates the TAGS file anyway.
82         Report from Akim Demaille.
84         * lib/depcomp (tru64) [libtool]: Nicolas Joly reported on
85         2002-06-12 that dependencies were output in $dir.libs/$base.lo.d.
86         Teun Burgers reported on 2004-03-30 they were in
87         $dir.libs/$base.o.d.  Try both.
89 2004-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
91         For PR automake/414:
92         Introduce option filename-length-max=99.
93         * doc/automake.texi (Options): Document it.
94         * configure.ac (AM_INIT_AUTOMAKE): Use it.
95         * lib/Automake/Options.pm (_process_option_list): Recognize it.
96         * automake.in (handle_dist): Set FILENAME_FILTER.
97         * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long
98         filenames.
99         * tests/fn99.test: New file.
100         * tests/Makefile.am (TESTS): Add fn99.test.
102 2004-04-20  Alexandre Duret-Lutz  <adl@gnu.org>
104         For PR automake/414:
105         Introduce options tar-v7, tar-ustar, and tar-pax to select
106         tar format.
107         * doc/automake.texi (Options): Document them.
108         * lib/Automake/Options.pm (_process_option_list): Process
109         these new options.
110         * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist,
111         distcheck): Adjust to use am__tar and am__untar.
112         * m4/tar.m4: New file.
113         * m4/Makefile.am (dist_m4data_DATA): Add tar.m4.
114         * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options
115         and call _AM_PROG_TAR.
116         * tests/tar.test, tests/tar2.test, tests/tar3.test: New files.
117         * tests/Makefile.am (TESTS): Add them.
119 2004-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
121         * lib/am/distdir.am (distcheck): Typo in shar decompression.
123         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
124         versions.
126 2004-04-17  Alexandre Duret-Lutz  <adl@gnu.org>
128         Fix PR automake/49:
129         * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose
130         calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE.
131         * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test,
132         tests/mdate3.test, tests/multlib.test, tests/reqd2.test,
133         tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test,
134         tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR
135         before AM_INIT_AUTOMAKE.
136         * tests/auxdir3.test: New file (exercise this diagnostic).
137         * tests/Makefile.am (TESTS): Add auxdir3.test.
139 2004-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
141         * aclocal.in (%map_traced_defs): New variable.
142         (scan_m4_files): Normalize filenames.
143         (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also
144         ask for the filename and the first argument.  Populate
145         %map_traced_defs.
146         (write_aclocal): Use $map_traced_defs to filter out unused
147         definitions.
148         * tests/acloca15.test: New file.
149         * tests/Makefile.am (TESTS): Add acloca15.test.
151 2004-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
153         * automake.in ($automake_needs_to_reprocess_all_files): Remove.
154         ($automake_will_process_aux_dir): New variable.
155         (scan_autoconf_traces): Reorder @input_files so that the Makefile
156         that distributes aux files is processed last.  This way we do not
157         have to process all files twice using
158         $automake_will_process_aux_dir.
159         (require_file_internal): Suggest a full run of automake when
160         appropriate.
161         (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files.
162         * tests/distcom7.test: New file.
163         * tests/reqd2.test: Do not check for the "running more than two"
164         message.
165         * tests/Makefile.am (TESTS): Add distcom7.test.
167         * automake.in (@config_aux_path, $config_aux_dir): Rename as ...
168         ($config_aux_dir, $am_config_aux_dir): ... these.
169         ($config_aux_dir_set_in_configure_in): Rename as ...
170         ($config_aux_dir_set_in_configure_ac): ... this.
171         (%require_file_found): Rename as ...
172         (%required_file_not_found): ... this.
173         (handle_languages, handle_texinfo_helper, handle_dist,
174         handle_configure, handle_emacs_lisp, handle_python,
175         scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names.
176         (scan_autoconf_traces): Call locate_aux_dir.
177         (locate_aux_dir): New function.
178         (@require_file_paths): Remove, not used anymore.
179         (require_file_internal): Look files in only one directory (instead
180         of @require_file_internal) passed in argument.
181         (require_file, require_conf_file): Pass the destination directory
182         to require_file_internal.
184         Fix for PR automake/416:
185         * m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
186         remarks.
187         From Peter Seiderer.
189 2004-04-10  Andreas Buening  <andreas.buening@nexgo.de>
191         * aclocal.in, automake.in, configure.ac, Makefile.am,
192         tests/aclocal.in, tests/automake.in, tests/defs.in:
193         Use PATH_SEPARATOR from autoconf instead of ':'.
195 2004-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
197         * automake.in (handle_lib_objects): Pass the condition of
198         the variable definition to handle_LIBOBJS and handle_ALLOCA,
199         not the aggregated conditions.
200         * tests/Makefile.am (TESTS): Add libobj14.test.
201         * tests/libobj14.test: New file.
202         Report from Bill Davidson.
204 2004-04-02  Mike Nolta  <mike@nolta.net>
206         Better support for Fortran 9x.
207         * automake.in: Add "fc" and "ppfc" languages for Fortran 9x.
208         * doc/automake.texi (Fortran 9x Support): New section.
209         * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC.
210         * tests/compile_f90_c_cxx.test: New file.
211         * tests/ext.test: Add AC_PROG_FC.
212         * tests/f90only.test: New file.
213         * tests/link_f90_only.test: New file.
214         * tests/Makefile.am (TESTS): Add new tests.
216 2004-04-01  Paul Eggert  <eggert@twinsun.com>
218         * lib/install-sh: If "mv -f" works, use it, and fall back to
219         the old "test -f" + "rm -f" + "mv" method only if "mv -f" does
220         not work.  This improves performance in the usual case where
221         "mv -f" works.  It also lets us install the "mv" command
222         without worrying about a small window where "mv" does not
223         exist (this problem was reported by Raul Nunez de Arenas
224         Coronado).
226 2004-03-26  Alexandre Duret-Lutz  <adl@gnu.org>
228         * m4/python.m4 (AM_PATH_PYTHON): Make sure am_display_PYTHON is
229         set when $PYTHON has been set by the user.
230         From Esben Haabendal Soerensen.
232 2004-03-22  Alexandre Duret-Lutz  <adl@gnu.org>
234         * doc/automake.texi (Default _SOURCES): Typo.
235         (true): Correct _'s placement in example.
236         Report from Stepan Kasal.
238 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
240         Overriding JAVAROOT is legitimate, do not warn about it.
241         * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT.
242         * tests/java2.test: Run automake without -Wno-override.
243         Report from Simon Josefsson.
245 2004-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
247         * automake.in (handle_texinfo_helper): Typos in comment.
249 2004-03-07  Alexandre Duret-Lutz  <adl@gnu.org>
251         * lib/config.guess: New upstream version.
253         Fix for PR automake/285:
254         * automake.in (handle_ltlibraries): Keep track of installation
255         directories for each condition, then define a $(am_TARGET_rpath)
256         variable to hold the -rpath flags of Libtool libraries conditionally
257         installed in different directories.
258         * lib/Automake/DisjConditions.pm (merge): New function.
259         * tests/libtool6.test: Adjust.
260         * tests/libtool8.test: New file.
261         * tests/Makefile.am (TEST): Add libtool8.test.
263         * lib/Automake/Variable.pm (traverse_recursively,
264         _do_recursive_traversal): Honor the skip_ac_subst option.
265         * automake.in (handle_dist): Use skip_ac_subst.
267 2004-02-29  Alexandre Duret-Lutz  <adl@gnu.org>
269         * Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
270         ~ftp/automake.
271         * lib/gnupload (Example): Update example.
273         * lib/config-ml.in, lib/config.guess, lib/config.sub,
274         lib/texinfo.tex: New upstream versions.
276         * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
277         to create numbered dependencies.  This fixes a portability issue
278         when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
279         Reported by Mark Phillips.
281         * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
282         so that rules for the same headers are not output twice.
283         * lib/Automake/Variable.pm (value_as_list_recursive): Do not
284         call `return' inside `map'.
285         * tests/cond30.test: Make sure `a.c' and `b.c' both appear
286         in the Makefile.in.
287         * tests/cond35.test, tests/cond36.test: New files.
288         * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
289         Report from Roman Fietze.
291         Fix for PR/413:
292         * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
293         077 && mkdir' instead of `$(mkdir_p)'.  This prevents possible
294         symlink attacks reported by Stefan Nordhausen.
296 2004-02-16  Alexandre Duret-Lutz  <adl@gnu.org>
298         * doc/automake.texi (Multiple Outputs): More text, based on
299         comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
301 2004-02-15  Alexandre Duret-Lutz  <adl@gnu.org>
303         * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
304         Solaris 8's mkdir is not thread-safe.
305         * lib/mkinstalldirs: Likewise.
306         * lib/install-sh: Abort when mkdir fails to create a directory.
307         Report from Nathanael Nerode.
309 2004-02-07  Alexandre Duret-Lutz  <adl@gnu.org>
311         * aclocal.in (rel2abs): New function.
312         (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
313         the later does was introduced in Perl 5.6 so using it breaks with
314         Perl 5.005.
315         Report from Werner John.
317 2004-02-03  Alexandre Duret-Lutz  <adl@gnu.org>
319         * doc/automake.texi (Future of aclocal): Make clearer that
320         it's ok to install macros into /usr/share/aclocal/.
322 2004-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
324         * tests/lisp.test: Delete (pointless).
325         * tests/Makefile.am (TESTS): Remove lisp.test.
327         * lib/Automake/Variable.pm (transform_variable_recursively):
328         Define rewritten variables in all conditions not *covered* by user
329         definitions, not simply in conditions without a previous
330         definition.
331         * tests/cond34.test: New file.
332         * tests/Makefile.am (TESTS): Add cond34.test.
333         Report from Elena A. Vengerova
335         * doc/automake.texi (Multiple Outputs): Typo.
337         * doc/automake.texi (Emacs Lisp): Typos.
339         Support for conditional _LISP.
340         * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
341         from $(am__ELCFILES).
342         * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
343         * tests/lisp6.test: New file.
344         * tests/Makefile.am (TESTS): Add it.
346         * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
347         $(am__ELCFILES), and always push it on @all.  Do not mention
348         elc-stamp.
349         * lib/am/lisp.am (.el.elc): Rewrite as ...
350         ($(am__ELCFILES)): ... this, and depend on elc-stamp.
351         (elc-stamp): Make sure elc-stamp is older that all .elc files, as
352         explained in the manual entry below.
354         * doc/automake.texi (Multiple Outputs): New node.
356 2004-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
358         * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
359         * tests/regex.test: New file.
360         * tests/Makefile.am (TESTS): Add regex.test.
362 2004-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
364         * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
365         * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
366         lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
367         lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
368         installation paths in install, uninstall, and installcheck rules,
369         as well as in am__installdirs variables.  This is for the sake
370         of paths containing spaces.
371         * lib/am/install.am (installdirs-am, installdirs): Do not try
372         to create "" directories.
373         * test/instspc.test: New file.
374         * test/Makefile.am (TESTS): Add instspc.test.
375         Report from James Amundson.
377         * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
378         (Extending): Make it a subsection of Not Enough.
380         * lib/gnupload (GPG): Use an absolute path.  Suggestion from Gary
381         V. Vaughan.
382         (passphrase): Unset it this variable before using it, in case it
383         was exported.  Report from Scott James Remnant.
385 2004-01-25  Alexandre Duret-Lutz  <adl@gnu.org>
387         * lib/gnupload (usage): Fix example.
388         * Makefile.am (cvs-release): Fix call to gnupload.
389         From Jim Meyering.
391 2004-01-24  Alexandre Duret-Lutz  <adl@gnu.org>
393         * lib/gnupload: New script.
394         * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
395         * Makefile.am (cvs-release): New target.
397 2004-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
399         * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
400         Fix python10.test.
402         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
403         instead of `/xx/ s///p'; the latter fails when GNU sed is run with
404         POSIXLY_CORRECT.  Also strip superfluous -e.
405         Report from Miloslav Trmac.
407 2004-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
409         * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
410         this fixes a spurious failure reported by Andreas Schwab.  Also
411         make sure ylwrap is not installed unless needed, and exercise
412         --no-force.
414 2004-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
416         * doc/automake.texi (Dist): Document limitations of distcheck-hook
417         and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
418         subpackages.
420 2004-01-20  Alexandre Duret-Lutz  <adl@gnu.org>
422         * doc/automake.texi (Upgrading): New node.
424 2004-01-20  Gary V. Vaughan  <gary@gnu.org>
426         * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
427         correctly called without arguments as evidenced by the libtool
428         demo directories.
430 2004-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
432         * tests/conflnk3.test: Skip if `test -e' does not work.
433         Report from Lars Hecking.
435 2004-01-13  Jim Meyering  <jim@meyering.net>
437         * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
438         assignment.  Remove spurious SPACEs before TABs.
440 2004-01-12  Alexandre Duret-Lutz  <adl@gnu.org>
442         * lib/py-compile: Check input files after option processing.
443         Ensure --basedir has an argument.
444         * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
445         if nothing was installed.
446         * tests/python10.test: New file.
447         * tests/Makefile.am (TESTS): Add python10.test.
448         Suggested by Sander Niemeijer.
450         * tests/txinfo29.test: Remove autom4te.cache.
451         Report from Greg Schafer.
453         * lib/install-sh: Do not use "$@" in a context where it may be empty,
454         for the sake of OSF1/Tru64's shell.
455         Report from He Li.
457 2004-01-11  Alexandre Duret-Lutz  <adl@gnu.org>
459         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
460         versions.
462         * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
463         copyright years and serial.
465         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
467 2004-01-10  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
469         * m4/as.m4 (AM_PROG_AS): Format and align help string more
470         consistently.
471         * m4/depend.m4 (AM_DEP_TRACK): Likewise.
472         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
473         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
474         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
476 2004-01-10  Paul Eggert  <eggert@twinsun.com>
478         * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
479         expressions; it doesn't conform to POSIX.
481 2004-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
483         * automake.in (shadow_unconditionally): New function...
484         (handle_source_transform): ... extracted from here.
485         (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
486         * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
487         lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
488         * tests/cond33.test: Make sure all conditional files are distributed.
489         Report from Ralf Corsepius.
491 2004-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
493         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
494         * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
495         as well as `install-sh sources... dest' with multiple sources.
496         * tests/cond33.test: New file.
497         * tests/instsh2.test: Add more checks for install-sh.
498         * tests/transform.test: Test for installdirs.
499         * tests/Makefile.am (TESTS): Add cond33.test
500         Report from Ralf Corsepius.
502         * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
503         do not look like DEST:SRC.
504         * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
506 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
508         Fix for PR automake/289:
509         * automake.in (Automake::Struct::libtool_tag): New attribute.  Define
510         it for the language that have a Libtool tag.
511         (%libtool_tags): New variable.
512         (handle_languages, define_compiler_variable)
513         (define_linker_variable): Pass --tag=XXX to libtool if supported.
514         (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
515         * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
516         output.
518 2003-01-07  Eric Sunshine  <sunshine@sunshineco.com>  (tiny change)
520         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
521         config.status.lineno.
523 2004-01-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
525         * doc/automake.texi (Rebuilding): Typo.
527 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
529         * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
531 2004-01-06  Alexandre Duret-Lutz  <adl@gnu.org>
533         * THANKS: Add Bruce Korb.
535 2004-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
537         Mimic Paul Eggert's changes to Autoconf.
538         * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
539         * lib/Automake/Makefile.am (Config.pm): Likewise.
540         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
542         * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
543         am__vpath_adj, and am__strip_dir.
544         * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
545         * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
546         lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
547         $(am__vpath_adj_setup), and $(am__strip_dir) in install and
548         uninstall rules.  This fixes installation of nobase_ files in
549         VPATH setups with Sun and OSF1/Tru64 Make.
550         * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
551         $(am__strip_dir) to simplify install and uninstall rules.
552         * tests/nobase.test: Augment to check installation from VPATH builds.
554         * automake.in (%transformed_files): New variable.
555         (initialize_per_input): Reset it.
556         (make_paragraphs): Fill %transformed_files, and define %FIRST%
557         each time a file is transformed for the first time.
558         (handle_configure): Do not define %FIRST_CONFIG_HIN%.
559         (am_install_var): Do not define %FIRST%.
560         * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
562 2004-01-04  Alexandre Duret-Lutz  <adl@gnu.org>
564         * lib/texinfo.tex: New upstream version.
566         * m4/mkdirp.m4: Do not use `-m 0755'.  This overrides special bits
567         and break setups where 775 directories are expected.  Just obey
568         umask as we did in the past.
569         Report from Harlan Stenn.
571 2004-01-03  Alexandre Duret-Lutz  <adl@gnu.org>
573         * automake.in (scan_texinfo_file): Do not compare $outfile to ''
574         as $outfile might not be defined at all.
576         * lib/Automake/Variable.pm (define): Rework the way we check
577         Automake variable definition.  Ensure consistent :=/+=/=
578         definitions only for variables that have been and are defined by
579         Automake, and make it an internal error.  Ignore Automake
580         attempts to touch a user variable, even with += assignments.
581         * tests/txinfo29.test: New file.
582         * tests/Makefile.am (TESTS): Add txinfo29.test.
583         Reported by Bruce Korb.
585 2004-01-02  Tom Tromey  <tromey@redhat.com>
587         * automake.in (handle_source_transform): Don't generate dist
588         variables when no-dist is set.
589         (generate_makefile): Likewise.
590         * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
591         and that dist target does not exist.
592         Reported by Tom Fitzsimmons.
594 2004-01-02  Alexandre Duret-Lutz  <adl@gnu.org>
596         * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
597         * tests/ltconv.test: Run automake with --add-missing, because
598         the CVS version of libtoolize no longer install config.sub and
599         config.guess by default.
601         Fix for PR automake/319:
602         * aclocal.in (scan_m4_files): Scan configure.ac.
603         (trace_used_macros, write_aclocal): Remove configure.ac from the
604         list of files to include.
605         * tests/Makefile.am (TESTS): Add acloca15.test.
606         * tests/acloca15.test: New file.
608         * aclocal.in (%file_includes): New variable.
609         (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
610         (scan_file): Scan for included files, and process these files
611         recursively.  Fill %file_includes and %file_contents.  Return the
612         list of included files, not the contents.
613         (scan_m4_files): Adjust calls to scan_files.
614         (strip_redundant_includes): New function.
615         (trace_used_macros): Call it.
616         (write_aclocal): Likewise.  Also check the mtime of included files.
617         * tests/Makefile.am (TESTS): Add acloca14.test.
618         * tests/acloca14.test: New file.
619         Report from Phil Edwards.
621 2004-01-01  Alexandre Duret-Lutz  <adl@gnu.org>
623         * automake.in (handle_languages): Do not define DEP_FILES.
624         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
625         files with $(DEPDIR) in their name instead of DEP_FILES.
626         * tests/depend.test, tests/depend4.test, tests/exsource.test:
627         Adjust.
628         Suggested by Tom Tromey.
630         Do not output .lo rules for programs and static libraries objects,
631         and do not output .o/.obj rules for libtool libraries.  This is
632         about explicit rules only, not inference rules.
633         * automake.in (handle_single_transform_list): Rename as ...
634         (handle_single_transform): ... this.  Take a single file
635         to transform (it was only called this way) and accept a new
636         %transform argument.  Fill %lang_specific_files with list
637         references instead of strings, and append %transform to each
638         of these lists.
639         (define_objects_from_sources, handle_source_transform):
640         Take a %transform argument, and forward it to &handle_single_transform.
641         (handle_languages): Adjust to the new format of
642         %lang_specific_files, and honor its %transform part.
643         (handle_programs, handle_libraries, handle_ltlibraries): Override
644         %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
645         (make_paragraphs): Define %NONLIBTOOL% by default.  Make sure
646         %transform settings override global settings.
647         * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
648         * tests/libtool3.test: Augment to check Makefile.ins for unneeded
649         rules.
650         Suggested by Thomas Fitzsimmons.
652         * automake.in, aclocal.in: Bump copyright years.
654 2003-12-31  Alexandre Duret-Lutz  <adl@gnu.org>
656         * automake.in (generate_makefile): Update misleading comment.
658         * automake.in (handle_languages): Define %DEPBASE% conditionally
659         on subdir-objects.  Define SUBDIROBJ.  Do not clean *_.c files
660         here ...
661         (lang_c_finish): ... do it here.
662         (handle_single_transform_list): Do not output specific rules for
663         subdir-objects files which are not renamed.  This should reduce
664         the size of Makefiles with lots of subdirectory sources.
665         * lib/depcomp: Simplify computation of dependency output, and use
666         DEPDIR.
667         * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
668         to depcomp.  Compute depbase on-the-fly in generic fastdep rules
669         for subdir-objects.
670         * tests/ansi9.test: Do not grep for an explicit rule that
671         we no longer expect.  Really run $MAKE to make sure the chain
672         of rules works.
673         * tests/yacc5.test: Do not grep for an explicit rule that
674         we no longer expect.  Adjust to use set -e.
676 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
678         * automake.in (@common_files): Move configure, configure.ac, and
679         configure.in ...
680         (@common_sometimes): ... here so that these files do not appear
681         twice in DIST_COMMON.
683         * automake.in (maybe_push_required_file): Add $(srcdir) in front
684         a required files outside the current directory or its subdirectories.
685         * lib/am/distdir.am (distdir): Update comment.
686         Report from Nicolas Joly.
688 2003-12-26  Alexandre Duret-Lutz  <adl@gnu.org>
690         * doc/automake.texi (@copying): Do not repeat the version.
691         (Top): Use @insertcopying.  Add a @detailmenu, this works around
692         Emacs 21's inability to lookup indices in sub-nodes (reported
693         by Kevin Ryde).
694         (C++ Support, Assembly Support, Fortran 77 Support, Java Support,
695         Support for Other Languages, Preprocessing Fortran 77, Compiling
696         Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
697         is Chosen): Add missing descriptions in menus.
698         (Fortran 77 and Autoconf): Remove, this node was just saying "use
699         Autoconf 2.53 or greater".
701 2003-12-26  Santiago Vila  <sanvila@unex.es>  (tiny change)
703         * NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
705 2003-12-25  Nicolas Joly  <njoly@pasteur.fr>  (tiny change)
707         * doc/automake.texi (Conditional Sources): Typo.
709 2003-12-25  Alexandre Duret-Lutz  <adl@gnu.org>
711         * lib/Automake/Config.in: Require Exporter.
712         Report from Kevin Ryde (failure with Perl 5.005_03).
714 2003-12-15  Alexandre Duret-Lutz  <adl@gnu.org>
716         * tests/aclocal6.test: Check for autom4te.cache only if it has
717         been created.
718         * tests/maintclean.test: Update comment.
719         Report from Bruno Haible.
721         * tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
722         Require texi2dvi-o.
723         Report from Václav Haisman.
725 2003-12-10  Alexandre Duret-Lutz  <adl@gnu.org>
727         * configure.ac, NEWS: Bump version to 1.8a.
729         * configure.ac, NEWS: Bump version to 1.8.
731         * lib/texinfo.tex: New upstream version.
733         * Makefile.am (INSTALL): Copy the source from $(srcdir).
735 2003-12-09  Alexandre Duret-Lutz  <adl@gnu.org>
737         * lib/Automake/Rule.pm (define): Remove debugging traces.
738         Report from Akim Demaille.
740 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
741             Alexandre Duret-Lutz  <adl@gnu.org>
743         * Makefile.am (do_subst): Fix the substitution of @configure_input@.
744         (automake, aclocal): Create the output atomically and make it
745         read-only, as done in the Autoconf package.
746         * lib/Automake/Makefile.am (do_subst): Fix the substitution of
747         @configure_input@.
748         (Config.pm): Create the output atomically and make it read-only.
749         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
750         @configure_input@ and make the output read-only.
751         * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
752         tests/automake.in, tests/defs.in: Add a @configure_input@ line.
754 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
756         * doc/automake.texi (Local Macros, CVS): Typos.
758 2003-12-08  Alexandre Duret-Lutz  <adl@gnu.org>
760         * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $\&.
761         Perl 5.6.0 will not accept a reference sub reference for the
762         latter.
763         * automake.in (var_SUFFIXES_trigger): Adjust registration via
764         Automake::Variable::hook.
765         (handle_texinfo_helper): Make sure `inner_expand => 1' appears
766         on one line, so that Perl 5.6.0 does not complain about
767         inner_expand being a bare identifier.
769 2003-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
771         * aclocal.in (check_acinclude, scan_file): Output `warning:' in
772         front of warnings.
773         Report from Pavel Roskin.
775 2003-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
777         * TODO: Remove some old entries.
779         * doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
780         and CONFIG_STATUS_DEPENDENCIES.  Move this sections later
781         in the manual since it's pretty advanced material.
783         * automake.in ($config_header_location): Remove.  Use
784         %ac_config_files_location instead.
785         (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
786         at the top-level.
787         (handle_configure): Use rewrite_inputs_into_dependencies to
788         distribute and compute AC_CONFIG_HEADERS dependencies.
789         (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
790         %ac_config_files_location.
791         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
792         (%CONFIG_HIN%): ... this.  $(srcdir) is already added in
793         scan_autoconf_traces.
794         * tests/Makefile.am (TESTS): Add confh5.test.
795         * tests/confh5.test: New file.
797         * tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
798         $< is not portable and the source is in $(srcdir).
800 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
801             Alexandre Duret-Lutz  <adl@gnu.org>
803         * automake.in (handle_configure): Do not require link sources if
804         they contain a dollar, or if they were built.  Likewise, do not
805         clean link destination if they contain a dollar.
806         (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
807         %ac_config_files_location with link destinations.  Do not
808         store locations in @config_links, now that %ac_config_files_location
809         have them.
810         * tests/conflnk3.test: New file.
811         * tests/Makefile.am (TESTS): Add conflnk3.test.
813 2003-12-02  Alexandre Duret-Lutz  <adl@gnu.org>
815         * configure.ac, NEWS: Bump version to 1.7i.
817         * configure.ac, NEWS: Bump version to 1.7h.
819         * doc/automake.texi (Default _SOURCES): Fix reference to true.
821         * lib/texinfo.tex: New upstream version.
823 2003-11-30  Alexandre Duret-Lutz  <adl@gnu.org>
825         * automake.in (handle_source_transform): If it's present, use
826         libfoo_la.c instead of libfoo.c as the default source of
827         libfoo.la, and issue an -Wobsolete diagnostic.  Do not be
828         greedy in the suffix replacement regex.
829         * doc/automake.texi (Default _SOURCES): New node.
830         (Program Sources, Libtool Modules): Refer to it.
831         * tests/ltlibsrc.test: Update to check for old default source files.
833 2003-11-30  Gary V. Vaughan  <gary@gnu.org>
835         * automake.in (&handle_source_transform): Calculate a default file
836         for use in the absence of an appropriate _SOURCES declaration by
837         first stripping any suffix from the unxformed target name, and
838         appending `.c'.
839         * doc/automake.texi (Program Sources, Libtool Modules): Document this.
840         * tests/ltlibsrc.test: New file.
841         * tests/Makefile.am (TESTS): Add ltlibsrc.test.
843 2003-11-29  Alexandre Duret-Lutz  <adl@gnu.org>
845         * lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
846         _value_as_list_recursive_worker): Merge into ...
847         (value_as_list_recursive): ... this function.  Pass options
848         as a hash argument, and use the `location' option to trigger
849         the behavior of loc_and_value_as_list_recursive.
850         (traverse_recursively, transform_variable_recursively): Take
851         options as a %options argument.
852         (_do_recursive_traversal): Perform expansion of inner variables
853         (as in `$(FILE).ext') on request.
854         * automake.in (handle_options, check_libobjs_sources)
855         (handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
856         (handle_ltlibraries, handle_man_pages, handle_dist)
857         (handle_gettext, am_install_var): Adjust usage of
858         value_as_list_recursive.
859         (handle_texinfo_helper): Pass inner_expand to
860         value_as_list_recursive.
861         * tests/txinfo28.test: New file.
862         * tests/Makefile.am (TESTS): Add txinfo28.test.
863         Report from Ralf Corsepius.
865         * lib/Automake/Variable.pm (_do_recursive_traversal): Do not
866         update @_substfroms and @_substfroms for undefined variables.
867         * tests/substre2.test: New file.
868         * tests/Makefile.am (TESTS): Add substre2.test.
870         * lib/Automake/VarDef.pm (value): Rename as ...
871         (raw_value): ... this.
872         (value): New method, strip # and \\\n.
873         (dump): Use raw_value.
874         * lib/Automake/Variable.pm (output): Use raw_value.
875         (value_as_list): Simplify, now that backslash and comments
876         are already removed.
877         * tests/txinfo22.test: Make sure Automake isn't confused
878         by comments in variables.
880 2003-11-27  Alexandre Duret-Lutz  <adl@gnu.org>
882         * doc/automake.texi: More target vs. rule editing.  Back out some
883         of the previous changes.  It's OK to talk about targets as "entry
884         points", or as thing to build, but targets cannot be run: rules
885         are run.
887         * doc/automake.texi: s/target/rule/ where appropriate.  A target
888         is the destination of a target rule, not the rule itself.
889         Suggested by Bruno Haible.
891 2003-11-25  Alexandre Duret-Lutz  <adl@gnu.org>
893         * configure.ac, NEWS: Bump version to 1.7g.
895         * configure.ac, NEWS: Bump version to 1.7f.
897         * automake.in (prepend_srcdir): Parenthesize @inputs to remove
898         a maintainer-check warning.
899         * tests/subst2.test: Rewrite the $MAKE invocation to please
900         maintainer-check.
902         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
903         versions.
905         * doc/automake.texi (Program variables): Mention per-target
906         _CPPFLAGS in the documentation of INCLUDES.
907         * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic.
908         Report from Bob Friesenhahn.
910         * doc/automake.texi (Extending): Elaborate on overriding.
911         * NEWS: Likewise.
912         Suggested by Bruno Haible.
914 2003-11-24  Alexandre Duret-Lutz  <adl@gnu.org>
916         * lib/Automake/Variable.pm (output): Add $(am__empty) to variable
917         definitions that end with a line full of @substitutions@ that
918         would confuse HP-UX Make if it were blank.
919         (transform_variable_recursively): Make sure not to erase empty
920         variables.
921         * tests/Makefile.am (TESTS): Add subst2.test.
922         * tests/subst2.test: New file.
923         Report from Harlan Stenn.
925         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Work around a
926         Texinfo 4.1 bug.
927         Report from Dalibor Topic.
929 2003-11-22  Alexandre Duret-Lutz  <adl@gnu.org>
931         Fix for PR automake/411:
932         * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename
933         into ...
934         (prepend_srcdir): ... this.
935         (rewrite_inputs_into_dependencies): New function, extracted from ...
936         (handle_configure): ... here.  Adjust to use prepend_srcdir
937         or rewrite_inputs_into_dependencies where needed.  Especially,
938         using (the new) rewrite_inputs_into_dependencies to compute
939         Makefile dependencies will fix PR/411.
940         * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's
941         already distributed by rewrite_inputs_into_dependencies.
942         * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test.
943         * tests/colon3.test: Use set -e.  Don't allow any AUTOMAKE
944         invocation refer to zardoz.  Make sure two.in and three.in
945         appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies.
946         * tests/distcom.test: Delete.  This is covered by tests/output9.test.
947         * tests/output10.test: New file, for PR/411.
949 2003-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
951         * automake.in (append_exeext): Do not append $(EXEEXT) to
952         @substitutions@.
953         * tests/exeext4.test: New file.
954         * tests/Makefile.am (TESTS): Add exeext4.test.
956 2003-11-19  Alexandre Duret-Lutz  <adl@gnu.org>
958         * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%,
959         mistakenly added on 2001-03-05.
960         * tests/remake5.test: New file.
961         * tests/Makefile.am (TESTS): Add remake5.test.
962         Report from Ralf Corsepius.
964 2003-11-18  Alexandre Duret-Lutz  <adl@gnu.org>
966         * configure.ac, NEWS: Bump version to 1.7e.
968         * configure.ac, NEWS: Bump version to 1.7d.
970         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New
971         upstream versions.
973 2003-11-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>  (tiny change)
974             Alexandre Duret-Lutz  <adl@gnu.org>
976         * lib/am/texinfos.am (install-info): Depend on
977         install-info-recursive or install-info-am even if no-installinfo.
978         * tests/txinfo27.test: New file.
979         * tests/Makefile.am (TESTS): Add txinfo26.test.
981 2003-11-18  Paolo Bonzini  <bonzini@gnu.org>
982             Alexandre Duret-Lutz  <adl@gnu.org>
984         * lib/ylwrap: Do not overwrite headers if they haven't changed.
985         Fix the include guard substitution.
986         * tests/yacc6.test: Augment to run ylwrap, and make sure it
987         does not needlessly update headers.
988         * tests/yacc8.test: Make sure headers are not needlessly updated
989         with ylwrap is not used.  Move `test -f foo.o' into the
990         Makefile as `test -f foo.$(OBJEXT)' for portability.
992 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
994         * automake.in (generate_makefile): Define SUBDIRS if it is
995         not defined and DIST_SUBDIRS is.
996         * tests/subpkg2.test: New file.
997         * tests/Makefile.am (TESTS): Add subpkg2.test.
998         Report from Gary V. Vaughan.
1000         * tests/suffix11.test: Check for suffixes containing `-'.
1001         * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
1002         suffixes.
1004         * lib/Automake/Rule.pm (define): Suggest using target-local instead
1005         of target-am, not target-am-local.
1006         * tests/overrid.test: Check the diagnostic for clean-am.
1007         Report from Bruno Haible.
1009 2003-11-17  Jim Meyering  <jim@meyering.net>
1011         * bootstrap: Require not only that `perl' have the executable
1012         bit set, but also that it is not a directory.
1014         * lib/am/configure.am: Mark %MAKEFILE% as `.PRECIOUS'.
1016 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
1018         * automake.in (ac_config_files_location): Declare as a hash.
1019         (handle_configure): Rewrite the computation of AC_CONFIG_FILES
1020         dependencies; make sure we don't use $(srcdir) or $(top_srcdir)
1021         for inputs which are also outputs, and do not check inputs
1022         relatively to the current directory.
1023         (scan_autoconf_config_files): Take $where as argument, and
1024         fill $ac_config_files_location.
1025         * tests/output8.test, tests/output9.test: New files.
1026         * tests/Makefile.am (TESTS): Add output8.test and output9.test.
1027         Report from Bruno Haible.
1029 2003-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
1031         * tests/aclibobj.test, tests/aclocal.test, tests/aclocal3.test,
1032         tests/acoutbs.test, tests/acoutbs2.test, tests/acoutnoq.test,
1033         tests/acoutpt.test, tests/acoutpt2.test, tests/acoutqnl.test,
1034         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
1035         tests/all.test, tests/alpha.test, tests/amassign.test,
1036         tests/ammissing.test, tests/ansi.test, tests/ansi10.test,
1037         tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
1038         tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
1039         tests/ansi7.test, tests/ansi9.test, tests/ar.test,
1040         tests/autohdr.test, tests/autohdr2.test, tests/auxdir.test,
1041         tests/auxdir2.test, tests/backsl.test, tests/backsl2.test,
1042         tests/badprog.test, tests/block.test, tests/canon2.test,
1043         tests/canon3.test, tests/canon4.test, tests/canon5.test,
1044         tests/ccnoco.test, tests/check.test, tests/check2.test,
1045         tests/check3.test, tests/checkall.test, tests/clean.test,
1046         tests/colneq2.test, tests/colon.test, tests/colon2.test,
1047         tests/colon3.test, tests/colon4.test, tests/colon5.test,
1048         tests/colon6.test, tests/colon7.test, tests/comment.test,
1049         tests/comment2.test, tests/comment4.test, tests/comment6.test,
1050         tests/comment7.test, tests/compile_f_c_cxx.test, tests/cond.test,
1051         tests/cond10.test, tests/cond11.test, tests/cond13.test,
1052         tests/cond14.test, tests/cond15.test, tests/cond16.test,
1053         tests/cond17.test, tests/cond18.test, tests/cond19.test,
1054         tests/cond21.test, tests/cond22.test, tests/cond25.test,
1055         tests/cond26.test, tests/cond28.test, tests/cond3.test,
1056         tests/cond4.test, tests/cond5.test, tests/cond6.test,
1057         tests/cond7.test, tests/cond8.test, tests/cond9.test,
1058         tests/condd.test, tests/condinc.test, tests/condlib.test,
1059         tests/condman.test, tests/condman2.test, tests/conf2.test,
1060         tests/confdeps.test, tests/confh.test, tests/confh4.test,
1061         tests/config.test, tests/confincl.test, tests/conflnk.test,
1062         tests/conflnk2.test, tests/confsub.test, tests/confvar.test,
1063         tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1064         tests/cxx.test, tests/cxxansi.test, tests/cxxcpp.test,
1065         tests/cxxlibobj.test, tests/cxxlink.test, tests/cxxnoc.test,
1066         tests/cxxo.test, tests/cygwin32.test, tests/dash.test,
1067         tests/defun.test, tests/defun2.test, tests/dejagnu.test,
1068         tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test,
1069         tests/dejagnu6.test, tests/dejagnu7.test, tests/depacl2.test,
1070         tests/depcomp.test, tests/depcomp2.test, tests/depcomp4.test,
1071         tests/depdist.test, tests/depend.test, tests/depend2.test,
1072         tests/depend3.test, tests/depend4.test, tests/destdir.test,
1073         tests/dirlist.test, tests/discover.test, tests/distcom.test,
1074         tests/distcom2.test, tests/distdir.test, tests/distname.test,
1075         tests/dollar.test, tests/double.test, tests/dup2.test,
1076         tests/empty.test, tests/empty2.test, tests/empty3.test,
1077         tests/empty4.test, tests/error.test, tests/exdir.test,
1078         tests/exeext.test, tests/exeext3.test, tests/exsource.test,
1079         tests/ext.test, tests/ext2.test, tests/extra.test,
1080         tests/extra2.test, tests/extra3.test, tests/extra4.test,
1081         tests/extra5.test, tests/extra6.test, tests/extra7.test,
1082         tests/flibs.test, tests/fnoc.test, tests/fo.test,
1083         tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1084         tests/fpinstall.test, tests/gcj.test, tests/gcj3.test,
1085         tests/gcj4.test, tests/gnits2.test, tests/gnits3.test,
1086         tests/header.test, tests/implicit.test, tests/include.test,
1087         tests/include2.test, tests/info.test, tests/insh2.test,
1088         tests/install2.test, tests/installdir.test, tests/instdat.test,
1089         tests/instdat2.test, tests/instexec.test, tests/insthook.test,
1090         tests/instman.test, tests/instman2.test, tests/instsh.test,
1091         tests/instsh2.test, tests/interp.test, tests/interp2.test,
1092         tests/java.test, tests/java2.test, tests/javaprim.test,
1093         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
1094         tests/lex.test, tests/lex3.test, tests/lex4.test, tests/lex5.test,
1095         tests/libobj11.test, tests/libobj2.test, tests/libobj4.test,
1096         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
1097         tests/library.test, tests/libtool.test, tests/libtool2.test,
1098         tests/libtool3.test, tests/libtool5.test, tests/link_c_cxx.test,
1099         tests/link_dist.test, tests/link_f_only.test, tests/link_fc.test,
1100         tests/link_fccxx.test, tests/link_fcxx.test, tests/lisp.test,
1101         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
1102         tests/maintclean.test, tests/make.test, tests/makej.test,
1103         tests/makevars.test, tests/man.test, tests/man2.test,
1104         tests/mclean.test, tests/mdate.test, tests/mdate2.test,
1105         tests/mdate3.test, tests/mdate4.test, tests/mkinst2.test,
1106         tests/mkinstall.test, tests/nobase.test, tests/nodef.test,
1107         tests/nodef2.test, tests/nodep.test, tests/nodepcomp.test,
1108         tests/nodist.test, tests/nodist2.test, tests/nodist3.test,
1109         tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
1110         tests/nostdinc.test, tests/number.test, tests/obsolete.test,
1111         tests/order.test, tests/outdir.test, tests/output.test,
1112         tests/output2.test, tests/output3.test, tests/output4.test,
1113         tests/parse.test, tests/phony.test, tests/pluseq.test,
1114         tests/pluseq10.test, tests/pluseq2.test, tests/pluseq3.test,
1115         tests/pluseq4.test, tests/pluseq6.test, tests/pluseq8.test,
1116         tests/postproc.test, tests/ppf77.test, tests/pr2.test,
1117         tests/pr204.test, tests/pr220.test, tests/pr224.test,
1118         tests/pr229.test, tests/pr243.test, tests/pr266.test,
1119         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
1120         tests/pr300-lib.test, tests/pr300-ltlib.test,
1121         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
1122         tests/pr87.test, tests/pr9.test, tests/prefix.test,
1123         tests/proginst.test, tests/python.test, tests/python3.test,
1124         tests/python4.test, tests/python5.test, tests/python6.test,
1125         tests/python7.test, tests/python8.test, tests/python9.test,
1126         tests/recurs2.test, tests/remake.test, tests/remake2.test,
1127         tests/remake3.test, tests/req.test, tests/reqd.test,
1128         tests/rulepat.test, tests/scripts.test, tests/sinclude.test,
1129         tests/space.test, tests/specflg3.test, tests/specflg6.test,
1130         tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
1131         tests/spell3.test, tests/spelling.test, tests/spy.test,
1132         tests/stamph2.test, tests/stdlib2.test, tests/strip.test,
1133         tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
1134         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
1135         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
1136         tests/subdirbuiltsources.test, tests/subobj.test,
1137         tests/subobj2.test, tests/subobj3.test, tests/subobj4.test,
1138         tests/subobj5.test, tests/subobj6.test, tests/subobj7.test,
1139         tests/subobj8.test, tests/subobj9.test, tests/subobjname.test,
1140         tests/subpkg.test, tests/subst.test, tests/substref.test,
1141         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
1142         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
1143         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
1144         tests/suffix9.test, tests/symlink2.test, tests/symlink3.test,
1145         tests/tags.test, tests/tagsub.test, tests/target-cflags.test,
1146         tests/transform.test, tests/txinfo.test, tests/txinfo10.test,
1147         tests/txinfo13.test, tests/txinfo16.test, tests/txinfo17.test,
1148         tests/txinfo18.test, tests/txinfo2.test, tests/txinfo23.test,
1149         tests/txinfo24.test, tests/txinfo25.test, tests/txinfo26.test,
1150         tests/txinfo3.test, tests/txinfo5.test, tests/txinfo6.test,
1151         tests/txinfo7.test, tests/txinfo8.test, tests/txinfo9.test,
1152         tests/unused.test, tests/vars.test, tests/vars3.test,
1153         tests/vartar.test, tests/version.test, tests/version2.test,
1154         tests/version4.test, tests/version6.test, tests/version7.test,
1155         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
1156         tests/werror.test, tests/whoami.test, tests/yacc.test,
1157         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
1158         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
1159         tests/yaccpp.test, tests/yaccvpath.test: Fix license to refer
1160         to Automake, not autoconf.
1162         Fix for PR automake/408:
1163         * lib/am/texinfos.am (install-info-am): Strip any $(srcdir)/ prefix
1164         from $file, as already done for dist-info.
1165         * tests/Makefile.am (TESTS): Add txinfo26.test.
1166         * tests/txinfo26.test: New file.
1167         Report from Nicholas Wourms.
1169 2003-11-13  Alexandre Duret-Lutz  <adl@gnu.org>
1171         * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
1172         running AC_CHECK_PROGS(EMACS).
1173         * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
1174         Report from Jens Petersen.
1176         * tests/mkinst2.test: Rewrite.
1178         * m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
1180 2003-11-12  Alexandre Duret-Lutz  <adl@gnu.org>
1182         * automake.in (scan_autoconf_traces): Honor sinclude.
1183         * tests/sinclude.test: Check for sinclude.
1184         Report from Roberto Bagnara.
1186 2003-11-11  Alexandre Duret-Lutz  <adl@gnu.org>
1188         * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck'
1189         already build the tarballs.  Commit files right before tagging.
1190         Check NEWS before running distcheck.
1192         * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space.
1194         * configure.ac, NEWS: Bump version to 1.7c.
1196         * configure.ac, NEWS: Bump version to 1.7b.
1197         * Makefile.am (maintainer-check): Ignore comments while
1198         scanning for rm without -f.
1200         * Makefile.am (fetch): Get all files from savannah.  Do not
1201         postprocess Struct.pm and XFiles.pm, since we now are the master
1202         of these.
1203         * lib/config.sub, lib/config.guess, lib/config-ml.in,
1204         lib/texinfo.tex: New upstream versions.
1206         * configure.ac: Check that autoconf is installed, that it works,
1207         and that it is recent enough in three steps, not one.
1209         * NEWS: Minor edits.
1211         * lib/Makefile.am (dist_script_DATA): Move config-ml.in ...
1212         (dist_pkgvdata_DATA): ... here.
1214         * tests/spy.test: Document overlapping ::-rules incompatibilities,
1215         and check only non-overlapping ::-rules.
1217         * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
1218         MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
1219         TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
1220         (Uniform): Do not speak of missing HTML support, this is
1221         confusing.
1222         * lib/Automake/Variable.pm (_silent_variable_override): Add
1223         AM_MAKEINFOHTMLFLAGS.
1224         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
1225         AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
1226         * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
1227         * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
1229 2003-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
1231         * tests/spy.test: New file.
1232         * tests/Makefile.am (TESTS): Add spy.test.
1234         * automake.in (handle_configure): Distribute and define mkinstalldirs
1235         only if it is already present in the package.
1236         (scan_autoconf_files): Do not require mkinstalldirs.
1237         (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs).
1238         * lib/am/data.am, lib/am/distdir.am, lib/am/install.am,
1239         lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am,
1240         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
1241         lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs).
1242         * m4/mkdirp.m4: New file.
1243         * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4.
1244         * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P.
1245         * tests/Makefile.am (TESTS): Remove insh.test.
1246         * tests/insh.test: Delete.
1247         * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs.
1248         * tests/auxdir.test: Install mkinstalldirs.
1249         * tests/distdir.test, tests/instman.test, tests/pr2.test: Use
1250         $(mkdir_p), not $(mkinstalldirs).
1251         * tests/empty.test: Run configure, do not substitute things by hand.
1252         * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh
1253         as an example, not mkinstalldirs.
1254         (Auxiliary Programs) <mkinstalldirs>: Update.
1256         * tests/defs.in: Handle required=bzip2.
1258         * tests/defs.in: Export SHELL.
1259         * tests/cond11.test: Missing quotes.
1260         * tests/nogzip2.test: Require bzip2.
1262 2003-11-09  Alexandre Duret-Lutz  <adl@gnu.org>
1264         * NEWS: Add news entries from 1.6.x and 1.7.x.
1266         * automake.texi (Optional) <AC_SUBST>: Grammar fixes.
1268         * automake.in (check_gnu_standards): Install COPYING only if
1269         none of COPYING, COPYING.LIB, or COPYING.LESSER exist.  Do not
1270         overwrite the license otherwise.
1271         * tests/Makefile.am (TESTS): Add license.test.
1272         * tests/license.test: New file.
1274         * lib/mkinstalldirs: Mention automake-patches@gnu.org and
1275         bug-automake@gnu.org.
1276         * lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
1277         Likewise.  Also add support for --help and --version.
1278         * lib/py-compile, lib/ylwrap: Likewise, and reindent.
1280 2003-11-08  Alexandre Duret-Lutz  <adl@gnu.org>
1282         * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
1283         * lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
1284         * lib/am/java.am (JAVACFLAGS): Remove.
1285         * tests/dejagnu3.test: Check that the environment value
1286         of RUNTESTFLAGS get passed down to runtest.
1287         Suggested by Mark Mitchell.
1289         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
1290         (?GENERIC?%EXT%.lo): Do not echo compile command manually, this
1291         breaks `make -s'.  Instead, fold the compile command on two lines,
1292         so that it take less space on the display.
1293         Suggested by Karl Berry and William Fulton.
1295         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
1296         (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
1297         to select $(srcdir) or `.' builds.
1298         (INFO_DEPS): Define here.
1299         * lib/am/texinfos.am (dist-info): Strip filename starting with
1300         "$(srcdir)/".
1301         * automake.in (output_texinfo_build_rules): Take a new argument
1302         $insrc, and adjust substitutions in 'texibuild'.
1303         (handle_texinfo_helper): Compute a regex of all user-cleaned
1304         files, and use this to select whether to build .info files in `.'
1305         or $(srcdir).  Give an account of the $(srcdir) vs `.' debacle.
1306         Alway build the version.texi and stamp files in $(srcdir).  Do not
1307         define INFO_DEPS.
1308         * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
1309         and txinfo25.test.
1310         * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
1311         New files.
1312         * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
1313         tests/vtexi.test: Adjust to new rules.
1315 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
1317         * m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
1318         * configure.ac: Require Autoconf 2.58a, and check for 2.58.
1320 2003-10-27  Alexandre Duret-Lutz  <adl@gnu.org>
1322         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
1323         * tests/Makefile.am (TESTS): Add autohdr3.test
1324         * tests/autohdr3.test: New file.
1326         * automake.in (handle_configure): Rename am__configure_deps
1327         as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
1328         $configure_ac.  Define am__configure_deps as am__aclocal_m4_deps
1329         + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4).  Do not define
1330         ACLOCAL_M4_DEPS while processing configure.am.
1331         (make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
1332         (scan_aclocal_m4): Do not distribute aclocal.m4, this
1333         is done from lib/am/configure.am.
1334         * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
1335         $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
1336         $(am__configure_deps) or $(am__aclocal_m4_deps).
1337         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
1339 2003-10-26  Alexandre Duret-Lutz  <adl@gnu.org>
1341         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
1342         $(am__configure_deps).
1344         * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
1345         sources, and without using require_file.  Define %CONFIG_H_DEPS%
1346         and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
1347         * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
1348         of (srcdir)/%CONFIG_HIN%.  Output the $(srcdir)/%CONFIG_HIN%
1349         rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
1350         * tests/autohdr4.test: New file.
1351         * tests/Makefile.am (TESTS): Add autohdr4.test.
1352         * tests/config.test: Do not grep, run things to see if they work.
1354 2003-10-25  Alexandre Duret-Lutz  <adl@gnu.org>
1356         * tests/output7.test: Populate sub/ with a dummy file, so that it
1357         is not empty.  This fixes a failure reported by Patrick Welche.
1358         * lib/am/distdir.am: Add note about tar's `-o' option and empty
1359         directories.
1361 2003-10-24  Didier Cassirame  <faded@free.fr>  (tiny change)
1363         * lib/ylwrap: Typo in regex.
1365 2003-10-23  Paul Eggert  <eggert@twinsun.com>
1367         * lib/Automake/XFile.pm: Don't assume -j is solo.
1368         Issue a more-informative diagnostic.
1369         Problems reported by Eric Sunshine.
1371 2003-10-21  Alexandre Duret-Lutz  <adl@gnu.org>
1373         * m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
1374         Always define lispdir.
1375         * lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
1376         $(EMACS) to decide whether _LISP files must be installed,
1377         not $(lispdir).
1378         * doc/automake.texi (Emacs Lisp): Mention the two ways to install
1379         non byte-compiled Emacs lisp files.
1380         * tests/lisp4.test, tests/lisp5.test: Check "make install"
1381         when EMACS=no.
1382         Suggested by Simon Josefsson.
1384         * NEWS: Clarify the entry about multiple conditional definitions
1385         of _PROGRAMS, _LDADD, and _LIBADD.
1386         Report from Simon Josefsson.
1388         * lib/am/install.am (install-strip): Override install_sh_PROGRAM
1389         too.
1390         Report from Elmar Hoffmann.
1392 2003-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
1394         * aclocal.in ("MAIN", usage, parse_arguments): Move near
1395         the end, so "MAIN" can use prototypes.
1396         (scan_configure): Move later too, for the sake of prototypes.
1397         (scan_configure_dep): Fix setting of $scanned_configure_dep.
1398         (trace_used_macros): Do not take any argument.
1400 2003-10-06  Alexandre Duret-Lutz  <adl@gnu.org>
1402         * tests/stdlib2.test: Check AM_LDFLAGS alone.
1404         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
1405         versions.
1407         * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
1408         * tests/stdlib2.test: New file.
1409         * tests/Makefile.am (TESTS): Add stdlib2.test.
1410         Report from Kevin P. Fleming.
1412 2003-10-03  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
1414         * tests/defs.in: For required=runtest, check that we are using
1415         a DejaGnu that supports specifying the program on the command-line.
1417 2003-10-03  Alexandre Duret-Lutz  <adl@gnu.org>
1419         For Debian Bug #213524:
1420         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
1421         stderr and stdout, and grep only the first line while testing
1422         install-info --version's output.  This revert part of the change
1423         from 2001-05-18.
1425 2003-10-01  Akim Demaille  <akim@epita.fr>
1427         * m4/amversion.in: Add (C) to the Copyright notice.
1429 2003-10-01  Paul Eggert  <eggert@twinsun.com>
1431         * lib/Automake/XFile.pm: Use Errno.
1432         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
1433         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
1435 2003-09-30  Tom Tromey  <tromey@redhat.com>
1437         * lib/Automake/Options.pm (_process_option_list): Recognize
1438         no-dist.
1439         * NEWS: Update.
1440         * doc/automake.texi (Options): Document no-dist.
1441         * automake.in (check_cygnus): Set no-dist option.
1442         (handle_dist): Recognize no-dist.
1443         * tests/nodist3.test: New file.
1444         * tests/Makefile.am (TESTS): Added nodist3.test.
1446 2003-09-29  Alexandre Duret-Lutz  <adl@gnu.org>
1448         * automake.in (handle_clean): Take $makefile as argument, and
1449         define %MAKEFILE% while processing clean.am.
1450         (generate_makefile): Pass $makefile to handle_clean.
1451         * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
1452         not Makefile.
1453         * tests/gnumake.test: New file.
1454         * tests/Makefile.am (TESTS): Add gnumake.test.
1455         Report from Braden N. McDaniel.
1457 2003-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
1459         * doc/automake.texi (Scripts): Update the example about automake.
1460         Mention `dist_' for distributed scripts.
1462         * lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
1463         Suggested by Eric Sunshine.
1465 2003-09-25  Alexandre Duret-Lutz  <adl@gnu.org>
1467         * README: More mailing lists.
1469         * NEWS: Mention the switch to GNU FDL for the manual.
1471 2003-09-24  Alexandre Duret-Lutz  <adl@gnu.org>
1473         * lib/install-sh (src, dst): Protect names starting with `-',
1474         as in mkinstalldirs.
1476         * configure.in: Rename as ...
1477         * configure.ac: ... this.
1478         * README: s/configure.in/configure.ac/.
1480         * doc/fdl.texi: New file.
1481         * doc/Makefile.am (automake_TEXINFOS): New variable.
1482         * doc/automake.texi (Copying This Manual): New appendix, include
1483         fdl.texi.
1484         (Macro and Variable Index, General Index): Move as subsections of ...
1485         (Indices): This new appendix.
1487         * doc/automake.texi: Refer to configure.ac instead of configure.in.
1489         * automake.texi: Move ...
1490         * doc/automake.texi: ... here.
1491         * doc/Makefile.am: New file.
1492         * configure.in: Output doc/Makefile.
1493         * Makefile.am (SUBDIRS): Add doc.
1494         (ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.
1496 2003-09-23  Alexandre Duret-Lutz  <adl@gnu.org>
1498         * aclocal.in (write_aclocal): Consider files with relative
1499         paths as local to the project, i.e., subject to m4_include.
1500         * tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
1501         is also used for .m4 files in the outer project.
1503         Support for multiple inputs in AC_CONFIG_FILES.
1504         Requested long ago by Harlan Stenn.
1505         * automake.in (handle_dist): Remove unused argument $makefile.
1506         (handle_subdirs): Expect SUBDIRS elements in $relative_dir,
1507         not $am_relative_dir.
1508         (rewrite_inputs_into_dependencies): Allow $add_srcdir to
1509         be a filename that must always be prefixed by $(srcdir) or
1510         $(top_srcdir).
1511         (handle_configure, generate_makefile): Revamp to make the
1512         Makefile.am, Makefile.in, Makefile more independent.
1513         (locate_am): New function.
1514         (scan_configure_dep, parse_arguments): Use locate_am.
1515         (MAIN): Adjust call to generate_makefile.
1516         * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
1517         of %MAKEFILE%.  %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
1518         * tests/output6.test, tests/output7.test: New files.
1519         * tests/Makefile.am (TESTS): Add them.
1520         * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
1521         multiple inputs are scanned.
1523 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
1525         * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
1526         and lib/Automake/Struct.pm from Autoconf.
1527         * lib/Automake/XFile.pm: Update comment, Automake is now
1528         the master for this file.  Cosmetic changes.
1530 2003-09-09  Akim Demaille  <akim@epita.fr>
1532         * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
1533         Reported by Gary Vaughan.
1534         (&find_file): Walk the @include in forward order.
1536 2003-09-09  Akim Demaille  <akim@epita.fr>
1538         * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
1539         trailing files.
1541 2003-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
1543         Changes to m4_included files should also cause aclocal.m4 to change.
1544         * aclocal.in (m4_include_rx): New variable.
1545         (scan_configure_dep): New function.
1546         (scan_configure, add_file): Simplify using scan_configure_dep.
1547         * tests/Makefile.am (TESTS): Add acloca13.test.
1548         * tests/aclocal13.test: New file.
1550         * tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
1551         that we have fake version in the $PATH.
1553         * aclocal.in (add_file): Remove useless filling of $output, probably
1554         left a after CVS conflict.  This code is now in write_aclocal.
1556         * aclocal.in (configure_ac): Do not call require_configure_ac
1557         before parsing the options.
1558         * automake.in (configure_ac): Likewise.
1559         * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
1560         find it.
1561         * lib/Automake/Configure_ac.pm (require_configure_ac):
1562         find_configure_ac never return an undefined value, so test
1563         the file's existence instead.
1564         * tests/Makefile.am (TESTS): Add help.test.
1565         * tests/help.test: New file.
1567 2003-09-06  Alexandre Duret-Lutz  <adl@gnu.org>
1569         * lib/Automake/XFile.pm: Update to use ChannelDefs.
1570         (close): Call Automake::FileUtils::handle_exec_errors on errors.
1571         * automake.in (scan_autoconf_files): Exit with $?=63 on version
1572         mismatch.
1573         (scan_autoconf_traces): Likewise.  Close the autoconf pipe to
1574         capture abnormal exits.
1575         * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
1576         instead.
1577         (trace_used_macros): Close the autom4te pipe to capture abnormal exits.
1578         * lib/missing: When a tool has run and exited with $?=63, emulate
1579         it.  Adjust the diagnostic and pretend the tool is tool old in this
1580         case.  Use an emacs-updated "scriptversion" variable.
1581         * configure.in: Output tests/aclocal-${APIVERSION} and
1582         tests/automake-${APIVERSION}.
1583         * tests/aclocal.in, tests/automake.in,
1584         tests/missing.test, tests/missing2.test: New files.
1585         * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
1586         to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
1587         * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
1588         already testing for this.
1589         * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
1590         configure.in so that aclocal works.
1591         * tests/defun.test: Quote the AC_DEFUN body.
1592         * tests/Makefile.am (TESTS): Add missing.test and missing2.test,
1593         and remove dup3.test.
1594         (check_SCRIPTS): Add aclocal and automake.
1596         * tests/unused.test: Quote AC_DEFUN arguments.
1598 2003-09-05  Paul Eggert  <eggert@twinsun.com>
1600         * NEWS, aclocal.in, automake.in, automake.texi, lib/ansi2knr.c,
1601         lib/depcomp, lib/missing, lib/py-compile,
1602         lib/Automake/Channels.pm, lib/Automake/Rule.pm,
1603         lib/Automake/Variable.pm, lib/Automake/tests/Condition.pl,
1604         lib/am/dejagnu.am, lib/am/depend.am, lib/am/lisp.am,
1605         lib/am/remake-hdr.am, lib/am/texi-vers.am, m4/obsolete.m4,
1606         m4/python.m4, tests/backsl4.test, tests/defs.in,
1607         tests/dejagnu7.test, tests/depacl2.test, tests/dirlist.test,
1608         tests/error.test, tests/getopt.test, tests/gnuwarn.test,
1609         tests/include2.test, tests/libobj10.test, tests/libtool5.test,
1610         tests/libtool6.test, tests/lisp3.test, tests/phony.test,
1611         tests/pr220.test, tests/subcond2.test, tests/subcond3.test,
1612         tests/vtexi.test:
1613         Spelling and minor grammar fixes.
1615 2003-09-01  Alexandre Duret-Lutz  <adl@gnu.org>
1617         * lib/config.sub, lib/config.guess, lib/texinfo.tex,
1618         lib/config-ml.in, lib/symlink-tree: New upstream versions.
1620 2003-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
1622         * tests/yacc7.test: Require bison.
1624 2003-08-31  Alexandre Duret-Lutz  <adl@gnu.org>
1626         * aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
1627         ($underquoted_manual_once): New variable.
1628         * automake.texi (Extending aclocal): Document this.
1630 2003-08-29  Alexandre Duret-Lutz  <adl@gnu.org>
1632         * aclocal.in (@file_order): New variable, to make sure
1633         files are output in the opposite order of the -I arguments.
1634         (scan_file): Fill it.
1635         (trace_used_macros, write_aclocal): Use it.
1636         (scan_m4_files): Reverse the directory contents, so that
1637         macros from the lexicographically greatest files are preferred.
1638         * tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
1639         New files.
1640         * tests/Makefile.am (TESTS): Add them.
1642 2003-08-24  Alexandre Duret-Lutz  <adl@gnu.org>
1644         For Debian Bug #206299:
1645         * automake.in ($configure_deps_greatest_timestamp,
1646         $output_deps_greatest_timestamp): New variables.
1647         (initialize_per_input): Reset $output_deps_greatest_timestamp.
1648         (scan_autoconf_traces, scan_autoconf_files, read_am_file):
1649         Update $configure_deps_greatest_timestamp and
1650         $output_deps_greatest_timestamp
1651         (generate_makefile): Rewrite the logic to decide whether
1652         to rewrite the output.  Move the leading dup_channel_setup
1653         and trailing drop_channel_setup to MAIN, so that
1654         drop_channel_setup is executed for all exit paths.
1655         * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
1656         * tests/distcom6.test: New file.  Report from Scott James Remnant.
1657         * tests/Makefile.am (TESTS): Add distcom6.test.
1659         * configure.in: Require Autoconf 2.57b to be sure
1660         aclocal can use autom4te --language Autoconf-without-aclocal-m4.
1661         * m4/init.m4: Likewise.  Move the AC_PREREQ and m4_pattern_allow
1662         calls inside the AM_INIT_AUTOMAKE macro.
1663         * m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
1664         AC_PREREQ calls inside the macros.
1665         * m4/header.m4: Remove AC_PREREQ.
1667         * automake.in (file_contents_internal): Do not add newlines before
1668         empty actions.
1670         * aclocal.in (write_aclocal): Take an output file and list of
1671         used macros in arguments and make up the file contents here.
1672         (trace_used_macros): New function.
1673         (add_file): Do not update $output.
1674         ($output): Delete.
1675         (MAIN): Call trace_used_macros.  Then rewrite aclocal.m4 only
1676         for these traced macros.  This should shorten aclocal.m4 by
1677         stripping out unused macros.
1678         * automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
1679         * tests/aclibobj.test: Make sure configure.in exists by the time
1680         aclocal runs.
1681         * tests/aclocal8.test: New file.
1682         * tests/Makefile.am (TESTS): Add aclocal8.test.
1683         Suggested by Bruno Haible and Akim Demaille.
1685 2003-08-21  Akim Demaille  <akim@epita.fr>
1687         * lib/Automake/Configure_ac.pm (&find_configure_ac)
1688         (&require_configure_ac): Accept an optional directory argument.
1689         ($configure_ac): Remove.
1690         * aclocal.in, automake.in ($configure_ac): New.
1691         * lib/Automake/Variable.pm: Don't use $configure_ac, just
1692         configure.ac.
1694 2003-08-20  Akim Demaille  <akim@epita.fr>
1696         * lib/Automake/FileUtils.pm: More perldoc.
1697         (&up_to_date_p): New.
1699 2003-08-17  Alexandre Duret-Lutz  <adl@gnu.org>
1701         Fix for PR automake/398:
1702         * m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
1703         set.  Display `none' instead of `:' and $PYTHON is set to `:'
1704         when no suitable interpreter is found.  Honor ACTION-IF-FOUND and
1705         ACTION-IF-NOT-FOUND.
1706         * automake.texi (Python): Document ACTION-IF-FOUND and
1707         ACTION-IF-NOT-FOUND.
1708         * tests/python4.test, tests/python5.test, tests/python6.test,
1709         tests/python7.test, tests/python8.test, tests/python9.test: New
1710         files.
1711         * tests/Makefile.am (TESTS): Add them.
1712         Report from Per Cederqvist.
1714 2003-08-13  Alexandre Duret-Lutz  <adl@gnu.org>
1716         Fix for PR automake/399:
1717         * m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
1718         Report from Per Cederqvist.
1720 2003-08-12  Raja R Harinath  <harinath@acm.org>
1722         * lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
1723         (not): Replace loop with 'map'.
1724         * lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
1725         * lib/Automake/Item.pm (not_alwasy_defined_in_cond):
1726         Don't 'simplify' result of 'invert', since it's already in
1727         canonical form.
1728         * lib/Automake/Rule.pm (define): Replace loop with
1729         'not_always_defined_in_cond'.
1731         * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
1732         * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
1733         (define): Reword comment slightly.
1734         * Variable.pm (_var_order, msg_cond_var): Typo in comment.
1735         * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
1736         spurious automake error exit.
1738 2003-08-12  Alexandre Duret-Lutz  <adl@gnu.org>
1740         * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
1741         * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
1742         * lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
1743         * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
1744         (new): Adjust to call Automake::ItemDef::new.
1745         (comment, location, owner): Delete.  Now inherited from ItemDef.
1746         * lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
1747         (_new): Adjust to call Automake::Item::new.
1748         (name, def, rdef, _set, conditions, not_always_defined_in_cond):
1749         Delete.  How inherited from Item, where `_set' is called `set'.
1750         * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
1751         (suffix_rules_default): Delete.  Now
1752         Automake::Rule::_suffix_rules_default
1753         (suffixes): Delete.  Now Automake::Rule::suffixes.
1754         (TARGET_AUTOMAKE, TARGET_USER): Delete.  Now
1755         Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
1756         (%targets, %target_source, %target_name, %target_owner): Delete,
1757         replaced by the Rule and RuleDef classes.
1758         (dependencies, depend, actions): Delete.  Now in Automake::Rule.
1759         (suffix_rules, register_suffix_rule): Likewise.
1760         (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
1761         (known_extensions_list): Delete.  Now
1762         Automake::Rule::_known_extensions_list.
1763         (target_conditions): Delete.  Now inherited by Automake::Rule
1764         from Automake::Item::conditions.
1765         (rule_define): Delete.  Now Automake::Rule::define.  Adjust all
1766         callers.
1767         (target_defined): Delete.  Now Automake::Rule::rule.  Adjust all
1768         callers.
1769         (initialize_per_input): Adjust to call Automake::Rule::reset.
1770         (err_target, err_cond_target, msg_cond_target, msg_target,
1771         reject_target): Delete.  Now defined in Automake::Rule as
1772         err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
1773         Adjust all callers.
1774         (handle_languages): Call suffix_rules_count.
1775         * tests/location.test: Adjust expected diagnostics.  We now display
1776         $(EXEEXT) accurately.
1778 2003-08-10  Alexandre Duret-Lutz  <adl@gnu.org>
1780         Revert the fix for PR automake/291:
1781         * lib/Automake/Variable.pm (define): Do not warn about variables
1782         starting with `_' which are an issue on NEWS-OS 4.2R.  According
1783         to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
1784         was released on 1996 and is not in wide use.  On the other hand,
1785         variables starting with `_' are mandatory in several situations,
1786         so diagnosing them is more annoying than useful.
1787         * tests/canon5.test: Do not use -Wno-portability.
1788         * tests/vars2.test: Delete.
1789         * tests/Makefile.am (TESTS): Remove vars2.test.
1790         Suggested by Jim Meyering.
1792 2003-08-09  Raja R Harinath  <harinath@acm.org>
1794         * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
1795         * lib/Automake/tests/DisjConditions.pl (test_ambig): Test
1796         Automake::Disjunctions::ambiguous_p.
1798 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
1800         * lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
1801         * lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
1802         * automake.in (rule_define): Adjust usage.
1803         * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
1805         * lib/Automake/Options.pm: New file.
1806         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
1807         * automake.in (FOREIGN, GNU, GNITS, $default_strictness)
1808         ($default_strictness_name, $strictness, $strictness_name)
1809         (%options, %global_options, process_option_list)
1810         (set_strictness): Remove, now in Options.pm.
1811         (initialize_per_input): Call Automake::Options::reset.
1812         (handle_options, get_object_extension, get_object_extension)
1813         (handle_languages, handle_single_transform_list, handle_compile)
1814         (handle_texinfo_helper, handle_man_pages, handle_dist)
1815         (handle_configure, do_check_merge_target)
1816         (handle_factored_dependencies, handle_tests)
1817         (handle_minor_options, scan_autoconf_traces, check_cygnus)
1818         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
1819         (make_paragraphs, am_install_var, parse_arguments): Adjust
1820         to set and read options via the new interface.
1822 2003-08-07  Raja R Harinath  <harinath@acm.org>
1824         * Makefile.am (maintainer-check): Update perllibdir.
1825         * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
1826         (EXTRA_DIST): Add Config.in.
1827         * Makefile.in, lib/Automake/Makefile.in: Regenerate.
1828         * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
1829         $perllibdir.
1831 2003-08-06  Raja R Harinath  <harinath@acm.org>
1833         * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
1834         from the builddir too, to pick up Automake::Config.
1835         * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
1836         * configure: Regenerate.
1837         * automake.in (BEGIN): Handle multiple directories in $perllibdir.
1838         * aclocal.in (BEGIN): Likewise.
1840 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
1842         * tests/ltcond.test: Thinko.
1844 2003-08-06  Alexandre Duret-Lutz  <adl@gnu.org>
1846         * lib/Automake/Config.in: New file.
1847         * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
1848         CLEANFILES): New variables.
1849         (Config.pm): New rule.
1850         * Makefile.am (maintainer-check): Adjust expected differences
1851         between automake.in and automake.
1852         * aclocal.in, automake.in: Use Automake::Config.
1854 2003-08-05  Alexandre Duret-Lutz  <adl@gnu.org>
1856         * tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
1858         * automake.in (handle_texinfo_helper): Use the user definition
1859         of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
1860         * tests/txinfo22.test: New file.
1861         * tests/Makefile.am (TESTS): Add txinfo22.test.
1862         Report from Tom Tromey.
1864 2003-08-03  Raja R Harinath  <harinath@acm.org>
1866         * lib/Automake/Variable.pm (@EXPORT): Remove
1867         traverse_variable_recursively and
1868         require_variables_for_variable.
1869         (require_variables_for_variable, traverse_variable_recursively)
1870         (_traverse_variable_recursively_worker): Convert to
1871         Automake::Variable methods, remove support for being
1872         invoked with variable names, and rename to ...
1873         (requires_variables, traverse_recursively)
1874         (_do_recursive_traversal): ... these.
1875         (_value_as_list_recursive_worker, transform_variable_recursively):
1876         Update to reflect changes.
1877         * automake.in (handle_LIBOBJS, handle_ALLOCA)
1878         (handle_libraries, handle_ltlibraries, am_primary_prefixes):
1879         Likewise.
1880         (define_objects_from_sources): Fix typo in comment.
1882 2003-08-02  Raja R Harinath  <harinath@acm.org>
1884         * automake.in (handle_source_transform): Replace 'grep' with 'map'.
1885         (register_language): Replace 'grep' with 'foreach' modifier.
1887 2003-08-01  Raja R Harinath  <harinath@acm.org>
1889         * lib/Automake/Variables.pm (variables): Return a list of
1890         Automake::Variable instances, not a list of strings.
1891         (dump): Remove support for being invoked with a string.
1892         (variables_dump): Adapt to these changes.
1893         * automake.in (check_typos): Likewise.
1894         (am_primary_prefixes): Likewise.
1896 2003-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1898         * lib/depcomp (aix): Support AIX Compiler version 6.
1900 2003-07-31  Alexandre Duret-Lutz  <adl@gnu.org>
1902         * automake.texi (A Shared Library): Rewrite and split into
1903         subsections.  Valuable comments from Norman Gray, Harlan Stenn,
1904         Tim Van Holder, and Guido Draheim.
1905         * tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
1906         * tests/Makefile.am (TESTS): Add them.
1908 2003-07-30  Alexandre Duret-Lutz  <adl@gnu.org>
1910         * automake.in (handle_single_transform_list): Complain about
1911         foo.$(OBJEXT) being created both with libtool and without, not
1912         about foo.lo.
1913         Report from Tim Van Holder.
1915 2003-07-29  Alexandre Duret-Lutz  <adl@gnu.org>
1917         * Makefile.am (FETCHFILES, fetch): Add config-ml.in and
1918         symlink-tree.
1919         * lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
1920         upstream versions.
1922 2003-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
1924         * automake.in (handle_configure): Cosmetic change to avoid
1925         a maintainer-check complaint.
1927 2003-07-27  Alexandre Duret-Lutz  <adl@gnu.org>
1929         * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
1930         (variable_dump): Replace by ...
1931         (dump): ... this method.
1932         (rdef, _check_ambiguous_condition): Adjust to use ->dump.
1933         (define, variables_dump): Adjust to use Automake::Variable::dump
1935         * lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
1936         * automake.texi (Built sources example): Adjust example.
1938 2003-07-26  Alexandre Duret-Lutz  <adl@gnu.org>
1940         * automake.in (get_object_extension, handle_languages)
1941         (handle_single_transform_list, handle_compile, handle_compile)
1942         (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
1943         (handle_tests, handle_minor_options, check_gnu_standards)
1944         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
1945         Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
1947         Complete changes from 2003-07-08.
1948         * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
1949         replaced by $options{'no-dependencies'}.
1950         ($global_options): Remove.
1951         (%global_options): New variable.
1952         (initialize_per_input): Empty %options.
1953         (process_option_list): Take a location and %options ref argument,
1954         process no-dependencies as other options.
1955         (handle_options): Do not reparse the global options, just initialize
1956         %options from %global_options and fill it with local options.
1957         (handle_languages, handle_single_transform_list)
1958         (handle_configure, check_cygnus): Adjust usage of
1959         $options{'no-dependencies'}.
1960         (make_paragraphs): Adjust usage of $options{'cygnus'}.
1961         (parse_arguments): Set cygnus and no-dependencies in %global_options.
1962         (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
1963         to fill %global_options.
1965 2003-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
1967         * tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
1968         avoid the use of tar.
1970 2003-07-24  Alexandre Duret-Lutz  <adl@gnu.org>
1972         * tests/gnuwarn2.test: Typo.
1974         * tests/insthook.test: Use $MAKE, not make.
1976         Fix missing rebuilds during `make dist' with BSD make.
1977         * automake.in (generate_makefile): Do not push Makefile.in, and
1978         Makefile.am into DIST_COMMON here.
1979         * lib/am/configure.am (DIST_COMMON): Do it here, and use
1980         %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
1981         actually match the targets.   Prefix `configure' with `$(srcdir)/'
1982         to match the target.
1983         * tests/remake4.test: New file.
1984         * tests/Makefile.am (TESTS): Add remake4.test.
1985         Report from Akim Demaille.
1987 2003-07-23  Alexandre Duret-Lutz  <adl@gnu.org>
1989         * automake.in (handle_multilib): Register all-multi.
1990         (file_contents_internal): Insert \n when concatenating actions
1991         from "factored" rules.
1992         * lib/config-ml.in: New file, from GCC, including a patch
1993         from Ralf Corsepius (see GCC's PR 11526).
1994         * lib/symlink-tree.in: New file, from GCC.
1995         * lib/Makefile.am (dist_script_DATA): Add config-ml.in and
1996         symlink-tree.
1997         * lib/am/clean.am (distclean-generic): Do not delete Makefile here...
1998         (distclean, maintainer-clean): ... do it here.
1999         * lib/am/depend.am (distclean-depend): Likewise, replace by
2000         (distclean, maintainer-clean): ... these.
2001         * lib/am/multilib.am (all-recursive, install-recursive,
2002         mostlyclean-recursive, clean-recursive, distclean-recursive,
2003         maintainer-clean-recursive): Remove these rules.
2004         (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
2005         by ...
2006         (mostlyclean, clean, distclean, maintainer-clean): ... these.
2007         (all-am): Remove, done in handle_multilib.
2008         (install-am): Replace by ...
2009         (install-exec-am): ... this.
2010         * tests/Makefile.am (TESTS): Add multlib.test.
2011         * tests/multlib.test: New file, based on a test case by
2012         Ralf Corsepius
2014 2003-07-23  Tom Tromey  <tromey@redhat.com>
2016         * lib/missing (autom4te): Typo.
2018 2003-07-16  Derek Price  <derek@ximbiot.com>
2020         * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
2021         (handle_configure): Handle adding AC_CONFIG_LINKS arguments to
2022         distclean targets (CONFIG_CLEAN_FILES makefile var).
2023         * NEWS: Note new handling of AC_CONFIG_LINKS.
2024         * automake.texi (Other things Automake recognizes): Ditto.
2025         * tests/Makefile.am (TESTS): Add new tests.
2026         * tests/conflnk.test: New test that links are cleaned on distclean.
2027         * tests/conflnk2.test: New test that source files for links are
2028         distributed.
2030 2003-07-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>  (tiny change)
2032         * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to
2033         render $seen_multilib functional again.
2035 2003-07-10  Raja R Harinath  <harinath@cs.umn.edu>
2037         Avoid using refs as hash keys.
2038         * lib/Automake/Variable.pm ($_traversal): New.
2039         (reset): Reset $_traversal.
2040         (_new): New attribute 'scanned'.
2041         (%_vars_scanned): Remove.
2042         (traverse_variable_recursively)
2043         (traverse_variable_recursively_worker):
2044         Use $_traversal instead of %_vars_scanned to detect recursively
2045         defined variables.
2047         * lib/am/configure.am (am--refresh): Silence.
2049 2003-07-10  Alexandre Duret-Lutz  <adl@gnu.org>
2051         * lib/Automake/Variable.pm (define): Make clear the diagnostic
2052         about variable names starting with `_' is about *Make* variables.
2054         For Debian Bug #193907:
2055         * automake.texi (Clean): make maintainer-clean should still
2056         allow ./configure && make to run.
2058         * automake.texi (CVS): Typo.
2060 2003-07-09  Alexandre Duret-Lutz  <adl@gnu.org>
2062         * aclocal.in: Use Automake::FileUtils.
2063         (parse_arguments, scan_configure, scan_m4_files): Never call
2064         "die" to print an error message.  Use print and exit.
2065         * automake.in: Use Automake::FileUtils.
2066         * lib/Automake/General.pm ($debug, $help, $tmp, $verbose,
2067         $version, &debug, &getopt, &mktmpdir, &verbose): Remove.
2068         (END): Do not massage Perl's exit code.  Do not clean any temporary
2069         directory.
2070         (find_file, mtime, update_file, xsystem, contents): Move to ...
2071         * lib/Automake/FileUtils.pm: ... this new file.  Adjust to
2072         report errors using Channels.
2073         (handle_exec_errors, xqx): New functions, from Autoconf.
2074         * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
2076         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2077         Return the empty list on recursively defined variable.  This
2078         supersedes my change of 2003-07-02.
2080 2003-07-08  Akim Demaille  <akim@epita.fr>
2082         * automake.in ($cygnus_mode): Replace with $options{'cygnus'}.
2083         Adjust all dependencies.
2084         (&depend): Move next to %dependencies and prototype.
2085         (&initialize_per_input): Initialize the 'cygnus' field of
2086         '%options' to spare the code from 'exists' or 'defined' when
2087         testing it.
2088         (&handle_configure, &do_check_merge_target, &check_cygnus): Prototype.
2089         (&parse_arguments): Rename '%options' and '%options_1st_pass' as
2090         '%cli_options' and '%cli_options_1st_pass' to avoid clashes and
2091         inconsistencies.
2093 2003-07-07  Alexandre Duret-Lutz  <adl@gnu.org>
2095         * automake.in (generate_makefile): Move near the end of the
2096         file, after the definition of all called functions, so that
2097         prototypes can be enforced.
2099 2003-07-06  Akim Demaille  <akim@epita.fr>
2101         * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive,
2102         install-exec-recursive, install-data-recursive and
2103         uninstall-recursive addition to...
2104         * lib/am/texinfos.am: here.
2105         * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY
2106         declaration of RECURSIVE_TARGETS.
2108 2003-07-06  Akim Demaille  <akim@epita.fr>
2110         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm (VAR_SORTED):
2111         New variable type.
2112         Handle it.
2113         * automake.in (&handle_subdirs): Prototype.
2114         Adjust callers.
2115         Make RECURSIVE_TARGETS a VAR_SORTED.
2117 2003-07-06  Akim Demaille  <akim@epita.fr>
2119         * automake.in (&define_files_variable): New.
2120         (&handle_texinfo_helper): Move the handling of user variables from
2121         here, to...
2122         (&handle_texinfo): here.
2123         This is to balance the size of these functions, and to match the
2124         convention of other _helper functions.
2125         (&handle_texinfo_helper): Use &define_files_variable.
2126         Move some code to use less variables.
2127         Rename $info_cursor as $texi.
2128         (&handle_texinfo): Do not call handle_texinfo_helper if there are
2129         no TEXINFOS.
2130         * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps
2131         and html.
2132         Remove *-recursive targets from .PHONY, they are part of
2133         $(RECURSIVE_TARGETS) anyway.
2134         (install-info, mostlyclean-aminfo): Are .PHONY.
2136 2003-07-05  Akim Demaille  <akim@epita.fr>
2138         * lib/am/distdir.am: Use ';' as a terminator, not a separator, for
2139         sed complex commands, as required by NetBSD sed.
2140         Reported by Patrick Welche.
2142 2003-07-05  Alexandre Duret-Lutz  <adl@gnu.org>
2144         * lib/config.guess, lib/config.sub: New upstream version.
2146 2003-07-04  Alexandre Duret-Lutz  <adl@gnu.org>
2148         * automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
2149         are automatically distributed.
2151         * lib/depcomp (icc): Update to grok ICC 7.1's output.
2152         * m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
2153         in a subdirectory, and with many dependencies.  This
2154         catches more failures of depcomp.
2155         Reports from Ralf Wildenhues and Akim Demaille.
2157 2003-07-04  Akim Demaille  <akim@epita.fr>
2159         * automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
2160         (&handle_texinfo_helper, &handle_texinfo): Formatting changes.
2161         Prototype properly.
2162         Don't use & when calling functions.
2164 2003-07-03  Alexandre Duret-Lutz  <adl@gnu.org>
2166         * NEWS: Categorize entries.
2167         Suggested by Jim Meyering.
2169         * Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
2170         Ignore @...@ substitutions in comments.
2171         * tests/defs.in: Try to make the shell more POSIX compliant.
2172         (AUTOMAKE_run, AUTOMAKE_fails): New functions.
2173         * tests/README: Mention AUTOMAKE_fails.
2174         * tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
2175         * tests/asm.test, tests/backsl3.test, tests/backsl4.test,
2176         * tests/badline.test, tests/badopt.test, tests/canon.test,
2177         * tests/canon5.test, tests/colneq.test, tests/comment3.test,
2178         * tests/comment5.test, tests/cond2.test, tests/cond20.test,
2179         * tests/cond23.test, tests/cond24.test, tests/cond27.test,
2180         * tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
2181         * tests/dejagnu2.test, tests/dirforbid.test,
2182         * tests/distcom3.test, tests/else.test, tests/exdir2.test,
2183         * tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
2184         * tests/getopt.test, tests/gettext.test, tests/gettext2.test,
2185         * tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
2186         * tests/insh.test, tests/lex2.test, tests/libobj10.test,
2187         * tests/libobj12.test, tests/libobj13.test,
2188         * tests/libobj3.test, tests/library2.test,
2189         * tests/library3.test, tests/libtool4.test,
2190         * tests/libtool6.test, tests/lisp2.test, tests/location.test,
2191         * tests/nogzip2.test, tests/output5.test, tests/overrid.test,
2192         * tests/percent.test, tests/percent2.test,
2193         * tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
2194         * tests/pr211.test, tests/primary.test, tests/primary2.test,
2195         * tests/python2.test, tests/recurs.test, tests/reqd2.test,
2196         * tests/seenc.test, tests/specflg.test, tests/specflg2.test,
2197         * tests/spell.test, tests/spell2.test, tests/srcsub.test,
2198         * tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
2199         * tests/substtarg.test, tests/suffix11.test,
2200         * tests/symlink.test, tests/syntax.test,
2201         * tests/targetclash.test, tests/txinfo4.test,
2202         * tests/version3.test, tests/warnopts.test,
2203         * tests/xsource.test, tests/yacc2.test: Use set -e,
2204         AUTOMAKE_fails, and always grep error message.
2206         * automake.in (handle_ltlibraries): Fix call to msg.
2208         * tests/stamph.test: Delete.
2209         * tests/Makefile.am (TESTS): Remove stamph.test.
2211         * automake.in (handle_single_transform_list): Use $var->name
2212         to print variable in the configure-substitution diagnostic.
2213         Do not mention the parent when it is the variable itself.
2215         * tests/package.test: Delete.
2216         * tests/Makefile.am (TESTS): Remove package.test.
2218         * automake.in (cond_stack_else): Return FALSE if `if' was not
2219         used.
2220         (cond_stack_endif): Return TRUE if `if' was not used.  Do not
2221         display $negate and $cond, they are irrelevant and maybe undefined.
2223 2003-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
2225         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2226         Do not return undef when a variable is recursively defined, this
2227         causes warnings all over the place.  Return the empty string instead.
2229         * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
2230         from empty DIST_ARCHIVES.
2232 2003-07-01  Alexandre Duret-Lutz  <adl@gnu.org>
2234         * automake.in (scan_autoconf_traces): Check the expected
2235         number of arguments of each traced macro.
2236         * tests/overrid.test: Fix call to AM_CONDITIONAL.
2237         * tests/conff2.test: New files.
2238         * tests/Makefile.am (TESTS): Add conff2.test.
2239         Report from Paolo Bonzini.
2241 2003-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
2243         * automake.in ($SUBST_REF_PATTERN): Do not define.
2244         (%gen_varname): Move to Variable.pm, as %_gen_varname.
2245         (initialize_per_input): Do not clean %gen_varname.
2246         (handle_options, check_libobjs_sources, handle_source_transform,
2247         handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
2248         handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
2249         am_install_var): Adjust to use value_as_list_recursive,
2250         loc_and_value_as_list_recursive, and has_conditional_contents.
2251         (require_file_with_macro): Accept an Automake::Variable as argument.
2252         (traverse_variable_recursively,
2253         traverse_variable_recursively_worker, gen_varname,
2254         transform_variable_recursively): Move ...
2255         * lib/Automake/Variable.pm (traverse_variable_recursively,
2256         _traverse_variable_recursively_worker,
2257         _gen_varname, transform_variable_recursively): ... here.
2258         * automake.in (variable_conditionally_defined,
2259         variable_value_as_list_recursive_worker,
2260         variable_value_as_list_recursive
2261         variable_loc_and_value_as_list_recursive): Move ...
2262         * lib/Automake/Variable.pm (has_conditional_contents,
2263         _value_as_list_recursive_worker,
2264         value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
2265         (reset): Reset %_gen_varname.
2266         (require_variables_for_variable): Accept an Automake::Variable
2267         as argument.
2269 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2271         * tests/aclocal6.test: Test maintainer-clean in VPATH
2272         builds. (For Ralf's fix.)
2274 2003-06-27  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>  (tiny change)
2276         * lib/am/configure.am (maintainer-clean): Remove
2277         $(top_srcdir)/autom4te.cache, not autom4te.cache.
2279 2003-06-27  Akim Demaille  <akim@epita.fr>
2281         * automake.texi: Use @node with a single argument.
2283 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
2285         * m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
2287         * lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
2288         at the end of distcheck.  This was mistakenly removed on
2289         2003-06-15.
2290         * tests/subpkg.test: Make sure distcheck cleans up after itself.
2292         * m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
2293         ($(top_srcdir)/m4/amversion.m4): ... this.
2294         (DISTCLEANFILES): Remove.
2295         (nodist_m4data_DATA): Remove. amversion.m4 is automatically
2296         distributed.
2297         (EXTRA_DIST): Add amversion.in.
2299 2003-06-25  Akim Demaille  <akim@epita.fr>
2301         * automake.texi (Top): Use @copying and @insertcopying.
2302         Make Alexandre an author.
2303         * automake.in ($gen_copyright): Add the "(C)" to Copyright.
2304         * lib/depcomp: Likewise.
2306 2003-06-23  Alexandre Duret-Lutz  <adl@gnu.org>
2308         * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
2309         (variable_defined, examine_variable): Remove.
2310         (%_ac_macro_for_var): Add an entry for ALLOCA.
2311         (require_variables): Use vardef instead of variable_defined.
2312         Do not use _cvar.
2313         * automake.in (generate_makefile): Do not push $(SOURCE) into
2314         @sources.  Use define_pretty_variable to define SOURCES.
2315         (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
2316         to require LIBOBJS, LTLIBOBJS and ALLOCA.
2317         (handle_programs, handle_ltlibraries): Do not define an empty
2318         _DEPENDENCIES or _LDFLAGS variable when none is defined.
2319         (define_configure_variable): Do not check whether the variable
2320         already exists (it's Automake::Variable::define's job).
2321         (require_build_directory): Likewise, do not check
2322         the existence of am__dirstamp.
2323         (generate_makefile, handle_options, handle_languages)
2324         (check_libobjs_sources, handle_single_transform_list)
2325         (traverse_variable_recursively_worker, handle_source_transform)
2326         (handle_lib_objects, handle_LIBOBJS, handle_compile)
2327         (handle_libtool, handle_programs, handle_libraries)
2328         (handle_ltlibraries, check_typos, handle_texinfo_helper)
2329         (handle_man_pages, handle_tags, handle_dist, handle_subdirs)
2330         (scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
2331         (handle_all, do_check_merge_target, handle_clean, lang_c_finish)
2332         (handle_tests, lang_yacc_target_hook, define_pretty_variable)
2333         (define_compiler_variable, define_linker_variable)
2334         (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
2335         call var, vardef, or set_seen, instead of variable_defined.  Use
2336         set_seen only for variables which are actually checked by
2337         check_typos.
2338         * tests/target.test: Delete.
2339         * tests/alloca.test, tests/alloca2.test: New files.
2340         * tests/libobj3.test: Check error message.
2341         * tests/distcom4.test: Make sure configure is in DIST_COMMON.
2342         This replace confdist.test.
2343         * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
2344         (TESTS): Add alloca.test and alloca2.test.  Remove confdist.test.
2346 2003-06-20  Alexandre Duret-Lutz  <adl@gnu.org>
2348         * automake.in (handle_dist): Delete DIST_COMMON before redefining
2349         it.  Bug report from Akim Demaille.
2350         (rewrite_inputs_into_dependencies): Make sure we always return
2351         something, even when $add_srcdir is 0.
2352         * tests/distcom4.test, tests/distcom5.test: New files.
2353         * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
2355         * tests/cond29.test: Also check for _SOURCES.
2356         Report from Paolo Bonzini.
2358 2003-06-20  Akim Demaille  <akim@epita.fr>
2360         * lib/am/configure.am: Replace leading spaces with a real tab.
2362 2003-06-15  Alexandre Duret-Lutz  <adl@gnu.org>
2364         * tests/nogzip.test, tests/nogzip2.test: New files.
2365         * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
2367 2003-06-15  Akim Demaille  <akim@epita.fr>
2369         * automake.in (&make_paragraphs): Define %GZIP%.
2370         (&process_option_list): Accept no-dist-gzip2.
2371         (&handle_dist): Complain when no archive format is enabled.
2372         * lib/am/distdir.am (DIST_ARCHIVES): New variable.
2373         (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
2374         conditioned.
2375         (dist): Build $(distdir).tar.gz conditionally.
2376         (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
2377         to list built archives.  Run $(MAKE) dist instead of dist-gzip.
2378         * automake.texi (Options, The types of distributions): Adjust.
2380 2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)
2382         * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
2383         POSIXLY_CORRECT=1.
2385 2003-06-14  Karl Berry  <karl@gnu.org>
2386             Alexandre Duret-Lutz  <adl@gnu.org>
2388         * mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
2389         to update it each time the file is written, as in install-sh.
2390         (usage): Improve message.
2391         (--version): New option.
2392         (--help): Output to stdout, not stderr.
2394 2003-06-13  Paul Eggert  <eggert@twinsun.com>
2396         * lib/install-sh (dsttmp, rmtmp): Do not use '#' in file names;
2397         it's not guaranteed by POSIX and it doesn't work on OpenVMS.
2398         Bug reported by Bernard Giroud in:
2399         http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
2401 2003-06-05  Alexandre Duret-Lutz  <adl@gnu.org>
2403         * automake.in (check_gnu_standards): Use no-installman and
2404         no-installinfo's locations.
2405         (process_option_list): Fill %options with locations.
2406         (check_cygnus) Fill $options{'no-installinfo'} and
2407         $options{'no-dependencies'} with $cygnus_mode, so that it
2408         remains a Location.
2409         * tests/gnuwarn2.test: New file.
2410         * tests/Makefile.am (TESTS): Add gnuwarn2.test.
2412 2003-06-04  Alexandre Duret-Lutz  <adl@gnu.org>
2414         * automake.in (process_option_list): Record the location
2415         of ansi2knr's definition.
2416         (handle_compile): Use it.
2417         * tests/ansi3.test: Make sure the location appears correctly.
2418         Update to use set -e.
2419         * tests/ansi3b.test: New file.
2420         * tests/Makefile.am (TESTS): Add ansi3b.test.
2422         * tests/alpha.test: Really run $MAKE.  Augment to test
2423         subdirectories, and check-news report.
2424         * tests/alpha2.test: New file.  Bug report from Akim Demaille.
2425         * tests/gnits2.test: Make sure README-alpha is not distributed.
2426         * tests/Makefile.am (TESTS): Add alpha2.test.
2427         * automake.in (handle_minor_options): Distribute README-alpha
2428         using push_dist_common, not require_file_with_macro.
2430 2003-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
2432         * lib/Automake/Configure_ac.pm
2433         (search_configure_ac, find_configure_ac): Rename as ...
2434         (find_configure_ac, require_configure_ac): ... these.
2435         * aclocal.in (scan_configure): Adjust call to require_configure_ac.
2436         * automake.in (scan_autoconf_files): Likewise.
2437         Suggested by Tim Van Holder.
2439         * alocal.in: Use Automake::Configure_ac.
2440         ($configure_ac): Delete.
2441         (scan_configure): Adjust use of find_configure_ac;
2442         * automake.in: Use Automake::Configure_ac.
2443         ($configure_ac): Delete.
2444         (scan_autoconf_files): Adjust use of find_configure_ac;
2445         * lib/Automake/Configure_ac.pm: New file.
2446         * lib/Automake/General.pm (find_configure_ac): Delete.  Now
2447         replaced by Automake::Configure_ac::search_configure_ac.
2448         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
2449         * lib/Automake/Variable.pm: Use Automake::Configure_ac.
2450         (require_variables): Adjust use of $configure_ac.
2452 2003-06-02  Akim Demaille  <akim@epita.fr>
2454         * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
2455         * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
2456         * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
2457         * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
2458         * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
2459         * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
2460         * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
2461         * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
2462         * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
2463         * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
2464         * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
2465         * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
2466         * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
2467         * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
2468         * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
2469         * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
2470         * m4/Makefile.am: White space changes and Copyright updates.
2472 2003-05-29  Alexandre Duret-Lutz  <adl@gnu.org>
2474         * lib/Automake/Variable.pm (check_defined_unconditionally): Add
2475         the $parent_cond argument.
2476         (output): Use $self->name in diagnostic not $self.
2477         (variable_value_as_list): Rename as ...
2478         (value_as_list): ... this.  Declare as a method.  Take a $parent_cond
2479         argument and pass it to check_defined_unconditionally.  Do not call
2480         variable_assert, now that this is a method.
2481         (variable_assert): Delete (unused).
2482         * automake.in (traverse_variable_recursively_worker): Adjust to
2483         use check_defined_unconditionally and value_as_list as a methods.
2485         * lib/Automake/Variable.pm (output): Declare as a method, since it
2486         is only used this way.
2487         (define): Fix documentation of $cond.
2488         Suggested by Raja R. Harinath.
2490 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
2492         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
2493         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
2494         and VarDef.pm.
2495         * automake.in: Use Automake::Variable and Automake::VarDef.
2496         (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
2497         (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
2498         (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
2499         (silent_variable_override): Delete.  Now
2500         Automake::Variable::_silent_variable_override.
2501         (var_value, var_location, var_comment, var_type, var_owner,
2502         var_pretty, content_seen): Delete.  This functionality is now
2503         offered by Automake::Variable and Automake::VarDef.
2504         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
2505         Delete.  Now defined in Automake::VarDef.
2506         (var_order): Delete.  Now Automake::Variable::_var_order.
2507         (appendvar): Delete.  Now Automake::Variable::_appendvar.
2508         (var_SUFFIX_trigger): Register using Automake::Variable::hook.
2509         (initialize_per_input): Call Automake::Variable::reset.
2510         (err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
2511         defined in Automake::Variable.
2512         (generate_makefile, process_option_list, handle_languages)
2513         (traverse_variable_recursively_worker)
2514         (transform_variable_recursively, handle_compile)
2515         (handle_libraries, handle_ltlibraries)
2516         (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
2517         Adjust to use Automake::Variable functions.
2518         (check_ambiguous_condition): Delete.  Now
2519         Automake::Variable::_check_ambiguous_condition.
2520         (condition_ambiguous_p): Delete.  Now
2521         Automake::Variable::condition_ambiguous_p.
2522         (variable_not_always_defined_in_cond): Delete.  Now
2523         Automake::Variable::not_always_defined_in_cond.
2524         (macro_define): Delete.  Now Automake::Variable::define.
2525         (macro_delete): Delete.  Now Automake::Variable::variable_delete.
2526         (macro_dump): Delete.  Now Automake::Variable::variable_dump.
2527         (macros_dump): Delete.  Now Automake::Variable::variables_dump.
2528         (variable_defined): Delete.  Now
2529         Automake::Variable::variable_defined, with the target check
2530         temporarily disabled.
2531         (variable_assert): Delete.  Now Automake::Variable::variable_assert.
2532         (examine_variable): Delete.  Now
2533         Automake::Variable::examine_variable.
2534         (variable_conditions): Delete.  Now Automake::Variable::conditions.
2535         (scan_variable_expansions): Delete.  Now
2536         Automake::Variable::scan_variable_expansions.
2537         (check_variable_expansions): Delete.  Now
2538         Automake::Variable::check_variable_expansions.
2539         (check_variable_defined_unconditionally): Delete.  Now
2540         Automake::Variable::check_defined_unconditionally.
2541         (variable_value): Delete.  Now Automake::Variable::variable_value.
2542         (variable_value_as_list): Delete.  Now
2543         Automake::Variable::variable_value_as_list.
2544         (variable_value_as_list_recursive_worker): Adjust to use
2545         Automake::Variable functions.
2546         (variable_output): Delete.  Now Automake::Variable::output.
2547         (define_pretty_variable, define_configure_variable, read_am_file)
2548         (define_standard_variables, read_main_am_file): Adjust to use
2549         Automake::Variable functions.
2550         (handle_variables): Delete.  Now Automake::Variable::output_variables.
2551         (file_contents_internal, am_primary_prefixes, am_install_var)
2552         (require_file_with_macro, require_conf_file_with_macro)
2553         (push_dist_common): : Adjust to use
2554         Automake::Variable functions.
2555         (require_variables): Delete.  Now
2556         Automake::Variable::require_variables.
2557         (require_variables_for_macro): Delete.  Now
2558         Automake::Variable::require_variables_for_variable.
2559         * tests/Makefile.am (XFAIL_TESTS): Add target.test.
2561 2003-05-25  Christian Cornelssen  <ccorn@cs.tu-berlin.de>  (tiny change)
2563         * tests/dejagnu7.test: Check if runtest supports --status.
2565 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
2567         * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
2568         is undefined.
2570         * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
2571         $self contains only one Condition.
2573         * automake.in: Use plain strict, including refs.
2574         (macro_define, handle_single_transform_list): Use \&{'name'} to
2575         build references to named subroutines.
2577 2003-05-22  Karl Berry  <karl@gnu.org>
2579         * automake.texi: Update @dircategory to match the Free Software
2580         Directory.  End directory entries with dots.
2582 2003-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
2584         * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
2586         * lib/elisp-comp: s/François/Franc,ois/.
2587         Suggested by Paul Eggert.
2589         * automake.in: Move the "main" code at the end.
2590         (parse_arguments): Move near the end.
2591         ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
2592         accept_extensions, var_SUFFIXES_trigger): Move these definitions
2593         before any call to register_language.
2594         (am_file): Move the definition with all other global variables,
2595         do not use local to define it.
2596         * Makefile.am (maintainer-check): Expect no `local' in Automake.
2598 2003-05-21  Alexandre Duret-Lutz  <adl@gnu.org>
2600         * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
2601         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
2602         * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
2603         * automake.in (handle_texinfo_helper, pretty_print_rule)
2604         (variable_output): Adjust to use makefile_wrap instead of
2605         pretty_print_internal.
2606         (pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
2607         and augmented to accept the $eol and $max_len arguments.
2609 2003-05-18  Alexandre Duret-Lutz  <adl@gnu.org>
2611         * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
2612         lib/texinfo.tex: New upstream versions.
2614 2003-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
2616         * lib/am/install.am (install, install-exec, install-data, uninstall):
2617         Declare conditionally using a if/else/endif block instead of
2618         using ?SUBDIRS?-style conditions.  The latter fail when
2619         %maybe_BUILT_SOURCES% is replaced by several lines.
2620         This fixes a bug introduced on 2003-04-06.
2621         * tests/bsource.test: New file.
2622         * tests/Makefile.am (TESTS): Add bsource.test.
2623         Reported by Bruno Haible.
2625 2003-05-11  Alexandre Duret-Lutz  <adl@gnu.org>
2627         * automake.texi (renamed objects): New node.
2628         (Program and Library Variables): Move maude_DEPENDENCIES closer
2629         to maude_LDADD.  Define and use `per-target compilation flags' in the
2630         explanation for maude_CFLAGS et al.  Link to the `renamed objects'
2631         node.  Illustrate maude_SHORTNAME.
2633 2003-05-09  Alexandre Duret-Lutz  <adl@gnu.org>
2635         * lib/install-sh: Update copyright notice and license to that of
2636         X11R6.  This removes an advertising clause reported as Debian bug
2637         #191717.
2639 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2641         * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
2643         * m4/make.m4: Rename the doit target as am__doit,
2644         and make it phony.
2645         Reported by Philip S Tellis.
2647 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
2649         * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
2650         status.
2651         * tests/makej.test: New file (test Autom4te's cache locking,
2652         new in CVS Autoconf).
2653         * tests/Makefile.am (TESTS): Add makej.test.
2655 2003-05-06  Alexandre Duret-Lutz  <adl@gnu.org>
2657         * lib/Automake/General.pm (contents): New function.
2658         * aclocal.in (greatest_mtime, force_output): New globals.
2659         (scan_configure, add_file): Update $greatest_mtime.
2660         (parse_arguments): Parse --force.
2661         (write_aclocal): Do not overwrite $output_file unless needed.
2662         * automake.texi (aclocal options): Document --force.
2663         * tests/aclocal7.test: New file.
2664         * tests/Makefile.am (TESTS): Add aclocal7.test.
2666 2003-05-05  Alexandre Duret-Lutz  <adl@gnu.org>
2668         * automake.texi (Optional): Document m4_include.
2669         (Invoking aclocal): Shake a bit to introduce the various uses
2670         of aclocal and explain that aclocal will use m4_include for
2671         local files.
2672         (Extending aclocal): Show how to install installable macros
2673         in $(datadir)/aclocal, and make it clearer that writing installable
2674         macros is not the only way to extend aclocal.
2675         (Local Macros, Future of aclocal): New sections.
2677 2003-04-27  Alexandre Duret-Lutz  <adl@gnu.org>
2679         * automake.in (@common_files): Remove acinclude.m4 since
2680         it will be m4_included by aclocal.m4 and files are always
2681         distributed.
2682         (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
2683         We will get this dependency when tracing m4_includes.
2684         * tests/aclocal6.test: Make sure acinclude.m4 is distributed
2685         when used.
2686         * tests/acinclude.test: Delete.
2687         * tests/Makefile.am (TESTS): Remove acinclude.test.
2689 2003-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
2691         * automake.in (handle_configure): Don't add @configure_deps to
2692         DIST_COMMON, we do this from lib/am/configure.am now.
2693         Define the am__configure_deps variable instead of substituing
2694         %CONFIGURE_DEPS%.
2695         * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
2696         $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
2697         (DIST_COMMON): Add $(am__configure_deps).
2699         * tests/aclocal6.test: New file.
2700         * lib/am/configure.am (am--refresh): New rule.
2701         (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
2702         $(top_srcdir)/configure): Call the top-level am--refresh from
2703         subdirectories.
2704         ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
2705         top-level am--refresh when not in the top-level directory.
2706         Fix jump directories for VPATH builds.
2707         Suggested by Raja R. Harinath.
2709 2003-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
2711         * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
2712         and glob for m4_files (We've got all local m4 files while
2713         tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
2714         Distribute aclocal.m4 only at the top-level.
2715         (my_glob): Remove.  This fixes PR automake/11.
2716         (handle_dist): Strip leading `./' from directories.
2717         * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
2718         of copying local files.
2719         (write_aclocal, parse_arguments): Bump copyright date.
2720         * configure.in: De not build m4/amversion.m4 from here ...
2721         * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
2722         (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
2723         of amversion.m4.
2724         * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
2725         (TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
2726         * tests/aclocal2.test: Delete (pointless).
2727         * tests/aclocal5.test: Make sure configure's dependencies are
2728         distributed.
2729         * tests/acinclude.test: Adjust to search for m4_include.
2730         * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
2731         configure instead of aclocal.m4.
2733         For PR automake/46:
2734         * automake.in (scan_aclocal_m4): Work in all directories, not only
2735         the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
2736         dependency.
2737         * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
2738         Define rebuild rules in each directory.
2739         * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
2740         from the top-level directory.
2741         * tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
2742         from a subdirectory.
2743         * tests/Makefile.am (TESTS): Add aclocal5.test.
2744         (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
2746 2003-04-24  Akim Demaille  <akim@epita.fr>
2747             Alexandre Duret-Lutz  <adl@gnu.org>
2749         For PR automake/46:
2750         * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
2751         because of one of configure's dependencies, run automake without
2752         argument to update the whole tree at once.  Depend upon
2753         %CONFIGURE_DEPS%.
2754         (%MAKEFILE%): If Makefile is rebuilt because config.status has
2755         been updated, run config.status without arguments.
2756         * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
2757         before all files in @configure_deps.
2758         * tests/subdir5.test: Modernize configure.in, make sure
2759         maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
2760         * tests/subdir8.test: New file.
2761         * tests/Makefile.am (TESTS): Add subdir8.test.
2762         (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
2764 2003-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
2766         * automake.texi (Requirements): Typo in index
2767         s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
2769         * lib/texinfo.tex: New upstream version.
2771 2003-04-21  Jim Meyering  <jim@meyering.net>
2773         * lib/mkinstalldirs: Remove each sequence of spaces before a
2774         TAB character.
2775         * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
2777 2003-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
2779         Fix for PR automake/389:
2780         * automake.in (handle_configure): Don't put $colon_infile in
2781         CONFIG-MAKEFILE.
2782         * tests/conff.test: New file.
2783         * tests/Makefile.am (TESTS): Add conff.test.
2784         Reported by Alexander Turbov.
2786 2003-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
2788         * tests/defs.in: Handle required=etags to work around
2789         Exuberant Ctags.
2791         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2792         versions.
2794         * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
2795         Distribute dejagnu test cases, so that distcheck actually runs them.
2797 2003-04-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
2799         * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
2800         because we set that by invoking runtest with --tool.
2801         * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
2802         dejagnu6.test, dejagnu7.test.
2803         * tests/dejagnu4.test: New test.
2804         * tests/dejagnu5.test: New test.
2805         * tests/dejagnu6.test: New test.
2806         * tests/dejagnu7.test: New test.
2808         * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
2810 2003-04-18  Jim Meyering  <jim@meyering.net>
2812         * automake.in (variable_output): Fix typo in comment s/is/if/.
2814         * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
2815         directly to $@.  Instead, redirect to $@t and rename upon success.
2816         Also, move the commands that update $@ so they are last.  Otherwise,
2817         this rule could leave the user with an up to date target (.c file)
2818         but with a missing or corrupted corresponding .h file.
2820 2003-04-17  Richard Dawe  <rich@phekda.freeserve.co.uk>
2822         * tests/defs.in: Handle required=runtest, to detect runtest
2823         from DejaGnu.
2824         * tests/Makefile.am (TESTS): Add dejagnu3.test.
2825         * tests/dejagnu3.test: New test.
2827 2003-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
2829         * automake.in (rule_define): If the user tries to override
2830         an Automake which has a -local variant, suggest using the
2831         -local variant in the -Woverride diagnostic.
2832         (handle_factored_dependencies): Register factored
2833         rules with rule_define, and define them only in undefined
2834         conditions.
2835         * tests/Makefile.am (TESTS): Add override.test.
2836         * tests/overrid.test: New file.
2837         * tests/phony.test: Count the number of .PHONY targets.
2839 2003-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
2841         * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
2842         these rules, so that we don't confuse users by echoing
2843         "echo ERROR:" commands which are not run.
2845 2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
2846             Alexandre Duret-Lutz  <adl@gnu.org>
2848         * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
2849         initialize_per_input):  Add infrastructure for generating HTML
2850         documentation from texinfo source.
2851         * lib/am/texinfos.am: Add rules for building HTML documentation
2852         from texinfo source.
2853         * lib/am/texibuild.am: Likewise.
2854         * automake.texi (Texinfo): Document rules for building
2855         HTML documentation from texinfo source.
2856         * tests/txinfo21.test: New file.
2857         * tests/Makefile.am (TESTS): Add txinfo21.test.
2858         * tests/defs.in: Handle required=makeinfo-html.
2860 2003-04-14  Alexandre Duret-Lutz  <adl@gnu.org>
2862         * automake.in (%silent_variable_override): New variable.
2863         (macro_define): Warn about variable definitions overriding
2864         Automake variables.
2865         (rule_define): Warn about target definitions overriding
2866         Automake variables.  Fix $condmsg definition.
2867         * automake.texi (Invoking Automake): Document the `override'
2868         category.
2869         * lib/Automake/ChannelDefs.pm (usage): Likewise.
2870         * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
2871         this is already done in m4/init.m4.
2872         * tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
2873         -Wno-override, and make sure we get a warning without.
2874         * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
2875         and make sure we get a warning without.
2876         * tests/exeext3.test, tests/java2.test, tests/nolink.test,
2877         tests/subpkg.test, tests/vartest.test: Use -Wno-override.
2878         * tests/txinfo13.test: Use installcheck-local instead of overriding
2879         installcheck.
2880         * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
2881         used to succeed thanks to a failure...)
2882         * tests/location.test: Adjust expected messages.
2883         * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
2885 2003-04-12  Raja R Harinath  <harinath@acm.org>
2887         * lib/Automake/DisjConditions.pm (true): Don't cache answer.
2888         (invert): Update comment.
2889         (_simplify): Remove.
2890         (simplify): Implement using invert().
2891         * lib/Automake/tests/DisjConditions.pl (test_simplify):
2892         Update to reflect changes.
2894 2003-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
2896         * automake.in (scan_autoconf_files): Augment the error message
2897         about AM_INIT_AUTOMAKE not found.
2898         Suggested by Bruno Haible.
2900         * lib/Automake/Version.pm: New file.
2901         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
2902         * lib/Automake/tests/Version.pl: New file.
2903         * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
2904         * tests/Makefile.am (TESTS): Remove version5.test.
2905         * tests/version5.test: Delete.  Move the tests to Version.pl.
2906         * automake.in (version_split, version_compare, version_check): Move ...
2907         * lib/Automake/Version.pm (split, compare, check): ... here.
2909 2003-04-11  Alexandre Duret-Lutz  <adl@gnu.org>
2911         * lib/Automake/tests/Condition.pl (test_reduce_and)
2912         (test_reduce_or): Cosmetics.
2913         * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
2914         Fix a comment.
2915         * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
2916         in comment.
2917         * tests/yacc8.test, configure.in: Update copyright year.
2919 2003-04-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
2921         * configure.in: Get the build platform name.  Define
2922         MODIFICATION_DELAY as the time to wait after modifying a file,
2923         to cope with timestamp granularity issues, depending
2924         on the platform.
2925         * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
2927 2003-04-10  Eric Siegerman  <eric_97@pobox.com>  (tiny change)
2929         * automake.texi (Public macros): Clarify that the new
2930         AM_INIT_AUTOMAKE variant is preferred, and the old one
2931         deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
2932         (Hello): Caution that the example uses the deprecated
2933         AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
2935 2003-04-10  Alexandre Duret-Lutz  <adl@gnu.org>
2937         Retain all variable definitions until the whole Makefile.am has
2938         been processed, then output all variables in one step, at the top
2939         of Makefile.in.  (Older revisions used to output user variables
2940         before generating Automake targets, and to mix Automake variables
2941         with Automake targets, preventing redefinitions of previously
2942         output variables.)
2944         * automake.in (%var_pretty): New variable.
2945         (VAR_ASIS, VAR_PRETTY): New constants.
2946         (@var_list): Rename as ...
2947         (@var_order): ... this.
2948         (initialize_per_input): Clear %var_pretty.
2949         (handle_variables): New function, extracted from ...
2950         (read_main_am_file): ... here.
2951         (generate_makefile): Call handle_variable after everything else.
2952         (handle_dist): Use define_pretty_variable, not pretty_print.
2953         (pretty_print): Delete.
2954         (macro_define): Augment with $COMMENT and $PRETTY parameters.
2955         Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
2956         (variable_pretty_output): Merge with ...
2957         (variable_output): ... this, and choose the prettiness on a
2958         per-condition basis.
2959         (append_comments): Delete.  This work is now done by macro_define.
2960         (read_am_file, file_contents_internal): Don't call append_comments
2961         nor update @var_list, adjust calls to macro_define.
2962         (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
2963         just mark it as VAR_PRETTY.
2964         * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
2965         Report from Jim Meyering.
2967 2003-04-06  Alexandre Duret-Lutz  <adl@gnu.org>
2969         * automake.in (handle_installdirs): Rename as ...
2970         (handle_install): ... this.  Define maybe_BUILT_SOURCES.
2971         (generate_makefile): Adjust call to handle_install.
2972         * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
2973         * automake.texi (Sources, Built sources example): BUILT_SOURCES
2974         is honored by `make install' too.
2975         * tests/check3.test: Make sure that `make install' also depends
2976         upon BUILT_SOURCES.
2977         Report from Alexander Turbov.
2979         * lib/am/libs.am (ARFLAGS): Define.
2980         * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
2981         hard-coding `cru'.
2982         * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
2983         are used, and how they can be overridden.
2984         (Program and Library Variables): Adjust to show `$(ARFLAGS)'
2985         instead of `cru'
2986         * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
2987         * tests/ranlib.test: Delete, obsoleted by ar.test.
2988         * tests/Makefile.am (TESTS): Remove ranlib.test.
2989         Report from Paul Thomas.
2991 2003-04-03  Alexandre Duret-Lutz  <adl@gnu.org>
2993         * automake.in (check_trailing_slash): New function (variation on
2994         a patch by Peter Muir).  Diagnose whitespaces following trailing
2995         backslash.
2996         (read_am_file): Use it.
2997         * tests/backsl4.test: New file.
2998         * tests/Makefile.am (TESTS): Add backsl4.test.
2999         Reported by Peter Muir.
3001 2003-03-29  Raja R Harinath  <harinath@acm.org>
3003         Speedup Automake::DisjConditions::invert().
3004         * lib/Automake/Condition.pm (multiply): New.
3005         * lib/Automake/DisjConditions.pm (_multiply): Use it.
3006         (sub_conditions): Likewise.
3008         * lib/Automake/Condition.pm (reduce): Rename to ...
3009         (reduce_and): ... this.
3010         (reduce_or): New.
3011         * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
3012         * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
3013         (test_reduce_and): ... this.
3014         (test_reduce_or): New.
3015         * lib/Automake/tests/DisjConditions.pl
3016         (test_invert): Update to reflect effect of reduce_or().
3017         (test_simplify): Don't skip invert() on larger inputs.
3019 2003-03-29  Raja R Harinath  <harinath@cs.umn.edu>
3021         * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
3022         that timestamp will change.
3024 2003-03-23  Akim Demaille  <akim@epita.fr>
3025             Alexandre Duret-Lutz  <adl@gnu.org>
3027         * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
3028         when supported by etags (Exuberant Ctags).
3029         * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
3031 2003-03-20  Alexandre Duret-Lutz  <adl@gnu.org>
3033         For Debian Bug #185388:
3034         * automake.texi (Extending): Augment the install-exec-hook
3035         discussion with an example how to symlink a versioned binary.
3036         * tests/insthook.test: Rewrite to test the above example.
3037         Report from James R. Van Zandt.
3039 2003-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
3041         * Makefile.am (maintainer-check): Allow `automake:' tokens,
3042         occuring in location.test.  Automake now has 5 legitimate
3043         unsubstituted @strings@.
3045         * tests/aclocal4.test: Require GNU make.
3047 2003-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
3049         * tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
3050         * tests/Makefile.am (TESTS): Add aclocal4.test.
3052 2003-03-14  Jim Meyering  <jim@meyering.net>
3054         * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
3055         subdirectories.  Makefile.in depends on that variable.
3057 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
3059         * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
3061         Fix for PR automake/386:
3062         * m4/init.m4: Require Autoconf 2.55.
3063         Reported by Owen Taylor.
3065         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3066         (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
3067         Suggested by Matthias Andree.
3069         * tests/README: Typo.
3071 2003-03-08  Alexandre Duret-Lutz  <adl@gnu.org>
3073         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3074         (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
3075         Just echo the gcc command.
3076         Suggested by Karl Berry.
3078 2003-03-06  Alexandre Duret-Lutz  <adl@gnu.org>
3080         * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
3081         `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
3082         outputing suffix rules.  This follows 2003-02-25's change.
3083         * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3084         * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3086 2003-03-05  Alexandre Duret-Lutz  <adl@gnu.org>
3088         * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
3089         with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
3090         pretend otherwise.
3091         Reported by Rafael Laboissiere.
3093 2003-03-04  Andreas Buening  <andreas.buening@nexgo.de>
3095         * lib/mdate-sh: Find out which column of the ls -l output contains
3096         the month. Do not assume it is at least the fifth column.
3098 2003-02-26  Alexandre Duret-Lutz  <adl@gnu.org>
3100         * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
3102         * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
3103         instead of lisp_LISP when they don't want byte-compilation.
3104         Don't mention ELCFILES anymore.
3105         * automake.in (handle_data): Allow lisp_DATA.
3106         * tests/lisp5.test: New file.
3107         * tests/Makefile.am (TESTS): Add lisp5.test.
3109         * automake.in (handle_emacs_lisp): Don't build *.elc files
3110         if ELCFILES was set empty.
3111         * tests/lisp4.test: New file.
3112         * tests/Makefile.am (TESTS): Add lisp4.test.
3113         Reported by Simon Josefsson.
3115         * tests/lex3.test, tests/lex5.test: Require flex.
3116         Reported by Leo Davis.
3118 2003-02-25  Alexandre Duret-Lutz  <adl@gnu.org>
3120         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
3121         use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
3122         when outputing suffix rules.
3123         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
3124         (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
3125         Suggested by Bruno Haible.
3127         * automake.in (read_am_file): Catch trailing backslashes on last line.
3128         * tests/backsl3.test: New file.
3129         * tests/Makefile.am (TESTS): Add backsl3.test.
3130         Reported by Akim Demaille.
3132 2003-02-24  Alexandre Duret-Lutz  <adl@gnu.org>
3134         * ChangeLog: Move 2002's entries to ...
3135         * ChangeLog.02: ... this new file.
3136         * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
3138 2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>
3140         * tests/version7.test: Use $sleep to sleep before updating
3141         the version, to work around timestamp inconsistencies in Windows.
3143 2003-02-24  Bruno Haible  <bruno@clisp.org>
3144             Alexandre Duret-Lutz  <adl@gnu.org>
3146         * lib/am/texibuild.am: Don't remove the target info files. Instead,
3147         back up and restore them if makeinfo fails.
3148         * tests/txinfo20.test: New file.
3149         * tests/Makefile.am (TESTS): Add txinfo20.test.
3151 2003-02-23  Alexandre Duret-Lutz  <adl@gnu.org>
3153         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
3154         (distcleancheck): Fix typos and other errors reported by Karl
3155         Berry.
3157 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
3159         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
3160         instead of ${...}.
3162         * tests/defs.in: Handle required=ro-dir.
3163         * tests/destdir.test: Use this.
3165 2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
3167         * lib/am/distdir.am (distcheck): Strip any leading DOS drive
3168         from dc_install_base.
3170 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
3172         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
3173         DJGPP-style *.iNN info files.
3174         (maintainer-clean-aminfo): Rewrite using the same pattern
3175         as in uninstall-info-am.
3176         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
3177         DJGPP-style *.iNN info files before running $(MAKEINFO).
3178         * tests/txinfo19.test: New file.
3179         * tests/Makefile.am (TESTS): Add txinfo19.test.
3181 2003-02-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
3183         * lib/depcomp (dashmstdout): Cope with DOS filenames in
3184         dependencies.
3186 2003-02-17  Alexandre Duret-Lutz  <adl@gnu.org>
3188         * lib/depcomp (makedepend): Don't pass $object to makedepend.
3189         Reported by Stepan Kasal.
3191 2003-02-12  Alexandre Duret-Lutz  <adl@gnu.org>
3193         * tests/defs.in: Handle required=makedepend.
3195         * Makefile.am (maintainer-check): Update the diff check
3196         to account for the recent @SHELL@ substitution.
3198 2003-02-11  Alexandre Duret-Lutz  <adl@gnu.org>
3200         * lib/depcomp: Do not put comments on the `icc)' line.
3202         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
3203         versions.
3205         Fix for PR automake/381:
3206         * automake.in (handle_gettext): Do not print diagnostics
3207         about po/ and intl/ missing from SUBDIRS if po/ does not
3208         exist.  Warn if `SUBDIRS = intl' is used although libintl
3209         is 'external'.
3210         * tests/gettext.test: Make sure diagnostics are not output
3211         when po/ does not exist.
3212         * tests/gettext2.test: Test for unwanted intl/.
3213         PR from Alexander Turbov, fix suggested by Bruno Haible.
3215         * m4/depend.m4: Grep depcomp's stderr for icc warnings about
3216         ignored options.
3217         * lib/depcomp (icc): New mode.
3218         * tests/depcomp5.test: New file.
3219         * tests/defs.in: Handle required=icc.
3220         * tests/Makefile.am (TESTS): Add it.
3222         Temporary hack for PR automake/381:
3223         * automake.in (handle_gettext): Turn missing po/ and intl/ errors
3224         into -Wsyntax warnings.
3226 2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
3228         * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
3229         This makes the setting of SHELL work for DJGPP.
3231 2003-02-10  Alexandre Duret-Lutz  <adl@gnu.org>
3233         For PR automake/385:
3234         * lib/depcomp (makedepend): Strip any libtool call, before
3235         running makedepends.
3236         * tests/depcomp4.test: New file.
3237         * tests/Makefile.am (TESTS): Add it.
3238         Reported by Jeff Squyres.
3240         Related to PR automake/385:
3241         * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
3242         write dependencies to /dev/null.  `-o /dev/null' was added
3243         on 2002-06-13 just because I tried to replace `-o foo.o' by something
3244         else and didn't thought about removing it entirely.
3245         * tests/depcomp3.test: New file.
3246         * tests/Makefile.am (TESTS): Add it.
3248         * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
3249         SHELL for DJGPP.
3250         Suggested by Richard Dawe.
3252 2003-02-09  Alexandre Duret-Lutz  <adl@gnu.org>
3254         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
3255         (distcleancheck): New nodes.
3257 2003-02-06  Alexandre Duret-Lutz  <adl@gnu.org>
3259         * automake.in (scan_autoconf_files): Don't complain that
3260         AM_INIT_AUTOMAKE comes from an old version if it was not found.
3262 2003-02-05  Alexandre Duret-Lutz  <adl@gnu.org>
3264         * automake.in (am_install_var): Simplify filtering of
3265         variable_loc_and_value_as_list_recursive's output.
3267 2003-02-04  Alexandre Duret-Lutz  <adl@gnu.org>
3269         * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
3270         indexes of header files so we create stamp files with
3271         the right numbers when config.status is run on some headers.
3272         * tests/stamph2.test: Check for this.
3273         Reported by Sander Niemeijer.
3275 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3277         * automake.in (vars_scanned): Move near traverse_variable_recursively.
3278         (traverse_variable_recursively,
3279         traverse_variable_recursively_worker): Accept a $COND_FILTER argument
3280         to filter out conditions during recursion.  Don't recurse into
3281         undefined variables.  Don't pass empty results to &FUN_COLLECT.
3282         (value_to_list): Remove, was used by
3283         variable_value_as_list_recursive_worker only.
3284         (variable_value_as_list_recursive_worker): Rewrite using
3285         traverse_variable_recursively.  Remove the $parent argument.
3286         (variable_value_as_list_recursive,
3287         variable_loc_and_value_as_list_recursive): Adjust calls
3288         to variable_value_as_list_recursive_worker.  Don't reset
3289         %vars_scanned.
3290         * tests/cond3.test: Don't expect empty helper variables,
3291         we don't output them anymore.
3292         * tests/cond30.test: Use an undefined variable.
3294         * automake.in (handle_programs): Strip $(EXEEXT) before
3295         calling &check_canonical_spelling.
3296         * tests/exeext.test: Make sure we don't use a
3297         maude3__EXEEXT__OBJECTS variable.
3299 2003-02-02  Jeremy Nimmer  <jwnimmer@alum.mit.edu>  (tiny change)
3301         For Debian Bug #39542:
3302         * automake.texi (Invoking Automake, Optional): Document how
3303         AC_CONFIG_AUX_DIR interacts with missing files.
3305 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
3307         * lib/Automake/DisjConditions.pm (_permutations_worker)
3308         (permutations): Remove, so that people aren't tempted to use it.
3309         * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
3311         * automake.in (variable_conditions_recursive): Remove.
3312         (variable_conditionally_defined): Rewrite using
3313         traverse_variable_recursively.
3315         * automake.in (traverse_variable_recursively,
3316         traverse_variable_recursively_worker): Pass one merged Condition
3317         instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
3318         (transform_variable_recursively, define_objects_from_sources)
3319         (handle_lib_objects, variable_conditions_recursive): Adjust usage.
3321 2003-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
3323         * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
3324         using transform_variable_recursively instead of
3325         variable_conditions_recursive and variable_value_as_list_recursive
3326         to avoid combinatorial explosion.
3327         (handle_lib_objects_cond): Merge into handle_lib_objects.
3328         * tests/cond11.test: Don't grep internal details in Makefile.in,
3329         run $MAKE to make sure the resulting Makefile runs as expected.
3330         * tests/cond29.test: Also exercise conditional _LDADD.
3331         * tests/cond31.test, tests/cond32.test: New files.
3332         * tests/Makefile.am (TESTS): Add tests/cond31.test and
3333         tests/cond32.test.
3335 2003-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
3337         * automake.in (handle_lib_objects_cond): Ignore -dlopen and
3338         -dlpreopen in _LIBADD variables too.
3339         (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
3340         handle_lib_objects_cond.
3341         * tests/libtool7.test: New file.
3342         * tests/Makefile.am (TESTS): Add libtool7.test.
3344         * automake.texi (Program and Library Variables): Clarify that
3345         _LIBADD is for libraries and _LDADD for programs.
3347         * automake.in (handle_source_transform): Correct typo from 2003-01-23.
3349 2003-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
3351         Fix for PR automake/352:
3352         * automake.in (transform_variable_recursively): If the destination
3353         and the source variables are the same, delete the source variable
3354         before defining the destination variable.
3355         (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
3356         or this will confuse handle_source_transform.
3357         (append_exeext): Rewrite using transform_variable_recursively.
3358         * tests/cond29.test, tests/cond30.test: New files.
3359         * tests/exeext.test: Run ./configure and make, this uncovered
3360         the above handle_programs issue.
3361         * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
3363         * automake.in (%subobjvar): Replace by ...
3364         (%gen_varname): ... this.
3365         (subobjname): Replace by ...
3366         (gen_varname): ... this.
3367         (initialize_per_input): Clean gen_varname instead of subobjname.
3368         (transform_variable_recursively): New function, extracted
3369         from define_objects_from_sources.
3370         (define_objects_from_sources): Use transform_variable_recursively.
3371         Remove the unused $parent argument.
3372         (handle_source_transform): Adjust call to define_objects_from_sources.
3374 2003-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
3376         * automake.in (@substfroms, @substtos): Move near
3377         traverse_variable_recursively.
3378         (traverse_variable_recursively, traverse_variable_recursively_worker):
3379         New functions, extracted from define_objects_from_sources.
3380         (define_objects_from_sources): Rewrite using
3381         traverse_variable_recursively.
3382         (handle_source_transform): Use variables_conditionally_defined
3383         instead of calling variable_conditions_recursive directly.
3384         Adjust the call to define_objects_from_sources; there is no need
3385         to reset @substtos, @substfroms, and %vars_scanned now.
3386         (variable_conditions_recursive): Rewrite using
3387         traverse_variable_recursively.
3388         (variable_conditions_recursive_sub): Remove.
3389         (variable_conditionally_defined): Fix condition comparison (the
3390         consequence was that DIST_SUBDIRS was always output).
3391         * lib/Automake/Condition.pm (merge): Allow merging several
3392         conditions at once.
3394 2003-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
3396         * automake.texi (Python): Explain that directory variables start
3397         with either ${prefix} or ${exec_prefix}, and point to the
3398         `Installation Directory Variables' section of the Autoconf manual.
3400 2003-01-21  Alexandre Duret-Lutz  <adl@gnu.org>
3402         * lib/am/distdir.am (top_distdir, distdir): Define these
3403         variables only in top level Makefile.  Redefine $(top_distdir)
3404         as $(distdir).
3405         (distdir): Fix passing of $(top_distdir) to sub-makes.
3406         * automake.in (handle_dist): Do not define the DISTDIR and
3407         TOP_DISTDIR transformations.  We don't need them anymore.
3408         * automake.texi (Dist): Reorder the dist-hook section, and move
3409         the DIST_SUBDIRS paragraph earlier.  Document distdir and
3410         top_distdir.
3411         * tests/subpkg.test: Update to check for $(distdir) and
3412         $(top_distdir).
3414 2003-01-19  Alexandre Duret-Lutz  <adl@gnu.org>
3416         Rename more files to accomodate 8+3 file systems, and adjust the
3417         vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
3418         and we call "condition" a conjunction of "conditionals".
3419         * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
3420         * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
3421         * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
3422         * lib/am/tests/ConditionalSet.pl: Rename to
3423         lib/am/tests/DisjConditions.pl
3424         * lib/am/Conditional.pm (condition_negate): Rename to ...
3425         * lib/am/Condition.pm (conditional_negate): ... this.
3426         * automake.in: Adjust references to Condition and DisjConditions.
3427         (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
3428         (check_ambiguous_condition, condition_ambiguous_p): ... these.
3430         * tests/README: New file.
3432         * automake.texi (Conditional Programs): Show a sample Makefile.am.
3433         Remind $(EXEEXT) must be appended to configure substitutions.
3434         Show how Automake conditionals can be used instead.
3435         * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
3436         appended to conditionally defined programs.
3438 2003-01-16  Jim Meyering  <jim@meyering.net>
3440         Accept --help and --version, and lots of syntactic clean-up.
3441         * lib/install-sh: Use consistent indentation, two spaces per level.
3442         (scriptversion): New variable.
3443         Change initializations like `variable=""' to `variable='.
3444         (usage): New variable.
3445         Use `test', not `['.
3446         Use `test -z "$var"', not `[ x"$var" = x ]'.
3447         Use `test -n "$var"', not `[ x"$var" != x ]'.
3448         Alphabetize case entries.
3449         Accept --help and --version options.
3450         Remove unnecessary `else :' clauses.
3451         Add a `Local variables' eval block to help emacs users update
3452         the time-stamp variable added above.
3453         Mostly from Karl Berry.
3455 2003-01-16  Alexandre Duret-Lutz  <adl@gnu.org>
3457         * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
3458         python2.3.
3460         * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
3461         or `pyexecdir', for the sake of 64-bit distributions that usually
3462         use lib64/ instead of lib/.  Fall back to the default directory
3463         if it doesn't work.
3464         Suggested by Gwenole Beauchesne.
3466 2003-01-14  Alexandre Duret-Lutz  <adl@gnu.org>
3468         For PR automake/382:
3469         * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
3470         Explain BUILT_SOURCES is usually needed in this case.
3471         Reported by William S Fulton.
3473 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3475         Rename some files for the sake of 8+3 file systems.
3476         * tests/aclocali.test:     Rename to tests/aclocal.test.
3477         * tests/aclocali1.test:    Rename to tests/aclocal2.test.
3478         * tests/aclocalii.test:    Rename to tests/aclocal3.test.
3479         * tests/acoutput.test:     Rename to tests/acoutpt.test.
3480         * tests/acoutput2.test:    Rename to tests/acoutpt2.test.
3481         * tests/acouttbs.test:     Rename to tests/acoutbs.test.
3482         * tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
3483         * tests/autoheader.test:   Rename to tests/autohdr.test.
3484         * tests/autoheader2.test:  Rename to tests/autohdr2.test.
3485         * tests/condincl.test:     Rename to tests/condinc.test.
3486         * tests/condincl2.test:    Rename to tests/condinc2.test.
3487         * tests/distcommon.test:   Rename to tests/distcom.test.
3488         * tests/distcommon2.test:  Rename to tests/distcom2.test.
3489         * tests/distcommon3.test:  Rename to tests/distcom3.test.
3490         * tests/installsh.test:    Rename to tests/instsh.test.
3491         * tests/installsh2.test:   Rename to tests/instsh2.test.
3492         * tests/instdata.test:     Rename to tests/instdat.test.
3493         * tests/instdata2.test:    Rename to tests/instdat2.test.
3494         * tests/libobj12b.test:    Rename to tests/libobj13.test.
3495         * tests/link_f_c.test:     Rename to tests/link_fc.test.
3496         * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
3497         * tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
3498         * tests/nodefine.test:     Rename to tests/nodef.test.
3499         * tests/nodefine2.test:    Rename to tests/nodef2.test.
3500         * tests/required.test:     Rename to tests/reqd.test.
3501         * tests/required2.test:    Rename to tests/reqd2.test.
3502         * tests/sourcesub.test:    Rename to tests/srcsub.test.
3503         * tests/sourcesub2.test:   Rename to tests/srcsub2.test.
3504         * tests/specflags.test:    Rename to tests/specflg.test.
3505         * tests/specflags2.test:   Rename to tests/specflg2.test.
3506         * tests/specflags3.test:   Rename to tests/specflg3.test.
3507         * tests/specflags6.test:   Rename to tests/specflg6.test.
3508         * tests/specflags7.test:   Rename to tests/specflg7.test.
3509         * tests/specflags8.test:   Rename to tests/specflg8.test.
3510         * tests/specflags9.test:   Rename to tests/specflg9.test.
3511         * tests/subdircond.test:   Rename to tests/subcond.test.
3512         * tests/subdircond2.test:  Rename to tests/subcond2.test.
3513         * tests/subdircond3.test:  Rename to tests/subcond3.test.
3514         * tests/texinfo.test:      Rename to tests/txinfo.test.
3515         * tests/texinfo2.test:     Rename to tests/txinfo2.test.
3516         * tests/texinfo3.test:     Rename to tests/txinfo3.test.
3517         * tests/texinfo4.test:     Rename to tests/txinfo4.test.
3518         * tests/texinfo5.test:     Rename to tests/txinfo5.test.
3519         * tests/texinfo6.test:     Rename to tests/txinfo6.test.
3520         * tests/texinfo7.test:     Rename to tests/txinfo7.test.
3521         * tests/texinfo8.test:     Rename to tests/txinfo8.test.
3522         * tests/texinfo9.test:     Rename to tests/txinfo9.test.
3523         * tests/texinfo10.test:    Rename to tests/txinfo10.test.
3524         * tests/texinfo13.test:    Rename to tests/txinfo13.test.
3525         * tests/texinfo16.test:    Rename to tests/txinfo16.test.
3526         * tests/texinfo17.test:    Rename to tests/txinfo17.test.
3527         * tests/texinfo18.test:    Rename to tests/txinfo18.test.
3528         * tests/Makefile.am (TESTS): Adjust.
3529         * ChangeLog.1996: Rename to ChangeLog.96.
3530         * ChangeLog.1998: Rename to ChangeLog.98.
3531         * ChangeLog.2000: Rename to ChangeLog.00.
3532         * ChangeLog.2001: Rename to ChangeLog.01.
3533         * Makefile.am (EXTRA_DIST): Adjust.
3534         Reported by Richard Dawe.
3536 2003-01-13  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
3538         * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
3539         Use '_build' and '_inst' instead of '=build' and '=inst'.
3540         * tests/man2.test: Reflect change automake: check for files in
3541         '_build' and '_inst' directories instead of '=build' and '=inst'.
3543 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
3545         Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
3546         * m4/lead-dot.m4: New file.
3547         * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
3548         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
3549         * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
3550         DEPDIR using am__leading_dot.
3551         * automake.in (require_build_directory): Define am__dirstamp, a new
3552         variable for the dirstamp basename, based on am__leading_dot.
3553         * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
3554         use $(am__dirstamp).
3555         Reported by Richard Dawe.
3557         * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
3558         Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
3559         testing for programs.
3560         Reported by Richard Dawe.
3562 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
3564         * Makefile.am (maintainer-check): Suggest using $sleep instead of
3565         sleep 2.
3566         * tests/defs.in (sleep): New variable.
3567         * tests/asm.test, tests/confsub.test, tests/lisp3.test,
3568         tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
3569         Use $sleep instead of sleep 2, to work around timestamp
3570         inconsistencies in Windows.
3571         Reported by Richard Dawe.
3573         * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
3574         after $MAKE -e.
3575         * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
3576         tests/man2.test, tests/subobj3.test, tests/suffix8.test,
3577         tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
3578         $SHELL is overridden by tests/defs, so it won't hurt even
3579         if $MAKE -e uses the $SHELL envvar.
3580         * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
3581         tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
3582         Reported by Richard Dawe.
3584         Build elisp files all at once instead of one by one.
3585         * automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
3586         elc-stamp to all's dependencies.
3587         * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
3588         (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
3589         (clean-lisp): Clean elc-stamp.
3590         * lib/elisp-comp: Reindent.  Erase the temporatry directory
3591         from a trap.  Propagate Emacs's exit status.
3592         * tests/lisp3.test: New file.
3593         * tests/Makefile.am (TESTS): Add lisp3.test.
3594         Reported by Ryan T. Sammartino.
3596 2003-01-09  Akim Demaille  <akim@epita.fr>
3598         * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
3600 2003-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
3602         * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
3603         variables.  Suggested by Ryan T. Sammartino.
3605 2003-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
3607         * automake.in (macro_define): Add missing `{$cond}' (typo from
3608         2002-09-18).
3609         ($gen_copyright): Append year 2003.
3610         (version): Increase year.
3612         * tests/defs.in: Substitute aclocaldir instead of running
3613         the installed aclocal.  Otherwise Libtool and Gettext
3614         tests get skipped when aclocal doesn't preexist.
3615         Reported by Imacat.
3616         * tests/listval.test, tests/suffix2.test: Remove pointless -I
3617         argument to aclocal.
3619 -----
3621 Copyright (C) 2003  Free Software Foundation, Inc.
3623 This file is part of GNU Automake.
3625 GNU Automake is free software; you can redistribute it and/or modify
3626 it under the terms of the GNU General Public License as published by
3627 the Free Software Foundation; either version 2, or (at your option)
3628 any later version.
3630 GNU Automake is distributed in the hope that it will be useful,
3631 but WITHOUT ANY WARRANTY; without even the implied warranty of
3632 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3633 GNU General Public License for more details.
3635 You should have received a copy of the GNU General Public License
3636 along with autoconf; see the file COPYING.  If not, write to
3637 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3638 Boston, MA 02111-1307, USA.