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