2002-03-25 Angus Leeming <a.leeming@ic.ac.uk>
[platform/upstream/automake.git] / ChangeLog
1 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
2
3         * lib/depcomp (tru64): Correctly compute `base'.
4
5 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
6
7         * tests/pr211.test: s/requires/required/, otherwise the test fails
8         if libtool is not installed.
9
10 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
11
12         * tests/dirname.test: Don't use $SHELL when calling ./configure.
13
14 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
15
16         * tests/dirname.test: Use --quiet to fix failure on installations
17         using a site script.
18         Reported by Nicolas Joly.
19
20 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
21
22         * Makefile.am (maintainer-check): Check for misuses of make,
23         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
24         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
25         * tests/confsub.test: Use $AUTOCONF and $MAKE.
26         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
27         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
28         tests/pr224.test, tests/pr287.test, tests/strip.test,
29         tests/yacc8.test: Use $MAKE.
30
31 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
32
33         Add support for two-dot versions.
34
35         * tests/version5.test: New file.
36         * tests/Makefile.am (TESTS): Add it.
37         * automake.in (version_split, version_compare): New functions.
38         (version_check): Rewrite using version_split and version_compare.
39         (process_option_list): Adjust regex.
40
41 2002-03-18  Richard Boulton <richard@tartarus.org>
42
43         Fix for PR automake/306:
44         * automake.texi (Generalities): Document +=.
45         (Conditionals): Document limitations of += with conditionals.
46
47 2002-03-17  Tom Tromey  <tromey@redhat.com>
48
49         Fix for PR automake/295:
50         * automake.texi (Invoking Automake): Deprecate --output-dir.
51         * automake.in (usage): Don't document --output-dir.
52         (output_directory): Don't initialize.
53         (parse_arguments): Deprecate --output-dir.
54
55         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
56         Fixes PR automake/304.
57
58 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
59
60         * tests/dirforbid.test: Workaround for NetBSD sh bug.
61         Fixes PR automake/305.
62
63 2002-03-11  Richard Boulton <richard@tartarus.org>
64
65         * automake.in (check_typos): Allow variables with reserved
66         suffices (such as _LDFLAGS) and prefixes which aren't
67         recognised if the variable is defined in configure.ac.
68         Fixes acsubst.test.
69
70 2002-03-11  Richard Boulton <richard@tartarus.org>
71
72         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
73         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
74         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
75
76 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
77
78         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
79         causes failures.
80
81 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
82
83         Fix for PR automake/303:
84         * automake.in (version_check): Move the error message ...
85         (process_option_list): ... here, so we can distinguish between
86         global and local options.
87
88 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
89
90         * tests/pr300-lib.test, tests/pr300-ltlib.test,
91         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
92         Autoconf doesn't complain about Makefile being output twice.
93
94 2002-03-06  Tom Tromey  <tromey@redhat.com>
95
96         * configure.in: Upped version to 1.6a.
97
98 2002-03-05  Tom Tromey  <tromey@redhat.com>
99
100         * configure.in: Released 1.6.
101
102 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
103
104         Fix for PR automake/300:
105         * tests/pr300-lib.test, tests/pr300-ltlib.test,
106         tests/pr300-prog.test: New files.
107         * tests/Makefile.am (TESTS): Add them.
108         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
109         compute the directory.
110         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
111         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
112         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
113         (uninstall-%DIR%LIBRARIES): Honor nobase_.
114         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
115         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
116         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
117         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
118         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
119         (uninstall-%DIR%PROGRAMS): Honor nobase_.
120         See also the fix for nobase.test on 2001-11-09.
121
122 2002-03-05  Tom Tromey  <tromey@redhat.com>
123
124         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
125
126 2002-03-05  Pavel Roskin  <proski@gnu.org>
127
128         * tests/yacc8.test: Add a command between "test" and "cd" to
129         work around a bug in bash-2.05.
130
131 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
132
133         Fix for PR automake/294:
134         * tests/dirforbid.test: New file.
135         * tests/Makefile.am (TESTS): Add it.
136         * automake.in (standard_prefix): New hash.
137         (am_primary_prefixes): Forbid standard_prefixes which are not
138         explicitely allowed.
139         * automake.texi (Uniform): Remove FIXME.
140
141 2002-03-05  Jim Meyering  <meyering@lucent.com>
142
143         * automake.in (@common_files): Add config.rpath.
144
145 2002-03-05  Kevin Ryde  <user42@zip.com.au>
146
147         For PR automake/297:
148         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
149         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
150         2.52 at least).
151
152 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
153
154         * automake.in (scan_one_autoconf_file): Declare
155         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
156         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
157         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
158         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
159         of s/// in the sed invocation, to support filenames containing
160         slashes.
161         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
162         * tests/lex5.test, tests/yacc8.test: New files.
163         * tests/Makefile.am (TESTS): Add them.
164
165 2002-02-23  Per Bothner  <per@bothner.com>
166
167         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
168         `.' in else branch.
169
170 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
171
172         * tests/make.test: Revert the grep logic to work around a bug
173         in NetBSD sh (see NetBSD Problem Report #11542).
174         Reported by Patrick Welche.
175
176 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
177
178         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
179         to try and prevent a non-lisp emacs from starting in interactive
180         mode.
181         * automake.texi: Document this change.
182
183 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
184
185         * automake.texi (Macros): Split into ...
186         (Public Macros, Private Macros): ... these.
187
188 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
189
190         * tests/insthook.test: Use sed instead of "tail +X".
191
192 2002-02-18  Paul Eggert  <eggert@twinsun.com>
193
194         * lib/depcomp: Don't use "tail +3"; it's not portable to
195         POSIX 1003.1-2001 hosts.
196
197 2002-02-18  Jim Meyering  <meyering@lucent.com>
198
199         * tests/cond12.test: Use sed 1q, not `head -n 1'.
200         The latter is not portable to some old systems.
201         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
202         Use `sed 1q' instead.
203         * tests/insthook.test: Likewise.
204
205 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
206
207         * automake.in (handle_lib_objects_cond): Tell the user to put
208         global linker flags in AM_LDFLAGS, not LDFLAGS.
209
210         * automake.texi (General Operation): AC_SUBST'ed variables
211         override Automake's variables.
212         (Uniform): More words and @refs.
213         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
214         (etags): More explanations about the first example.
215         (Invoking Automake): Mention autoreconf.  More @refs.
216         (Requirements): Mention AC_CONFIG_FILES.
217         (Optional): AC_CHECK_TOOL will no longer install config.sub and
218         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
219         (Invoking aclocal): aclocal no longer warn about duplicates.
220         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
221         (Extending aclocal): Suggest using the output of
222         `aclocal --print-ac-dir` to install third-party macros.
223         (Alternative): Specify ordering of dist_, nodist_, and nobase_
224         prefixes.
225         (A Program): Mention scripts.  The global LDADD variable is not
226         meant to hold link flags, suggest using AM_LDFLAGS instead.
227         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
228         _LIBADD and _LDADD are subject to the same restriction wrt to
229         link flags.
230         (Program and Library Variables) <maude_DEPENDECIES>: Is also
231         derived from maude_LIBADD.
232         (Program variables): Define AM_LDFLAGS.
233         (Dependencies): Passing the no-dependencies option to
234         AM_INIT_AUTOMAKE is prefered.
235         (Scripts): Explain why automake is magically cleaned.
236         Mention noinst_SCRIPTS and check_SCRIPTS.
237         (Data): Use dist_ in Automake's example.
238         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
239         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
240
241 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
242
243         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
244         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
245         of asking the maintainer to do it manually.
246         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
247         Automake/XFile.pm: New upstream versions.
248
249 2002-02-02  Tom Tromey  <tromey@redhat.com>
250
251         * automake.texi (Macros): Warn about upgrading.
252
253 2002-02-01  Tom Tromey  <tromey@redhat.com>
254
255         Change per GNU coding standards:
256         * aclocal.in (parse_arguments): Only mention most recent year in
257         copyright output.
258         * automake.in (version): Only mention most recent year.
259
260 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
261
262         * automake.texi (API versioning): New Node.
263         (Extending): Use $(DESTDIR) in examples.
264
265 2002-01-28  Akim Demaille  <akim@epita.fr>
266
267         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
268         Respect the --help layout.
269
270 2002-01-27  Tom Tromey  <tromey@redhat.com>
271
272         * configure.in: Bumped to 1.5e.
273
274         * lib/am/yacc.am: Use `rm -f'.
275
276         * configure.in: Released 1.5d.
277
278         * lib/config.guess: New version from FSF.
279
280         * Makefile.am (uninstall-hook): New target.
281
282 2002-01-24  Akim Demaille  <akim@epita.fr>
283
284         * lib/install-sh: Update, from Autoconf.
285
286 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
287
288         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
289         as AC_CANONICAL_HOST (the former does not require the latter since
290         Autoconf 2.50).
291         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
292         * automake.texi (Requirements): Do not require STRIP to be
293         defined by the user.
294
295 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
296
297         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
298         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
299         * tests/pr224.test: Make sure .deps subdirectories are
300         erased by distclean.
301
302 2002-01-22  Tom Tromey  <tromey@redhat.com>
303
304         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
305         no-dependencies option is set.
306         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
307         no-dependencies option is set.  Don't call AM_DEP_TRACK or
308         AM_SET_DEPDIR.
309
310 2002-01-22  Pavel Roskin  <proski@gnu.org>
311
312         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
313         ASFLAGS.
314
315 2002-01-22  Akim Demaille  <akim@epita.fr>
316
317         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
318         (fetch): Adjust.
319
320 2002-01-21  Tom Tromey  <tromey@redhat.com>
321
322         * Makefile.am (fetch): Don't fetch ansi2knr.
323
324         * automake.texi (Macros): Updated for new variable names.
325         (Program and Library Variables): Likewise.
326         (Assembly Support): Likewise.
327         * m4/as.m4: Use CCAS and CCASFLAGS.
328         * automake.in (asm): Use CCAS and CCASFLAGS.
329
330 2002-01-21  Akim Demaille  <akim@epita.fr>
331
332         * automake.in (&parse_arguments): Use a more GNUish error message
333         on wrong options.
334
335 2002-01-20  Tom Tromey  <tromey@redhat.com>
336
337         Fix for PR automake/231:
338         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
339         * m4/depend.m4: Document `GCJ'.
340
341         For PR automake/224:
342         * tests/Makefile.am (TESTS): Added pr224.test.
343         * tests/pr224.test: New file.
344         * lib/depcomp: Fixed computation of depfile.
345         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
346         * automake.in (handle_single_transform_list): Only reject `..'
347         component for Java.  Put dependencies in directory near object.
348         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
349
350 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
351
352         * tests/defs: Export AUTOMAKE and ACLOCAL.
353
354 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
355
356         Fix for PR automake/204:
357         * tests/pr204.test: New file.
358         * tests/Makefile.am (TESTS): Add it.
359         * automake.in (handle_single_transform_list): Don't distribute
360         sources derived from non-distributed sources.
361
362 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
363
364         Fix for PR automake/229:
365         * tests/pr229.test: New file.
366         * tests/Makefile.am (TESTS): Add it.
367         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
368         AC_EMXOS2, and AC_MINGW32.
369
370 2002-01-18  Tom Tromey  <tromey@redhat.com>
371
372         * tests/cond7.test: Fix test bug exposed by copyright update.
373
374         For PR automake/288:
375         * automake.in (lang_c_rewrite): Don't prepend directory to base if
376         directory is `.'.  Also, properly compute de_ansi_files entry in
377         subdir-objects case
378         * tests/Makefile.am (TESTS): Added ansi7.test.
379         * tests/ansi7.test: New file.
380
381         * aclocal.in (parse_arguments): Added 2002.
382         (write_aclocal): Likewise.
383         (parse_arguments): Updated my email address.
384         * automake.in (gen_copyright): Added 2002.
385         (version): Likewise.  Also, changed my email address.
386
387         * configure.in (APIVERSION): Refined definition.
388
389 2002-01-18  Tom Tromey  <tromey@redhat.com>
390
391         * missing: Updated.
392         * lib/missing: Accept versioned aclocal.
393         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
394
395 2002-01-17  Pavel Roskin  <proski@gnu.org>
396
397         * m4/Makefile.am (m4datadir): Use APIVERSION.
398
399 2002-01-16  Tom Tromey  <tromey@redhat.com>
400
401         * Makefile.am (install-exec-hook): Use APIVERSION.
402         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
403         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
404         APIVERSION.
405         * automake.in (perllibdir): Use APIVERSION.
406         (libdir): Likewise.
407         * aclocal.in (perllibdir): Use APIVERSION.
408         (APIVERSION): New global.
409         (parse_arguments): Use APIVERSION.
410         * configure.in (APIVERSION): New subst.
411         (pkgvdatadir): Use APIVERSION.
412
413 2002-01-15  Tom Tromey  <tromey@redhat.com>
414
415         * missing: Updated.
416         * lib/missing: Match against `automake*' to pick up versioned
417         automake.
418         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
419         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
420         variable.
421         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
422         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
423         pkgvdatadir.
424         (scriptdir): Use pkgvdatadir.
425         (installcheck-local): Likewise.
426         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
427         * automake.in (perllibdir): Added VERSION.
428         (libdir): Likewise.
429         * aclocal.in (parse_arguments): Search versioned directory.  Don't
430         push unversioned directory unless it exists.
431         (perllibdir): Added VERSION.
432         (default_acdir): New global.
433         * m4/Makefile.am (m4datadir): Added $(VERSION).
434         * Makefile.am (install-exec-hook): New target.
435         * configure.in (ACLOCAL): Search build directory.
436         (pkgvdatadir): New subst.
437
438 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
439
440         * lib/config.sub, lib/config.guess: New versions from FSF.
441
442 2002-01-13  Tom Tromey  <tromey@redhat.com>
443
444         For PR automake/288:
445         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
446         to directory.
447         (lang_c_finish): Likewise.  Also, use directory information from
448         de_ansi_files.
449
450 2002-01-13  Kevin Ryde  <user42@zip.com.au>
451
452         For PR automake/288:
453         * tests/Makefile.am (TESTS): Added ansi6.test.
454         * tests/ansi6.test: New file.
455
456 2002-01-13  Tom Tromey  <tromey@redhat.com>
457
458         For PR automake/287:
459         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
460         over subdirs.
461         * tests/Makefile.am (TESTS): Added pr287.test.
462         * tests/pr287.test: New file.
463
464 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
465
466         * lib/am/distdir.am (distdir): Handle subdirectories.
467         * tests/extra6.test: New file.
468         * tests/Makefile.am (TESTS): Add it.
469
470 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
471
472         * tests/extra2.test: Run $ACLOCAL.
473
474 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
475
476         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
477         AM_INIT_AUTOMAKE arguments when using the old-style call.
478         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
479         Suggested by Pavel Roskin.
480
481 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
482
483         * test/nodefine.test, test/nodefine2.test: Check that no-define
484         works, not the contrary...
485         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
486         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
487         not the contrary.
488
489 2002-01-12  Jim Meyering  <meyering@lucent.com>
490
491         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
492         * tests/libobj11.test: New file.
493         * tests/Makefile.am (TESTS): Add libobj11.test.
494
495 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
496
497         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
498
499 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
500
501         * automake.in (file_contents_internal): Introduce two variables,
502         $is_rule and $discard_rules to track rules spanning across multiple
503         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
504         where only the first paragraph of such a multi-paragraph rule was
505         discarded; but it leaves many similar latent bugs (see the FIXMEs).
506
507 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
508
509         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
510         * tests/error.test: Use some macro names which are not defined by
511         Automake itself.
512
513 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
514
515         * automake.texi (Complete, Macros, Options): Document the new style
516         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
517         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
518         AC_INIT if they are available there.  Support a new call form
519         where the only argument is an optional space-separated list of
520         Automake options.
521         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
522         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
523         _AM_IF_OPTION): New functions.
524         * automake.in (AC_INIT_PATTERN): New variable.
525         (global_options_line): Remove, use $seen_init_automake instead.
526         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
527         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
528         Remove the AM_AUTOMAKE_OPTIONS handling.
529         * configure.in: Modernize.
530         * tests/defs (configure.in): Modernize.  One third of the tests
531         still overwrite the default configure.in and use an old
532         AM_INIT_AUTOMAKE call,  so that makes testing for both.
533         * tests/nodefine.test, tests/nodefine2.test: New files.
534         * tests/Makefile.am (TESTS): Add them.
535
536 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
537
538         * automake.in (define_configure_variable): Propagate line numbers.
539
540 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
541
542         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
543
544 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
545
546         * configure.in: Run the Autoconf test in a subdirectory, then
547         erase this directory.
548
549 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
550
551         * configure.in (AUTOMAKE): Create m4/amversion.m4.
552         * m4/amversion.in: New file.
553         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
554         (dist_m4data_DATA): ... this.
555         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
556         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
557         AM_SET_CURRENT_AUTOMAKE_VERSION.
558         * automake.in (seen_automake_version): New variable.
559         (scan_autoconf_traces, scan_one_autoconf_file,
560         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
561         when the version used in aclocal.m4 differs from Automake's.
562         * tests/defs (ACLOCAL): Look in ../m4 too.
563         * tests/installsh.test (ACLOCAL): Likewise.
564         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
565
566 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
567
568         * automake.in (handle_languages): Emit an automake
569         internal variable 'am__depfiles_maybe'.
570         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
571
572         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
573         config.status.
574
575 2002-01-06  Tom Tromey  <tromey@redhat.com>
576
577         * automake.texi (Tags): Document new variables.
578         * lib/am/tags.am (ETAGS): New macro.
579         (ETAGSFLAGS): Likewise.
580         (TAGS): Use them.
581
582 2002-01-04  Tom Tromey  <tromey@redhat.com>
583
584         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
585
586 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
587
588         * automake.in (read_am_file): Thinko in "comment following
589         trailing backslash" detection.
590         * tests/comment5.test: Test for this too.
591
592 2002-01-02  Tom Tromey  <tromey@redhat.com>
593
594         * automake.texi (Extending): Added index for uninstall-hook.
595
596 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
597
598         Fix for PR automake/278:
599         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
600         with versions such as '2.2c1'.  Also, use `int' instead of the
601         obsoleted `string.atoi'.
602         Reported by Enrico Scholz.
603
604 2001-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
605
606         Fix for PR automake/280:
607         * automake.in (read_am_file): Warn about trailing backslashes
608         in comments.
609         * tests/comment5.test: New file.
610         * tests/Makefile.am (TESTS): Add comment5.test.
611         Reported by Enrico Scholz.
612
613 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
614
615         * tests/comment4.test: New file.
616         * tests/Makefile.am (TESTS): Add comment4.test.
617
618         Fix for comment4.test:
619         * automake.in (read_am_file): Output leading comments only when
620         encountering white lines.
621
622 2002-01-01  Tom Tromey  <tromey@redhat.com>
623
624         For PR automake/234:
625         * tests/Makefile.am (TESTS): Added strip.test.
626         * tests/strip.test: New file.
627
628         * automake.texi (Extending): Mention uninstall-hook.
629         (Install): Likewise.
630         * automake.in (handle_factored_dependencies): Allow
631         uninstall-hook.
632
633 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
634
635         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
636         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
637         This fixes a bug introduced on 2001-01-28.
638         Reported by Jared Davis.
639
640 2001-12-31  Tom Tromey  <tromey@redhat.com>
641
642         * automake.texi (Extending): Document installcheck-local.  Added
643         installdirs-local index entry.
644         (Tests): Document installcheck-local.
645
646         * automake.in (handle_single_transform_list): Indentation fix.
647
648 2001-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
649
650         * automake.in (common_files): Add COPYING.DOC.
651         Suggested by Karl Berry.
652
653 2001-12-30  Tom Tromey  <tromey@redhat.com>
654
655         * automake.in (define_configure_variable): Define a user macro,
656         not an automake macro.
657         * tests/Makefile.am (TESTS): Added ar.test.
658         * tests/ar.test: New file.
659
660         For PR automake/211:
661         * automake.in (object_compilation_map): New global.
662         (initialize_per_input): Initialize it.
663         (COMPILE_LIBTOOL): New constant.
664         (COMPILE_ORDINARY): Likewise.
665         * tests/Makefile.am (TESTS): Added pr211.test.
666         * tests/pr211.test: New file.
667
668         For PR automake/215:
669         * configure.in: Use AM_AUTOMAKE_OPTIONS.
670         * Makefile.am (AUTOMAKE_OPTIONS): Removed.
671         * automake.texi (Macros): Document AM_AUTOMAKE_OPTIONS.
672         (Options): Mention AM_AUTOMAKE_OPTIONS.
673         * automake.in (global_options): New global.
674         (global_options_line): Likewise.
675         (scan_autoconf_traces): Trace AM_AUTOMAKE_OPTIONS.
676         (scan_one_autoconf_file): Likewise.
677         (process_option_list): New function.
678         (handle_options): Use it.  Also, handle global options.
679         * m4/Makefile.am (m4data_DATA): Added options.m4.
680         * m4/options.m4: New file.
681
682         * lib/am/install.am (?SUBDIRS?installdirs-am): Handle
683         installdirs-local.
684         (?!SUBDIRS?installdirs): Likewise.
685         * automake.in (handle_installdirs): Handle installdirs-local.
686         * automake.texi (Extending): Mention installdirs.
687         * tests/Makefile.am (TESTS): Added installdir.test.
688         * tests/installdir.test: New file.
689
690 2001-12-30  Akim Demaille  <akim@epita.fr>
691
692         * lib/am/yacc.am: Also rename the possible y.output file.
693         Remove the trailing y.tab.h.
694
695 2001-12-30  Paolo Bonzini  <bonzini@gnu.org>
696
697         * automake.texi (Install): Remove mention of nonexistent
698         uninstall-hook.
699
700 2001-12-30  Alan Modra  <amodra@bigpond.net.au>
701
702         * automake.in (generate_makefile): Unlink output file before
703         opening so that any hard links are not changed.
704
705 2001-12-30  Tom Tromey  <tromey@redhat.com>
706
707         * tests/pr220.test: Use `required' to pick up gcc.
708
709         For PR automake/243:
710         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Strip everything
711         after `:'.
712         * tests/Makefile.am (TESTS): Added pr243.test.
713         * tests/pr243.test: New file.
714
715         For PR automake/220:
716         * tests/Makefile.am (TESTS): Added pr220.test.
717         * tests/pr220.test: New file.
718         * m4/cond.m4 (AM_CONDITIONAL): Cause creation of config.status to
719         fail if conditional was never run.
720
721         For PR automake/260:
722         * lib/depcomp (tru64): Correctly handle libtool case.
723         From doreille@smr.ch.
724
725 2001-12-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
726
727         * lib/am/distdir.am (distcleancheck_listfiles): Unquote.
728         Reported by Yann Droneaud.
729
730 2001-12-29  Tom Tromey  <tromey@redhat.com>
731
732         For PR automake/266:
733         * tests/Makefile.am (TESTS): Added pr266.test.
734         * tests/pr266.test: New file.
735         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Handle
736         non-standard name for makefile.
737
738         For PR automake/279:
739         * automake.in (conditional_ambiguous_p): New sub.
740         (handle_lib_objects_cond): Use it.
741         (check_ambiguous_conditional): Use it.
742         * tests/Makefile.am (TESTS): Added pr279.test, pr279-2.test.
743         * tests/pr279.test: New file.
744         * tests/pr279-2.test: New file.
745
746 2001-12-26  Tom Tromey  <tromey@redhat.com>
747
748         For PR automake/249:
749         * tests/Makefile.am (TESTS): Added nodist2.test.
750         * tests/nodist2.test: New file
751
752 2001-12-26  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
753
754         * m4/multi.m4: Fix quoting in AC_OUTPUT_COMMANDS.
755
756 2001-12-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
757
758         * configure.in: Test for Autoconf >= 2.52.
759         * tests/defs (needs_autoconf, has_autoconf): Delete definition.
760         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
761         tests/cond4.test, tests/cond9.test, tests/cond16.test,
762         tests/cond18.test, tests/cond19.test, tests/cond20.test,
763         tests/confsub.test, tests/depcomp2.test, tests/depdist.test,
764         tests/depend2.test, tests/dirname.test, tests/distname.test,
765         tests/extra5.test, tests/install2.test, tests/lex3.test,
766         tests/make.test, tests/nobase.test, tests/pr9.test,
767         tests/pr87.test, tests/stamph2.test, tests/subdir5.test,
768         tests/subdirbuiltsources.test, tests/subobj3.test,
769         tests/subobj5.test, tests/subobj6.test, tests/substref.test,
770         tests/target-cflags.test, tests/yacc4.test, tests/yacc7.test,
771         tests/yaccvpath.test: Do not use $needs_autoconf.
772
773 2001-12-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
774
775         * configure.in: Bump version to 1.5c.
776
777 2001-12-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
778
779         * configure.in: Bump version to 1.5b.
780
781         * lib/config.sub, lib/config.guess: New versions from FSF.
782
783         * lib/am/lex.am, lib/am/yacc.am: Use `rm -f', not `rm'.
784
785 2001-12-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
786
787         * automake.in (check_gnu_standards, check_gnits_standards): Pass
788         "$am_file.am" as WHERE argument to require_file.
789
790 2001-12-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
791
792         * m4/python.m4 (AM_PATH_PYTHON): Check all known Python interpreters
793         in loop until we find one the satisfies the user supplied version.
794         Add python2 to the list of known interpreters.  Don't use
795         changequote.  Cache the calculation of PYTHON_VERSION and
796         PYTHON_PLATFORM.
797         (AM_PYTHON_CHECK_VERSION): New function, extracted from
798         AM_PATH_PYTHON and modernized.
799         * m4/runlog.m4: New file.
800         * m4/Makefile.am (m4data_DATA): Add it.
801
802 2001-12-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
803
804         * tests/confsub.test, tests/depdist.test, tests/extra5.test,
805         tests/nobase.test, tests/stamph2.test,
806         tests/subdirbuiltsources.test: Require Autoconf.
807
808 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
809
810         * automake.texi (Dist): Document $(DISTCHECK_CONFIGURE_FLAGS).
811         * lib/am/distdir.am (distcheck): Honnor $(DISTCHECK_CONFIGURE_FLAGS).
812         Suggested by Merijn de Jonge.
813
814 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
815
816         * lib/am/tags.am (ID): Search $(LISP) files in $(srcdir),
817         like other ID dependencies.
818         Suggested by Christian Cornelssen.
819
820 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
821
822         * automake.in (handle_dist): Distribute common files which
823         do not exist but are target of a Makefile rule.
824         * automake.texi (Dist): Update.
825         * test/builtcommon3.test: New file.
826         * test/Makefile.am (TESTS): Add distcommon3.test.
827
828 2001-12-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
829
830         * automake.in (macro_define): Fix misuse of chomp introduced on
831         2001-11-28.
832
833 2001-11-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
834
835         * automake.in (append_comments): New.  Extracted from
836         read_am_file.  Match '\n' with a regexp, don't use substr (the
837         perlport man page says '\n' is not always one byte wide).
838         (read_am_file):  Use it.  Always chomp $_.
839         (file_contents_internal):  Use append_comments.
840         (macro_define): Don't treat the trailing '\n' with substr, use
841         a regexp or chomp.
842
843 2001-11-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
844
845         * tests/defs: Turn on shell traces when VERBOSE=x.
846
847 2001-11-26  Tom Tromey  <tromey@redhat.com>
848
849         * automake.texi (Assembly Support): Mention .s and .S as only
850         suffixes.
851
852 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
853
854         * tests/subdirbuiltsources.test: Set -e after sourcing defs, not
855         before.
856
857 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
858
859         * tests/lex3.test: Require GNU Make.
860
861 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
862
863         * tests/defs (ACLOCAL): Add -I $srcdir/../m4 before any other
864         directory.
865
866 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
867
868         * lib/am/tags.am (TAGS): Search %CONFIG% and $(LISP) files
869         in $(srcdir), like other TAGS dependencies.
870         Suggested by Christian Cornelssen.
871
872 2001-11-26  Akim Demaille  <akim@epita.fr>
873
874         * automake.in (&macro_define): Use $where when reporting an error,
875         not the place where the macro was first defined since (i) if this
876         is the first definition, then obviously it was not defined before,
877         and (ii) anyway, the error is with the new definition, not the
878         first.
879
880 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
881
882         * lib/am/distdir.am (distcheck): Call distcleancheck.
883         (distcleancheck_listfiles, distcleancheck): New, extracted from
884         distcheck.
885         * automake.texi (Checking the distribution): Document
886         distcleancheck_listfiles and distcleancheck.
887
888 2001-11-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
889
890         * automake.in (scan_one_autoconf_file): Parenthesize qw// in
891         foreach invocation, otherwise Perl5.005_03 complains about a
892         syntax error.  Reported by Yann Droneaud.
893
894 2001-11-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
895
896         * automake.in (scan_texinfo_file): Suppress FIXME about strange
897         map behavior.
898
899 2001-11-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
900
901         * tests/defs (aclocaldir): Check for existence of libtool.m4 and
902         gettext.m4 if required.
903
904 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
905
906         * automake.in (define_objects_from_sources,
907         handle_lib_objects_cond, value_to_list): Use quotemeta instead of
908         the equivalant substitution.
909
910 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
911
912         * automake.in (SUFFIX_RULE_PATTERN): Add '_(){}$@' to the
913         set of accepted characters in extensions.
914         (rule_define): Convert '.o' and '.obj' into '$(OBJEXT)' for
915         internall use.
916         * tests/suffix6.test: Ensure that `.o' is handled like `.$(OBJEXT)'.
917
918 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
919
920         * automake.texi (Suffixes): Don't require SUFFIXES, but document
921         its use for the "extreme" cases.
922
923 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
924
925         * automake.in (rule_define): Use $KNOWN_EXTENSIONS_PATTERN
926         to match suffix rules for known extensions, or call
927         accept_extensions on suffixe rules for unknown extensions.
928         (var_SUFFIXES_trigger): New function.
929         (macro_define): Call var_VAR_trigger when $VAR is updated.
930         * tests/suffix6.test, tests/suffix7.test: New files.
931         * tests/Makefile.am (TESTS): Add suffix6.test and suffix7.test.
932
933 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
934
935         * automake.in (KNOWN_EXTENSIONS_PATTERN, known_extensions_list):
936         New variables.
937         (handle_single_transform_list, lang_yacc_target_hook): Use
938         KNOWN_EXTENSIONS_PATTERN.
939         (accept_extension): New function.
940         (register_language): Call it.
941
942 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
943
944         At every place where an "$extension" is used, include the leading
945         dot in the extension, don't hardcode it when building the filename.
946         That will make any support for a dot-less extension easier to add.
947
948         * automake.in (SUFFIX_RULE_PATTERN): Include extension dots in
949         backref groups.
950         ("main"): Prepend a '.' to the supported extensions of all
951         languages (e.g. 'c' becomes '.c').
952         (handle_languages, handle_single_transform_list,
953         handle_lib_objects_cond, handle_headers, derive_suffix,
954         rule_define): Do not add a dot
955         before extensions, and include dots in matching groups.
956         * lib/am/depend2.am (.%EXT%.o, .%EXT%.obj, .%EXT%.lo): Rename as ...
957         (%EXT%.o, %EXT%.obj, %EXT%.lo): ... these.
958         * lib/am/lex.am (.%EXT%.%DERIVED-EXT%): Rename as ...
959         (%EXT%%DERIVED-EXT%): ... this.
960         * lib/am/yacc.am: Likewise.
961
962 2001-11-12  Akim Demaille  <akim@epita.fr>
963
964         * m4/make.m4 (AM_MAKE_INCLUDE): Serial 2.
965         Use `"#"' and `"\""', which
966         Autoconf mode prefers over `'#'' and `'"''.
967         * m4/missing.m4 (AM_MISSING_HAS_RUN): Serial 3.
968         Rely on AC_MSG 2.50's quotation.
969
970 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
971
972         * automake.in (scan_texinfo_file): Typo from 2001-11-05.
973
974 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
975
976         * lib/am/distdir.am (distdir): Also look for directory in build
977         directory first. (See 2001-05-14.)
978         * tests/Makefile.am (TESTS): Add extra5.test.
979         * tests/extra5.test: New file.
980         From Dean Povey.
981
982 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
983
984         Fix for distcommon2.test:
985         * automake.in (automake_needs_to_reprocess_all_files): New
986         variable.
987         ("main"): Process all Makefiles a second time if
988         $automake_needs_to_reprocess_all_files is set.
989         (maybe_push_required_file): Return 1 or 0 whether the file is
990         pushed or not.
991         (require_file_internal): Set $automake_needs_to_reprocess_all_files
992         if an added file can't be pushed.
993
994         * test/distcommon2.test: New file.
995         * test/Makefile.am (TESTS): Add distcommon2.test.
996         From Pavel Roskin.
997
998 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
999
1000         * automake.in (exec_dir_p): Remove.  Replace by...
1001         (EXEC_DIR_PATTERN):... this.
1002         (am_install_var): Adjust to use EXEC_DIR_PATTERN.
1003
1004 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1005
1006         Fix for nobase.test:
1007         * lib/am/header-vars.am (install_sh_DATA): New.
1008         * lib/am/data.am (install-%DIR%%PRIMARY%): Declare and use
1009         %DIR%%PRIMARY%_INSTALL, and set it to $(install_sh_DATA) instead
1010         of $(INSTALL_DATA) for nobase_ targets.
1011         * lib/am/lisp.am (install-%DIR%LISP): Likewise.
1012         * lib/am/python.am (install-%DIR%PYTHON): Likewise.
1013         * tests/nobase.test (configure.in): Append AC_OUTPUT.
1014         * tests/Makefile.am (XFAIL_TESTS): Remove nobase.test.
1015
1016 2001-11-08  Akim Demaille  <akim@epita.fr>
1017
1018         * automake.texi: Remove references to stamp-h.in, which no longer
1019         exists.
1020         * tests/stamph2.test: Formatting change.
1021
1022 2001-11-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1023
1024         * tests/suffix3.test: Check for foo.$(OBJEXT) in Makefile.in.
1025         Don't use -Wno-error.
1026
1027 2001-11-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1028
1029         * tests/suffix4.test ($AUTOMAKE): Don't use -Wno-error.
1030         * tests/suffix5.test ($AUTOMAKE): Likewise.
1031
1032 2001-11-07  Akim Demaille  <akim@epita.fr>
1033
1034         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't escape quotes in
1035         AC_MSG_ERROR.
1036         Reported by Jim Meyering.
1037
1038 2001-11-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1039
1040         * lib/am/distdir.am (am__remove_distdir): Define in topdir only.
1041
1042 2001-11-05  Paul Eggert  <eggert@twinsun.com>
1043
1044         * lib/am/distdir.am (am__remove_distdir):
1045         New macro.  Do not change permission of non-directories.
1046         Change only user permission, as there's no point to changing group
1047         or other permission.
1048         (distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
1049          distcheck): Use it.
1050
1051 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1052
1053         * lib/am/python.am: Cleanup the cleaning section.
1054         * automake.texi (Python): Remove documentation for PYCFILES
1055         and PYOFILES.  Update the first paragraphes.
1056
1057 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1058
1059         * automake.in (FOREIGN, GNU, GNITS, AC_CANONICAL_HOST,
1060         AC_CANONICAL_SYSTEM, MOSTLY_CLEAN, DIST_CLEAN): Define as constants.
1061         Adjust usage everywhere.
1062
1063 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1064
1065         * automake.in (libtool_files, libtool_sometimes, common_files,
1066         common_sometimes, config_aux_path): Use qw to simplify definition.
1067         (scan_texinfo_file) <clean_suffixes, predefined_index,
1068         hidden_index>: Likewise.
1069         (scan_autoconf_traces) <traced>: Likewise.
1070         (scan_one_autoconf_file, check_gnu_standards, resolve_linker):
1071         Likewise.
1072
1073 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1074
1075         * automake.in (handle_single_transform_list): Pass $nonansi_obj to
1076         derive_suffix.  Don't use an hardcoded 'o' for object extensions.
1077         (derive_suffix): Accept $OBJ as a second argument, don't
1078         hardcode 'o'.
1079         * tests/suffix5.test: New test.
1080         * tests/Makefile.am (TESTS): Add suffix5.test.
1081         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
1082
1083 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1084
1085         * automake.in (handle_single_transform_list): Don't call
1086         $lang->target_hook for undefinied langages.
1087         * tests/suffix4.test: New test.
1088         * tests/Makefile.am (TESTS): Add suffix4.test.
1089         Reported by Dmitry Mikhin <dmitrym@acres.com.au>.
1090
1091 2001-11-05  Akim Demaille  <akim@epita.fr>
1092
1093         * automake.in (@common_sometimes, &handle_configure): No longer
1094         use stamp-hin.
1095         * lib/am/remake-hdr.am: Adjust.
1096         * tests/confh.test: There is no stamp.hin.
1097
1098 2001-11-01  Akim Demaille  <akim@epita.fr>
1099
1100         * lib/am/lex.am, lib/am/yacc.am: Use the output file name in
1101         `#line' and multiple inclusion guards.
1102         * lib/ylwrap: Remove debugging code.
1103         (input_dir, input_rx): Move where used.
1104         Use the output file name in `#line'.
1105
1106 2001-10-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
1107
1108         * automake.in (transform): Update documentation.
1109
1110 2001-10-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
1111
1112         * m4/gcj.m4 (AM_PROG_GCJ): Define GCJFLAGS if unset.
1113         Reported by Olivier Louchart-Fletcher <olivier@zipworld.com.au>.
1114
1115 2001-10-30  Akim Demaille  <akim@epita.fr>
1116
1117         * automake.in (&create): Reinstall.
1118
1119 2001-10-30  Akim Demaille  <akim@epita.fr>
1120
1121         * automake.in (&append_exeext): Use macro_delete.
1122
1123 2001-10-30  Akim Demaille  <akim@epita.fr>
1124
1125         * automake.in ($verbose): Remove, inherited from
1126         Automake::General.
1127         (&variable_delete): Rename as...
1128         (&macro_delete): this, for consistency.
1129         (&variable_assert): New.
1130         (&variable_value_as_list, &variable_value_as_list_recursive_worker):
1131         Use it.
1132
1133 2001-10-29  Akim Demaille  <akim@epita.fr>
1134
1135         * m4/lispdir.m4 (AM_PATH_LISPDIR): Use AC_RUN_LOG to avoid
1136         cluttering configure's stdout.
1137
1138 2001-10-28  Akim Demaille  <akim@epita.fr>
1139
1140         * automake.in: Various formatting changes.
1141         (create): Remove, unused.
1142
1143 2001-10-28  Akim Demaille  <akim@epita.fr>
1144
1145         * automake.in (&append_exeext): New.
1146         (&am_primary_prefixes): Use it.
1147
1148 2001-10-28  Akim Demaille  <akim@epita.fr>
1149
1150         * automake.in (am_primary_prefixes): Now, in accordance with its
1151         comment, return the list of prefixes actually used, not all the
1152         possible prefixes for a primary.
1153         (&handle_libraries, &handle_ltlibraries, &handle_java)
1154         (&am_install_var): Adjust.
1155         * Makefile.am (maintainer-check): Allow `local $_;'.
1156
1157 2001-10-28  Akim Demaille  <akim@epita.fr>
1158
1159         * automake.in: Various formatting changes.
1160         (&variable_defined): Second argument is optional.
1161
1162 2001-10-28  Akim Demaille  <akim@epita.fr>
1163
1164         * automake.in (&am_primary_prefixes): Now returns a list, not a
1165         hash.
1166         (&handle_libraries, &handle_ltlibraries, &handle_java)
1167         (&am_install_var): Adjust.
1168
1169 2001-10-28  Akim Demaille  <akim@epita.fr>
1170
1171         * automake.in (@libtoolize_files, @libtoolize_sometimes): Rename
1172         as...
1173         (@libtool_files, @libtool_sometimes): these.
1174         ($libtool_location): Remove, completely replaced by $seen_libtool.
1175         (&require_file_internal): Do not run libtoolize, that's
1176         autoreconf's job.
1177
1178 2001-10-28  Akim Demaille  <akim@epita.fr>
1179
1180         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutqnl.test,
1181         * tests/acouttbs.test, tests/auxdir.test, tests/colon.test,
1182         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1183         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1184         * tests/conf2.test, tests/config.test, tests/depcomp.test,
1185         * tests/depcomp2.test, tests/discover.test, tests/fpinst2.test,
1186         * tests/fpinstall.test, tests/ldadd.test, tests/libobj7.test,
1187         * tests/libobj8.test, tests/output.test, tests/output2.test,
1188         * tests/output3.test, tests/output4.test, tests/output5.test,
1189         * tests/pr2.test, tests/remake.test, tests/remake2.test,
1190         * tests/remake3.test, tests/scripts.test, tests/stamph.test,
1191         * tests/subdir.test, tests/subdir2.test, tests/subdir4.test,
1192         * tests/tagsub.test, tests/texinfo8.test: Remove PACKAGE and VERSION
1193         assignments.
1194
1195 2001-10-28  Akim Demaille  <akim@epita.fr>
1196
1197         * automake.in (&scan_autoconf_traces): Use eq for equality.
1198         Anchor regexps.
1199         Remove dead comment.
1200         (&initialize_per_input): Don't initialize several times the same
1201         vars.
1202
1203 2001-10-28  Akim Demaille  <akim@epita.fr>
1204
1205         * automake.in (scan_one_autoconf_file): When using %generalize, be
1206         sure to replace only words.  AC_FUNC_OBSTACK was matching
1207         M4_AC_FUNC_OBSTACK.
1208
1209 2001-10-26  Akim Demaille  <akim@epita.fr>
1210
1211         * tests/stamph2.test: Strengthen.
1212         * tests/confh2.test, tests/confh3.test: Remove.
1213         These are bad tests: they don't check the effects, but some
1214         internal details in Makefile.
1215         And they are covered by stamph2.test.
1216
1217 2001-10-26  Akim Demaille  <akim@epita.fr>
1218
1219         Now that stamp-h's are created by config.status, we don't need to
1220         handle them in Makefile's.
1221
1222         * lib/am/remake-hdr.am (%STAMP%): Just run config.status.
1223         * m4/header.m4 (_AM_STAMP): New.
1224         (_AM_CONFIG_HEADER): Use it.
1225
1226 2001-10-26  Akim Demaille  <akim@epita.fr>
1227
1228         * automake.in (&generate_makefile, &handle_texinfo_helper)
1229         (&handle_man_pages, &handle_dist, &handle_configure, &handle_all)
1230         (&define_pretty_variable, &read_am_file, &file_contents_internal)
1231         (&am_install_var, &push_dist_common, &unquote_m4_arg): Simplify
1232         `join (' ', @list)' into `"@list"'.
1233
1234 2001-10-26  Akim Demaille  <akim@epita.fr>
1235
1236         * automake.in (@config_fullnames, @config_names): Remove.
1237         (@config_headers): Now contains the actual spec used in
1238         AC_CONFIG_HEADERS.
1239         (&split_config_file_spec): New.
1240         (&handle_tags, &handle_configure, &handle_all, &scan_autoconf_traces)
1241         (&scan_one_autoconf_file): Adjust.
1242         (&scan_one_autoconf_file): Pff, don't think _AM_CONFIG_HEADER is
1243         AM_CONFIG_HEADER.
1244
1245 2001-10-26  Akim Demaille  <akim@epita.fr>
1246
1247         * m4/header.m4 (_AM_CONFIG_HEADER): New.
1248         (AM_CONFIG_HEADER): Use it.
1249
1250 2001-10-26  Akim Demaille  <akim@epita.fr>
1251
1252         * automake.in (&handle_configure): Use the config.status 2.50
1253         invocation syntax for config files and headers.
1254         autoheader needs the name of the file to create, not from what it
1255         must be created, hence CONFIG_HEADER_FULL is $one_name, not
1256         $one_fullname.
1257         * lib/am/configure.am, lib/am/remake-hdr.am: Likewise.
1258         * tests/confsub.test (SUBDIRS): Adjust to the new config.status
1259         invocation.
1260         Strengthen: Use the non-default config.hin source.
1261         Strengthen: Make sure config.h is properly updated when config.hin
1262         is changed.
1263
1264 2001-10-26  Akim Demaille  <akim@epita.fr>
1265
1266         * automake.in (&handle_configure): Seeing Automake files in
1267         @other_input_files is a programming error, not merely something to
1268         ignore.
1269         Factor slightly the code.
1270
1271 2001-10-26  Akim Demaille  <akim@epita.fr>
1272
1273         * automake.in ($canonical_location): New.
1274         Use it.
1275         (&require_config_file, $line_error): Remove.
1276
1277 2001-10-24  Akim Demaille  <akim@epita.fr>
1278
1279         * automake.in: Use &verbose.
1280         (&generate_makefile, &scan_texinfo_file, &scan_aclocal_m4): Use
1281         Automake::XFile.
1282
1283 2001-10-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1284
1285         * lib/am/python.am (install-%DIR%PYTHON, uninstall-%DIR%PYTHON):
1286         Have the basename step optional and use %NDIR% instead of %DIR% in
1287         filenames in order to support 'nobase_'.
1288
1289 2001-10-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1290
1291         * automake.in (handle_languages, handle_single_transform_list,
1292         lang_c_rewrite): Use require_conf_file instead of
1293         require_config_file to require depcomp or compile from
1294         Makefile.am.  (This is a part of my patch of 2001-10-15 which got
1295         mistakenly reverted.)
1296
1297 2001-10-24  Akim Demaille  <akim@epita.fr>
1298
1299         * tests/confh.test: Since 2001-10-20 Kevin Ryde, stamp-h is
1300         stamp-h1.
1301
1302 2001-10-24  Akim Demaille  <akim@epita.fr>
1303
1304         Since the ansi2knr patch from 2001-10-20 Kevin Ryde, `$U' can
1305         appear in Makefile.in in the clean rule.
1306
1307         * tests/cxxansi.test: Adjust.
1308
1309 2001-10-24  Akim Demaille  <akim@epita.fr>
1310
1311         * automake.in (&am_print_error, &am_file_error, &am_macro_error)
1312         (&am_target_error, &am_line_error, &am_conf_error, &am_file_warning):
1313         Rename as...
1314         (&print_error, &file_error, &macro_error, &target_error, &line_error)
1315         (&conf_error, &file_warning): these.
1316         (&file_warning): Fix the prototype and argument handling.
1317         (&am_line_warning): Remove, unused.
1318
1319         Also, repair the misapplication of previous patches.
1320
1321 2001-10-21  Akim Demaille  <akim@epita.fr>
1322
1323         * automake.in ($ac_output_location): Replace with...
1324         ($ac_config_files_location): this.
1325         (&scan_autoconf_traces): We don't need $file and $line, $here is
1326         enough.
1327         (&scan_one_autoconf_file): Use `$in_ac_output' to store the macro
1328         name (AC_OUTPUT or AC_CONFIG_FILES) for error messages.
1329
1330 2001-10-21  Akim Demaille  <akim@epita.fr>
1331
1332         * automake.in (&require_file_with_macro): Use &require_file.
1333         (&read_am_file): Move the definition of $here at its proper place.
1334
1335 2001-10-21  Akim Demaille  <akim@epita.fr>
1336
1337         * automake.in ($libtool_line, $seen_pythondir): Replace with...
1338         ($libtool_location, $pythondir_location): these.
1339         (&require_conf_file_with_line, &require_conf_file_with_line):
1340         Remove, unused.
1341         (&require_file): Don't forget $where.
1342         (&require_conf_file): Ahem...  Fix the name.
1343         (&require_config_file): Invoke &require_conf_file, not yourself.
1344         (&am_line_error): Fix the default am_file_error invocation.
1345
1346 2001-10-21  Akim Demaille  <akim@epita.fr>
1347
1348         * automake.in ($seen_lispdir): Replace with...
1349         ($am_lispdir_location): this.
1350         (&require_conf_file): New.
1351         (&require_config_file, &require_conf_file_with_line,
1352         (&require_conf_file_with_conf_line): Use it.
1353         (&require_conf_file_with_macro): New.
1354
1355 2001-10-21  Akim Demaille  <akim@epita.fr>
1356
1357         * automake.in ($config_header_line, $ac_output_line)
1358         ($ac_gettext_line, $package_version_line): Replace with...
1359         ($config_header_location, $ac_output_location)
1360         ($ac_gettext_location, $package_version_location): these.
1361         (&require_file_with_conf_line, &require_file_with_line): Remove,
1362         no longer used.
1363
1364 2001-10-21  Akim Demaille  <akim@epita.fr>
1365
1366         * automake.in (&require_file_internal): Instead of $file and $line,
1367         take $where as first argument.
1368         Adjust all callers.
1369         (&require_file_with_macro): New.
1370         Use it where internal black magic was used to recover the location
1371         of a macro definition.
1372
1373 2001-10-21  Akim Demaille  <akim@epita.fr>
1374
1375         * automake.in (&read_am_file): Define and use `$here'.
1376         Avoid using am_line_error.
1377
1378 2001-10-21  Akim Demaille  <akim@epita.fr>
1379
1380         * automake.in (&am_target_error): New.
1381         Use it where appropriate instead of...
1382         (&am_line_error): this.
1383         Using it for a target is a croak error.
1384
1385 2001-10-21  Akim Demaille  <akim@epita.fr>
1386
1387         * automake.in (&am_macro_error): New.
1388         Use it where appropriate instead of...
1389         (&am_line_error): this.
1390         Using it for a macro is a croak error.
1391
1392 2001-10-21  Akim Demaille  <akim@epita.fr>
1393
1394         * tests/asm.test: s/AC_PROG_AS/AM_PROG_AS/.
1395         AC_OUTPUT a Makefile.
1396
1397 2001-10-21  Akim Demaille  <akim@epita.fr>
1398
1399         * automake.in (%var_line): Rename as...
1400         (%var_location): this.
1401         Use it consistently as the location where the macro is defined,
1402         file and line when possible, otherwise just file.
1403         (&read_am_file): Rules have their own location tracking, don't
1404         pollute %var_location.
1405
1406 2001-10-21  Akim Demaille  <akim@epita.fr>
1407
1408         * automake.in (am_line_error): Clarify.
1409
1410 2001-10-21  Akim Demaille  <akim@epita.fr>
1411
1412         * automake.in (&am_print_error): Set $exit_status since all your
1413         users do.
1414         (&am_error, &am_file_error, &am_line_error, &am_conf_error):
1415         Don't.
1416         (&am_conf_line_error, &am_conf_line_warning): Remove.
1417         Adjust callers to use &am_file_error and...
1418         (&am_file_warning): new.
1419
1420 2001-10-21  Akim Demaille  <akim@epita.fr>
1421
1422         * m4/regex.m4: Use AC_LIBOBJ.
1423         Require 2.50, and use AC_LIBSOURCES freely.
1424         * tests/asm.tests: Formatting changes.
1425         Exercise AM_PROG_AS.
1426
1427 2001-10-21  Akim Demaille  <akim@epita.fr>
1428
1429         * tests/install.test: This test is an empty shell, do not run
1430         automake.
1431         * tests/Makefile.am (TESTS): Don't run it.
1432         * tests/defs (ACLOCAL): When using gettext, pass in the installed
1433         aclocaldir.
1434         * tests/subdircond.test (SUBDIRS): AM_GNU_GETTEXT needs automake
1435         --add--missing.
1436         * tests/obsolete2.test: Remove, merged into...
1437         * tests/obsolete.test: here.
1438         Both aclocal and automake should complain.
1439
1440 2001-10-21  Akim Demaille  <akim@epita.fr>
1441
1442         * automake.in (scan_autoconf_traces): Don't recognize AC_SUBSTs
1443         for symbols which cannot be Make macro names.
1444         (scan_one_autoconf_file): `$here' is new.
1445         Use it consistently instead of `1' to remember a token was seen.
1446
1447 2001-10-21  Akim Demaille  <akim@epita.fr>
1448
1449         * tests/subdircond.test: Requires gettext.
1450         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1451         * tests/libobj6.test, tests/libobj9.test, tests/libtool.test,
1452         * tests/libtool2.test, tests/ltdeps.test, tests/ltlibobjs.test,
1453         * tests/nolink.test, tests/obsolete.test, tests/pr72.test,
1454         * tests/sinclude.test, tests/subdircond.test, tests/subobj4.test:
1455         Produce valid configure.in, use aclocal appropriately, declare
1456         when libtool is required.
1457
1458 2001-10-21  Akim Demaille  <akim@epita.fr>
1459
1460         * m4/lex.m4: Don't run AC_DECL_YYTEXT, Autoconf does.
1461         * automake.texi (Macros, Yacc and Lex): Adjust.
1462         * automake.in ($seen_decl_yytext): Rename as...
1463         ($seen_prog_lex): this.
1464         (&scan_autoconf_traces): Add AC_PROG_LEX support.
1465         (&scan_one_autoconf_file, &lang_lex_finish): Adjust.
1466
1467 2001-10-21  Akim Demaille  <akim@epita.fr>
1468
1469         * automake.in (&scan_autoconf_traces): Add support for
1470         AM_PATH_LISPDIR and AM_PATH_PYTHON.
1471
1472 2001-10-21  Akim Demaille  <akim@epita.fr>
1473
1474         * tests/defs (ACLOCAL): Point to the installed aclocaldir is
1475         libtool is required.
1476         * tests/lex.test: Run AC_INIT once.
1477         * tests/ldflags.test, tests/listval.test, tests/suffix2.test:
1478         Libtool is required.
1479         * tests/header.test: Built a correct configure.in.
1480         * tests/defun2.test (configure.in): Be a bit respectful with
1481         Autoconf, close the macro invocations.
1482         * tests/confdeps.test: Even when not using aclocal, aclocal.m4
1483         must be correct.
1484
1485         * automake.in (scan_autoconf_traces): Add support for
1486         AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM, A[CM]_PROG_LIBTOOL,
1487         AM_CONFIG_HEADER, AM_MAINTAINER_MODE.
1488         * tests/condincl.test (target): Better pattern, to avoid matching
1489         the definition of `target_alias' which is now properly discovered
1490         as an AC_SUBST by traces.
1491         * cond4.test: Better grep pattern: After all, why shouldn't
1492         TWO_FALSE be AC_SUBST properly.
1493         * tests/installsh.test (AUTOMAKE, ACLOCAL): Adjust.
1494
1495 2001-10-20  Kevin Ryde <user42@zip.com.au>
1496
1497         * lib/am/ansi2knr.am (mostlyclean-kr): Only rm *_.c when
1498         actually using ansi2knr.
1499
1500         * automake.in (handle_configure): Always put a number on $stamp_name,
1501         to match AM_CONFIG_HEADER.
1502
1503 2001-10-20  Tom Tromey  <tromey@redhat.com>
1504
1505         * tests/Makefile.am (TESTS): Added condd.test.
1506         (XFAIL_TESTS): Added condd.test.
1507         * tests/condd.test: New file.
1508
1509 2001-10-20  Akim Demaille  <akim@epita.fr>
1510
1511         * automake.in (&scan_autoconf_traces): Add support for
1512         AM_C_PROTOTYPES, AM_GNU_GETTEXT, AM_PROG_CC_C_O, and
1513         AC_CONFIG_AUX_DIR.
1514         * tests/alpha.test (configure.in): Automake wants a Makefile.
1515
1516 2001-10-20  Akim Demaille  <akim@epita.fr>
1517
1518         * automake.in (scan_autoconf_traces): Use an unlikely to be used
1519         separator between trace arguments, in particular not `:' as it is
1520         within AC_CONFIG_FILES's $1.
1521
1522 2001-10-20  Akim Demaille  <akim@epita.fr>
1523
1524         * tests/alpha.test (configure.in): Create, don't append.  A single
1525         AC_INIT is enough.
1526
1527 2001-10-20  Akim Demaille  <akim@epita.fr>
1528
1529         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutput2.test,
1530         * tests/acoutqnl.test, tests/acouttbs.test, tests/all.test,
1531         * tests/alpha.test, tests/ansi.test, tests/asm.test,
1532         * tests/auxdir.test, tests/auxdir2.test, tests/backsl2.test,
1533         * tests/badline.test, tests/block.test, tests/canon2.test,
1534         * tests/check.test, tests/checkall.test, tests/clean.test,
1535         * tests/colneq.test, tests/colneq2.test, tests/colon.test,
1536         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1537         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1538         * tests/comment.test, tests/comment3.test, tests/cond.test,
1539         * tests/cond2.test, tests/cond6.test, tests/cond7.test,
1540         * tests/condincl.test, tests/condincl2.test, tests/condman.test,
1541         * tests/condman2.test, tests/confdist.test, tests/confh.test,
1542         * tests/confh2.test, tests/confh3.test, tests/confvar.test,
1543         * tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1544         * tests/cxxcpp.test, tests/dash.test, tests/dejagnu.test,
1545         * tests/dejagnu2.test, tests/distcommon.test, tests/distdir.test,
1546         * tests/else.test, tests/empty.test, tests/exdir.test,
1547         * tests/exdir2.test, tests/extra3.test, tests/extra4.test,
1548         * tests/flibs.test, tests/fnoc.test, tests/fo.test,
1549         * tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1550         * tests/fpinstall.test, tests/gcj2.test, tests/gnits.test,
1551         * tests/include.test, tests/info.test, tests/insh.test,
1552         * tests/insh2.test, tests/install.test, tests/installsh.test,
1553         * tests/instdata.test, tests/instdata2.test, tests/instexec.test,
1554         * tests/insthook.test, tests/instman.test, tests/instman2.test,
1555         * tests/java.test, tests/javaprim.test, tests/javasubst.test,
1556         * tests/libobj3.test, tests/link_f_only.test, tests/lisp.test,
1557         * tests/man.test, tests/mclean.test, tests/mdate.test,
1558         * tests/mdate2.test, tests/mdate3.test, tests/mdate4.test,
1559         * tests/mkinst2.test, tests/mkinstall.test, tests/nodepcomp.test,
1560         * tests/noinst.test, tests/obsolete.test, tests/obsolete2.test,
1561         * tests/outdir.test, tests/output.test, tests/output2.test,
1562         * tests/output3.test, tests/output4.test, tests/output5.test,
1563         * tests/package.test, tests/pluseq.test, tests/pluseq2.test,
1564         * tests/pluseq3.test, tests/pluseq5.test, tests/pluseq6.test,
1565         * tests/pluseq8.test, tests/ppf77.test, tests/pr2.test,
1566         * tests/primary.test, tests/proginst.test, tests/python.test,
1567         * tests/remake.test, tests/remake2.test, tests/remake3.test,
1568         * tests/rulepat.test, tests/scripts.test, tests/seenc.test,
1569         * tests/sinclude.test, tests/spell.test, tests/spell3.test,
1570         * tests/spelling.test, tests/stamph.test, tests/subdir.test,
1571         * tests/subdir2.test, tests/subdircond.test, tests/subst.test,
1572         * tests/symlink.test, tests/symlink2.test, tests/symlink3.test,
1573         * tests/syntax.test, tests/tags.test, tests/tagsub.test,
1574         * tests/texinfo.test, tests/texinfo10.test, tests/texinfo2.test,
1575         * tests/texinfo3.test, tests/texinfo4.test, tests/texinfo5.test,
1576         * tests/texinfo6.test, tests/texinfo7.test, tests/texinfo8.test,
1577         * tests/texinfo9.test, tests/vars.test, tests/vartar.test,
1578         * tests/version.test, tests/version2.test, tests/version3.test,
1579         * tests/version4.test, tests/vpath.test, tests/vtexi.test,
1580         * tests/vtexi2.test, tests/werror.test: Run aclocal before automake.
1581
1582 2001-10-20  Akim Demaille  <akim@epita.fr>
1583
1584         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutqnl.test,
1585         * tests/acouttbs.test, tests/asm.test, tests/colon.test,
1586         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1587         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1588         * tests/conf2.test, tests/confh.test, tests/confh2.test,
1589         * tests/confh3.test, tests/confh4.test, tests/config.test,
1590         * tests/confsub.test, tests/depend3.test, tests/discover.test,
1591         * tests/fpinst2.test, tests/fpinstall.test, tests/gnits.test,
1592         * tests/header.test, tests/ldadd.test, tests/ldflags.test,
1593         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1594         * tests/libobj6.test, tests/libobj7.test, tests/libobj8.test,
1595         * tests/libobj9.test, tests/mdate4.test, tests/obsolete.test,
1596         * tests/output.test, tests/output2.test, tests/output3.test,
1597         * tests/output4.test, tests/output5.test, tests/package.test,
1598         * tests/parse.test, tests/pr2.test, tests/remake.test,
1599         * tests/remake2.test, tests/remake3.test, tests/scripts.test,
1600         * tests/stamph.test, tests/subdir.test, tests/subdir2.test,
1601         * tests/subdir4.test, tests/subdirbuiltsources.test,
1602         * tests/subobj4.test, tests/tagsub.test, tests/texinfo8.test,
1603         * tests/yacc5.test, tests/yacc6.test, tests/yacc7.test: Remove
1604         AC_ARG_PROGRAM, AC_PROG_INSTALL and AC_PROG_MAKE_SET invocation
1605         since AM_INIT_AUTOMAKE requires them.
1606
1607 2001-10-20  Akim Demaille  <akim@epita.fr>
1608
1609         * tests/defs (configure.in): Use credible AM_INIT_AUTOMAKE
1610         arguments.
1611         Don't run AC_ARG_PROGRAM another time, it is required by
1612         AM_INIT_AUTOMAKE.
1613         * tests/aclocal.test: Work on the default configure.in
1614         * tests/config.test (configure.in): Don't AC_ARG_PROGRAM.
1615         First AM_INIT_AUTOMAKE, then AM_CONFIG_HEADER.
1616
1617         Be realistic in testing: AC_INIT is required for Autoconf.
1618         Broken so called optimized tests break trace handling.
1619
1620         * tests/aclibobj.test, tests/aclocal.test, tests/acoutnoq.test,
1621         * tests/acoutput.test, tests/acoutput2.test, tests/acoutqnl.test,
1622         * tests/acouttbs.test, tests/acsilent.test, tests/alpha.test,
1623         * tests/colon.test, tests/colon2.test, tests/colon3.test,
1624         * tests/colon4.test, tests/colon5.test, tests/colon6.test,
1625         * tests/colon7.test, tests/cond.test, tests/cond2.test,
1626         * tests/cond3.test, tests/cond5.test, tests/conf2.test,
1627         * tests/confh.test, tests/confh2.test, tests/confh3.test,
1628         * tests/confh4.test, tests/config.test, tests/confsub.test,
1629         * tests/ctarget1.test, tests/depcomp.test, tests/depend3.test,
1630         * tests/distcommon.test, tests/dup3.test, tests/fpinst2.test,
1631         * tests/fpinstall.test, tests/header.test, tests/ldflags.test,
1632         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1633         * tests/libobj6.test, tests/libobj7.test, tests/libobj8.test,
1634         * tests/libobj9.test, tests/output.test, tests/output2.test,
1635         * tests/output3.test, tests/output4.test, tests/parse.test,
1636         * tests/pr2.test, tests/recurs.test, tests/recurs2.test,
1637         * tests/remake.test, tests/remake2.test, tests/remake3.test,
1638         * tests/req.test, tests/scripts.test, tests/subdir.test,
1639         * tests/subdir2.test, tests/subdir4.test, tests/subobj4.test,
1640         * tests/tagsub.test, tests/texinfo8.test, tests/version.test,
1641         * tests/version2.test: Add AC_INIT in `configure.in'.
1642
1643 2001-10-20  Akim Demaille  <akim@epita.fr>
1644
1645         * automake.in (&scan_autoconf_traces): Add support for
1646         AM_INIT_AUTOMAKE, AM_CONDITIONAL.
1647         Let @args have a more natural M4 correspondence: $1 is args[1], no
1648         args[0] etc.
1649         (&scan_autoconf_files): Using autoconf traces is no longer a
1650         complement of the previous ad hoc scheme: use either.
1651
1652 2001-10-20  Akim Demaille  <akim@epita.fr>
1653
1654         * automake.in (&scan_one_autoconf_file): `%generalize' is new, and
1655         factors dedicated $libsources assignments.
1656
1657 2001-10-20  Akim Demaille  <akim@epita.fr>
1658
1659         * m4/error.m4, m4/obstack.m4, m4/ptrdiff.m4, m4/strtod.m4:
1660         Remove, since Autoconf 2.52 has them.
1661         * automake.in, aclocal.in, automake.texi: Adjust.
1662
1663 2001-10-19  Akim Demaille  <akim@epita.fr>
1664
1665         * automake.in (&read_main_am_file): s/generated automatically/
1666         generated/.
1667         Insert @configure_input@, since 2.50 no longer output this
1668         automatically for Makefiles.
1669
1670 2001-10-19  Kevin Ryde <user42@zip.com.au>
1671
1672         * lib/am/check.am (check-TESTS): Add an "else true" to work with
1673         Ultrix 4.5 /bin/sh when $(TESTS) is empty.
1674
1675 2001-10-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1676
1677         * tests/Makefile.am (TESTS, XFAIL_TESTS): Add nobase.test.
1678         * tests/nobase.test: New file.  Based on a bug report
1679         from Martin Frydl <martin@idoox.com>.
1680
1681 2001-10-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1682
1683         * automake.in (am_install_var): Don't strip nobase_ from $X, do
1684         this with $nodir_name only.  Use $nodir_name where appropriate.
1685
1686 2001-10-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
1687
1688         * automake.in (handle_languages, handle_single_transform_list,
1689         lang_c_rewrite): Use require_conf_file instead of
1690         require_config_file to require depcomp or compile from Makefile.am.
1691         (require_aux_file_with_line): New function, adapted from
1692         require_conf_gile_with_line.
1693         (require_conf_file_with_line, require_conf_file_with_conf_line):
1694         Simplify using require_aux_file_with_line.
1695         (require_config_file): Simplify using require_conf_file_with_conf_line.
1696         (require_conf_file): New function.
1697
1698 2001-10-15  Akim Demaille  <akim@epita.fr>
1699
1700         * m4/depend.m4 (AM_DEP_TRACK): Use AC_SUBST([AMDEPBACKSLASH])
1701         normally, what is wrong is that automake outputs a variable
1702         definition for it, hence...
1703         * automake.in (scan_one_autoconf_file): don't.
1704
1705         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): New, extracted
1706         from...
1707         (AM_OUTPUT_DEPENDENCY_COMMANDS): here.  Adjust.
1708         Use AC_CONFIG_COMMANDS.
1709         (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use AS_DIRNAME and AS_MKDIR_P.
1710
1711 2001-10-15  Akim Demaille  <akim@epita.fr>
1712
1713         * m4/header.m4 (AM_CONFIG_HEADER): Don't use m4_patsubst.
1714
1715 2001-10-15  Akim Demaille  <akim@epita.fr>
1716
1717         * automake.in (&variable_conditions): Be deterministic and Perl
1718         version independent: sort the result.
1719         (&variable_output, &variable_pretty_output): Sort all the @conds,
1720         not only when defaulted.
1721         * tests/cond3.test: Adjust.
1722
1723 2001-10-15  Akim Demaille  <akim@epita.fr>
1724
1725         * automake.in: Formatting changes.
1726
1727 2001-10-15  Akim Demaille  <akim@epita.fr>
1728
1729         * aclocal.in: Use Automake::General and Automake::XFile.
1730         Use find_configure_ac.
1731         Output the Emacs tags for Autoconf mode selection.
1732
1733 2001-10-10  Akim Demaille  <akim@epita.fr>
1734
1735         * lib/COPYING, COPYING, lib/config.guess, lib/config.sub: Update
1736         from master copies.
1737
1738 2001-10-09  Akim Demaille  <akim@epita.fr>
1739
1740         Do not use Autoconf internals.
1741
1742         * tests/dirname.test: Don't use AC_PLAIN_SCRIPT.
1743         * m4/header.m4 (_AM_DIRNAME): Use regexp and patsubst, not
1744         m4_regexp and m4_patsubst, since the latter are reserved for ERE
1745         macro in GNU M4 1.5.
1746
1747 2001-10-08  Akim Demaille  <akim@epita.fr>
1748
1749         * m4/cond.m4 (AM_CONDITIONAL): Don't use m4_match as Autoconf
1750         changed its name.
1751
1752 2001-10-05  Akim Demaille  <akim@epita.fr>
1753
1754         * automake.in (scan_autoconf_files): Use find_configure_ac from
1755         General.
1756
1757 2001-10-02  Akim Demaille  <akim@epita.fr>
1758
1759         * lib/Automake/Struct.pm: Update from Autoconf.
1760         * lib/Automake/General.pm, lib/Automake/XFile.pm: New, from CVS
1761         Autoconf.
1762         * automake.in: Use them.
1763         (&uniq, $me): Remove, as they are provided by Automake::General.
1764
1765 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1766
1767         * Makefile.am (maintainer-check): Don't check for 'cd' calls in m4.
1768         * lib/am/tags.am (GTAGS): Use $(am__cd) instead of 'CDPATH=: && cd'.
1769         * lib/am/dejagnu.am (check-DEJAGNU): Likewise.
1770         * lib/am/distdir.am (distcheck): Likewise.
1771         * lib/am/texinfos.am (install-info-am, dist-info): Rewrite without
1772         using cd so we don't have to fiddle with CDPATH.
1773         * lib/am/header-vars.am (am__cd): Define so as to support Zsh and
1774         DOSish path separator.
1775
1776 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1777
1778         * lib/am/python.am (install-%DIR%PYTHON,
1779         uninstall-%DIR%PYTHON): Strip path of source file.
1780         (clean-python): Comment out.
1781
1782 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1783
1784         * automake.in (handle_python): Use require_conf_file_with_conf_line
1785         instead of require_file_with_conf_line, so that elisp-comp and
1786         py-compile are installed in the aux-directory.
1787         (handle_emacs_lisp): Likewise.  Define elisp_comp.
1788         * lib/am/lisp.am (.el.elc): Use elisp_comp.
1789
1790 2001-10-01  Akim Demaille  <akim@epita.fr>
1791
1792         * lib/am/distdir.am (distcheck): Report the trailing files.
1793         Run `dist-gzip', not `dist', as it may leave other distribution
1794         flavors.
1795
1796 2001-09-29  Paul Eggert  <eggert@twinsun.com>
1797
1798         * lib/mkinstalldirs: Use "mkdir -p" if it works, as that fixes
1799         bugs when making file names with unusual characters.  Quote chmod
1800         arg "$dirmode", in case it contains white space.
1801
1802         Incorporate the following change from autoconf mkinstalldirs:
1803
1804         1999-04-10  Ben Elliston  <bje@cygnus.com>
1805
1806         Add `-m' flag to specify the mode of a newly created
1807         directory.  Add command line usage and `-h', `--help' options.
1808         Contributed by Jeff Garzik.
1809
1810 2001-09-27  Akim Demaille  <akim@epita.fr>
1811
1812         * m4/cond.m4, m4/init.m4, m4/header.m4: Remove Autoconf 2.13 code.
1813
1814 2001-09-27  Akim Demaille  <akim@epita.fr>
1815
1816         * lib/am/distdir.am (dist): Rename as...
1817         (dist-gzip): this.
1818         (dist): Additional name for dist-all.
1819         * automake.texi (Options, Dist): Adjust.
1820
1821 2001-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1822
1823         * aclocal.in (obsolete_macros): Update AM_EXEEXT message.
1824         * automake.in (obsolete_macros): Likewise.
1825         (seen_objext): Remove (unused).
1826         (scan_one_autoconf_file): Don't handle AC_OBJEXT.
1827         * lib/am/header-vars.am (EXEEXT, OBJEXT,
1828         PATH_SEPARATOR): New variables.
1829         * tests/obsolete2.test: Use AM_FUNC_FNMATCH instead of AM_EXEEXT.
1830
1831 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
1832
1833         * m4/auxdir.m4, m4/init.m4: Require autoconf 2.50 and rely on it to
1834         neutralize CDPATH for us.
1835         * m4/init.m4: Don't substitute EXEEXT or OBJEXT anymore.
1836         * lib/am/texibuild.am: Use $(PATH_SEPARATOR), not ':' to build
1837         TEXINPUTS.
1838
1839 2001-09-22  Akim Demaille  <akim@epita.fr>
1840
1841         * configure.in, NEWS: Bump to 1.5a.
1842         Require 2.52.
1843
1844 2001-09-22   Paul Eggert  <eggert@twinsun.com>
1845
1846         * ChangeLog, ChangeLog.1996, ChangeLog.1998, ChangeLog.2000,
1847         Makefile.am, NEWS, README, TODO, configure.in, lib/Makefile.am,
1848         lib/acinstall, lib/am/Makefile.am, m4/Makefile.am, m4/as.m4,
1849         m4/auxdir.m4, m4/ccstdc.m4, m4/cond.m4, m4/depend.m4,
1850         m4/depout.m4, m4/dmalloc.m4, m4/error.m4, m4/gcj.m4, m4/header.m4,
1851         m4/init.m4, m4/install-sh.m4, m4/lex.m4, m4/lispdir.m4,
1852         m4/maintainer.m4, m4/make.m4, m4/minuso.m4, m4/missing.m4,
1853         m4/multi.m4, m4/obstack.m4, m4/protos.m4, m4/ptrdiff.m4,
1854         m4/python.m4, m4/regex.m4, m4/sanity.m4, m4/strip.m4,
1855         m4/termios.m4, m4/winsz.m4: Add copyright notice.
1856
1857         * INSTALL, lib/INSTALL: Upgrade to latest autoconf version,
1858         which has a copyright notice.
1859
1860         * m4/strtod.m4: Correct the dates on the copyright notice.
1861
1862 2001-09-17  Akim Demaille  <akim@epita.fr>
1863
1864         * lib/missing (autom4te): New.
1865         (aclocal, autoconf, automake, autoheader, help2man): Propagate
1866         actual failures.
1867
1868 2001-08-27  Tom Tromey  <tromey@redhat.com>
1869
1870         * automake.texi (A Shared Library): Clarify installation
1871         requirement.
1872         (Install): Typo.  From Adrian Bunk.
1873
1874 2001-08-27  Tom Tromey  <tromey@redhat.com>
1875
1876         * automake.texi (Macros): Typo fix.
1877         From Christian Cornelssen
1878
1879 2001-08-27  Tom Tromey  <tromey@redhat.com>
1880
1881         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
1882         tests/cond4.test, tests/cond16.test, tests/cond18.test,
1883         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
1884         tests/lex3.test, tests/pr87.test, tests/subobj3.test,
1885         tests/substref.test: Clear CFLAGS.
1886
1887         * automake.texi (Yacc and Lex): Mention lex, not yacc.
1888         From Alexey Mahotkin.
1889
1890 2001-08-27  Tom Tromey  <tromey@redhat.com>
1891
1892         * tests/yacc7.test: Use test -f, not test -e.
1893
1894 2001-08-27  Adrian Bunk  <bunk@fs.tum.de>
1895
1896         * automake.texi (etags): Typo fix.
1897
1898 2001-08-27  Guido Draheim <guidod@gmx.de>
1899
1900         * automake.in : restrict ansi2knr option to be a filepath
1901
1902 2001-08-23  Richard Boulton <richard@tartarus.org>
1903
1904         * tests/yacc7.test: Actually add this file: was accidentally omitted.
1905
1906 2001-08-22  Tom Tromey  <tromey@redhat.com>
1907
1908         * automake.texi (Conditionals): Mention that conditionals must
1909         always be invoked.  For PR automake/220.
1910
1911 2001-08-22  Richard Boulton <richard@tartarus.org>
1912             Tom Tromey  <tromey@redhat.com>
1913
1914         * automake.in (lang_yacc_target_hook): Make header file depend on
1915         .c file, not .y file.
1916         * lib/am/yacc.am: Non-generic rule changed to depend on %OBJ% (the
1917         .c file) rather than %SOURCE% (the .y file)  Removed `.y.h' rule.
1918         * tests/yacc7.test: New file.
1919         * tests/Makefile.am (TESTS): Added yacc7.test.
1920
1921 2001-08-22  Tim Van Holder  <tim.van.holder@pandora.be>
1922
1923         * m4/missing.m4: Require AM_AUX_DIR_EXPAND and use $am_aux_dir.
1924
1925 2001-08-18  Tom Tromey  <tromey@redhat.com>
1926
1927         * automake.texi (Dist): Mention dist-all.
1928
1929 2001-08-18  Tom Tromey  <tromey@redhat.com>
1930
1931         * tests/cond3.test: Use portable sed expression.
1932         From Richard Boulton.
1933
1934 2001-08-13  Richard Boulton <richard@tartarus.org>
1935
1936         * automake.in (handle_source_transform): Call
1937         define_objects_from_sources() instead of calling
1938         variable_value_as_list(), handle_single_transform_list() and
1939         define_pretty_variable() directly.
1940         (handle_single_transform_list): Add $topparent parameter, used for
1941         error messages.  Improved error message.
1942         (define_objects_from_sources): New function.
1943         (subobjname): New function.
1944         (variable_conditions_recursive): New name for variable conditions.
1945         (variable_value_as_list_recursive): New name for variable_value_as_list.
1946         (variable_value_as_list_worker): Renamed to ...
1947         (variable_value_as_list_recursive_worker): ... this.
1948         (variable_conditions_sub): Renamed to ...
1949         (variable_conditions_recursive_sub): ... this.
1950         (variable_conditions): Rewritten: now doesn't recurse subvariables.
1951         (variable_value_as_list): Rewritten: now doesn't recurse subvariables.
1952         (substfroms): New global.
1953         (substtos): New global.
1954         (substnums): New global.
1955         * tests/cond3.test: Update to work with new method of defining _OBJECTS.
1956         * tests/cond4.test: Update to work with new method of defining _OBJECTS.
1957         * tests/sourcesub2.test: New test.
1958         * tests/Makefile.am (TEST): Added sourcesub2.test.
1959
1960 2001-08-11  Tom Tromey  <tromey@redhat.com>
1961
1962         * configure.in: Upped to 1.4s.
1963
1964 2001-08-09  Richard Boulton <richard@tartarus.org>
1965
1966         * automake.in (handle_single_transform_list): Use new global,
1967         `%linkers_used', to store the linkers used, rather than an internal
1968         variable.  Enables correct linker to be calculated across a group
1969         of calls to &handle_single_transform_list.  Return only list of
1970         objects, since linker to be used is now externally determined.
1971         (handle_source_transform): adapted for new calling conventions of
1972         handle_single_transform_list.  Calls resolve_linker() on a set of
1973         all the linkers used for any prefix, rather than for each prefix in
1974         turn.
1975         (linkers_used): New global.
1976         * tests/link_dist.test: New test.
1977         * tests/Makefile.am (TESTS): Added link_dist.test.
1978
1979 2001-08-08  Raja R Harinath  <harinath@cs.umn.edu>
1980
1981         Dissociate testsuite 'make' invocations from outer 'make'.
1982         * tests/defs: Unset the MFLAGS, MAKEFLAGS and MAKELEVEL
1983         environment variables.
1984         * tests/cond16.test: Use '$MAKE -s', and avoid GNU make
1985         dependency.
1986         * tests/substref.test: Likewise.
1987
1988 2001-08-08  Richard Boulton <richard@tartarus.org>
1989
1990         * tests/cond18.test: New file.
1991         * tests/cond19.test: New file.
1992         * tests/cond20.test: New file.
1993         * tests/cond4.test: Updated to check the generated _OBJECTS more
1994         thoroughly.
1995         * tests/Makefile.am (TESTS): Added cond18.test, cond19.test and
1996         cond20.test
1997
1998 2001-08-08  Richard Boulton <richard@tartarus.org>
1999
2000         * automake.in (file_contents_internal): if a rule is conditionally
2001         defined, define the standard automake definition for it for those
2002         conditions which are not conditionally defined.
2003         (invert_conditions): New function: invert a list of conditionals.
2004
2005         * tests/cond14.test: New file.
2006         * tests/cond15.test: New file.
2007         * tests/Makefile.am (TESTS): Added cond14.test and cond15.test.
2008
2009 2001-08-05  Tom Tromey  <tromey@redhat.com>
2010
2011         * tests/Makefile.am (TESTS): Added dejagnu2.test.
2012         * tests/dejagnu2.test: New file.
2013         * lib/am/dejagnu.am (site.exp): Don't conditionalize.
2014         * automake.in (handle_scripts): Removed dead code.
2015         (handle_tests_dejagnu): Don't handle site.exp generation
2016         specially.
2017
2018 2001-08-04  Richard Boulton <richard@tartarus.org>
2019
2020         * tests/cond17.test: New file: test for being able to define an
2021         object to be generated in different ways according to a
2022         conditional.
2023         * tests/Makefile.am (XFAIL_TESTS): Add cond17.test.
2024         (TESTS): Added cond17.test.
2025
2026 2001-08-02  Richard Boulton <richard@tartarus.org>
2027
2028         * automake.in (variable_conditions_sub): Handle variable
2029         substitution refs when computing conditions based on subvariable
2030         conditions.  Fixes substitution refs of system variables when sub
2031         variable is conditional.
2032         (SUBST_REF_PATTERN): New global.
2033         * tests/cond16.test: New file: regression test for variable
2034         substitution refs.
2035         * test/Makefile.am (TESTS): Added cond16.test.
2036
2037 2001-08-03  Tom Tromey  <tromey@redhat.com>
2038
2039         * tests/substref.test: Require GNU make; backed out previous
2040         change.
2041
2042         * tests/substref.test: Handle entering/leaving directory
2043         messages.
2044
2045 2001-08-03  Richard Boulton <richard@tartarus.org>
2046
2047         * automake.in (value_to_list): Check for whether $from is defined,
2048         rather than whether it is true, so that empty $froms are allowed in
2049         substitution reference patterns.
2050
2051         * tests/substref.test: New file: test behavior of substitution
2052         references when the $from side of the substitution is empty.
2053         * tests/Makefile.am (TESTS): Added substref.test.
2054
2055 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
2056
2057         * m4/install-sh.m4: New file.
2058         * m4/Makefile.am (m4data_DATA): Add install-sh.m4.
2059         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Move ...
2060         * m4/install-sh.m4 (AM_PROG_INSTALL_SH): ... here.  Don't check
2061         for install.sh any longer, always use install-sh, don't even
2062         fall back to missing.  Use $am_aux_dir, making $install_sh absolute.
2063         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Simplify, since $install_sh
2064         is absolute.
2065         * m4/init.m4: Adjust call to AM_PROG_INSTALL_SH.
2066
2067 2001-08-02  Tim Van Holder  <tim.van.holder@pandora.be>
2068
2069         * automake.texi (EXEEXT): Clarify.
2070
2071 2001-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
2072
2073         * m4/missing.m4 (AM_MISSING_HAS_RUN): Typo.
2074
2075         * m4/auxdir.m4: More comments.
2076
2077 2001-07-31  Richard Boulton <richard@tartarus.org>
2078             Raja R Harinath <harinath@cs.umn.edu>
2079
2080         * automake.in (variable_conditions_sub): Remove @parent_conds
2081         argument.  This was old logic - duplicate or impossible
2082         conditionals are removed later by &variable_conditions_reduce().
2083         Fixes tests/cond13.test.
2084         (conditionals_true_when): Removed.
2085         * tests/Makefile.am (XFAIL_TESTS): Removed cond13.test.
2086
2087 2001-07-31  Tom Tromey  <tromey@redhat.com>
2088
2089         * tests/Makefile.am (TESTS): Added cond13.test.
2090         (XFAIL_TESTS): Likewise.
2091         * tests/cond13.test: New file.
2092
2093         * configure.in: Upped to version 1.4k.
2094
2095         * configure.in: Released 1.4j.
2096
2097         * lib/config.guess: Updated from master sources.
2098         * lib/config.sub: Likewise.
2099
2100 2001-07-30  Tom Tromey  <tromey@redhat.com>
2101
2102         * automake.texi (A Program): Typo.  Added subsections and more
2103         text about conditional compilation.
2104         (A Shared Library): Moved earlier.
2105         (Program variables): Updated LINK text.  Added AM_CFLAGS.
2106         (C++ Support): Added AM_CXXFLAGS.
2107         (Fortran 77 Support): Added AM_FFLAGS and AM_RFLAGS.
2108         (EXEEXT): New node.
2109
2110         * tests/Makefile.am (TESTS): Added aclibobj.test.
2111         * tests/aclibobj.test: New file.
2112         * automake.in (handle_lib_objects_cond): Avoid undefined variable
2113         error.
2114         (scan_one_autoconf_file): Handle AC_LIBSOURCE and AC_LIBSOURCES.
2115
2116         * automake.texi (Dist): Mention other distribution types.
2117         (Install): Updates.
2118
2119 2001-07-29  Tom Tromey  <tromey@redhat.com>
2120
2121         * automake.texi (Program and Library Variables): Texinfo fix.
2122         From Alexey Mahotkin.
2123
2124 2001-07-28  Tom Tromey  <tromey@redhat.com>
2125
2126         * automake.texi (Strictness): Mention Cygnus mode.
2127         (Cygnus): Updated.
2128         (Uniform): Likewise.
2129         (Canonicalization): Likewise.
2130         (Install): Add `nobase_' to example; typo fix.
2131         (Clean): Typo.
2132         (Dist): Expand on putting a directory into EXTRA_DIST.  Insert
2133         section markers.
2134         (Options): Texinfo fixes; some text updates.
2135         (Tags): Update.
2136
2137 2001-07-27  Tom Tromey  <tromey@redhat.com>
2138
2139         * automake.texi (Invoking Automake): Document --Werror and
2140         --Wno-error.
2141
2142 2001-07-26  Tom Tromey  <tromey@redhat.com>
2143
2144         * tests/nolink.test: Added no-exeext.
2145
2146         * automake.in (check_variable_defined_unconditionally): Don't call
2147         macro_dump.
2148
2149         * automake.texi (Optional): Don't mention ALL_LINGUAS.
2150         (gettext): Likewise.
2151         * automake.in (seen_linguas, all_linguas, all_linguas_line):
2152         Removed.
2153         (handle_gettext): Don't do any checking of the languages.
2154         (scan_one_autoconf_file): Don't look for ALL_LINGUAS.
2155
2156         * automake.in (am_print_error): New function.
2157         (am_error): Use it.
2158         (am_file_error): Likewise.
2159         (am_line_error): Likewise.
2160         (am_conf_error): Likewise.
2161         (am_conf_line_error): Likewise.
2162
2163         * automake.texi (Options): Document no-exeext.
2164         * automake.in (handle_options): Recognize no-exeext.
2165         (rule_define): Handle no-exeext.
2166         * tests/Makefile.am (TESTS): Added new file.
2167         * tests/exeext2.test: New file.
2168
2169         * automake.in (make_input_list): Removed.
2170         (scan_autoconf_config_files): Don't add to make_input_list.
2171         (scan_one_autoconf_file): Don't use make_input_list.
2172         (scan_autoconf_files): Use make_list, not make_input_list.
2173         (scan_autoconf_files): Likewise.
2174
2175         * automake.in (seen_exeext): Removed.
2176         (generate_makefile): Don't define EXEEXT or OBJEXT.
2177         (scan_one_autoconf_file): Don't check for AC_EXEEXT.
2178         (am_install_var): Don't check $seen_exeext.
2179         (handle_programs): Likewise.
2180         (rule_define): Allow x to override x$(EXEEXT), for now.
2181         (file_contents_internal): Only define rule if rule_define allows
2182         us to.
2183         * m4/init.m4 (AM_INIT_AUTOMAKE): Define EXEEXT and OBJEXT.
2184
2185 2001-07-25  Tom Tromey  <tromey@redhat.com>
2186
2187         From Nicolas Joly:
2188         * tests/pr9.test: Require GNU make.
2189         * tests/dirname.test: Don't use `-u'.
2190
2191 2001-07-22  Tom Tromey  <tromey@redhat.com>
2192
2193         * tests/Makefile.am (TESTS): Added auxdir2.test.
2194         (XFAIL_TESTS): Likewise.
2195         * tests/auxdir2.test: New file.
2196
2197         * tests/Makefile.am (XFAIL_TESTS): Removed substtarg.test.
2198         * automake.in (TARGET_PATTERN): Add `@' as allowable character.
2199
2200         * tests/Makefile.am (XFAIL_TESTS): Removed exeext.test.
2201         * automake.in (am_install_var): Add $(EXEEXT) even if program name
2202         holds `.'.  Don't add $(EXEEXT) if program name already has it.
2203         (handle_programs): Don't add $(EXEEXT) if user already did.
2204         (make_paragraphs): Don't compute EXEEXT.
2205
2206         * tests/Makefile.am (TESTS): Added exeext.test.
2207         (XFAIL_TESTS): Likewise.
2208         * tests/exeext.test: New file.
2209
2210 2001-07-22  Tom Tromey  <tromey@redhat.com>
2211
2212         * lib/am/progs.am (install-%DIR%PROGRAMS): Test for `prog', not
2213         `prog.exe' on Cygwin with libtool.  From Robert Collins.
2214
2215 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
2216
2217         * tests/dirname.test: Explicitly use $SHELL to run the
2218         script; this avoids failures on DJGPP.
2219         * tests/install2.test: Skip if 'chmod 000' doesn't make
2220         a file unreadable.
2221
2222 2001-07-21  Tom Tromey  <tromey@redhat.com>
2223
2224         * tests/libtool2.test: Check for libtoolize.
2225
2226         * tests/Makefile.am (TESTS): Added substtarg.test.
2227         (XFAIL_TESTS): Likewise.
2228         * tests/substtarg.test: New file.
2229
2230         * automake.in (handle_dist): Handle case where aux dir doesn't
2231         have a Makefile.  Fixes depdist.test.
2232         * tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
2233         * tests/depdist.test: Look for config/depcomp.
2234
2235         * tests/Makefile.am (TESTS): Added depdist.test.
2236         (XFAIL_TESTS): Likewise.
2237         * tests/depdist.test: New file.  From Eric Magnien.
2238
2239         * tests/ccnoco.test: Removed `configure.2' test; in autoconf 2.50
2240         AC_PROG_CC_C_O does require AC_PROG_CC.
2241
2242         From Erik Lindahl:
2243         * lib/depcomp (tru64): Some Tru64 compilers use `foo.d' and not
2244         `foo.o.d'.
2245         * m4/depend.m4 (_AM_DEPENDENCIES): Check to make sure compilation
2246         output is suitable for make.
2247
2248         * automake.texi (Macros): Document AM_PROG_AS.
2249         (Assembly Support): New node.
2250         * m4/Makefile.am (m4data_DATA): Added as.m4.
2251         * m4/as.m4: New file.
2252
2253         * automake.texi (Tags): Added uref to global tags.
2254
2255 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
2256
2257         * automake.in (handle_single_transform_list): Use $(DEPDIR)
2258         instead of hardcoding '.deps'.
2259         * m4/depend.m4 (AM_SET_DEPDIR): Sync with libtool's libdir check.
2260
2261 2001-07-20  Derek Price  <dprice@collab.net>
2262
2263         * m4/header.m4 (AM_CONFIG_HEADER): Create stamp-h files in the correct
2264         locations.
2265         * tests/dirname.test: New test.
2266         * tests/stamph2.test: New test.
2267         * tests/Makefile.am: Add new tests.
2268         * tests/Makefile.in: Regenerated.
2269
2270 2001-07-19  Tom Tromey  <tromey@redhat.com>
2271
2272         * automake.texi (Tags): Document GTAGS_ARGS.
2273         * lib/am/tags.am (GTAGS): Added GTAGS_ARGS.  From Shigio Yamaguchi.
2274
2275 2001-07-19  Tom Tromey  <tromey@redhat.com>
2276             Alexandre Duret-Lutz  <duret_g@epita.fr>
2277
2278         Fix for ccnoco.test, subobj8.test:
2279         * m4/Makefile.am (m4data_DATA): Added auxdir.m4.
2280         * tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test,
2281         subobj8.test.
2282         * m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile.
2283         Use AM_AUX_DIR_EXPAND.
2284         * lib/compile: Handle case where `-o' argument is the name of an
2285         executable, not an object file.
2286         * m4/auxdir.m4: New file, from...
2287         * m4/missing.m4: ... here.  Moved AM_AUX_DIR_EXPAND.
2288         * automake.in (handle_single_transform_list, lang_c_rewrite):
2289         Require compile using `require_config_file'.
2290
2291 2001-07-19  Tom Tromey  <tromey@redhat.com>
2292
2293         * automake.texi (Program and Library Variables): Added X example
2294         for _LDADD.
2295
2296 2001-07-19  Tom Tromey  <tromey@redhat.com>
2297
2298         * automake.texi (Distributing): Updated to reflect new license.
2299
2300 2001-07-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
2301
2302         * automake.in (require_build_directory): New function, extracted
2303         from ...
2304         (handle_single_transform_list): ... here.
2305         (require_build_directory_maybe): New function.
2306         (handle_prograns, handle_libraries, handle_ltlibraries): Call
2307         require_build_directory_maybe() to ensure the subdirectory
2308         in which a target may lie will exist when the target is created.
2309         (handle_libraries, handle_ltlibraries): Use basename before
2310         checking library name.
2311         * lib/am/library.am (%LIBRARY%): Depend on %DIRSTAMP%.
2312         * lib/am/ltlibrary.am (%LTLIBRARY%): Likewise.
2313         * lib/am/program.am (%PROGRAM%): Likewise.
2314
2315 2001-07-18  Tim Van Holder  <tim.van.holder@pandora.be>
2316
2317         * m4/missing.m4: Reword comment.
2318
2319 2001-07-18  Pavel Roskin  <proski@gnu.org>
2320
2321         * automake.texi: Rename AM_DEPENDENCIES to _AM_DEPENDENCIES.
2322         * tests/gcj.test: Likewise.
2323         * tests/gcj2.test: Likewise.
2324         * tests/gcj3.test: Likewise.
2325
2326 2001-07-18  Tom Tromey  <tromey@redhat.com>
2327
2328         * lib/compile: Change how lockdir is computed.  If linking or
2329         compiling without `-o', just run the compiler.
2330
2331         * tests/Makefile.am (TESTS): Added ccnoco.test.
2332         (XFAIL_TESTS): Likewise.
2333         * tests/ccnoco.test: New file.
2334
2335 2001-07-17  Tom Tromey  <tromey@redhat.com>
2336
2337         * lib/ylwrap: Added special exception.
2338         * lib/py-compile: Added license.
2339         * lib/mdate-sh: Added special exception.
2340         * lib/elisp-comp: Added special exception.
2341         * lib/compile: Added special exception.
2342         * lib/depcomp: Added special exception.
2343
2344         Report from Motoyuki Kasahara:
2345         * tests/make.test: Use am__include.
2346         * tests/exsource.test: Use am__include.
2347         * m4/make.m4 (AM_MAKE_INCLUDE): Use am__include and am__quote.
2348         * automake.in (handle_languages): Use am__include and am__quote.
2349
2350         * m4/depend.m4 (AM_DEPENDENCIES): Renamed to _AM_DEPENDENCIES.
2351         * m4/init.m4: Updated callers.
2352
2353 2001-06-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
2354
2355         * aclocal.in (parse_arguments, write_aclocal): Update Copyrights.
2356         * aclocal.in (scan_configure, add_file): Handle the full macro
2357         name even if it contains numbers, such as I18N.
2358
2359 2001-07-16  Tom Tromey  <tromey@redhat.com>
2360
2361         * automake.texi (Dependencies): Link to dependency tracking page.
2362         (Data): Mention dist_.
2363         (Clean): Mention clean heuristics.
2364         (Install): Mention nobase_.
2365
2366         * automake.texi (Program and Library Variables): Document _LINK.
2367
2368 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2369
2370         * automake.in (handle_libraries): Allow libraries to lie in
2371         a subdirectory by constraining only the basename to start
2372         with 'lib', not the whole path.
2373
2374 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2375
2376         * tests/subobj8.test: New file.
2377         * tests/Makefile.am (XFAIL_TESTS, TESTS): Add subobj8.test.
2378
2379 2001-07-16  Tom Tromey  <tromey@redhat.com>
2380
2381         Fix for PR automake/212:
2382         * lib/am/lisp.am (install-%DIR%LISP): Added missing `\'.
2383         (uninstall-%DIR%LISP): Likewise.
2384
2385 2001-07-15  Tom Tromey  <tromey@redhat.com>
2386
2387         * automake.in (usage): Rewrote code to handle columnization.
2388         From Alexey Mahotkin and Maxim Sinev.
2389
2390         Report from Ralf Corsepius:
2391         * automake.in (TARGET_PATTERN): Add `+' as valid character.
2392         (SUFFIX_RULE_PATTERN): Likewise.
2393         * tests/Makefile.am (TESTS): Added cxx.test.
2394         * tests/cxx.test: New file.
2395
2396         * lib/am/tags.am (distclean-tags): Remove files for gtags.
2397         From Shigio Yamaguchi.
2398
2399 2001-07-14  Steve M. Robbins  <steve@nyongwa.montreal.qc.ca>
2400
2401         * lib/am/distdir.am (distcheck): Emit diagnostic when files
2402         remain after "make uninstall".
2403
2404 2001-07-14  Tom Tromey  <tromey@redhat.com>
2405
2406         * lib/am/tags.am (.PHONY): Depend on GTAGS.  From Shigio Yamaguchi.
2407
2408         * lib/missing (makeinfo): Redirect stdout and stderr outside
2409         subshell.  From Alexandre Oliva.
2410
2411 2001-07-14  Akim Demaille  <akim@epita.fr>
2412
2413         * automake.in ($obsolete_rx): No need for `\b(foo\b|\bbar)\b',
2414         `\b(foo|bar)\b' is what we want.
2415         * aclocal.in: Likewise.
2416
2417 2001-07-14  Akim Demaille  <akim@epita.fr>
2418
2419         * m4/depend.m4 (AM_DEPENDENCIES): Don't define `depcpp' which is
2420         not used.
2421         Do not require the corresponding AC_PROG_CC as AC_PROG_CC is
2422         actually modified to require AM_DEPENDENCIES.
2423         Rename `confdir' as `conftest.dir' so that the configure trap
2424         remove it.
2425
2426 2001-07-04  Tom Tromey  <tromey@redhat.com>
2427
2428         Fix for nolink.test:
2429         * tests/Makefile.am (XFAIL_TESTS): Removed nolink.test.
2430         * lib/am/program.am (%PROGRAM%%EXEEXT%): Use %EXEEXT%.
2431         * automake.in (am_install_var): Only rewrite PROGRAMS if
2432         $seen_exeext.
2433         (make_paragraphs): Always define %EXEEXT%.
2434
2435 2001-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
2436
2437         * tests/nolink.test: New file.
2438         * tests/Makefile.am (TEST, XFAIL_TESTS): Add nolink.test.
2439
2440 2001-07-04  OKUJI Yoshinori  <okuji@gnu.org>
2441
2442         * automake.in (scan_texinfo_file): Add the second argument to
2443         `@syncodeindex' into @CLEAN_SUFFIXES, because the combined index
2444         itself may not be used directly.
2445
2446 2001-07-04  Tom Tromey  <tromey@redhat.com>
2447
2448         * missing: Updated.
2449         * lib/missing (makeinfo): Use subshell, not explicit sh
2450         invocation.
2451
2452         * automake.texi (Headers): Mention that we prefer uninstalled
2453         headers in _SOURCES.
2454         (ANSI): Mention cross-compilation limitation.
2455
2456 2001-07-03  Tom Tromey  <tromey@redhat.com>
2457
2458         * configure.in: Upped to 1.4i.
2459
2460         * configure.in: Released 1.4h.
2461
2462         * lib/config.guess, lib/config.sub: Updated.
2463
2464 2001-07-02  Tom Tromey  <tromey@redhat.com>
2465
2466         Fix for libtool2.test:
2467         * tests/libtool2.test: Use `rm -f' to placate maintainer-check.
2468         * lib/am/libtool.am (distclean-libtool): Conditional on TOPDIR.
2469         * automake.in (generate_makefile): Call handle_libtool
2470         unconditionally.
2471         * tests/Makefile.am (XFAIL_TESTS): Removed libtool2.test.
2472
2473         * tests/libtool2.test: Look for `.lo' files to be removed.
2474
2475         * tests/Makefile.am (XFAIL_TESTS): Added libtool2.test.
2476
2477         * tests/Makefile.am (TESTS): Removed dup.test.
2478         * tests/dup.test: Removed.
2479         * aclocal.in (scan_file): Don't give error for duplicate macro.
2480
2481 2001-07-01  Tom Tromey  <tromey@redhat.com>
2482
2483         * automake.texi (Program and Library Variables): Document
2484         subdir-objects.  Document fact that per-object flags override AM_
2485         flags.
2486         (Options): Likewise.
2487         (Yacc and Lex): Document YFLAGS, AM_YFLAGS, LFLAGS, AM_LFLAGS.
2488         (Multilibs): New node.
2489         (Macros): Documented missing macros.
2490         (Auxiliary Programs): New node.
2491
2492         * lib/missing (makeinfo): If makeinfo exists, and we're in --run
2493         mode, then simply fail.
2494
2495 2001-07-01  Tim Van Holder  <tim.van.holder@pandora.be>
2496
2497         * lib/ylwrap: Improve support for DOS paths (and paths
2498         containing backslashes in general).
2499
2500 2001-07-01  Tom Tromey  <tromey@redhat.com>
2501
2502         * lib/missing: Added special exception to license.
2503
2504         * missing: Updated.
2505         * lib/missing: Updated.  Added comment explaining configure.ac
2506         oddity.
2507
2508         * lib/depcomp: Reorder arguments to gcc3.
2509         From Per Oyvind Hvidsten.
2510
2511         * tests/Makefile.am (TESTS): Added libtool2.test.
2512         * tests/libtool2.test: New file.
2513
2514         * automake.texi (Program and Library Variables): Added example for
2515         _AR.
2516
2517 2001-06-29  Tom Tromey  <tromey@redhat.com>
2518
2519         * tests/cond11.test: Use `=', not `=='.
2520         * tests/cond12.test: Look for automake in build directory, not
2521         source directory.
2522
2523 2001-06-29  Richard Boulton  <richard@tartarus.org>
2524
2525         * automake.in (conditionals_true_when): Pass first parameters by
2526         reference, avoiding bug which put all parameters in @CONDS instead
2527         of @WHENS.  Report by Kalle Olavi Niemitalo.
2528         Take a single WHEN instead of an array of WHENS.
2529         Remove FIXME; can't now have an empty @WHENS.
2530         (conditional_is_redundant): New sub.
2531         (variable_conditions_reduce): Check whether each condition is
2532         implied by any of the other conditions (other those already
2533         discarded), rather than checking only against those already
2534         considered (and kept).  Also, fix sense of check: was keeping
2535         tautologous terms instead of discarding them.  Use
2536         conditional_is_redundant instead of conditionals_true_when.
2537         * tests/Makefile.am (TESTS): Added cond11.test and cond12.test.
2538         * tests/cond11.test: New file.
2539         * tests/cond12.test: New file.
2540
2541 2001-06-29  Raja R Harinath  <harinath@cs.umn.edu>
2542
2543         * automake.in (saw_sources_p): Work even if there are more
2544         than one header files, and more than of one type of header.
2545         * tests/Makefile.am (TESTS): Added new file.
2546         * tests/depend4.test: New file.
2547
2548 2001-06-28  Tom Tromey  <tromey@redhat.com>
2549
2550         * lib/am/libs.am (RANLIB): Don't define.
2551
2552 2001-06-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
2553
2554         * automake.in (am_install_var): Assign 1 to $first on
2555         first interation.
2556
2557 2001-06-23  Tom Tromey  <tromey@redhat.com>
2558
2559         Fix for yacc5.test:
2560         * lib/ylwrap: Changed usage.
2561         * lib/am/yacc.am: Rewrote to use new substitutions.
2562         * lib/am/lex.am: Likewise.
2563         * automake.in (handle_languages): Skip files whose language
2564         doesn't have a compiler.  Handle `define_flag' attribute.
2565         Changed '$' to "\$" to aid Emacs fontification.
2566         (struct): Added `rule_file'.  Removed `derived_autodep'.  Added
2567         `_target_hook' and `define_flag'.
2568         (yacc, yaccxx, lex, lexxx): Set `rule_file', `flags', `compile',
2569         and `compiler' attributes.  Removed `linker', `derived_autodep',
2570         and `ansi' attributes.  Added `define_flag'.
2571         (yacc, yaccxx): Added `_target_hook'.
2572         (saw_extension): Count number of times extension seen.
2573         (count_files_for_language): New sub.
2574         (saw_sources_p): Use it.
2575         (handle_single_transform_list): Allow language rewrite function
2576         to return a new source extension.  Call target_hook.
2577         (yacc_sources, lex_sources): Removed.
2578         (initialize_per_input): Don't initialize yacc_sources or
2579         lex_sources.
2580         (lang_yacc_rewrite): Rewrote.
2581         (lang_yaccxx_rewrite): Likewise.
2582         (lang_lex_rewrite): Likewise.
2583         (lang_lexxx_rewrite): Likewise.
2584         (output_yacc_build_rule): Removed.
2585         (output_lex_build_rule): Removed.
2586         (lang_yacc_finish): Removed build rule generation.
2587         (lang_lex_finish): Likewise.
2588         (DASH_D_PATTERN): New global.
2589         (lang_yacc_target_hook): New function.
2590         (_target_hook): New function.
2591         (register_language): Default `define_flag'.
2592         * tests/yacc5.test: Updated test.
2593         * tests/yacc4.test: Exit with status 77 if bison doesn't work.
2594         * tests/yacc3.test: Remove bogus `make' invocation.  Added test
2595         for all YFLAGS variables.
2596
2597 2001-06-20  Tom Tromey  <tromey@redhat.com>
2598
2599         * tests/yacc5.test: Check for per-executable YFLAGS.
2600
2601 2001-06-19  Tom Tromey  <tromey@redhat.com>
2602
2603         * tests/Makefile.am (TESTS): Added yacc5.test.
2604         * tests/yacc5.test: New file.
2605
2606 2001-06-17  Tom Tromey  <tromey@redhat.com>
2607
2608         * automake.in (require_file_internal): Check for already-required
2609         file after searching for it, and only if it is not found.  Don't
2610         use `readlink' when checking for dangling symlink.  Work if
2611         --force-missing specified.
2612         * tests/acoutput2.test: Also test --force-missing.
2613
2614         Fix for libtool.test:
2615         * automake.in (generate_makefile): Call handle_libtool.
2616         (handle_libtool): New sub.
2617         (handle_compile): Don't read `libtool' file.
2618
2619         * tests/acoutput2.test: New file.
2620         * tests/Makefile.am (TESTS): Added acoutput2.test.
2621
2622 2001-06-15  Tom Tromey  <tromey@redhat.com>
2623
2624         * tests/Makefile.am (TESTS): Added libtool.test.
2625         * tests/libtool.test: New file.
2626
2627 2001-06-14  Tom Tromey  <tromey@redhat.com>
2628
2629         Fix some lisp bugs reported by Bruno Haible:
2630         * lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
2631         echo.
2632         (install-%DIR%LISP): Handle case where lispdir is not defined.
2633         (uninstall-%DIR%LISP): Likewise.
2634         (.el.elc): Added `else' clause.
2635
2636         Fix for bug reported by Steve M. Robbins:
2637         * automake.in (handle_single_transform_list): When building a file
2638         from a subdirectory, continue to use `AM_' prefix.
2639         * tests/Makefile.am (TESTS): Added subobj7.test.
2640         * tests/subobj7.test: New file.
2641
2642         * lib/am/configure.am ($(top_builddir)/config.status): Added
2643         $(top_builddir) prefix to work around problems with some vendor
2644         makes.  From Nicolas Joly.
2645
2646         * automake.in (yacc_lex_finish_helper): Find ylwrap in
2647         top_srcdir.  From Tim Van Holder.
2648         * tests/Makefile.am (TESTS): Added yacc6.test.
2649         * tests/yacc6.test: New file.
2650
2651 2001-06-14  Tim Van Holder  <tim.van.holder@pandora.be>
2652
2653         * tests/defs, tests/installsh.test: Properly support
2654         DOS-style paths.
2655
2656 2001-06-14  Tom Tromey  <tromey@redhat.com>
2657
2658         * tests/Makefile.am (TESTS): Added mdate4.test.
2659         * tests/mdate4.test: New file.
2660
2661         * aclocal.in (scan_m4_files): Removed unused variable.
2662
2663 2001-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
2664
2665         * aclocal.in (scan_m4_files): Tweak the building of &search so
2666         that multiple macro names can be found on the same line.  Ensure
2667         we match whole macro name, not only substrings.
2668
2669 2001-06-12  Tom Tromey  <tromey@redhat.com>
2670
2671         * automake.texi (ANSI): Minor clarification.
2672         (Other GNU Tools): Don't mention Guile.
2673         (Guile): Removed.
2674         (Java Support): Mention file extensions.
2675         (Man pages): Mention dist_.  Don't mention info pages.
2676
2677 2001-06-11  Tom Tromey  <tromey@redhat.com>
2678
2679         * automake.texi (Program variables): Document AM_CPPFLAGS.
2680         Deprecate INCLUDES.
2681         (Java Support): Document AM_GCJFLAGS.
2682         (Support for Other Languages): Removed `fixme'; added link to
2683         suffix rule handling.
2684
2685         * automake.texi (Program and Library Variables): Document _LIBADD,
2686         _LDADD, _LDFLAGS, _AR, and _DEPENDENCIES.
2687
2688 2001-06-11  Kevin Dalley  <kevind@rahul.net>
2689
2690         * missing: Support configure.ac.
2691
2692 2001-06-08  Tom Tromey  <tromey@redhat.com>
2693
2694         * tests/version4.test: New file.
2695         * automake.in (version_check): New sub.
2696         (handle_options): Use it.
2697         * tests/Makefile.am (AUTOMAKE_OPTIONS): Removed.
2698         (TESTS): Added version4.test.
2699         * m4/Makefile.am (AUTOMAKE_OPTIONS): Removed.
2700         * Makefile.am (AUTOMAKE_OPTIONS): Remove `gnits'.
2701
2702 2001-06-04  Kevin Dalley  <kevind@rahul.net>
2703
2704         * lib/am/dejagnu.am (site.exp): Fix typo.
2705
2706 2001-06-02  Tom Tromey  <tromey@redhat.com>
2707
2708         * automake.in (variable_conditions_sub): Move parent-only code
2709         from here...
2710         (variable_conditions): ... to here.
2711         (variable_conditions_sub): Include this variable's conditions in
2712         the resulting condition list.
2713         * tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
2714
2715 2001-06-01  Tom Tromey  <tromey@redhat.com>
2716
2717         * tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
2718         (TESTS): Likewise.
2719         * tests/ltdeps.test: New file.  Report from Lars J. Aas.
2720
2721 2001-05-31  Tom Tromey  <tromey@redhat.com>
2722
2723         * automake.texi (Alternative): New node.
2724         (Macros): Use new name for gcc.
2725         (Java Support): Likewise.
2726         (Dependencies): Rewrote.
2727         (Invoking Automake): (Re-)document -i, --ignore-deps, and
2728         --include-deps.
2729
2730         * automake.texi (Top level): Removed erroneous spaces.  Documented
2731         MAKE and MAKEFLAGS.
2732
2733 2001-05-29  Tom Tromey  <tromey@redhat.com>
2734
2735         * m4/init.m4 (AM_INIT_AUTOMAKE): Allow any AM_*FLAGS variable.
2736
2737         * automake.texi (Include): Rewrote.
2738         (Suffixes): Remove Java example.
2739         (Java): Added more explanation.  Document variables.
2740         (Uniform): Mention JAVA as a primary.
2741         (Python): Updated for new Python support.
2742         (Sources): Added a weak example.
2743
2744         * lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
2745
2746         * automake.texi (A Program): Mention `check' prefix.
2747         (Program and Library Variables): New node.
2748         (Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
2749         AM_MAKEINFOFLAGS.
2750         (etags): Mention per-program flags.
2751         (Tests): Document AM_RUNTESTFLAGS; added sectioning; more
2752         updates.
2753
2754         * lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
2755         install-info-am.
2756
2757 2001-05-28  Tom Tromey  <tromey@redhat.com>
2758
2759         * m4/Makefile.am (MAINT_CHARSET): Removed.
2760         * Makefile.am (MAINT_CHARSET): Removed.
2761         * automake.in (maint_charset, dist_charset): Removed.
2762         (local_maint_charset): Removed.
2763         (initialize_per_input): Don't use maint_charset.
2764         (handle_dist): Don't compute maint_charset or check DIST_CHARSET.
2765
2766         * lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
2767         AM_MAKEINFOFLAGS.
2768         (.%SUFFIX%.dvi): Likewise.
2769         (.%SUFFIX%): Likewise.
2770
2771 2001-05-27  Tom Tromey  <tromey@redhat.com>
2772
2773         * automake.in (handle_multilib): Only add multilib support code at
2774         top level.
2775         * lib/am/multilib.am: Handle invocation of *-multi targets
2776         differently for SUBDIRS and non-SUBDIRS Makefiles.
2777         * m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
2778         Only add multilib code when the Makefile in question is actually
2779         rebuilt.
2780
2781         * lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
2782
2783 2001-05-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2784
2785         * automake.in (handle_single_transform_list): Skip unknown
2786         extensions.
2787
2788 2001-05-25  Tom Tromey  <tromey@redhat.com>
2789
2790         * m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
2791
2792 2001-05-24  Tom Tromey  <tromey@redhat.com>
2793
2794         * automake.in (handle_texinfo_helper): Find mdate-sh in current
2795         directory in some situations.
2796
2797         * automake.in (generate_makefile): Better explanation for ansi2knr
2798         fix.
2799
2800 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2801
2802         * automake.in (handle_languages): Skip unknown extensions.
2803         (derive_suffix): Check whether $extension_map{$source_ext}
2804         is undefined, not empty.
2805
2806 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2807
2808         * automake.in (read_am_file): Ignore trailing backslash on
2809         comment lines.
2810
2811 2001-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
2812
2813         * automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
2814
2815 2001-05-21  Akim Demaille  <akim@epita.fr>
2816
2817         * automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
2818         multiple times'' warning.
2819
2820 2001-05-20  Tom Tromey  <tromey@redhat.com>
2821
2822         * configure.in: Updated to 1.4g.
2823
2824         * configure.in: Updated to 1.4f.
2825
2826         * Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
2827
2828         * lib/ansi2knr.c: New version.
2829
2830         * Makefile.am (FETCHFILES): Added ansi2knr.c.
2831         (fetch): Likewise.
2832
2833 2001-05-19  Tom Tromey  <tromey@redhat.com>
2834
2835         * config.guess, config.sub: New versions from FSF.
2836
2837         * Makefile.am (fetch): Compare against files in srcdir.
2838
2839         For for ansi2knr report from Harlan Stenn:
2840         * automake.in (generate_makefile): Run handle_compile before
2841         handle_languages.
2842
2843 2001-05-18  Tom Tromey  <tromey@redhat.com>
2844
2845         * automake.in: Reverted erroneous checkin.
2846
2847 2001-05-18  Akim Demaille  <akim@epita.fr>
2848
2849         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
2850         to missing `install-info'.
2851
2852 2001-05-17  Tom Tromey  <tromey@redhat.com>
2853
2854         * automake.in (lang_c_finish): Use `rm -f'.
2855
2856         * automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
2857         * tests/Makefile.am (TESTS): Added new file.
2858         * tests/ansi5.test: New file.
2859
2860 2001-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2861
2862         * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
2863         STRIP is not empty.
2864         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
2865         to install-sh unconditionally.  Don't set INSTALL_STRIP_PROGRAM_ENV.
2866         * automake.texi (Requirements): Document the use of the STRIP
2867         variable in cross-compilation environments.
2868
2869 2001-05-17  Tom Tromey  <tromey@redhat.com>
2870
2871         * m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
2872         to no dependency tracking.
2873         * tests/Makefile.am (TESTS): Added depcomp2.test.
2874         * tests/depcomp2.test: New file.  From Pavel Roskin.
2875
2876         * lib/depcomp (aix): Bug fix and simplification from Larry Jones.
2877
2878         * lib/depcomp (tru64): New dependency tracking mode.
2879
2880         Fix for PR automake/159:
2881         * lib/depcomp (aix): Rewrote.
2882         (sgi): Likewise.
2883
2884         Fix for PR automake/174:
2885         * tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
2886         * automake.in (read_am_file): Warn if `#' is at start of rule.
2887
2888 2001-05-16  Tom Tromey  <tromey@redhat.com>
2889
2890         For PR automake/174:
2891         * tests/Makefile.am (TESTS): Added comment3.test.
2892         (XFAIL_TESTS): Likewise.
2893         * tests/comment3.test: New file.
2894
2895         Fix for PR automake/175:
2896         * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
2897         * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
2898         `Leaving directory' messages.
2899
2900         For PR automake/175:
2901         * tests/Makefile.am (XFAIL_TESTS): Added make.test.
2902         * tests/make.test: Run test with `make -w'.
2903
2904         * tests/Makefile.am (TESTS): Removed maintclean.test.
2905         * lib/am/clean.am (maintainer-clean-generic): Don't remove
2906         Makefile.in.
2907         * lib/am/configure.am (maintainer-clean-am): Removed.
2908         (maintainer-clean-conf): Removed.
2909         * tests/maintclean.test: Removed.
2910
2911 2001-05-15  Tom Tromey  <tromey@redhat.com>
2912
2913         Fix for PR automake/177:
2914         * Makefile.am (maintainer-clean): Set perllibdir before invoking
2915         automake or aclocal.
2916
2917         Fix for maintclean.test:
2918         * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
2919         * lib/am/clean.am (distclean-generic): Don't remove config.cache
2920         or config.log.
2921         (distclean, maintainer-clean): Moved to...
2922         * lib/am/configure.am: ... here.
2923         (distclean): Remove config.cache and config.log.
2924         (maintainer-clean): Removed.
2925         (maintainer-clean-conf): New target.
2926         (maintainer-clean-am): New target.
2927
2928         * tests/Makefile.am (TESTS): Added maintclean.test.
2929         (XFAIL_TESTS): Likewise.
2930         * tests/maintclean.test: New file.
2931
2932         Fixes PR automake/175:
2933         * tests/target-cflags.test: Use $needs_gnu_make.
2934         * tests/exsource.test: Use $needs_gnu_make.
2935         * tests/make.test: Require GNU make.
2936         * tests/defs (needs_gnu_make): Compute.
2937
2938 2001-05-14  Tom Tromey  <tromey@redhat.com>
2939
2940         * lib/ylwrap: Fixed quoting on regular expression.  Fixes
2941         yacc4.test.
2942
2943         Fix for texinfo10.test.
2944         * tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
2945         * lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
2946         * automake.in (handle_texinfo_helper): New sub.
2947         (handle_texinfo): Rewrote.  Now defines LOCAL-TEXIS.
2948         * tests/texinfo10.test: Added more cases.
2949
2950         Fix for yaccvpath.test:
2951         * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
2952         * lib/am/distdir.am (distdir): Always look for file in build
2953         directory first.
2954         * lib/ylwrap: Quote the `#line' regular expression.
2955         * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
2956         change; don't run sed on the generated file.
2957         * tests/yaccvpath.test: Create new parser in srcdir.  Added test
2958         to make sure parser will be rebuilt at dist time.
2959
2960 2001-05-13  Pavel Roskin  <proski@gnu.org>
2961
2962         * automake.in ($IGNORE_PATTERN): Allow spaces before comments
2963         beginning with `##'.
2964         * automake.texi (General Operation): Document it.
2965
2966 2001-05-13  Tom Tromey  <tromey@redhat.com>
2967
2968         Reported by Rainer Orth:
2969         * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
2970         TOPDIR_P.
2971         * tests/Makefile.am (TESTS): Added distname.test.
2972         * tests/distname.test: New file.
2973
2974         * Makefile.am (dist_pkgdata_DATA): Removed.
2975
2976         * tests/defs: Find files to copy in lib/.
2977         * automake.in (perllibdir): Set to Automake directory.
2978         * ansi2knr.c, ansi2knr.1: Removed.
2979         * Makefile.am (dist_am_DATA): Removed.
2980         (amdir): Removed.
2981         (maintainer-check): Look for lib/am/*.am.  Expect 28 lines of
2982         diffs.
2983         (scriptdir): Removed.
2984         (dist_script_DATA): Likewise.
2985         (install-data-hook): Likewise.
2986         (installcheck-local): Likewise.
2987         (TAGS_FILES): Removed amfiles.
2988         (dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
2989         * tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
2990         point it to the right directory.
2991         * ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
2992         compile.am, configure.am, data.am, dejagnu.am, depend.am,
2993         depend2.am, distdir.am, footer.am, header-vars.am, header.am,
2994         install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
2995         libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
2996         mans.am, multilib.am, program.am, progs.am, python.am,
2997         remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
2998         texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
2999         * configure.in (AC_OUTPUT): Added lib/am/Makefile.
3000         (AUTOMAKE): Use --libdir, not --amdir.
3001         Ues AC_CONFIG_AUX_DIR.
3002         * lib/Makefile.am (SUBDIRS): Added `am'.
3003         (scriptdir): New macro.
3004         (dist_script_DATA): Likewise.
3005         (dist_pkgdata_DATA): Likewise.
3006         (install-data-hook): New target.
3007         (installcheck-local): Likewise.
3008         * lib/am/Makefile.in: New file.
3009         * lib/am/Makefile.am: Removed everything except amdir and
3010         dist_am_DATA.
3011
3012 2001-05-13  Akim Demaille  <akim@epita.fr>
3013
3014         * automake.in ($pkgdata_dir): Rename as...
3015         ($libdir): this.
3016         ($am_dir): Remove, replace its uses with $libdir.
3017         (&parse_arguments): Replace --amdir with --libdir.
3018         * automake.texi (Invoking Automake): Document --libdir, not
3019         --amdir.
3020         * tests/defs (AUTOMAKE): Use --libdir, not --amdir.
3021
3022 2001-05-13  Tom Tromey  <tromey@redhat.com>
3023
3024         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
3025         not AMDEP.
3026         * m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
3027         Correctly look at AMDEP_TRUE, not AMDEP.
3028
3029         Report from Robert Boehne:
3030         * tests/Makefile.am (TESTS): Added depend2.test.
3031         * tests/depend2.test: New file.
3032
3033 2001-05-13  James Henstridge  <james@daa.com.au>
3034
3035         * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
3036         Point pythondir at site-packages directory.  Rename
3037         PYTHON_SITE_PACKAGE to pkgpythondir.  Rename PYTHON_SITE_EXEC to
3038         pyexecdir.  Removed package/module argument.  Removed
3039         PYTHON_SITE_INSTALL.  Added version checking.
3040
3041 2001-05-14  Jim Meyering  <meyering@lucent.com>
3042
3043         * automake.in (macro_define): Change one remaining use of
3044         `variable_dump' to `macro_dump'.
3045
3046 2001-05-13  Tom Tromey  <tromey@redhat.com>
3047
3048         * m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
3049         and gcj.
3050
3051 2001-05-13  Akim Demaille  <akim@epita.fr>
3052
3053         * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
3054         (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
3055         (&am_primary_prefixes): Use `map' rather than `grep'.
3056
3057 2001-05-13  Akim Demaille  <akim@epita.fr>
3058
3059         * automake.in (Language): Set config_vars for yacc, yaccxx, lex,
3060         lexxx, asm.
3061         (&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
3062         (&lang_asm_finish): Remove, set asm's finisher to C's one.
3063
3064 2001-05-13  Akim Demaille  <akim@epita.fr>
3065
3066         * lang-compile.am: New file, loaded once per language.
3067         * depend2.am: Move definitions loaded once per language in the
3068         aforementioned file.
3069         * automake.in (&handle_languages): Load it.
3070         (&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
3071         handled by lang-compile.am.
3072
3073 2001-05-13  Tom Tromey  <tromey@redhat.com>
3074
3075         * tests/Makefile.am (TESTS): Added python.test.
3076         * tests/python.test: New file.
3077         * automake.in (handle_languages): Use
3078         config_aux_dir_set_in_configure_in.
3079         (handle_python): Correctly mention AM_PATH_PYTHON.  Use
3080         py-compile, not py_comp.  Define py_compile macro.
3081
3082 2001-05-13  Derek Price  <dprice@openavenue.com>
3083
3084         * automake.in (require_file_with_conf_line,
3085         require_file_with_line, require_file): Pass a @require_file_path
3086         of $relative_dir instead of '.' to require_file_internal so that
3087         all the special casing of '.' can be removed elsewhere.
3088         (require_config_file, require_conf_file_with_line,
3089         require_conf_file_with_conf_line): Remove special casing for '.'
3090         and make sure $config_aux_dir is maintained properly.
3091         (require_file_internal): Remove special casing of '.' and set
3092         @require_file_path when missing files are added.
3093         (maybe_push_required_file): Remove special casing of '.'
3094         (handle_dependencies): Remove a workaround for a bug now fixed
3095         and remove $config_aux_dir special casing.
3096         (handle_configure): Remove special casing for $config_aux_dir
3097         (handle_python): Ditto.
3098         (yacc_lex_finish_helper): Change $config_aux_dir switch to
3099         switch on the value of $config_aux_dir_set_in_configure_in.
3100         (handle_texinfo): Ditto.
3101         (scan_one_configure_file): Set $config_aux_dir and
3102         $config_aux_dir_set_in_configure_in properly so special casing
3103         on the value of $config_aux_dir can be removed elsewhere.
3104         * tests/depcomp.test: New file.
3105         * tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
3106         first subdir containing a C file.
3107         * tests/libobj2.test: Ditto.
3108         * tests/Makefile.am (TESTS): Added 'depcomp.test'.
3109
3110 2001-05-12  Tom Tromey  <tromey@redhat.com>
3111
3112         * tests/gcj.test: Updated for gcj dependency tracking.
3113         * tests/gcj2.test: Likewise.
3114
3115         Fixes PR automake/169.
3116         * m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ.  Don't assume gcc
3117         style for OBJC.
3118         * automake.in (java): Added autodep entry.
3119         * tests/Makefile.am (TESTS): Added gcj3.test.
3120         * tests/gcj3.test: New file.
3121
3122 2001-05-12  Raja R Harinath  <harinath@cs.umn.edu>
3123
3124         * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
3125         stop at the first '='.
3126         * tests/Makefile.am (TESTS): Added vars.test.
3127         * tests/vars.test: New file.
3128
3129 2001-05-12  Akim Demaille  <akim@epita.fr>
3130
3131         * automake.in (&handle_single_transform_list): Simplify
3132         computation of $object and $this_obj_ext.
3133         * tests/lex3.test: Merge into...
3134         * tests/lex.test: here.
3135         * tests/pr19.test: Improve and rename as...
3136         * tests/lex3.test: this.
3137
3138 2001-05-09  Tom Tromey  <tromey@redhat.com>
3139
3140         * automake.in (read_am_file): Correctly compute $saw_bk.
3141         (scan_autoconf_files): Ensure configure_dist_common is always
3142         set.
3143         * tests/defs (AUTOMAKE): Added --Werror.
3144
3145 2001-05-09  Pavel Roskin  <proski@gnu.org>
3146
3147         * automake.in (define_compiler_variable): Escape $(LIBTOOL) in
3148         double quotes.
3149
3150 2001-05-09  Tom Tromey  <tromey@redhat.com>
3151
3152         * tests/werror.test: Use `rm -f'.
3153
3154 2001-05-09  Akim Demaille  <akim@epita.fr>
3155
3156         * automake.in (&am_line_warning): Invoke `am_line_error', not itself.
3157
3158 2001-05-09  Akim Demaille  <akim@epita.fr>
3159
3160         * automake.in: Remove some code left from bad patches.
3161         (&handle_dependency): Remove, for the same reason.
3162
3163 2001-05-09  Akim Demaille  <akim@epita.fr>
3164
3165         * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
3166         (&handle_tests_dejagnu, &define_standard_variables): Don't.
3167         (&define_standard_variables): Don't transform %top_builddir% since...
3168         * header-vars.am: Use %TOPDIR% instead.
3169
3170 2001-05-09  Akim Demaille  <akim@epita.fr>
3171
3172         * automake.in (@objects): Remove, unused.
3173         Remove all the code related to it, and to former `$(OBJECTS)'.
3174
3175 2001-05-08  Tom Tromey  <tromey@redhat.com>
3176
3177         For PR automake/29:
3178         * ylwrap: Handle arguments to program.  Remove old code that tried
3179         to avoid absolute paths and add new code to do it in all cases.
3180         Removed ancient logic that tried to deal with relative path.
3181         * tests/Makefile.am (TESTS): Added yacc4.test.
3182         * tests/yacc4.test: New file.
3183
3184         Fix for PR automake/149 and werror.test:
3185         * automake.in (require_file_internal): Use am_line_warning or
3186         am_conf_line_warning when suppressing error.
3187         (am_line_warning): New sub.
3188         (am_conf_line_warning): Save and restore warning signal.
3189         * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
3190
3191         Fix for PR automake/36:
3192         * tests/Makefile.am (TESTS): Added asm.test.
3193         * tests/asm.test: New file.
3194         * automake.in (asm): Use ASFLAGS and AS.
3195         (lang_asm_finish): New sub.
3196
3197         * automake.in (read_am_file): Removed debugging code.
3198
3199         For PR automake/149:
3200         * tests/Makefile.am (TESTS): Added werror.test.
3201         (XFAIL_TESTS): Likewise.
3202         * tests/werror.test: New file.
3203
3204         * automake.in (conditional_true_when): Don't return if we see
3205         `TRUE'.
3206
3207         * tests/objc.test: Removed.
3208         * tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
3209         (TESTS): Likewise.
3210
3211         * automake.in (subst): New sub.
3212         (handle_languages): Use it.
3213         (output_lex_build_rule): Likewise; also use _am_quote.
3214         (check_libobjs_sources): Likewise.
3215         (make_paragraphs): Use subst.
3216
3217         * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
3218         problem.
3219
3220         * automake.in (file_contents_internal): Prototype now `$$%'.
3221         (register_language): Prototype now `%'.
3222
3223         Fixes test subobj6.test and PR automake/160:
3224         * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
3225         * compile.am (mostlyclean-compile): Added MOSTLYRMS.
3226         (distclean-compile): Added DISTRMS.
3227         * tests/subobj6.test (wish_SOURCES): Updated to reflect
3228         `mostlyclean' use; added test for non-subdir case.
3229         * automake.in (compile_clean_files): New global.
3230         (MOSTLY_CLEAN, DIST_CLEAN): New constants.
3231         (initialize_per_input): Initialize compile_clean_files.
3232         (handle_single_transform_list): Set compile_clean_files entries.
3233         (handle_compile): Handle compilation cleanups.
3234
3235 2001-05-08  Lars J. Aas  <larsa@sim.no>
3236
3237         * automake.texi (Canonicalizing Automake macros): Document not
3238         canonicalizing strudels (@) anymore.
3239
3240 2001-05-08  Akim Demaille  <akim@epita.fr>
3241
3242         * distdir.am (dist-all): Build all the flavors using a single
3243         distdir.
3244
3245 2001-05-08  Akim Demaille  <akim@epita.fr>
3246
3247         * automake.in (&file_contents_internal): Apply the @cond_stack to
3248         the rules and assignments.
3249         Don't rely on `$.' as it's biased by &make_paragraphs.
3250         Don't remove backslashes in variable values.
3251
3252 2001-05-08  Akim Demaille  <akim@epita.fr>
3253
3254         * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
3255         ($RULE_PATTERN): Use that from `&make_paragraphs'.
3256         ($MACRO_PATTERN): Just catch the name of a macro.
3257         ($BOGUS_MACRO_PATTERN): Remove.
3258         ($ASSIGNMENT_PATTERN): New.
3259         (&file_contents_internal, &make_paragraphs): Adjust.
3260         (&macro_define): Catch bad macro names.
3261         (&cond_stack_endif): Better error message.
3262         (&file_contents_internal): Don't remove backslashes in variable
3263         values.
3264         (&macro_define): Do it for `+=' user variables.
3265         (&define_standard_variables): Use `undef' instead of a dummy
3266         variable.
3267         (&make_paragraph): Be sure not to chop the trail of hash only
3268         lines: adjust the `##' regexp.
3269         (&rule_define): Fix a bug: don't read $1 but $target.
3270         * tests/condincl.test: Strengthen.
3271
3272 2001-05-08  Akim Demaille  <akim@epita.fr>
3273
3274         * automake.in (Language): Add attributes `Name' and `config_vars'.
3275         (&finish): Work properly if there is no _finish.
3276         (Automake): Register language Names and AC_SUBST dependencies.
3277         Register Fortran 77 variables upon which ratfor and ppf77 depend.
3278         (&handle_languages): Once per language, invoke
3279         `define_linker_variables', and check its config_vars.
3280         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3281         (&lang_java_finish): Remove.
3282         (&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
3283
3284 2001-05-08  Akim Demaille  <akim@epita.fr>
3285
3286         * automake.in (&file_contents_internal): Accept $IS_AM.
3287         (&handle_compile, &define_standard_variables, &file_contents): Adjust.
3288
3289 2001-05-08  Akim Demaille  <akim@epita.fr>
3290
3291         * automake.in (am_install_var): Use `next' instead of `if' on the
3292         body of $X loop.
3293
3294 2001-05-08  Akim Demaille  <akim@epita.fr>
3295
3296         * automake.in (Language): Add attributes `lder' and `ld'.
3297         (&register_language): Specify for cxx, objc, f77, gcj.
3298         (&define_linker_variable): New.
3299         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3300         (&lang_java_finish): Adjust.
3301         (&libtool_compiler): Remove.
3302
3303 2001-05-08  Akim Demaille  <akim@epita.fr>
3304
3305         * automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
3306         argument, as you don't use it.
3307         Hence...
3308         (&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
3309         don't use it.
3310         Hence...
3311         (&handle_programs): Don't mess with %lex_sources, as you don't use
3312         it.
3313
3314 2001-05-08  Akim Demaille  <akim@epita.fr>
3315
3316         * automake.in (Language): Add attribute `link'.
3317         (&register_language): Specify for cxx, objc, f77, gcj.
3318         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3319         (&lang_java_finish): Adjust.
3320
3321 2001-05-08  Akim Demaille  <akim@epita.fr>
3322
3323         * automake.in (&define_compiler_variables): Use only $LANG as
3324         argument.
3325         (&handle_languages): Adjust.
3326
3327 2001-05-08  Akim Demaille  <akim@epita.fr>
3328
3329         * automake.in (&define_program_variable): Remove.
3330         (&scan_one_autoconf_file): Skip MAKEINFO when found in an
3331         AM_MISSING_PROG.
3332         (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
3333         * texinfos.am: Do it.
3334
3335 2001-05-08  Akim Demaille  <akim@epita.fr>
3336
3337         * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
3338         RUNTEST.
3339         * dejagnu.am: Do it.
3340         (site.exp): Use `if'.
3341
3342 2001-05-08  Akim Demaille  <akim@epita.fr>
3343
3344         * automake.in: Formatting changes.
3345         (variable_dump, variables_dump): Rename as...
3346         (macro_dump, macros_dump): these.
3347
3348 2001-05-08  Akim Demaille  <akim@epita.fr>
3349
3350         Support `if !COND', `else COND', `end COND'.
3351
3352         * automake.texi (Conditionals): Document it.
3353         * automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
3354         ($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
3355         ($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
3356         a leading `!' before the condition.
3357         (&handle_options): Use `\d'.
3358         (&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
3359         (&read_am_file, &file_contents_internal): Use them.
3360         (&transform): No longer substitute `%!COND%', forcing the use of
3361         `! %?COND%'.
3362         * ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
3363
3364 2001-05-08  Akim Demaille  <akim@epita.fr>
3365
3366         Uniform handling of per-object compilation rules.
3367         Note: Automake is repaired.
3368
3369         * automake.in (&handle_languages): Output per object rules for all
3370         the objects, not only for those which language supports dependency
3371         tracking.
3372         Fix Automake: when outputting per-object rules, use `-o' if the
3373         language has no `output_flag', as it's really needed.
3374         (&handle_single_transform_list): Instead of special casing files
3375         which need per object rules but which language don't support
3376         dependency tracking, keep them in the queue for processing by
3377         `&handle_languages'.
3378
3379 2001-05-08  Akim Demaille  <akim@epita.fr>
3380
3381         * automake.in (&handle_languages): `ext-compile.am' and
3382         `depend2.am' are now equivalent for generic rules: output only the
3383         latter.
3384         * ext-compile.am: Remove.
3385
3386 2001-05-08  Akim Demaille  <akim@epita.fr>
3387
3388         Note: This patch breaks Automake.  Repaired within two patches.
3389
3390         * automake.in (Language): Replace the attribute `output_arg' with
3391         `compile_flag' and `output_flag'.
3392         (Automake): Adjust language registrations.
3393         (&handle_languages): Transform `-c' and `-o' for both suffix and
3394         per object rules, instead of `OUTARG' and `LTOUTARG' only for
3395         generic rules.
3396         (&handle_single_transform_list): Adjust to `compile_flag' and
3397         `output_flag'.
3398         * depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
3399
3400 2001-05-08  Akim Demaille  <akim@epita.fr>
3401
3402         * automake.in (&handle_languages): Don't transform %COMPILER%.
3403         Use `$lang->compiler' instead of `$pfx' to transform generic
3404         %COMPILE% and %LTCOMPILE%.
3405         * ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
3406         of %COMPILER% and $<.
3407
3408 2001-05-07  Akim Demaille  <akim@epita.fr>
3409
3410         * automake.in (&handle_languages): Use the same `%transform' for
3411         both `depend2.am' and `ext-compile.am'.
3412         Delay the definition of `$flag' so it is right before the first use,
3413         and rename as `$flags'.
3414
3415 2001-05-07  Akim Demaille  <akim@epita.fr>
3416
3417         * automake.in (&handle_languages): Compute `$ltoutarg' and
3418         `$outarg' independently of dependency code.
3419         There is no use looping on a language's possible extensions since
3420         we loop over used extensions.
3421         Therefore, there is no use for a local `%transform'.
3422
3423 2001-05-07  Akim Demaille  <akim@epita.fr>
3424
3425         * automake.in (&handle_languages): Don't use $comp.
3426
3427 2001-05-07  Akim Demaille  <akim@epita.fr>
3428
3429         * automake.in (&handle_languages): Merge the two loops over
3430         %extension_seen/%languages into one and group code to be run once
3431         per language together.
3432
3433 2001-05-07  Akim Demaille  <akim@epita.fr>
3434
3435         * automake.in (&handle_languages): Move the `if
3436         ($use_dependencies)' block so that loops over extensions and
3437         languages are next to each other.
3438
3439 2001-05-07  Akim Demaille  <akim@epita.fr>
3440
3441         * automake.in (&depend2): Remove, merged into...
3442         (&handle_languages): here.
3443
3444 2001-05-07  Akim Demaille  <akim@epita.fr>
3445
3446         * automake.in (&finish_languages): Rename as...
3447         (&handle_languages): this.
3448         Include the body of...
3449         (&handle_dependency): this.
3450         Remove.
3451
3452 2001-05-06  Tom Tromey  <tromey@redhat.com>
3453
3454         For PR automake/46:
3455         * tests/Makefile.am (TESTS): Add subdir5.test.
3456         (XFAIL_TESTS): Likewise.
3457         * tests/subdir5.test: New file.
3458
3459         * tests/subobj6.test (wish_SOURCES): Use $MAKE.
3460         * tests/subobj5.test (wish_SOURCES): Use $MAKE.
3461
3462         * automake.in (GNITS_VERSION_PATTERN): Document.  Add `fork
3463         identifier'.
3464         (handle_options): Handle fork identifier in version number.
3465
3466         * automake.texi (Dist): Document distcheck-hook.
3467
3468         * tests/confh4.test: Update to reflect DEFS change.
3469         For PR automake/132.
3470
3471         Fix for PR automake/132:
3472         * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
3473         compilation.
3474         (java): Remove INCLUDES and DEFS from compilation.
3475         (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
3476         * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
3477         (DEFAULT_INCLUDES): New macro.
3478
3479         * automake.in (usage): Re-align explanatory text.
3480         Fixes PR automake/148.
3481
3482         * automake.texi (Uniform): Don't use @PROGRAMS@.
3483         Fixes PR automake/154.
3484
3485         For PR automake/160:
3486         * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
3487         (XFAIL_TESTS): Add subobj6.test.
3488         * tests/subobj6.test: New file.
3489
3490         * automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
3491         (Top level): Don't mention `flat'.
3492         (Extending): Likewise.
3493         (User Variables): New node.
3494
3495         * distdir.am (distdir): Make subdirectory for each file.
3496         Fixes test subobj5.test.
3497
3498         * tests/Makefile.am (TESTS): Add new file.
3499         (XFAIL_TESTS): Likewise.
3500         * tests/texinfo10.test: New file.
3501
3502 2001-05-05  Pavel Roskin <proski@gnu.org>
3503
3504         * automake.in (scan_texinfo_file): Treat @defindex and @synindex
3505         in the same way as @defcodeindex and @syncodeindex respectively.
3506
3507 2001-05-05  Tom Tromey  <tromey@redhat.com>
3508
3509         * mans.am (install-man%SECTION%): Minor cleanup.
3510         (uninstall-man%SECTION%): Likewise.
3511
3512         * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
3513         * mans.am (install-man%SECTION%): Handle dist_ and nodist_
3514         prefixes.
3515         (uninstall-man%SECTION%): Likewise.
3516         * automake.in (handle_man_pages): Handle dist_ and nodist_
3517         prefixes.
3518
3519         * automake.texi (Future): Removed.
3520         (Depth): Removed.
3521         (Hello): Don't mention `deep'.
3522         (Top level): Likewise.
3523
3524         * automake.in (conditional_true_when): Use a hash, not index().
3525         Also, a TRUE component always results in a true return.
3526         Fixes test cond10.test.  For PR automake/164.
3527         * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test.
3528
3529 2001-05-05  Raja R Harinath  <harinath@cs.umn.edu>
3530
3531         For PR automake/164:
3532         * tests/Makefile.am (TESTS): Added new file.
3533         (XFAIL_TESTS): Likewise.
3534         * tests/cond10.test: New file.
3535
3536 2001-05-05  Tom Tromey  <tromey@redhat.com>
3537
3538         * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
3539         prints to stderr.
3540         (install-info-am): Likewise.
3541
3542 2001-05-05  Pavel Roskin <proski@gnu.org>
3543
3544         * automake.in (scan_texinfo_file): Don't push undefined values
3545         to @clean_suffixes.
3546
3547 2001-05-05  Richard Boulton  <richard@tartarus.org>
3548
3549         * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
3550         first.
3551
3552 2001-05-05  Robert Collins  <robert.collins@itdomain.com.au>
3553
3554         * automake.in (required_targets): Added uninstall-am.
3555
3556 2001-05-05  Tom Tromey  <tromey@redhat.com>
3557
3558         Fix bug reported by Robert Boehne:
3559         * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
3560         substituted.
3561         (handle_dependencies): Likewise.
3562         * Makefile.am (maintainer-check): Look for AMDEP_TRUE
3563         substitution.  Correct diff now has 30 lines.  Look for space
3564         after losing `undef'.
3565
3566 2001-05-04  Peter Eisentraut  <peter_e@gmx.net>
3567
3568         * m4/sanity.m4: Remove the temp file before possible error exits.
3569
3570 2001-05-04  Akim Demaille  <akim@epita.fr>
3571
3572         * configure.in: Set perllibdir.
3573         From Dave Morrison.
3574
3575 2001-05-04  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3576
3577         * automake.in ($pkgdata_dir): New.
3578         (&require_file_internal): Use it.
3579
3580 2001-05-03  Akim Demaille  <akim@epita.fr>
3581
3582         Case insensitive FS choke on Automake/ vs automake.
3583         Reported by Tim Van Holder.
3584
3585         * Automake/: Move into...
3586         * lib/: this new directory.
3587
3588 2001-05-03  Raja R Harinath  <harinath@cs.umn.edu>
3589
3590         * data.am (install-%DIR%%PRIMARY%): Execute the same command as
3591         echoed.
3592
3593 2001-04-30  Jim Meyering  <meyering@lucent.com>
3594
3595         * automake.in: Remove `/lib' from include directory.
3596
3597 2001-04-27  Akim Demaille  <akim@epita.fr>
3598
3599         AM_INIT_AUTOMAKE is no longer optional.
3600
3601         * automake.in ($seen_make_set, $seen_prog_install)
3602         ($seen_arg_prog): Remove.
3603         (&handle_programs, &handle_scripts, &scan_one_autoconf_file):
3604         Remove related code.
3605
3606 2001-04-27  Akim Demaille  <akim@epita.fr>
3607
3608         * tests/specflags4.test, tests/specflags5.test: Remove, merged
3609         into...
3610         * tests/specflags3.test: here.
3611
3612 2001-04-27  Akim Demaille  <akim@epita.fr>
3613
3614         * automake.in ($seen_path_xtra): Remove.
3615         (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
3616         (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
3617
3618 2001-04-27  Akim Demaille  <akim@epita.fr>
3619
3620         * automake.in (&file_contents_internal): Declare it.
3621
3622 2001-04-27  Akim Demaille  <akim@epita.fr>
3623
3624         * automake.in (&read_am_file, &file_contents_internal): Don't
3625         define macros when `FALSE', to avoid errors on doubly defined
3626         variables but under condition `FALSE'.  In order to allow...
3627         (&am_install_var): When reading the associated file for the first
3628         time, enable `%?FIRST%'.
3629         (&handle_libraries): Let libs.am define $(AR) and $(RANLIB).
3630         * libs.am: Do it when `%?FIRST%'.
3631
3632 2001-04-27  Akim Demaille  <akim@epita.fr>
3633
3634         * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
3635         * ansi2knr.am: Do it.
3636         Prefer `if %?FOO%' to `if %!FOO%'.
3637
3638 2001-04-27  Akim Demaille  <akim@epita.fr>
3639
3640         * automake.in (&register_language, &finish_languages): Use `pure'
3641         as a Boolean.
3642         (&register_language): Use %done properly with objects, not names.
3643         (&finish_languages): Replace `$non_c' with `$needs_c'.
3644
3645 2001-04-27  Akim Demaille  <akim@epita.fr>
3646
3647         Unify LISP, PYTHON and JAVA primaries.
3648
3649         * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e.,
3650         return if there are no files, hook elisp-comp on the Autoconf
3651         macro, rely on lisp.am to define variables.
3652         (&handle_python, &handle_java): Likewise.
3653         (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and
3654         `PYTHON' must be handled here, not in `&handle_python'.
3655         * java.am: Define needed variables and rules.
3656
3657 2001-04-27  Akim Demaille  <akim@epita.fr>
3658
3659         * automake.in (&am_install_var): Transform `ONE_PRIMARY'.
3660         * data.am: Use it.
3661         * header.am: Include data.am.
3662
3663 2001-04-27  Akim Demaille  <akim@epita.fr>
3664
3665         * automake.in (&am_install_var): Transform `PRIMARY'.
3666         * data.am: Equip with %PRIMARY%.
3667
3668 2001-04-27  Akim Demaille  <akim@epita.fr>
3669
3670         * automake.in (@conditional_stack): Rename as...
3671         (@cond_stack): this.
3672         (&file_contents_internal): Support inclusion of files.
3673
3674 2001-04-27  Akim Demaille  <akim@epita.fr>
3675
3676         * automake.in (&lang_extensions): Remove.
3677         (&add_depend2, &saw_sources_p): Adjust.
3678         * depend2.am: `%EXT%' no longer includes the dot.
3679
3680 2001-04-27  Akim Demaille  <akim@epita.fr>
3681
3682         * automake.in (&finish_languages, &handle_single_transform_list)
3683         (&add_depend2, &handle_dependencies): No longer use the language
3684         name in `$lang'.  Rename `$lang_obj' as `$lang'.
3685
3686 2001-04-27  Akim Demaille  <akim@epita.fr>
3687
3688         * automake.in (&register_language): Use `new Language' with a hash.
3689
3690 2001-04-27  Akim Demaille  <akim@epita.fr>
3691
3692         * automake.in (&register_language): Rename `output-arg' and
3693         `derived-autodep' as `output_arg' and `derived_autodep' to match
3694         the Language attribute.
3695         Set the defaults in %option instead of $lang.
3696
3697 2001-04-27  Akim Demaille  <akim@epita.fr>
3698
3699         * Automake/: New directory.
3700         * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct.
3701         * automake.in (Language): Use Automake::Struct.
3702         * tests/defs: Adjust to find Struct.
3703
3704 2001-04-23  Pavel Roskin <proski@gnu.org>
3705
3706         * automake.in: Add forward declaration for register_language().
3707         * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
3708         passes now.
3709
3710 2001-04-20  Akim Demaille  <akim@epita.fr>
3711
3712         * automake.in (%required_targets): Add `uninstall'.
3713         From Robert Collins.
3714
3715 2001-04-12  Akim Demaille  <akim@epita.fr>
3716
3717         * automake.in (Language): Add attribute `name'.
3718         (&register_language): The name of the language is now given in the
3719         hash.
3720         No longer use `$lang' as the name of the language.
3721         Rename `$lang_obj' as `$lang'.
3722
3723 2001-04-12  Akim Demaille  <akim@epita.fr>
3724
3725         * automake.in (Language): Add attribute `_finish'.
3726         (&finish): New.
3727         (Automake): Adjust.
3728         (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish)
3729         (&lang_asm_finish): Remove.
3730
3731 2001-04-12  Akim Demaille  <akim@epita.fr>
3732
3733         * automake.in (Language): Add attribute `extensions'.
3734         (Automake): Pass a hash to `&register_language' instead of a
3735         list of pseudo assignments.
3736         (&register_language): Adjust.
3737         (&finish_languages): Initialize `$ltoutarg'.
3738
3739 2001-04-12  Akim Demaille  <akim@epita.fr>
3740
3741         * automake.in (Language): Add attribute `output_arg'.
3742         (%language_map): Remove.
3743         (&register_language): Build only the object, and store in
3744         %languages only.
3745         (&finish_languages, &handle_single_transform_list): Adjust.
3746
3747 2001-04-12  Akim Demaille  <akim@epita.fr>
3748
3749         * automake.in (Language): Add attributes `flags', `compile' and
3750         `compiler'.
3751         (&finish_languages, &handle_single_transform_list, &handle_dist)
3752         (&add_depend2, &register_language): Use them and the `linker' and
3753         `pure' attributes.
3754
3755 2001-04-12  Akim Demaille  <akim@epita.fr>
3756
3757         * automake.in (&handle_single_transform_list, &finish_languages)
3758         (&handle_dist, &handle_dependencies): Use the language object for
3759         autodep and derived-autodep too.
3760
3761 2001-04-12  Akim Demaille  <akim@epita.fr>
3762
3763         * automake.in (&macro_define): Ignore Automake definition for
3764         ($var, $cond) if there is already a user definition for ($var, $cond).
3765
3766 2001-04-12  Akim Demaille  <akim@epita.fr>
3767
3768         * automake.in (&scan_texinfo_file): Catch @cindex and the like,
3769         but also @deffn and so on which push data in indexes.
3770         Reported by Derek R. Price.
3771
3772 2001-04-12  Akim Demaille  <akim@epita.fr>
3773
3774         * automake.in (Language): New package, temporarily in this file.
3775         Use Class::Struct.
3776         (Automake): New package.
3777         (%languages): New.
3778         (&handle_single_transform_list): Use the language object's `ansi'
3779         attribute instead of `$language_map{"$lang-ansi-p"}'.
3780         (&register_language): Build and register the language too.
3781
3782 2001-04-11  Tom Tromey  <tromey@redhat.com>
3783
3784         Fixes report from Larry Jones:
3785         * automake.in (handle_dependencies): Add `@_am_quote@' where
3786         appropriate.
3787         * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make.
3788
3789 2001-04-11  Akim Demaille  <akim@epita.fr>
3790
3791         * depend2.am: Fix the `if' condition for Libtool.
3792         Reported by Robert Boehne.
3793
3794 2001-04-10  Robert Collins  <robert.collins@itdomain.com.au>
3795
3796         * tests/subobj5.test: New file.
3797
3798 2001-04-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3799
3800         * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make.
3801         * tests/Makefile.am (TESTS): Added make.test.
3802         * tests/make.test: New file.
3803
3804 2001-04-10  Tom Tromey  <tromey@redhat.com>
3805
3806         * tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
3807
3808 2001-04-10  Derek R. Price  <dprice@collab.net>
3809
3810         * tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
3811
3812 2001-04-10  Akim Demaille  <akim@epita.fr>
3813
3814         * distdir.am: Add a missing backslash.
3815
3816 2001-04-10  Akim Demaille  <akim@epita.fr>
3817
3818         * automake.in (&scan_aclocal_m4): Handle $relative_dir and special
3819         variables.
3820         Specify to the caller whether $regen_aclocal_m4.
3821         (&handle_configure): Adjust.
3822         Transform `REGEN-ACLOCAL-M4'.
3823         Reported by Tom.
3824         * configure.am: Use it.
3825         * tests/defs (me): New.
3826         * tests/confdeps.test: New.
3827
3828 2001-04-09  Tom Tromey  <tromey@redhat.com>
3829
3830         * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
3831         Fixes report from Jim Meyering.
3832
3833 2001-04-09  Akim Demaille  <akim@epita.fr>
3834
3835         * automake.in (&handle_configure): Don't bother with optimizing
3836         macro uses.
3837
3838 2001-04-09  Akim Demaille  <akim@epita.fr>
3839
3840         * tests/cond3.test (expected): Adjust.
3841
3842 2001-04-09  Akim Demaille  <akim@epita.fr>
3843
3844         * automake.in (&handle_single_transform_list): Remove $xbase,
3845         unused.
3846         (&handle_source_transform): All the variables have conditions now,
3847         simplify.
3848         (&variable_delete): Admit an argument @conds.
3849
3850 2001-04-09  Akim Demaille  <akim@epita.fr>
3851
3852         * automake.in ($source_suffix_pattern): Remove, unused.
3853         %extension_map seems to have replaced it.
3854
3855 2001-04-09  Akim Demaille  <akim@epita.fr>
3856
3857         * ext-compile.am: New file.
3858         * automake.in (&finish_languages): Output it.
3859         Require a C linker if there are several registered source suffixes.
3860         (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
3861         extensions, which are discovered in ext-compile.am.
3862         With the help from Robert Boehne.
3863
3864 2001-04-09  Akim Demaille  <akim@epita.fr>
3865
3866         * automake.in (&handle_compile): Extract from...
3867         (&get_object_extension): here.
3868         (&read_am_file): Call it.
3869         ($included_generic_compile, $included_knr_compile)
3870         ($included_libtool_compile): Remove.
3871         ($get_object_extension_was_run): New.
3872
3873 2001-04-09  Akim Demaille  <akim@epita.fr>
3874
3875         Use AM_CONDITIONAL and if/endif for AMDEP.
3876
3877         * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
3878         * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
3879         to a configure time if/endif), or to `FALSE' (static removal of
3880         the code).
3881         (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
3882         * depend2.am: Use if/endif.
3883
3884         Adjust the 101 tests that use dependencies so that they
3885         properly invoke aclocal before automake.  They need to `see'
3886         `AM_CONDITIONAL([AMDEP], ...)'.
3887
3888 2001-04-09  Akim Demaille  <akim@epita.fr>
3889
3890         * tags.am: Fix missing leading tabs.
3891
3892 2001-04-09  Akim Demaille  <akim@epita.fr>
3893
3894         * automake.in: Use simple quotes to define the _PATTERN variables
3895         to unobfuscate the regexps.
3896         ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
3897
3898 2001-04-09  Akim Demaille  <akim@epita.fr>
3899
3900         * automake.in (&rule_define): When you discover a suffix rules,
3901         register the extensions for .SUFFIXES.
3902         (&handle_texinfo): Don't register the suffixes.
3903         (&get_object_extension): Don't register suffixes, let them be
3904         discovered in depend2.am.
3905         (&handle_emacs_lisp): Depend on your lisp.am.
3906         * lisp.am: Include the rule &handle_emacs_lisp used to output.
3907
3908 2001-04-09  Akim Demaille  <akim@epita.fr>
3909
3910         * subdirs.am: Don't define info related recursive targets.
3911         * texinfos.am: Do.
3912
3913 2001-04-09  Akim Demaille  <akim@epita.fr>
3914
3915         * subdirs.am (RECURSIVE_TARGETS): New variable.
3916         Use it.
3917         * automake.in (&handle_subdirs): Output it.
3918         (&file_contents_internal): Support value spread on several lines.
3919
3920 2001-04-09  Akim Demaille  <akim@epita.fr>
3921
3922         * automake.in (&handle_man_pages): Rely on mans.am to define
3923         man%SECTION%dir and MANS.
3924         * mans.am: Do it.
3925
3926 2001-04-09  Akim Demaille  <akim@epita.fr>
3927
3928         * automake.in (&variable_dump): Use %var_type properly.
3929         (&macro_define): Enforce better overriding rules.
3930         Handle the special case that used to handle...
3931         (&define_pretty_variable): this.
3932         Hence, don't.
3933         The variables you define are owned by Automake.
3934         (&generate_makefile): PRE_INSTALL and co must not be defined *by
3935         the user*.
3936         (&variable_defined): Now independent of the owner.
3937         (&variable_output, &variable_pretty_output): Adjust to %var_type.
3938
3939 2001-04-09  Akim Demaille  <akim@epita.fr>
3940
3941         * automake.in (%var_was_plus_eq): Rename as...
3942         (%var_type): this.
3943         (%def_type): Remove.
3944         (&macro_define): %var_type may now hold `', `+', or `:'.
3945         (%conditional, %am_vars, %content_lines): Rename as...
3946         (%var_value, %var_comment, %var_line): these.
3947
3948 2001-04-09  Akim Demaille  <akim@epita.fr>
3949
3950         * automake.in (&variable_output): Admit a list of @CONDS.
3951         (&variable_pretty_output): New.
3952         (&define_pretty_variable): Use it.
3953         (&read_am_file, &file_contents_internal): Prepend a separator to
3954         $am_vars only if there is none yet.
3955         (&file_contents_internal): Rename $separator as $spacing to
3956         harmonize with &read_am_file.
3957
3958 2001-04-09  Akim Demaille  <akim@epita.fr>
3959
3960         * automake.in (&am_install_var): Transform DIST, and let the *.am
3961         files handle DIST_COMMON.
3962         * data.am, header.am, java.am, list.am, python.am, script.am: Set
3963         DIST_COMMON.
3964
3965 2001-04-09  Akim Demaille  <akim@epita.fr>
3966
3967         * automake.in (%dist_common): Remove.
3968         (%configure_dist_common): Replace with...
3969         ($configure_dist_common): this.
3970         (&generate_makefile): Read the user file before using
3971         push_dist_common, as it sets DIST_COMMON, and read_am_file checks
3972         that no variable is defined before it is run.
3973         (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
3974         (&dist_cmp): Rename as...
3975         (&for_dist_common): this.
3976         (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
3977         it.
3978         Adjust to $configure_dist_common.
3979         * configure.am, texi-vers.am: Set DIST_COMMON.
3980
3981 2001-04-09  Akim Demaille  <akim@epita.fr>
3982
3983         * automake.in (&handle_aclocal_m4): Rename as...
3984         (&scan_aclocal_m4): this.
3985         Return the list of aclocal.m4 dependencies.
3986         (&handle_configure): Invoke it, and use it when loading...
3987         * configure.am: Template the rules to recreate aclocal.m4.
3988
3989 2001-04-09  Akim Demaille  <akim@epita.fr>
3990
3991         * automake.in (&get_object_extension): Use ansi2knr.am.
3992         * clean-kr.am, kr-extra.am: Remove, merged into...
3993         * ansi2knr.am: this new file.
3994
3995 2001-04-09  Akim Demaille  <akim@epita.fr>
3996
3997         * automake.in (&transform): Fix an incredible bug which was
3998         breaking the if/endif system.
3999         ($ELSE_PATTERN): Admit an optional argument.
4000
4001 2001-04-09  Akim Demaille  <akim@epita.fr>
4002
4003         * comp-vars.am: Remove, merged into...
4004         * compile.am: here.
4005         * automake.in (&get_object_extension): Adjust.
4006
4007 2001-04-09  Akim Demaille  <akim@epita.fr>
4008
4009         * remake.am: Merge into...
4010         * configure.am: ... here.
4011         * automake.in (&handle_configure): Adjust.
4012
4013 2001-04-09  Akim Demaille  <akim@epita.fr>
4014
4015         * automake.in (&output_lex_build_rule): Output this...
4016         * lex.am: New file.
4017
4018 2001-04-09  Akim Demaille  <akim@epita.fr>
4019
4020         * automake.in (&condition_negate): New.
4021         (&variable_conditions_permutations): Use it.
4022         (&read_am_file, &file_contents): Use it on `else' clauses to
4023         support `if FALSE'.
4024         (&output_yacc_build_rule): Output this...
4025         * yacc.am: New file.
4026
4027 2001-04-09  Akim Demaille  <akim@epita.fr>
4028
4029         * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
4030         (&handle_dist): Don't.
4031         (&handle_clean): Don't handle config.status here, let...
4032         * clean.am: ... do it.
4033         * distdir.am: Adjust.
4034
4035 2001-04-09  Akim Demaille  <akim@epita.fr>
4036
4037         * automake.in: Use strict vars and subs.
4038         Declare `%require_file_found'.
4039         (&handle_source_transform, &make_paragraphs): Declare my variables.
4040
4041 2001-04-09  Akim Demaille  <akim@epita.fr>
4042
4043         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
4044         * progs.am, python.am: Use if/endif instead of ?INSTALL?.
4045         * java.am (_am_installdirs): Be sure to set it.
4046
4047 2001-04-09  Akim Demaille  <akim@epita.fr>
4048
4049         * automake.in (&make_condition): Return '#' when FALSE.
4050         (&conditional_string): Return FALSE, not '#' in the corresponding
4051         cases.
4052         (&file_contents_internal): Adjust.
4053         (&check_variable_defined_unconditional): Dump the guilty variable.
4054
4055 2001-04-09  Akim Demaille  <akim@epita.fr>
4056
4057         * distdir.am: Use and abuse of if/endif.
4058         * scripts.am: Using if/endif with variables is fine.
4059
4060 2001-04-09  Akim Demaille  <akim@epita.fr>
4061
4062         * automake.in (&make_paragraphs):  Extract from &file_contents.
4063         Make it more robust than the previous RE based scheme.
4064         (&file_contents): Use it.
4065
4066 2001-04-09  Akim Demaille  <akim@epita.fr>
4067
4068         * automake.in (&make_paragraphs):  Extract from &file_contents.
4069         Make it more robust than the previous RE based scheme.
4070         (&file_contents): Use it.
4071
4072 2001-04-09  Akim Demaille  <akim@epita.fr>
4073
4074         * tests/yacc2.test: Don't define several times a variable, as
4075         automake complains.
4076
4077 2001-04-09  Akim Demaille  <akim@epita.fr>
4078
4079         * automake.in (&handle_source_transform): Fix pr72: don't define
4080         $linker if there are no @files.
4081
4082 2001-04-09  Akim Demaille  <akim@epita.fr>
4083
4084         Avoid reading twice header-vars.am as now macro_define
4085         complains.
4086
4087         * automake.in (&define_standard_variables): Don't output the
4088         variables.
4089         (&read_main_am_file): Output first user variables, then Automake
4090         variables.
4091         Don't call twice &define_standard_variables.
4092         Save variable comments in $am_vars.
4093         (&variable_output): New.
4094         (&file_contents_internal): New.
4095         Save variable comments in $am_vars.
4096         (&file_contents): Use it.
4097
4098 2001-04-09  Akim Demaille  <akim@epita.fr>
4099
4100         * automake.in (&macro_define): The user is allowed to override
4101         a value if it was set by Automake, or if it was found in AC_SUBST.
4102
4103 2001-04-09  Akim Demaille  <akim@epita.fr>
4104
4105         * automake.in (&handle_source_transform): Better locality of the
4106         variables.
4107         Use `next' to skip nonexistent variables.
4108
4109 2001-04-09  Akim Demaille  <akim@epita.fr>
4110
4111         * automake.in (&variable_dump): If a variable is undefined, say
4112         it.
4113         (&check_ambiguous_conditional): Give finer error messages.
4114         (&macro_define): Check that a `+=' variable is not set with `='.
4115         Check for ambiguous definitions each time you _set_ (even with `+=')
4116         a variable.
4117         (&read_main_am_file): Perform a deep copy of %conditional.
4118
4119 2001-04-09  Akim Demaille  <akim@epita.fr>
4120
4121         * automake.in (&variable_defined): Some callers, e.g.,
4122         &am_primary_prefixes, really want to know if the variable is
4123         defined for any condition, not `TRUE' by default.
4124         (&am_primary_prefixes): Give a more precise error message.
4125
4126 2001-04-09  Akim Demaille  <akim@epita.fr>
4127
4128         (&variable_conditions): Don't include `FALSE' in the result.
4129
4130 2001-04-09  Akim Demaille  <akim@epita.fr>
4131
4132         * automake.in (&variable_conditions_reduce): FALSE is absorbent.
4133         (&variable_conditions): Don't include `FALSE' in the result.
4134
4135 2001-04-09  Akim Demaille  <akim@epita.fr>
4136
4137         * tests/defs, tests/depend3.test: Remove useless code.
4138
4139 2001-04-09  Akim Demaille  <akim@epita.fr>
4140
4141         * automake.in (&handle_source_transform):  Use
4142         &variable_conditions, don't read $conditional{$var}.
4143         (&variable_conditions_sub): When the call is the top level call,
4144         generate all the permutations of the conditions.
4145
4146 2001-04-09  Akim Demaille  <akim@epita.fr>
4147
4148         * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
4149         that it does not get noticed twice by automake, which now
4150         complains for multiple definitions.
4151         * tests/vartar.test: s/INSTALL/install/g, automake now complains
4152         because we defined INSTALL.
4153
4154 2001-04-09  Akim Demaille  <akim@epita.fr>
4155
4156         * automake.in (&generate_makefile) Use macro_define to define
4157         SOURCES and OBJECTS.
4158         (&variable_defined): Don't check for $conditional{VAR}{COND} as
4159         this would make perl create $condition{VAR}, which we don't want.
4160
4161 2001-04-09  Akim Demaille  <akim@epita.fr>
4162
4163         * automake.in (&variable_defined, &define_pretty_variable):
4164         Simplify code which used to handle the cases where not all
4165         variables were in %conditional.
4166         (&define_variable): Use &define_pretty_variable.
4167         (&variable_conditions_sub, &variable_value_as_list_worker)
4168         (&variable_value_as_list, &rule_define): Simplify syntax.
4169         (&read_main_am_file): Dump the guilty predefined variables.
4170
4171 2001-04-09  Akim Demaille  <akim@epita.fr>
4172
4173         * automake.in (&variable_conditions_sub)
4174         (&variable_value_as_list_worker): Remove dead code which used to
4175         handle the cases where not all variables were in %conditional.
4176
4177 2001-04-09  Akim Demaille  <akim@epita.fr>
4178
4179         * automake.in (&handle_source_transform, &read_main_am_file):
4180         Simplify loops which were split in two parts, conditional vs
4181         unconditional variables.
4182
4183 2001-04-09  Akim Demaille  <akim@epita.fr>
4184
4185         Handle unconditional values of variables as conditioned by
4186         `TRUE'.
4187
4188         * automake.in (%contents): Remove.
4189         (&generate_makefile, &handle_ltlibraries, &macro_define)
4190         (&read_am_file, &variable_defined, &variable_conditions_sub)
4191         (&variable_value, &variable_value_as_list_worker)
4192         (&variable_value_as_list, &define_pretty_variable)
4193         (&read_main_am_file): Use
4194         $conditional, not %contents.
4195         (&variable_conditions_permutations): Don't return TRUE and FALSE.
4196         (&variable_conditionally_defined): New.
4197         (&handle_dist): Use it.
4198         (&check_ambiguous_conditional): When multiply defined, specify
4199         under which condition.
4200         (&macro_define): Use it.
4201         (&variable_delete): New.
4202         (&read_am_file): Use it.
4203         (&am_install_var): Simplify, as all the variables are in
4204         %conditional now.
4205
4206 2001-04-07  Tom Tromey  <tromey@redhat.com>
4207
4208         * tests/Makefile.am (XFAIL_TESTS): Added man.test.
4209         (TESTS): Likewise.
4210         * tests/man.test: New file.
4211
4212 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
4213
4214         * depcomp (gcc3): Invert test condition.
4215
4216 2001-04-07  Tom Tromey  <tromey@redhat.com>
4217
4218         * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
4219         statement.  Report from Larry Jones.
4220
4221 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
4222
4223         * depcomp (sgi): Fix sed expression.  Report from Robert Boehne.
4224
4225 2001-04-01  Tom Tromey  <tromey@redhat.com>
4226
4227         * java.am (.PHONY clean-am): Removed trailing ":".
4228         From Per Bothner.  Fixes PR automake/139.
4229
4230 2001-03-28  Akim Demaille  <akim@epita.fr>
4231
4232         * program.am: Fix a stupid typo: now *all* (not none) the programs
4233         use `$(EXEEXT)'.
4234         Reported by Robert Boehne.
4235
4236 2001-03-23  Akim Demaille  <akim@epita.fr>
4237
4238         * automake.in (&read_am_file, &file_contents): Avoid name clashes
4239         on $cond.
4240
4241 2001-03-23  Akim Demaille  <akim@epita.fr>
4242
4243         * automake.in (&variable_conditionally_defined): Rename as...
4244         (&check_variable_unconditionally_defined): this.
4245         (&variable_dump): Fix the output.
4246         (&variable_defined, &macro_define): Since conditions are
4247         canonicalized, don't use a loop to look for a condition: read the
4248         hash.
4249         (&macro_define, &rule_define, &read_am_file, &file_contents):
4250         Rename $cond_string as $cond.
4251         * distdir.am (PACKAGE, VERSION): Remove; since they are already
4252         discovered via AC_SUBST, they now trigger a `defined twice' error.
4253
4254 2001-03-23  Akim Demaille  <akim@epita.fr>
4255
4256         * automake.in (&handle_footer, &handle_installdirs)
4257         (&read_main_am_file): Don't read %contents directly, use
4258         &variable_value.
4259
4260 2001-03-23  Akim Demaille  <akim@epita.fr>
4261
4262         * automake.in (&read_am_file): Define the variables in a single
4263         shot.
4264         Factor the $saw_bk code.
4265
4266 2001-03-23  Akim Demaille  <akim@epita.fr>
4267
4268         * automake.in (&read_am_file): Keep $cond_string up to date.
4269
4270 2001-03-23  Akim Demaille  <akim@epita.fr>
4271
4272         * automake.in (&define_variable): Use &macro_define.
4273
4274 2001-03-23  Akim Demaille  <akim@epita.fr>
4275
4276         * automake.in (&macro_define): Don't lose the location if we
4277         redefine a variable.
4278         Don't push all the variables in @var_list, let...
4279         (&read_am_file, &file_contents): ... do it.
4280         (&define_pretty_variable): Use macro_define.
4281         (&am_install_var): Delete the value of variables being redefined
4282         to pacify &macro_define which checks that variables are not
4283         doubly defined.
4284
4285 2001-03-23  Akim Demaille  <akim@epita.fr>
4286
4287         * automake.in (&conditional_dump): Rename as...
4288         (&variables_dump): this.  Use...
4289         (&variable_dump): this new sub.
4290
4291 2001-03-23  Akim Demaille  <akim@epita.fr>
4292
4293         * automake.in (&file_contents): Maintain $cond_string sync with
4294         @cond_stack.
4295         Output rules only if not under `FALSE'.
4296         Define variables under $cond_string.
4297         * scripts.am: For the time being if/endif does not work properly
4298         with macros.
4299
4300 2001-03-23  Akim Demaille  <akim@epita.fr>
4301
4302         * automake.in (IF_PATTERN): Unobfuscate the parens.
4303         (ENDIF_PATTERN): Allow a condition to be specified.
4304         (&file_contents): Use a @cond_stack.
4305         (&transform): At least for an easy transition, also transform
4306         %?FOO% and %!FOO%, as suggested by Lars.
4307         * scripts.am: First test bed for static if/endif use.
4308
4309 2001-03-23  Akim Demaille  <akim@epita.fr>
4310
4311         * automake.in (&file_contents): Use rule_define.
4312
4313 2001-03-23  Akim Demaille  <akim@epita.fr>
4314
4315         * automake.in (&macro_define): Don't rely on $1.
4316         Initialize the variable.
4317         Set its Automakism only if not defined or if given to the user.
4318         When concatenating values, insert a separator only if the value
4319         was not empty.
4320         (&read_am_file): When dumping the @var_list, skip Automake
4321         variables.
4322         (&file_contents): Use macro_define.
4323
4324 2001-03-23  Akim Demaille  <akim@epita.fr>
4325
4326         * automake.in (&rule_define): Extract from...
4327         (&read_am_file): here.
4328
4329 2001-03-23  Akim Demaille  <akim@epita.fr>
4330
4331         * automake.in (&macro_define, &read_am_file): More work for the
4332         former from the latter.  Reorganize the latter.
4333
4334 2001-03-23  Akim Demaille  <akim@epita.fr>
4335
4336         * automake.in (&macro_define): Extract from...
4337         (&read_am_file): here.
4338
4339 2001-03-23  Akim Demaille  <akim@epita.fr>
4340
4341         * automake.in (%am_var_defs): Replace with...
4342         (%var_is_am): this.
4343         (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
4344         (&file_contents, am_primary_&prefixes): Adjust.
4345         (&variable_defined, &define_variable): The actual semantics is
4346         `user defined'.
4347         (&read_main_am_file): Assert the var is user defined when
4348         outputting @var_list.
4349
4350 2001-03-23  Akim Demaille  <akim@epita.fr>
4351
4352         * automake.in (read_am_file): TRUE and FALSE are predefined
4353         conditionals.
4354         (&by_condition): Adjust.
4355         (&conditional_string): Recognize `TRUE' and `FALSE'.
4356         (&make_condition): Use it.
4357         * m4/cond.m4: Reject TRUE and FALSE as conditionals.
4358         * automake.texi (Conditionals): Adjust.
4359         * tests/cond9.test: s/FALSE/WRONG/.
4360
4361 2001-03-12  Pavel Roskin  <proski@gnu.org>
4362
4363         * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
4364         now.
4365
4366 2001-03-12  Akim Demaille  <akim@epita.fr>
4367
4368         * automake.in (&variable_conditions_permutations): Separate the
4369         conditions.
4370         * tests/cond3.test: Improve the sed expression.
4371
4372 2001-03-09  Pavel Roskin  <proski@gnu.org>
4373
4374         * Makefile.am (maintainer-check): Scan all *.am files and tests
4375         for invocations of `rm' without `-f'.
4376         * tests/mclean.test: Adjusted to prevent triggering the above
4377         test.
4378
4379 2001-03-09  Tom Tromey  <tromey@redhat.com>
4380
4381         * automake.in (scan_one_autoconf_file): Fixed comment to avoid
4382         maintainer-check failure.
4383
4384 2001-03-09  Akim Demaille  <akim@epita.fr>
4385
4386         * tests/cond3.test: Strengthen.
4387
4388 2001-03-09  Akim Demaille  <akim@epita.fr>
4389
4390         * automake.in (&conditional_string): Produce a unique string
4391         characterizing a condition stack.
4392         (&conditional_same): Remove, comparing two strings is now enough.
4393         (&variable_defined): Adjust.
4394         (&read_am_file): Use conditional_string.
4395
4396 2001-03-08  Akim Demaille  <akim@epita.fr>
4397
4398         * automake.in: Use -w.
4399         Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
4400         (&parse_arguments): Support --Werror and --Wno-error as a
4401         temporary hack until --warning/-W is properly implemented.
4402         (&handle_single_transform_list): Prototype.
4403         Be sure to define $directory.
4404         Use `exists' instead of testing the value of a maybe undefined
4405         hash value.
4406         (&add_depend2, &handle_configure, &handle_footer, &file_contents)
4407         (&handle_factored_dependencies): Use defined values.
4408         (&scan_one_autoconf_file): Save $_.
4409         * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
4410         Run automake with --Wno-error.
4411
4412 2001-03-07  Akim Demaille  <akim@epita.fr>
4413
4414         * automake.in (&handle_all): Use an array instead of a scalar for
4415         local_headers.
4416         Get rid of all-redirect: let `all' be that target.
4417
4418 2001-03-07  Akim Demaille  <akim@epita.fr>
4419
4420         * automake.in (&handle_merge_targets): Ventilate its non `all'
4421         related content into...
4422         (&generate_makefile): here.
4423         (&handle_merge_targets): Rename as...
4424         (&handle_all): this.
4425         Remove a useless `if': `@all' is obviously not empty, since it
4426         contains at least the `basename ($makefile)' which has just been
4427         unshifted.
4428
4429 2001-03-07  Akim Demaille  <akim@epita.fr>
4430
4431         * automake.in, aclocal.in: Backquote is inert in double quotes.
4432
4433 2001-03-06  Akim Demaille  <akim@epita.fr>
4434
4435         * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
4436         into `grep -v ...'.
4437
4438 2001-03-06  Pavel Roskin  <proski@gnu.org>
4439
4440         * java.am: Use `rm -f' instead of `rm'.
4441
4442 2001-03-06  Akim Demaille  <akim@epita.fr>
4443
4444         * automake.in (&push_dist_common): Simplify.
4445
4446 2001-03-06  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
4447
4448         * ltlib.am: Replaced spaces with tab.
4449
4450 2001-03-06  Pavel Roskin  <proski@gnu.org>
4451
4452         * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
4453         fixed now.
4454
4455 2001-03-05  Pavel Roskin  <proski@gnu.org>
4456
4457         * header.am, scripts.am: Use ?INSTALL? in the install and
4458         uninstall rules.
4459
4460 2001-03-05  Pavel Roskin  <proski@gnu.org>
4461
4462         * tests/copy.test: Never use `rm' without `-f' - it may ask
4463         questions, notably for read-only files during `make distcheck'.
4464         * tests/insh.test: Likewise.
4465         * tests/installsh.test: Likewise.
4466         * tests/symlink.test: Likewise.
4467         * tests/symlink2.test: Likewise.
4468         * tests/symlink3.test: Likewise.
4469
4470 2001-03-05  Pavel Roskin  <proski@gnu.org>
4471
4472         * noinstdir.test: New test.
4473         * tests/Makefile.am (TESTS): Add noinstdir.test.
4474         (XFAIL_TESTS): Likewise.
4475
4476 2001-03-05  Akim Demaille  <akim@epita.fr>
4477
4478         * automake.in (&handle_options): Change the RE so that the third
4479         part of the versions always exist.
4480         (&file_contents): Don't pass uninitialized values to &transform.
4481
4482 2001-03-05  Akim Demaille  <akim@epita.fr>
4483
4484         * automake.in (&file_contents): Require a hash as second argument.
4485         Adjust callers.
4486
4487 2001-03-05  Akim Demaille  <akim@epita.fr>
4488
4489         Always use hashes with &file_contents.
4490
4491         * automake.in (&handle_texinfo): texibuild.am does not need
4492         TEXINFODIR.
4493         texinfos.am wants only TEXICLEANS.
4494         (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
4495         %transform.
4496         * texinfos.am: Adjust.
4497
4498 2001-03-05  Akim Demaille  <akim@epita.fr>
4499
4500         * automake.in (&handle_programs, &handle_libraries, &handle_tags)
4501         (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
4502         (&am_install_var): Forget about `-clean'.
4503         Transform ?INSTALL?.
4504         Always output the *.am file.
4505         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
4506         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
4507         Remove, merged into the corresponding *.am file.
4508         * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
4509         ?INSTALL?.
4510
4511 2001-03-05  Pavel Roskin  <proski@gnu.org>
4512
4513         * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
4514
4515 2001-03-05  Akim Demaille  <akim@epita.fr>
4516
4517         If OBJEXT and EXEEXT are not set, provide a default value, and use
4518         them unconditionally.
4519
4520         * automake.in (&generate_makefile): Provide default values for
4521         EXEEXT and OBJEXT.
4522         (&get_object_extension, &finish_languages)
4523         (&handle_single_transform_list, &handle_programs, &add_depend2)
4524         (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
4525         them, they are defined.
4526         * compile.am, depend2.am, program.am, progs.am: Likewise.
4527         * remake-hdr.am: Fix a typo.
4528         * tests/cxxo.test, tests/fo.test, tests/implicit.test,
4529         * tests/interp.test, tests/subobj.test, tests/subobj2.test,
4530         * tests/suffix2.test: Adjust.
4531
4532 2001-03-05  Akim Demaille  <akim@epita.fr>
4533
4534         * automake.in (&file_contents): Map MAINTAINER-MODE to
4535         @MAINTAINER_MODE_TRUE@ or nothing.
4536         * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
4537         Suggested by Tom.
4538
4539 2001-03-05  Akim Demaille  <akim@epita.fr>
4540
4541         * automake.in (&do_one_merge_target): Remove, was only called from...
4542         (&handle_merge_targets): here for `all'.
4543         Adjust.
4544
4545 2001-03-05  Akim Demaille  <akim@epita.fr>
4546
4547         Make the installation/uninstallation of Info pages follow the
4548         regular am/recursive scheme.
4549
4550         * automake.in (%required_targets, %dependencies): Add
4551         install-info.
4552         (%dependencies): Add install-info, install-info-am, and
4553         unstall-info.
4554         (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
4555         reversed BTW.  Does anybody use the option `no-installinfo'?
4556         (&handle_merge_targets): Let the handling of info related targets
4557         to...
4558         (&handle_factored_dependencies): this.
4559         * subdirs.am: Use ?INSTALL-INFO?.
4560         * texinfos.am: Define the install-info, uninstall-info and
4561         uninstall-info-am targets.
4562
4563 2001-03-05  Akim Demaille  <akim@epita.fr>
4564
4565         * automake.in (%required_targets, %dependencies): Add dvi, info,
4566         dvi-am, info-am.
4567         (@info, @dvi): Remove.
4568         (&handle_texinfo, &handle_merge_targets): Adjust.
4569         (&handle_factored_dependencies): Required targets are phony.
4570         * texinfos.am: Build info, dvi, and the corresponding -am or
4571         -recursive targets.
4572
4573 2001-03-05  Akim Demaille  <akim@epita.fr>
4574
4575         * automake.in (&am_install_var): Remove $cygxform, unused.
4576
4577 2001-03-05  Akim Demaille  <akim@epita.fr>
4578
4579         * automake.in (&file_contents): Transform LIBTOOL.
4580         (&am_install_var): Remove $ltxform.
4581         * ltlib.am, progs.am: Adjust.
4582
4583 2001-03-05  Akim Demaille  <akim@epita.fr>
4584
4585         * automake.in: Require AC_PROG_INSTALL in...
4586         (&scan_autoconf_files): here.
4587
4588 2001-03-05  Akim Demaille  <akim@epita.fr>
4589
4590         * configure.am: New file.
4591         * automake.in (&file_contents): Transform CONFIGURE-AC.
4592         (&handle_texinfo, &handle_configure): Don't transform
4593         CONFIGURE_AM.
4594         (&handle_configure): Use `configure.am'.
4595         * remake-hdr.am, remake.am, texi-vers.am: Adjust to
4596         MAINTAINER-MODE and CONFIGURE-AC.
4597
4598 2001-03-05  Akim Demaille  <akim@epita.fr>
4599
4600         * automake.in (&pretty_print_internal): Don't output useless
4601         spaces.
4602         (define_pretty_variable): Don't issue the space after the `=' sign
4603         to avoid trailing spaces in Makefile.ins.
4604
4605 2001-03-05  Akim Demaille  <akim@epita.fr>
4606
4607         * automake.in (&generate_makefile): Invoke &initialize_per_input
4608         *before* setting $am_file_name and $in_file_name.
4609
4610 2001-03-05  Akim Demaille  <akim@epita.fr>
4611
4612         * automake.in ($in_file_name, $am_file_name, $relative_dirs):
4613         Globals, initialized...
4614         (&initialize_per_input): here.
4615
4616 2001-03-05  Akim Demaille  <akim@epita.fr>
4617
4618         * automake.in ($am_relative_dir): Global.
4619         (&initialize_per_input): Init it.
4620         (%make_list, @make_input_list): My them from
4621         (&scan_autoconf_files): here.
4622         (&require_file_internal): Mying changes.
4623
4624 2001-03-05  Akim Demaille  <akim@epita.fr>
4625
4626         * automake.in (%am_vars, @var_list, %def_type): Globals.
4627         (&initialize_per_input): Initialize them.
4628         (&read_main_am_file): Don't local them.
4629         (&get_object_extension): $objext is private.
4630         (&handle_single_transform_list): $lang is.
4631         (&handle_ltlibraries): $libname_rx is.
4632         (&scan_autoconf_config_files): How about actually paying attention
4633         to your arguments, instead of working on $_? (this is no Perl
4634         variable, it's a Perl variable followed by a question mark).
4635         (&file_contents): $contents and $separator are private.
4636         (&am_install_var): Declare @condvals, not $condvals.
4637         (%make_dirs): My.
4638
4639 2001-03-05  Akim Demaille  <akim@epita.fr>
4640
4641         * automake.in (&initialize_per_input): Move to the top.
4642         Precede with the `my' list of its variables.
4643
4644 2001-03-05  Akim Demaille  <akim@epita.fr>
4645
4646         * automake.in ($am_file): Use vars.
4647         ($am_file_name, $in_file_name): Private to &generate_makefile.
4648
4649 2001-03-05  Akim Demaille  <akim@epita.fr>
4650
4651         * automake.in: Preparation for `use strict': Move the
4652         initialization of the constants to the top, from...
4653         (&initialize_global_constants): here.
4654
4655 2001-03-05  Akim Demaille  <akim@epita.fr>
4656
4657         * automake.in (&handle_single_transform_list, &add_depend2): Let
4658         $lang_specific_files{$lang} be a list instead of a string.
4659
4660 2001-03-05  Akim Demaille  <akim@epita.fr>
4661
4662         Let's make it run ten times faster...
4663
4664         * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
4665         transformations.
4666         (&file_contents): Let `$command' remove the Automake commands, and
4667         normalize the series of `\n'.
4668         Slurp the file and apply $command in a single step.
4669         No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
4670         is already normalized to be handled by &transform.
4671
4672 2001-03-05  Tom Tromey  <tromey@redhat.com>
4673
4674         * automake.in (register_language): Add entry for `-pure'.
4675         Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
4676         (finish_languages): Use `-pure' field of language map.
4677
4678 2001-03-03  Tom Tromey  <tromey@redhat.com>
4679
4680         * tests/yaccvpath.test: No need to remove dummy files.
4681         * tests/subobj3.test: No need to remove dummy files.
4682         * tests/pr9.test: No need to remove dummy files.
4683         * tests/pr87.test: No need to remove dummy files.
4684         * tests/pr19.test: No need to remove dummy files.
4685         * tests/install2.test: No need to remove dummy files.
4686         * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
4687         and depcomp.
4688
4689 2001-02-27  Pavel Roskin  <proski@gnu.org>
4690
4691         * tests/yaccvpath.test: Add a delay to make parse.c really out
4692         of date. Detect the problem earlier, after `make distdir'. Drop
4693         dependency on flex. Always use the `-y' flag for bison. Comment
4694         changes.
4695         * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
4696
4697 2001-03-02  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
4698
4699         * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
4700
4701 2001-02-28  Akim Demaille  <akim@epita.fr>
4702
4703         * automake.in (&add_depend2): Transform `GENERIC'.
4704         Get rid of the ad hoc transformation of `@EXT@.o:' which in
4705         addition was broken by the `@ -> %' patch.
4706         * depend2.am: Adjust to use ?GENERIC?.
4707
4708 2001-02-28  Akim Demaille  <akim@epita.fr>
4709
4710         * Makefile.am (maintainer-check): `undef $/' is OK.
4711
4712 2001-02-28  Akim Demaille  <akim@epita.fr>
4713
4714         * automake.in (&handle_configure): Fortunately, $top_reldir,
4715         the definition of which was highly suspicious, was unused.
4716
4717 2001-02-27  Akim Demaille  <akim@epita.fr>
4718
4719         * automake.in (%exec_dir_p): Move to the top so that it is visible
4720         to all routines.
4721
4722 2001-02-27  Pavel Roskin  <proski@gnu.org>
4723
4724         * tests/yaccvpath.test: Prevent automake from looking into ..
4725         and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
4726
4727 2001-02-27  Akim Demaille  <akim@epita.fr>
4728
4729         * automake.in (%exec_dir_p): Pulled out from...
4730         (&am_primary_prefixes): here.
4731
4732 2001-02-27  Akim Demaille  <akim@epita.fr>
4733
4734         * automake.in (&usage): Display $0, not $me.
4735
4736 2001-02-27  Akim Demaille  <akim@epita.fr>
4737
4738         * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
4739         * automake.in (&handle_clean): Don't escape what's given to
4740         &transform.
4741
4742 2001-02-27  Akim Demaille  <akim@epita.fr>
4743
4744         Distinguish automake substitutions from config.status
4745         substitutions.
4746
4747         * automake.in (&add_depend2): Transform AMDEP.
4748         (&handle_clean): Transform MCFILES and MFILES.
4749         (&file_contents): Transform MAINTAINER_MODE.
4750         (&transform, &am_install_var): Use `%', not `@'.
4751         Adjust all the *.am files.
4752         * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
4753         * depend2.am: Display the double dependency on both ?AMDEP? and
4754         @AMDEP@.
4755
4756 2001-02-27  Tom Tromey  <tromey@redhat.com>
4757
4758         * distdir.am (distcheck): Fixed new code.
4759
4760         * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
4761         Only configure once.
4762
4763         * distdir.am (distcheck): Print error message if distclean failed
4764         to fully clean.
4765
4766 2001-02-27  Pavel Roskin  <proski@gnu.org>
4767
4768         * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
4769
4770 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4771
4772         * tests/Makefile.am (TESTS): Added yaccvpath.test.
4773         * tests/yaccvpath.test: New file.
4774
4775 2001-02-26  Akim Demaille  <akim@epita.fr>
4776
4777         * automake.in (&am_install_var): Recognize whether predefined
4778         directories are `data' or `exec'.
4779         * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
4780         ?EXEC?.
4781         * tests/instdata2.test: Update.
4782
4783 2001-02-26  Akim Demaille  <akim@epita.fr>
4784
4785         * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
4786         necessarily in infodir.
4787
4788 2001-02-26  Akim Demaille  <akim@epita.fr>
4789
4790         * automake.in ($am_file): Be `local', as my'd variables used in
4791         `foreach' loops are always private to the loop.
4792
4793 2001-02-26  Pavel Roskin  <proski@gnu.org>
4794
4795         * Makefile.am: Add install.am.
4796
4797 2001-02-26  Akim Demaille  <akim@epita.fr>
4798
4799         * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
4800         routines, otherwise the elements to compare are passed in @_
4801         instead of $a and $b.
4802
4803 2001-02-26  Akim Demaille  <akim@epita.fr>
4804
4805         * automake.in (%required_targets): `installcheck-am' is needed.
4806
4807 2001-02-26  Akim Demaille  <akim@epita.fr>
4808
4809         * automake.in (&transform_cond): Merge into...
4810         (&transform): this.
4811         Adjust all uses.
4812
4813 2001-02-26  Akim Demaille  <akim@epita.fr>
4814
4815         * automake.in (&handle_dist): Use &transform instead of dedicated
4816         magic for DISTDIRS.
4817         But be sure to always do it.
4818         * distdir.am: Adjust.
4819
4820 2001-02-26  Akim Demaille  <akim@epita.fr>
4821
4822         * automake.in: Use File::Basename.
4823         (&dirname, &basename): Remove.
4824
4825 2001-02-26  Akim Demaille  <akim@epita.fr>
4826
4827         * automake.in ($me): New.
4828         Use it.
4829         (&usage): Display your full name.
4830
4831 2001-02-26  Akim Demaille  <akim@epita.fr>
4832
4833         * automake.texi (Invoking Automake): Remove dead options.
4834
4835 2001-02-26  Akim Demaille  <akim@epita.fr>
4836
4837         * automake.in (&scan_texinfo_file): Also compute the list of files
4838         to clean.
4839         Handle local errors.
4840         (&handle_texinfo): Use it.
4841
4842 2001-02-26  Akim Demaille  <akim@epita.fr>
4843
4844         * automake.in: Don't pass arguments to...
4845         (&parse_arguments): Work on @ARGV.
4846         Use Getopt.
4847         Add support for `-f'.
4848         (&version): New.
4849         (&usage): Update.
4850
4851 2001-02-26  Akim Demaille  <akim@epita.fr>
4852
4853         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4854         handle installcheck and installcheck-am.
4855         * install.am: Do it.
4856
4857 2001-02-26  Akim Demaille  <akim@epita.fr>
4858
4859         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4860         handle install and install-am.
4861         * install.am: Do it.
4862
4863 2001-02-26  Akim Demaille  <akim@epita.fr>
4864
4865         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4866         work on targets handled by %dependencies.
4867         (&handle_factored_dependencies): Do it.
4868         * install.am: Install install-exec, install-data and uninstall's
4869         suites.
4870
4871 2001-02-26  Akim Demaille  <akim@epita.fr>
4872
4873         * automake.in (&handle_merge_targets): Move `install-strip' from
4874         here...
4875         * install.am: to here.
4876
4877 2001-02-26  Akim Demaille  <akim@epita.fr>
4878
4879         * automake.in (@installdirs): Remove.
4880         (&file_contents): Be able to grow Automake macros with `+='.
4881         (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
4882         files define _am_installdirs.
4883         (&handle_installdirs): Remove the code, just output `install.am'.
4884         * install.am: New.
4885         * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
4886         * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
4887
4888 2001-02-26  Akim Demaille  <akim@epita.fr>
4889
4890         * tests/instdata2.test (libexec_DATA): Exercise more
4891         possibilities.
4892
4893 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4894
4895         * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
4896
4897 2001-02-25  Tom Tromey  <tromey@redhat.com>
4898
4899         * tests/instdata2.test: Added `sbin_DATA' check.
4900
4901         * tests/Makefile.am (TESTS): Added subdircond.test.
4902         * tests/subdircond.test: New file.
4903         * automake.in (handle_gettext): Don't fail if SUBDIRS
4904         conditionally defined.
4905
4906         * automake.in: Use IO::File.
4907         (generate_makefile): Use IO::File.
4908         (scan_texinfo_file): Likewise.
4909         (handle_aclocal_m4): Likewise.
4910         (scan_autoconf_traces): Likewise.
4911         (scan_one_autoconf_file): Likewise.
4912         (read_am_file): Likewise.
4913         (file_contents): Likewise.
4914         (create): Likewise.
4915
4916 2001-02-25  Akim Demaille  <akim@epita.fr>
4917
4918         * automake.in (handle_texinfo): Remove code handled by texinfos.am.
4919
4920 2001-02-25  Akim Demaille  <akim@epita.fr>
4921
4922         * automake.in (&transform): Also call &transform_cond on your
4923         arguments.
4924         (&handle_dist): Adjust.
4925         (&handle_factored_dependencies): Uniq dependencies.
4926
4927 2001-02-25  Akim Demaille  <akim@epita.fr>
4928
4929         * automake.in (&handle_gettext): Simplify redundant `if'.
4930         Used &variable_value, don't read %contents directly.
4931
4932 2001-02-25  Akim Demaille  <akim@epita.fr>
4933
4934         * automake.in ($install_recursive): Remove, replaced with calls to
4935         `&variable_defined ('SUBDIRS')'.
4936         (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
4937         (&file_contents): now does.
4938
4939 2001-02-25  Akim Demaille  <akim@epita.fr>
4940
4941         * automake.in (&handle_man_pages): $found is dead.
4942
4943 2001-02-25  Akim Demaille  <akim@epita.fr>
4944
4945         Internally just store the conditionals as space separated lists of
4946         CONDITIONS (instead of @CONDITIONS@).
4947
4948         * automake.in (&conditional_true_when, &variable_conditions_sub):
4949         Split conditions at spaces.
4950         (&handle_dependencies, &variable_conditions_permutations): Don't
4951         put @ around conditions.
4952         (&variable_conditions_cmp): There are no @ to strip.
4953         (&make_condition): New.
4954         (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
4955         it.
4956         (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
4957         Join @conditional_stack with spaces.
4958         (&read_main_am_file): Adjust the output of variables.
4959         Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
4960         true' and no longer `@TEST@TRUE = @TEST@true'.
4961         (&variable_conditions_cmp): Rename as...
4962         (&by_condition): this.
4963         Sort in a human pleasant order.
4964         Use it everywhere a human can see conditions.
4965         (&variable_conditions_reduce): Don't sort conditions, that's
4966         pointless.
4967         * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
4968
4969 2001-02-25  Akim Demaille  <akim@epita.fr>
4970
4971         * automake.in: `my' the globals.
4972
4973 2001-02-25  Akim Demaille  <akim@epita.fr>
4974
4975         * automake.in (&initialize_per_input): %targets_conditionals is
4976         new.
4977         (&read_am_file): When slurping a rule, set the target related
4978         variable, and no variable related variable.
4979         (&file_contents): Likewise.
4980         * tests/vartar.test, tests/ctarget1.test: New.
4981
4982 2001-02-25  Akim Demaille  <akim@epita.fr>
4983
4984         * automake.in (&variable_defined, &variable_value_as_list_worker):
4985         If $VAR is effectively a variable, don't die if it's also a
4986         target.
4987         Plus some formatting changes.
4988
4989 2001-02-25  Akim Demaille  <akim@epita.fr>
4990
4991         * automake.in: Mying changes.
4992         * Makefile.am (maintainer-check): Check the stability of the
4993         number of uses of `local'.
4994
4995 2001-02-25  Akim Demaille  <akim@epita.fr>
4996
4997         * automake.in: Mying changes.
4998
4999 2001-02-25  Akim Demaille  <akim@epita.fr>
5000
5001         * automake.in: Mying changes.
5002
5003 2001-02-25  Akim Demaille  <akim@epita.fr>
5004
5005         * automake.in: Mying changes.
5006         (&handle_tags): Fix a bug uncovered by the previous mying changes:
5007         transform CONFIG into $config, not $xform.
5008
5009 2001-02-25  Akim Demaille  <akim@epita.fr>
5010
5011         * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
5012         Don't deal with install-data-am, install-exec-am and unstall-am.
5013         (&initialize_per_input): Add them to %dependencies.
5014         Remove %exec_dir_p since the *.am files are now in charge of it.
5015         Remove @uninstall, @install_data, @install_exec.
5016         (&handle_merge_targets): Adjust to these removals.
5017         (&file_contents): Also &transform_cond for --no-installman and
5018         --no-installinfo.
5019         (&do_one_merge_target): Add some magic to install hooks on
5020         %dependencies' targets.
5021         (%required_targets): New.
5022         (&handle_factored_dependencies): Output required targets.
5023         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
5024         * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
5025         * texinfos.am: Declare your dependencies on install-data-am,
5026         install-exec-am and uninstall-am.
5027         * tests/instdata2.test (incldata_HEADERS): New test.
5028
5029 2001-02-24  Tom Tromey  <tromey@redhat.com>
5030
5031         * Makefile.am (amfiles): Added texibuild.am.
5032         * texibuild.am: New file.
5033         * tests/Makefile.am (TESTS): Added texinfo9.test.
5034         * tests/texinfo9.test: New file.
5035         * automake.in (handle_texinfo): Keep track of suffixes used.  Give
5036         error if suffix unrecognized.  Removed extraneous newline.
5037
5038 2001-02-23  Akim Demaille  <akim@epita.fr>
5039
5040         * automake.in (&am_install_var): Don't hook on the clean targets
5041         and .PHONY.
5042         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
5043         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
5044         Do it.
5045
5046 2001-02-23  Akim Demaille  <akim@epita.fr>
5047
5048         * automake.in: Promote local `my' over `local'.
5049
5050 2001-02-23  Akim Demaille  <akim@epita.fr>
5051
5052         * automake.in: Formatting and mying changes.
5053
5054 2001-02-23  Akim Demaille  <akim@epita.fr>
5055
5056         * automake.in: Formatting and mying changes.
5057
5058 2001-02-23  Akim Demaille  <akim@epita.fr>
5059
5060         * automake.in (&handle_man_pages): Let install-man and
5061         uninstall-man be handled by the dependency tracker.
5062         (&initialize_per_input): Let %dependencies track them.
5063         * mans.am: Add the needed hooks with the proper dependencies.
5064
5065 2001-02-22  Pavel Roskin  <proski@gnu.org>
5066
5067         * tests/target-cflags.test: Don't use subshell to configure in
5068         subdirectory. Typo fix - run `./foo', not `/foo'.
5069
5070 2001-02-22  Akim Demaille  <akim@epita.fr>
5071
5072         * automake.in: Formatting and mying changes.
5073
5074 2001-02-21  Tom Tromey  <tromey@redhat.com>
5075
5076         * automake.in (handle_dist): Introduce new variable to avoid extra
5077         keys in %dist_dirs.  Fixes distdir.test.
5078
5079         * automake.in (handle_texinfo): Only remove suffixes we can
5080         handle.
5081
5082         * tests/distdir.test: Check to make sure directory isn't made in
5083         build directory.
5084
5085         * automake.in (handle_dist): Do nothing in Cygnus mode.
5086
5087 2001-02-21  Pavel Roskin  <proski@gnu.org>
5088
5089         * header-vars.am: Remove tabs before variable definitions.
5090
5091 2001-02-21  Akim Demaille  <akim@epita.fr>
5092
5093         * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
5094         false diagnostics.
5095
5096 2001-02-21  Akim Demaille  <akim@epita.fr>
5097
5098         * automake.in (&dist_cmp, &target_cmp): Be sure to return a
5099         numeric value as required by Perl 5.6.
5100
5101 2001-02-21  Akim Demaille  <akim@epita.fr>
5102
5103         * dist-vars.am: Remove, merge into...
5104         * distdir.am: this.
5105         * automake.in (dirname, basename, backname): Move to the top of
5106         the file so that prototypes are checked,
5107         Use them without `&'.
5108         (&handle_dist): Adjust.
5109
5110 2001-02-21  Akim Demaille  <akim@epita.fr>
5111
5112         * automake.in (&check_ambiguous_conditional, &read_main_am_file):
5113         Use a uniform naming scheme.
5114         (&quote_cond_val, &unquote_cond_val): Delete, dead code.
5115         (&read_am_file): Fix conditional definition of backslash continued
5116         items.
5117
5118 2001-02-21  Akim Demaille  <akim@epita.fr>
5119
5120         Change the handling of conditionals: instead of using an ad-hoc
5121         encoding to store a hash in a string, use hashes.
5122
5123         * automake.in (&conditional_dump): New.
5124         (&check_ambiguous_conditional, &variable_defined)
5125         (&variable_conditions_sub, &variable_value_as_list_worker)
5126         (&define_variable, read_am_file, &read_main_am_file): Be sure to
5127         handle `$conditional{$vars}' as a hash instead of a plain string.
5128
5129 2001-02-21  Akim Demaille  <akim@epita.fr>
5130
5131         * automake.in (&conditional_true_when): Modernize, simplify.
5132         Warning: `$comp' is now private (my), while it used to be
5133         `inherited' from a `local' elsewhere in the code.  AFAICT it was
5134         wrong, but some dirty side effect might show up.
5135         (&conditionals_true_when): New.
5136         (&variable_conditions_sub, &variable_conditions_reduce): Use it.
5137
5138 2001-02-21  Akim Demaille  <akim@epita.fr>
5139
5140         * automake.in ($top_builddir): Remove, used in one place.
5141         (&define_standard_variables): Adjust.
5142         Move the definition of triplet variables into...
5143         * header-vars.am: here.
5144
5145 2001-02-21  Akim Demaille  <akim@epita.fr>
5146
5147         * automake.in (&initialize_global_constants): Don't define $USAGE.
5148         (&usage): Handle the former content of $USAGE.
5149         Don't pretend autoconf cares about Makefile.in.
5150         Classify the options.
5151         (&handle_tests): Formatting and mying changes.
5152
5153 2001-02-21  Akim Demaille  <akim@epita.fr>
5154
5155         * automake.in (&handle_tests_dejagnu): Move the definition of a
5156         default `site.exp' into...
5157         * dejagnu.am (site.exp): here.
5158         Use DOS compliant file names.
5159
5160 2001-02-21  Akim Demaille  <akim@epita.fr>
5161
5162         * automake.in (&dist_cmp): New.
5163         (&handle_dist): Use it.
5164         Promote `my' over `local'.
5165
5166 2001-02-21  Akim Demaille  <akim@epita.fr>
5167
5168         * dist.am: Remove, merge into...
5169         * distdir.am: here.  Use the neat sed snippet for banners.
5170         BTW, distcheck is phony.
5171         * automake.in (&handle_dist_worker): Remove, merge into...
5172         (&handle_dist): this.
5173         (&file_contents): Strip leading new lines.
5174         Be sure to end comments with new lines.
5175
5176 2001-02-21  Akim Demaille  <akim@epita.fr>
5177
5178         * distdir.am (GZIP_ENV): Define.
5179         * automake.in (&handle_dist): Don't.
5180         (&uniq): New.
5181         (&handle_dist_worker, &am_install_var): Use it.
5182
5183 2001-02-21  Akim Demaille  <akim@epita.fr>
5184
5185         * distdir.am (distdir): Handle the DIST-TARGETS.
5186         * automake.in (&handle_dist_worker): Don't.
5187
5188 2001-02-21  Akim Demaille  <akim@epita.fr>
5189
5190         * automake.in (&file_contents): Transform the global options (such
5191         as CYGNUS).
5192         (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
5193
5194 2001-02-21  Akim Demaille  <akim@epita.fr>
5195
5196         * distdir.am (distdir): Be sure to have permissive rights on its
5197         contents.
5198         (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
5199         targets.
5200         And BTW, all these guys are phony.
5201         * automake.in (&handle_dist_worker): As its name doesn't indicate,
5202         output distributions.
5203         (&handle_dist): As its name doesn't indicate, don't.
5204         (&initialize_global_constants): Don't define variables which
5205         content is now handled by distdir.am.
5206         But register `dist-all' as a factored target.
5207         (&handle_factored_dependencies): Don't output empty targets.
5208
5209 2001-02-20  Tom Tromey  <tromey@redhat.com>
5210
5211         * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
5212         invocation.
5213
5214 2001-02-18  Tom Tromey  <tromey@redhat.com>
5215
5216         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
5217         Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
5218         (AM_PROG_STRIP): Commented out.
5219
5220 2001-02-17  Raja R Harinath  <harinath@cs.umn.edu>
5221
5222         * depcomp (gcc3): Protect against the compiler deleting
5223         the dependency output file.
5224
5225 2001-02-17  Tom Tromey  <tromey@redhat.com>
5226
5227         * automake.in (handle_merge_targets): Use double quotes around
5228         setting of INSTALL_STRIP_PROGRAM.
5229         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
5230         to absolute path at runtime.
5231         (AM_PROG_STRIP): Don't explicitly test $STRIP.
5232
5233 2001-01-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
5234
5235         * m4/strip.m4: New file.
5236         * m4/Makefile.am (m4data_DATA): Add strip.m4.
5237         * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
5238         * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
5239         * automake.in (handle_merge_targets): In the install-strip rule,
5240         set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
5241         to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
5242         * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
5243         don't use INSTALL_STRIP_FLAG any longer.
5244
5245 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
5246
5247         * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
5248         argument.
5249
5250 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
5251
5252         * automake.in (unquote_m4_arg): New function.
5253         (scan_one_configure_file): Call unquote_m4_arg on
5254         AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
5255         works.
5256
5257 2001-02-15  Tom Tromey  <tromey@redhat.com>
5258
5259         * config.guess, config.sub: New versions from FSF.
5260
5261         * Makefile.am (WGET): New macro.
5262         (FETCHFILES): New macro.
5263         (fetch): New target.
5264
5265         * tests/subobj3.test: Exit with status 77 if gcc not found.
5266         * tests/pr9.test: Exit with status 77 if gzip not found.
5267         * tests/pr87.test: Exit with status 77 if gcc not found.
5268         * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
5269         * tests/install2.test: Exit with status 77 if gzip not found.
5270         * tests/exsource.test: Exit with status 77 if GNU make not found.
5271         * tests/ansi3.test: Exit with status 77 if gcc not found.
5272
5273         * tests/target-cflags.test: Require GNU make.  Exit with status 77
5274         if gcc or make not found.  Fixes PR automake/121.
5275
5276         * configure.in: Require Perl 5.005.
5277         * automake.in: Require 5.005.
5278
5279         * automake.texi (Top): Conditionalize on `nottex', not `info'.
5280         Fixes PR automake/122.
5281
5282 2001-02-14  Tom Tromey  <tromey@redhat.com>
5283
5284         * automake.in (add_depend2): Only emit a given object rule once.
5285         Fixes specflags6.test.
5286
5287 2001-02-14  Richard Boulton  <richard@tartarus.org>
5288
5289         * tests/specflags6.test: New file.
5290
5291 2001-02-14  Tom Tromey  <tromey@redhat.com>
5292
5293         * automake.texi (A Shared Library): Mention -module.
5294
5295 2001-02-13  Tom Tromey  <tromey@redhat.com>
5296
5297         * automake.in (do_one_merge_target): Always register $name and
5298         $name-am as phony.
5299
5300         * automake.in (do_one_merge_target): Register `all' as phony
5301         target.
5302
5303         * configure.in: Updated to 1.4e for cvs.
5304
5305 2001-02-12  Tom Tromey  <tromey@redhat.com>
5306
5307         * configure.in: Updated to 1.4d and released.
5308
5309         * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
5310         names through autoconf.
5311
5312         Fix for subdirbuiltsources.test:
5313         * automake.in (initialize_per_input): [all_target] Initialize to
5314         empty string.
5315         (handle_merge_targets): Use all-redirect target to handle built
5316         sources.
5317         (do_one_merge_target): Don't generate all-redirect rule.
5318
5319 2001-02-11  Peter Muir  <iyhi@yahoo.com>
5320
5321         * tests/subdirbuiltsources.test: New file.
5322         * tests/Makefile.am (TESTS): Added new file.
5323
5324 2001-02-10  Tom Tromey  <tromey@redhat.com>
5325
5326         * tests/condlib.test: New file.
5327         * tests/Makefile.am (TESTS): Added new file.
5328
5329 2001-02-10  Lars J. Aas  <larsa@sim.no>
5330
5331         * automake.in ($MACRO_PATTERN): Include '@' in name regex.
5332         (&canonicalize): New. Includes '@' in canonical range.
5333         (&check_canonical_spelling, &handle_programs, &handle_libraries,
5334         &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
5335
5336 2001-02-10  Raja R Harinath  <harinath@cs.umn.edu>
5337
5338         * automake.in (handle_configure): Revert part of
5339         '2001-02-04  Kevin Ryde <user42@zip.com.au>'.  Don't
5340         set CONFIG_COMMANDS explicitly.
5341
5342 2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>
5343
5344         * depcomp (gcc3): Propagate exit code.
5345
5346 2001-02-09  Lars J. Aas  <larsa@sim.no>
5347
5348         * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
5349
5350 2001-02-09  Tom Tromey  <tromey@redhat.com>
5351
5352         Clean up maintainer-check warnings:
5353         * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
5354         check.
5355         * automake.in (handle_dist_worker): Removed redundant `my $xform'.
5356
5357 2001-02-09  Akim Demaille  <akim@epita.fr>
5358
5359         * automake.in (&file_contents): Remove a dead branch.
5360
5361 2001-02-09  Akim Demaille  <akim@epita.fr>
5362
5363         * automake.in (&transform): Use `my', not `local'.
5364         (&transform_cond): New.
5365         (&get_object_extension, &handle_texinfo, &handle_tags)
5366         (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
5367         (&handle_tests_dejagnu): Use it.
5368         * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
5369         * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
5370
5371 2001-02-09  Akim Demaille  <akim@epita.fr>
5372
5373         * automake.in: Various formatting changes, and modernization of
5374         Perl constructs.
5375         (&backname): New.
5376         (&handle_configure, define_standard_variables): Use it.
5377
5378 2001-02-08  Tom Tromey  <tromey@redhat.com>
5379
5380         * automake.in (file_contents): Only add $actions if any are
5381         found.  Fixes new failure in pr87.test.
5382
5383 2001-02-08  Pavel Roskin  <proski@gnu.org>
5384
5385         * tests/pr87.test: Check foo/Makfile.in after it is created.
5386
5387 2001-02-08  Tom Tromey  <tromey@redhat.com>
5388
5389         * tests/pr87.test: Added check for blank line after `.c.o' rule.
5390         Report from Lars J. Aas.
5391
5392 2001-02-07  Lars J. Aas  <larsa@sim.no>
5393
5394         * lisp.am (install-@DIR@LISP): Removed extra space.
5395         * header.am (install-@DIR@HEADERS): Removed extra space.
5396         * data.am (install-@DIR@DATA): Removed extra space.
5397
5398 2001-02-07  Tom Tromey  <tromey@redhat.com>
5399
5400         * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
5401
5402         * automake.in (handle_dependencies): Use _am_include, not
5403         AMINCLUDE.
5404         * tests/exsource.test: Use _am_include, not AMINCLUDE.
5405         * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
5406
5407         * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
5408
5409         * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
5410
5411         * automake.in (handle_configure): Handle case where output file is
5412         in subdir with no Makefile of its own.  Fixes remake3.test,
5413         distcommon.test.
5414
5415 2001-02-06  Pavel Roskin  <proski@gnu.org>
5416
5417         * automake.in (handle_dependencies): Rename AM_INCLUDE to
5418         AMINCLUDE.
5419         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
5420         * tests/exsource.test: Likewise.
5421
5422 2001-02-06  Derek Price  <derek.price@openavenue.com>
5423
5424         * automake.in (handle_configure): Fix syntax error.
5425
5426 2001-02-06  Akim Demaille  <akim@epita.fr>
5427
5428         * subdirs.am: This file is the exception: clean recursive targets
5429         are called by the clean targets, not the clean-am targets.
5430         Otherwise we have a circular dependency: clean -> clean-am ->
5431         clean-recursive -> clean.
5432         * automake.in (handle_clean): Bind `-local' targets to `-am'
5433         targets, not top targets.
5434         Don't declare -recursive dependencies of the clean targets:
5435         `subdirs.am' did it.  Less hard coded knowledge, transfered
5436         into...
5437         * clean.am: here.
5438
5439 2001-02-06  Akim Demaille  <akim@epita.fr>
5440
5441         Monstro unsplitable patch.
5442
5443         The aim is to remove hard coded knowledge about clean targets from
5444         automake.in, leaving them in the *.am files.
5445         In addition to the mechanic needed to factor some dependencies, it
5446         appears some rules (most notably distclean and maintainer-clean)
5447         need factored actions.  So first, be ready to catch factored
5448         rules.
5449
5450         * automake.in (&file_contents): For the time being, use an extended
5451         $RULE_PATTERN which is able to match any kind of rules, with or
5452         without dependency, with or without actions.
5453         Handle all the rules uniformly, storing in %actions the factored
5454         actions.
5455         (&flatten, &target_cmp): New.
5456         (&handle_factored_dependencies): Output the %actions.
5457         No longer special case `clean'.
5458         Output the rules in alphabetical order, but keeping `.PHONY' last.
5459
5460         Now we must not use &push_phony_cleaners, which is doing all sort
5461         of magic to push a bit of everything in all the clean targets.
5462         The biggest problem being that, making a Cartesian product, it
5463         requires many useless targets.  The `*.am' file know better.
5464         But first, register the new factored rules.
5465
5466         * automake.in (&initialize_per_input): Include clean, mostlyclean,
5467         maintainer-clean, distclean and their `*-am' counterpart in
5468         %dependencies.
5469         Initialize %actions.
5470         (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
5471         handle_dependencies, handle_subdirs, handle_configure, handle_clean)
5472         (handle_emacs_lisp, handle_python): Don't play with
5473         &push_phony_cleaners nor &depend and `clean'.
5474         * texinfos.am, texi-vers.am, tags-clean.am:
5475         * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
5476         * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
5477         * clean-kr.am, clean-hdr.am: Do it.
5478         Whenever a target is empty, just remove it, it will no longer be
5479         called.
5480
5481         There is still some magic about clean to hard code.  But really,
5482         that's the end of &do_one_clean_target.
5483
5484         * automake.in (&do_one_clean_target): Kaboom out.
5485         (&handle_clean): Rewrite the magic code.
5486         (&am_install_var): No longer use &push_phony_cleaners, nor depend
5487         on `clean'.
5488         (&push_phony_cleaners): Kaboom too.
5489
5490 2001-02-06  Akim Demaille  <akim@epita.fr>
5491
5492         * automake.in (do_one_clean_target): Don't hard code knowledge
5493         about libtool, and maintainer-clean.
5494         * clean.am, libtool.am: Handle these.
5495
5496 2001-02-05  Akim Demaille  <akim@epita.fr>
5497
5498         * automake.in (handle_texinfo): No longer hard code the clean
5499         targets.
5500         (texinfos.am): Include them.
5501
5502 2001-02-05  Akim Demaille  <akim@epita.fr>
5503
5504         * Makefile.am (perl4-check): Remove, we now require Perl 5.
5505         (maintainer-check): Don't be silent when you find a problem, and
5506         actually, even specify the locations.
5507         Also check that @_ is assigned to arrays.
5508
5509 2001-02-05  Akim Demaille  <akim@epita.fr>
5510
5511         * m4/regex.m4: Use AC_LIBSOURCES.
5512         * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
5513         _AC_LIBOBJ_DECL.
5514
5515 2001-02-04  Tom Tromey  <tromey@redhat.com>
5516
5517         * m4/Makefile.am (m4data_DATA): Added make.m4.
5518         * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
5519         dependency files.
5520         * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
5521         Copy depcomp to subdir.
5522         * m4/make.m4: New file.
5523
5524 2001-02-04  Pavel Roskin  <proski@gnu.org>
5525
5526         * automake.in (handle_dist_worker): Remove a line that is now
5527         in distdir.am.
5528
5529 2001-02-04  Kevin Ryde  <user42@zip.com.au>
5530
5531         * automake.in (handle_configure): Call config.status with empty
5532         CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
5533
5534 2001-02-04  Tom Tromey  <tromey@redhat.com>
5535
5536         * depcomp (ddashmd): Removed case.
5537         (sgi): Handle failure exit correctly
5538         (aix): Likewise.  Also, add dummy `.h' targets.
5539
5540 2001-02-04  Akim Demaille  <akim@epita.fr>
5541
5542         * distdir.am (distdir): New file, extracted from...
5543         * automake.in (handle_dist_worker): here.
5544         Adjust.
5545
5546 2001-02-04  Akim Demaille  <akim@epita.fr>
5547
5548         * automake.in (@clean): Remove, replaced by...
5549         ($dependencies{'clean'}): this.
5550         Use `&depend' instead of push'ing into @clean.
5551         (handle_factored_dependencies): For the time being, skip 'clean'.
5552         (do_one_clean_target): Don't ask for argument 1 and 4 as they are
5553         always `clean', and `@clean'.
5554
5555 2001-02-04  Akim Demaille  <akim@epita.fr>
5556
5557         * automake.in (%dependencies): Don't be initialize globally for
5558         all the files, but in...
5559         (&initialize_per_input): here.
5560         (&depend): New.
5561         (@phony): Replace all occurrences with the corresponding &depend
5562         invocation.
5563
5564 2001-02-03  Tom Tromey  <tromey@redhat.com>
5565
5566         * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
5567         * header-vars.am (INSTALL_HEADER): New macro.
5568
5569         * automake.texi (Rebuilding): New node.
5570
5571 -----
5572
5573 Copyright 2001 Free Software Foundation, Inc.
5574
5575 This file is part of GNU Automake.
5576
5577 GNU Automake is free software; you can redistribute it and/or modify
5578 it under the terms of the GNU General Public License as published by
5579 the Free Software Foundation; either version 2, or (at your option)
5580 any later version.
5581
5582 GNU Automake is distributed in the hope that it will be useful,
5583 but WITHOUT ANY WARRANTY; without even the implied warranty of
5584 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5585 GNU General Public License for more details.
5586
5587 You should have received a copy of the GNU General Public License
5588 along with autoconf; see the file COPYING.  If not, write to
5589 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
5590 Boston, MA 02111-1307, USA.