* lib/mkinstalldirs: Use "mkdir -p" if it works, as that fixes
[platform/upstream/automake.git] / ChangeLog
1 2001-09-29  Paul Eggert  <eggert@twinsun.com>
2
3         * lib/mkinstalldirs: Use "mkdir -p" if it works, as that fixes
4         bugs when making file names with unusual characters.  Quote chmod
5         arg "$dirmode", in case it contains white space.
6
7         Incorporate the following change from autoconf mkinstalldirs:
8
9         1999-04-10  Ben Elliston  <bje@cygnus.com>
10
11         Add `-m' flag to specify the mode of a newly created
12         directory.  Add command line usage and `-h', `--help' options.
13         Contributed by Jeff Garzik.
14
15 2001-09-27  Akim Demaille  <akim@epita.fr>
16
17         * m4/cond.m4, m4/init.m4, m4/header.m4: Remove Autoconf 2.13 code.
18
19 2001-09-27  Akim Demaille  <akim@epita.fr>
20
21         * lib/am/distdir.am (dist): Rename as...
22         (dist-gzip): this.
23         (dist): Additional name for dist-all.
24         * automake.texi (Options, Dist): Adjust.
25
26 2001-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
27
28         * aclocal.in (obsolete_macros): Update AM_EXEEXT message.
29         * automake.in (obsolete_macros): Likewise.
30         (seen_objext): Remove (unused).
31         (scan_one_autoconf_file): Don't handle AC_OBJEXT.
32         * lib/am/header-vars.am (EXEEXT, OBJEXT,
33         PATH_SEPARATOR): New variables.
34         * tests/obsolete2.test: Use AM_FUNC_FNMATCH instead of AM_EXEEXT.
35
36 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
37
38         * m4/auxdir.m4, m4/init.m4: Require autoconf 2.50 and rely on it to
39         neutralize CDPATH for us.
40         * m4/init.m4: Don't substitute EXEEXT or OBJEXT anymore.
41         * lib/am/texibuild.am: Use $(PATH_SEPARATOR), not ':' to build
42         TEXINPUTS.
43
44 2001-09-22  Akim Demaille  <akim@epita.fr>
45
46         * configure.in, NEWS: Bump to 1.5a.
47         Require 2.52.
48
49 2001-09-22   Paul Eggert  <eggert@twinsun.com>
50
51         * ChangeLog, ChangeLog.1996, ChangeLog.1998, ChangeLog.2000,
52         Makefile.am, NEWS, README, TODO, configure.in, lib/Makefile.am,
53         lib/acinstall, lib/am/Makefile.am, m4/Makefile.am, m4/as.m4,
54         m4/auxdir.m4, m4/ccstdc.m4, m4/cond.m4, m4/depend.m4,
55         m4/depout.m4, m4/dmalloc.m4, m4/error.m4, m4/gcj.m4, m4/header.m4,
56         m4/init.m4, m4/install-sh.m4, m4/lex.m4, m4/lispdir.m4,
57         m4/maintainer.m4, m4/make.m4, m4/minuso.m4, m4/missing.m4,
58         m4/multi.m4, m4/obstack.m4, m4/protos.m4, m4/ptrdiff.m4,
59         m4/python.m4, m4/regex.m4, m4/sanity.m4, m4/strip.m4,
60         m4/termios.m4, m4/winsz.m4: Add copyright notice.
61
62         * INSTALL, lib/INSTALL: Upgrade to latest autoconf version,
63         which has a copyright notice.
64
65         * m4/strtod.m4: Correct the dates on the copyright notice.
66
67 2001-09-17  Akim Demaille  <akim@epita.fr>
68
69         * lib/missing (autom4te): New.
70         (aclocal, autoconf, automake, autoheader, help2man): Propagate
71         actual failures.
72
73 2001-08-27  Tom Tromey  <tromey@redhat.com>
74
75         * automake.texi (A Shared Library): Clarify installation
76         requirement.
77         (Install): Typo.  From Adrian Bunk.
78
79 2001-08-27  Tom Tromey  <tromey@redhat.com>
80
81         * automake.texi (Macros): Typo fix.
82         From Christian Cornelssen
83
84 2001-08-27  Tom Tromey  <tromey@redhat.com>
85
86         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
87         tests/cond4.test, tests/cond16.test, tests/cond18.test,
88         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
89         tests/lex3.test, tests/pr87.test, tests/subobj3.test,
90         tests/substref.test: Clear CFLAGS.
91
92         * automake.texi (Yacc and Lex): Mention lex, not yacc.
93         From Alexey Mahotkin.
94
95 2001-08-27  Tom Tromey  <tromey@redhat.com>
96
97         * tests/yacc7.test: Use test -f, not test -e.
98
99 2001-08-27  Adrian Bunk  <bunk@fs.tum.de>
100
101         * automake.texi (etags): Typo fix.
102
103 2001-08-27  Guido Draheim <guidod@gmx.de>
104
105         * automake.in : restrict ansi2knr option to be a filepath
106
107 2001-08-23  Richard Boulton <richard@tartarus.org>
108
109         * tests/yacc7.test: Actually add this file: was accidentally omitted.
110
111 2001-08-22  Tom Tromey  <tromey@redhat.com>
112
113         * automake.texi (Conditionals): Mention that conditionals must
114         always be invoked.  For PR automake/220.
115
116 2001-08-22  Richard Boulton <richard@tartarus.org>
117             Tom Tromey  <tromey@redhat.com>
118
119         * automake.in (lang_yacc_target_hook): Make header file depend on
120         .c file, not .y file.
121         * lib/am/yacc.am: Non-generic rule changed to depend on %OBJ% (the
122         .c file) rather than %SOURCE% (the .y file)  Removed `.y.h' rule.
123         * tests/yacc7.test: New file.
124         * tests/Makefile.am (TESTS): Added yacc7.test.
125
126 2001-08-22  Tim Van Holder  <tim.van.holder@pandora.be>
127
128         * m4/missing.m4: Require AM_AUX_DIR_EXPAND and use $am_aux_dir.
129
130 2001-08-18  Tom Tromey  <tromey@redhat.com>
131
132         * automake.texi (Dist): Mention dist-all.
133
134 2001-08-18  Tom Tromey  <tromey@redhat.com>
135
136         * tests/cond3.test: Use portable sed expression.
137         From Richard Boulton.
138
139 2001-08-13  Richard Boulton <richard@tartarus.org>
140
141         * automake.in (handle_source_transform): Call
142         define_objects_from_sources() instead of calling
143         variable_value_as_list(), handle_single_transform_list() and
144         define_pretty_variable() directly.
145         (handle_single_transform_list): Add $topparent parameter, used for
146         error messages.  Improved error message.
147         (define_objects_from_sources): New function.
148         (subobjname): New function.
149         (variable_conditions_recursive): New name for variable conditions.
150         (variable_value_as_list_recursive): New name for variable_value_as_list.
151         (variable_value_as_list_worker): Renamed to ...
152         (variable_value_as_list_recursive_worker): ... this.
153         (variable_conditions_sub): Renamed to ...
154         (variable_conditions_recursive_sub): ... this.
155         (variable_conditions): Rewritten: now doesn't recurse subvariables.
156         (variable_value_as_list): Rewritten: now doesn't recurse subvariables.
157         (substfroms): New global.
158         (substtos): New global.
159         (substnums): New global.
160         * tests/cond3.test: Update to work with new method of defining _OBJECTS.
161         * tests/cond4.test: Update to work with new method of defining _OBJECTS.
162         * tests/sourcesub2.test: New test.
163         * tests/Makefile.am (TEST): Added sourcesub2.test.
164
165 2001-08-11  Tom Tromey  <tromey@redhat.com>
166
167         * configure.in: Upped to 1.4s.
168
169 2001-08-09  Richard Boulton <richard@tartarus.org>
170
171         * automake.in (handle_single_transform_list): Use new global,
172         `%linkers_used', to store the linkers used, rather than an internal
173         variable.  Enables correct linker to be calculated across a group
174         of calls to &handle_single_transform_list.  Return only list of
175         objects, since linker to be used is now externally determined.
176         (handle_source_transform): adapted for new calling conventions of
177         handle_single_transform_list.  Calls resolve_linker() on a set of
178         all the linkers used for any prefix, rather than for each prefix in
179         turn.
180         (linkers_used): New global.
181         * tests/link_dist.test: New test.
182         * tests/Makefile.am (TESTS): Added link_dist.test.
183
184 2001-08-08  Raja R Harinath  <harinath@cs.umn.edu>
185
186         Dissociate testsuite 'make' invocations from outer 'make'.
187         * tests/defs: Unset the MFLAGS, MAKEFLAGS and MAKELEVEL
188         environment variables.
189         * tests/cond16.test: Use '$MAKE -s', and avoid GNU make
190         dependency.
191         * tests/substref.test: Likewise.
192
193 2001-08-08  Richard Boulton <richard@tartarus.org>
194
195         * tests/cond18.test: New file.
196         * tests/cond19.test: New file.
197         * tests/cond20.test: New file.
198         * tests/cond4.test: Updated to check the generated _OBJECTS more
199         thoroughly.
200         * tests/Makefile.am (TESTS): Added cond18.test, cond19.test and
201         cond20.test
202
203 2001-08-08  Richard Boulton <richard@tartarus.org>
204
205         * automake.in (file_contents_internal): if a rule is conditionally
206         defined, define the standard automake definition for it for those
207         conditions which are not conditionally defined.
208         (invert_conditions): New function: invert a list of conditionals.
209
210         * tests/cond14.test: New file.
211         * tests/cond15.test: New file.
212         * tests/Makefile.am (TESTS): Added cond14.test and cond15.test.
213
214 2001-08-05  Tom Tromey  <tromey@redhat.com>
215
216         * tests/Makefile.am (TESTS): Added dejagnu2.test.
217         * tests/dejagnu2.test: New file.
218         * lib/am/dejagnu.am (site.exp): Don't conditionalize.
219         * automake.in (handle_scripts): Removed dead code.
220         (handle_tests_dejagnu): Don't handle site.exp generation
221         specially.
222
223 2001-08-04  Richard Boulton <richard@tartarus.org>
224
225         * tests/cond17.test: New file: test for being able to define an
226         object to be generated in different ways according to a
227         conditional.
228         * tests/Makefile.am (XFAIL_TESTS): Add cond17.test.
229         (TESTS): Added cond17.test.
230
231 2001-08-02  Richard Boulton <richard@tartarus.org>
232
233         * automake.in (variable_conditions_sub): Handle variable
234         substitution refs when computing conditions based on subvariable
235         conditions.  Fixes substitution refs of system variables when sub
236         variable is conditional.
237         (SUBST_REF_PATTERN): New global.
238         * tests/cond16.test: New file: regression test for variable
239         substitution refs.
240         * test/Makefile.am (TESTS): Added cond16.test.
241
242 2001-08-03  Tom Tromey  <tromey@redhat.com>
243
244         * tests/substref.test: Require GNU make; backed out previous
245         change.
246
247         * tests/substref.test: Handle entering/leaving directory
248         messages.
249
250 2001-08-03  Richard Boulton <richard@tartarus.org>
251
252         * automake.in (value_to_list): Check for whether $from is defined,
253         rather than whether it is true, so that empty $froms are allowed in
254         substitution reference patterns.
255
256         * tests/substref.test: New file: test behavior of substitution
257         references when the $from side of the substitution is empty.
258         * tests/Makefile.am (TESTS): Added substref.test.
259
260 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
261
262         * m4/install-sh.m4: New file.
263         * m4/Makefile.am (m4data_DATA): Add install-sh.m4.
264         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Move ...
265         * m4/install-sh.m4 (AM_PROG_INSTALL_SH): ... here.  Don't check
266         for install.sh any longer, always use install-sh, don't even
267         fall back to missing.  Use $am_aux_dir, making $install_sh absolute.
268         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Simplify, since $install_sh
269         is absolute.
270         * m4/init.m4: Adjust call to AM_PROG_INSTALL_SH.
271
272 2001-08-02  Tim Van Holder  <tim.van.holder@pandora.be>
273
274         * automake.texi (EXEEXT): Clarify.
275
276 2001-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
277
278         * m4/missing.m4 (AM_MISSING_HAS_RUN): Typo.
279
280         * m4/auxdir.m4: More comments.
281
282 2001-07-31  Richard Boulton <richard@tartarus.org>
283             Raja R Harinath <harinath@cs.umn.edu>
284
285         * automake.in (variable_conditions_sub): Remove @parent_conds
286         argument.  This was old logic - duplicate or impossible
287         conditionals are removed later by &variable_conditions_reduce().
288         Fixes tests/cond13.test.
289         (conditionals_true_when): Removed.
290         * tests/Makefile.am (XFAIL_TESTS): Removed cond13.test.
291
292 2001-07-31  Tom Tromey  <tromey@redhat.com>
293
294         * tests/Makefile.am (TESTS): Added cond13.test.
295         (XFAIL_TESTS): Likewise.
296         * tests/cond13.test: New file.
297
298         * configure.in: Upped to version 1.4k.
299
300         * configure.in: Released 1.4j.
301
302         * lib/config.guess: Updated from master sources.
303         * lib/config.sub: Likewise.
304
305 2001-07-30  Tom Tromey  <tromey@redhat.com>
306
307         * automake.texi (A Program): Typo.  Added subsections and more
308         text about conditional compilation.
309         (A Shared Library): Moved earlier.
310         (Program variables): Updated LINK text.  Added AM_CFLAGS.
311         (C++ Support): Added AM_CXXFLAGS.
312         (Fortran 77 Support): Added AM_FFLAGS and AM_RFLAGS.
313         (EXEEXT): New node.
314
315         * tests/Makefile.am (TESTS): Added aclibobj.test.
316         * tests/aclibobj.test: New file.
317         * automake.in (handle_lib_objects_cond): Avoid undefined variable
318         error.
319         (scan_one_autoconf_file): Handle AC_LIBSOURCE and AC_LIBSOURCES.
320
321         * automake.texi (Dist): Mention other distribution types.
322         (Install): Updates.
323
324 2001-07-29  Tom Tromey  <tromey@redhat.com>
325
326         * automake.texi (Program and Library Variables): Texinfo fix.
327         From Alexey Mahotkin.
328
329 2001-07-28  Tom Tromey  <tromey@redhat.com>
330
331         * automake.texi (Strictness): Mention Cygnus mode.
332         (Cygnus): Updated.
333         (Uniform): Likewise.
334         (Canonicalization): Likewise.
335         (Install): Add `nobase_' to example; typo fix.
336         (Clean): Typo.
337         (Dist): Expand on putting a directory into EXTRA_DIST.  Insert
338         section markers.
339         (Options): Texinfo fixes; some text updates.
340         (Tags): Update.
341
342 2001-07-27  Tom Tromey  <tromey@redhat.com>
343
344         * automake.texi (Invoking Automake): Document --Werror and
345         --Wno-error.
346
347 2001-07-26  Tom Tromey  <tromey@redhat.com>
348
349         * tests/nolink.test: Added no-exeext.
350
351         * automake.in (check_variable_defined_unconditionally): Don't call
352         macro_dump.
353
354         * automake.texi (Optional): Don't mention ALL_LINGUAS.
355         (gettext): Likewise.
356         * automake.in (seen_linguas, all_linguas, all_linguas_line):
357         Removed.
358         (handle_gettext): Don't do any checking of the languages.
359         (scan_one_autoconf_file): Don't look for ALL_LINGUAS.
360
361         * automake.in (am_print_error): New function.
362         (am_error): Use it.
363         (am_file_error): Likewise.
364         (am_line_error): Likewise.
365         (am_conf_error): Likewise.
366         (am_conf_line_error): Likewise.
367
368         * automake.texi (Options): Document no-exeext.
369         * automake.in (handle_options): Recognize no-exeext.
370         (rule_define): Handle no-exeext.
371         * tests/Makefile.am (TESTS): Added new file.
372         * tests/exeext2.test: New file.
373
374         * automake.in (make_input_list): Removed.
375         (scan_autoconf_config_files): Don't add to make_input_list.
376         (scan_one_autoconf_file): Don't use make_input_list.
377         (scan_autoconf_files): Use make_list, not make_input_list.
378         (scan_autoconf_files): Likewise.
379
380         * automake.in (seen_exeext): Removed.
381         (generate_makefile): Don't define EXEEXT or OBJEXT.
382         (scan_one_autoconf_file): Don't check for AC_EXEEXT.
383         (am_install_var): Don't check $seen_exeext.
384         (handle_programs): Likewise.
385         (rule_define): Allow x to override x$(EXEEXT), for now.
386         (file_contents_internal): Only define rule if rule_define allows
387         us to.
388         * m4/init.m4 (AM_INIT_AUTOMAKE): Define EXEEXT and OBJEXT.
389
390 2001-07-25  Tom Tromey  <tromey@redhat.com>
391
392         From Nicolas Joly:
393         * tests/pr9.test: Require GNU make.
394         * tests/dirname.test: Don't use `-u'.
395
396 2001-07-22  Tom Tromey  <tromey@redhat.com>
397
398         * tests/Makefile.am (TESTS): Added auxdir2.test.
399         (XFAIL_TESTS): Likewise.
400         * tests/auxdir2.test: New file.
401
402         * tests/Makefile.am (XFAIL_TESTS): Removed substtarg.test.
403         * automake.in (TARGET_PATTERN): Add `@' as allowable character.
404
405         * tests/Makefile.am (XFAIL_TESTS): Removed exeext.test.
406         * automake.in (am_install_var): Add $(EXEEXT) even if program name
407         holds `.'.  Don't add $(EXEEXT) if program name already has it.
408         (handle_programs): Don't add $(EXEEXT) if user already did.
409         (make_paragraphs): Don't compute EXEEXT.
410
411         * tests/Makefile.am (TESTS): Added exeext.test.
412         (XFAIL_TESTS): Likewise.
413         * tests/exeext.test: New file.
414
415 2001-07-22  Tom Tromey  <tromey@redhat.com>
416
417         * lib/am/progs.am (install-%DIR%PROGRAMS): Test for `prog', not
418         `prog.exe' on Cygwin with libtool.  From Robert Collins.
419
420 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
421
422         * tests/dirname.test: Explicitly use $SHELL to run the
423         script; this avoids failures on DJGPP.
424         * tests/install2.test: Skip if 'chmod 000' doesn't make
425         a file unreadable.
426
427 2001-07-21  Tom Tromey  <tromey@redhat.com>
428
429         * tests/libtool2.test: Check for libtoolize.
430
431         * tests/Makefile.am (TESTS): Added substtarg.test.
432         (XFAIL_TESTS): Likewise.
433         * tests/substtarg.test: New file.
434
435         * automake.in (handle_dist): Handle case where aux dir doesn't
436         have a Makefile.  Fixes depdist.test.
437         * tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
438         * tests/depdist.test: Look for config/depcomp.
439
440         * tests/Makefile.am (TESTS): Added depdist.test.
441         (XFAIL_TESTS): Likewise.
442         * tests/depdist.test: New file.  From Eric Magnien.
443
444         * tests/ccnoco.test: Removed `configure.2' test; in autoconf 2.50
445         AC_PROG_CC_C_O does require AC_PROG_CC.
446
447         From Erik Lindahl:
448         * lib/depcomp (tru64): Some Tru64 compilers use `foo.d' and not
449         `foo.o.d'.
450         * m4/depend.m4 (_AM_DEPENDENCIES): Check to make sure compilation
451         output is suitable for make.
452
453         * automake.texi (Macros): Document AM_PROG_AS.
454         (Assembly Support): New node.
455         * m4/Makefile.am (m4data_DATA): Added as.m4.
456         * m4/as.m4: New file.
457
458         * automake.texi (Tags): Added uref to global tags.
459
460 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
461
462         * automake.in (handle_single_transform_list): Use $(DEPDIR)
463         instead of hardcoding '.deps'.
464         * m4/depend.m4 (AM_SET_DEPDIR): Sync with libtool's libdir check.
465
466 2001-07-20  Derek Price  <dprice@collab.net>
467
468         * m4/header.m4 (AM_CONFIG_HEADER): Create stamp-h files in the correct
469         locations.
470         * tests/dirname.test: New test.
471         * tests/stamph2.test: New test.
472         * tests/Makefile.am: Add new tests.
473         * tests/Makefile.in: Regenerated.
474
475 2001-07-19  Tom Tromey  <tromey@redhat.com>
476
477         * automake.texi (Tags): Document GTAGS_ARGS.
478         * lib/am/tags.am (GTAGS): Added GTAGS_ARGS.  From Shigio Yamaguchi.
479
480 2001-07-19  Tom Tromey  <tromey@redhat.com>
481             Alexandre Duret-Lutz  <duret_g@epita.fr>
482
483         Fix for ccnoco.test, subobj8.test:
484         * m4/Makefile.am (m4data_DATA): Added auxdir.m4.
485         * tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test,
486         subobj8.test.
487         * m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile.
488         Use AM_AUX_DIR_EXPAND.
489         * lib/compile: Handle case where `-o' argument is the name of an
490         executable, not an object file.
491         * m4/auxdir.m4: New file, from...
492         * m4/missing.m4: ... here.  Moved AM_AUX_DIR_EXPAND.
493         * automake.in (handle_single_transform_list, lang_c_rewrite):
494         Require compile using `require_config_file'.
495
496 2001-07-19  Tom Tromey  <tromey@redhat.com>
497
498         * automake.texi (Program and Library Variables): Added X example
499         for _LDADD.
500
501 2001-07-19  Tom Tromey  <tromey@redhat.com>
502
503         * automake.texi (Distributing): Updated to reflect new license.
504
505 2001-07-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
506
507         * automake.in (require_build_directory): New function, extracted
508         from ...
509         (handle_single_transform_list): ... here.
510         (require_build_directory_maybe): New function.
511         (handle_prograns, handle_libraries, handle_ltlibraries): Call
512         require_build_directory_maybe() to ensure the subdirectory
513         in which a target may lie will exist when the target is created.
514         (handle_libraries, handle_ltlibraries): Use basename before
515         checking library name.
516         * lib/am/library.am (%LIBRARY%): Depend on %DIRSTAMP%.
517         * lib/am/ltlibrary.am (%LTLIBRARY%): Likewise.
518         * lib/am/program.am (%PROGRAM%): Likewise.
519
520 2001-07-18  Tim Van Holder  <tim.van.holder@pandora.be>
521
522         * m4/missing.m4: Reword comment.
523
524 2001-07-18  Pavel Roskin  <proski@gnu.org>
525
526         * automake.texi: Rename AM_DEPENDENCIES to _AM_DEPENDENCIES.
527         * tests/gcj.test: Likewise.
528         * tests/gcj2.test: Likewise.
529         * tests/gcj3.test: Likewise.
530
531 2001-07-18  Tom Tromey  <tromey@redhat.com>
532
533         * lib/compile: Change how lockdir is computed.  If linking or
534         compiling without `-o', just run the compiler.
535
536         * tests/Makefile.am (TESTS): Added ccnoco.test.
537         (XFAIL_TESTS): Likewise.
538         * tests/ccnoco.test: New file.
539
540 2001-07-17  Tom Tromey  <tromey@redhat.com>
541
542         * lib/ylwrap: Added special exception.
543         * lib/py-compile: Added license.
544         * lib/mdate-sh: Added special exception.
545         * lib/elisp-comp: Added special exception.
546         * lib/compile: Added special exception.
547         * lib/depcomp: Added special exception.
548
549         Report from Motoyuki Kasahara:
550         * tests/make.test: Use am__include.
551         * tests/exsource.test: Use am__include.
552         * m4/make.m4 (AM_MAKE_INCLUDE): Use am__include and am__quote.
553         * automake.in (handle_languages): Use am__include and am__quote.
554
555         * m4/depend.m4 (AM_DEPENDENCIES): Renamed to _AM_DEPENDENCIES.
556         * m4/init.m4: Updated callers.
557
558 2001-06-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
559
560         * aclocal.in (parse_arguments, write_aclocal): Update Copyrights.
561         * aclocal.in (scan_configure, add_file): Handle the full macro
562         name even if it contains numbers, such as I18N.
563
564 2001-07-16  Tom Tromey  <tromey@redhat.com>
565
566         * automake.texi (Dependencies): Link to dependency tracking page.
567         (Data): Mention dist_.
568         (Clean): Mention clean heuristics.
569         (Install): Mention nobase_.
570
571         * automake.texi (Program and Library Variables): Document _LINK.
572
573 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
574
575         * automake.in (handle_libraries): Allow libraries to lie in
576         a subdirectory by constraining only the basename to start
577         with 'lib', not the whole path.
578
579 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
580
581         * tests/subobj8.test: New file.
582         * tests/Makefile.am (XFAIL_TESTS, TESTS): Add subobj8.test.
583
584 2001-07-16  Tom Tromey  <tromey@redhat.com>
585
586         Fix for PR automake/212:
587         * lib/am/lisp.am (install-%DIR%LISP): Added missing `\'.
588         (uninstall-%DIR%LISP): Likewise.
589
590 2001-07-15  Tom Tromey  <tromey@redhat.com>
591
592         * automake.in (usage): Rewrote code to handle columnization.
593         From Alexey Mahotkin and Maxim Sinev.
594
595         Report from Ralf Corsepius:
596         * automake.in (TARGET_PATTERN): Add `+' as valid character.
597         (SUFFIX_RULE_PATTERN): Likewise.
598         * tests/Makefile.am (TESTS): Added cxx.test.
599         * tests/cxx.test: New file.
600
601         * lib/am/tags.am (distclean-tags): Remove files for gtags.
602         From Shigio Yamaguchi.
603
604 2001-07-14  Steve M. Robbins  <steve@nyongwa.montreal.qc.ca>
605
606         * lib/am/distdir.am (distcheck): Emit diagnostic when files
607         remain after "make uninstall".
608
609 2001-07-14  Tom Tromey  <tromey@redhat.com>
610
611         * lib/am/tags.am (.PHONY): Depend on GTAGS.  From Shigio Yamaguchi.
612
613         * lib/missing (makeinfo): Redirect stdout and stderr outside
614         subshell.  From Alexandre Oliva.
615
616 2001-07-14  Akim Demaille  <akim@epita.fr>
617
618         * automake.in ($obsolete_rx): No need for `\b(foo\b|\bbar)\b',
619         `\b(foo|bar)\b' is what we want.
620         * aclocal.in: Likewise.
621
622 2001-07-14  Akim Demaille  <akim@epita.fr>
623
624         * m4/depend.m4 (AM_DEPENDENCIES): Don't define `depcpp' which is
625         not used.
626         Do not require the corresponding AC_PROG_CC as AC_PROG_CC is
627         actually modified to require AM_DEPENDENCIES.
628         Rename `confdir' as `conftest.dir' so that the configure trap
629         remove it.
630
631 2001-07-04  Tom Tromey  <tromey@redhat.com>
632
633         Fix for nolink.test:
634         * tests/Makefile.am (XFAIL_TESTS): Removed nolink.test.
635         * lib/am/program.am (%PROGRAM%%EXEEXT%): Use %EXEEXT%.
636         * automake.in (am_install_var): Only rewrite PROGRAMS if
637         $seen_exeext.
638         (make_paragraphs): Always define %EXEEXT%.
639
640 2001-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
641
642         * tests/nolink.test: New file.
643         * tests/Makefile.am (TEST, XFAIL_TESTS): Add nolink.test.
644
645 2001-07-04  OKUJI Yoshinori  <okuji@gnu.org>
646
647         * automake.in (scan_texinfo_file): Add the second argument to
648         `@syncodeindex' into @CLEAN_SUFFIXES, because the combined index
649         itself may not be used directly.
650
651 2001-07-04  Tom Tromey  <tromey@redhat.com>
652
653         * missing: Updated.
654         * lib/missing (makeinfo): Use subshell, not explicit sh
655         invocation.
656
657         * automake.texi (Headers): Mention that we prefer uninstalled
658         headers in _SOURCES.
659         (ANSI): Mention cross-compilation limitation.
660
661 2001-07-03  Tom Tromey  <tromey@redhat.com>
662
663         * configure.in: Upped to 1.4i.
664
665         * configure.in: Released 1.4h.
666
667         * lib/config.guess, lib/config.sub: Updated.
668
669 2001-07-02  Tom Tromey  <tromey@redhat.com>
670
671         Fix for libtool2.test:
672         * tests/libtool2.test: Use `rm -f' to placate maintainer-check.
673         * lib/am/libtool.am (distclean-libtool): Conditional on TOPDIR.
674         * automake.in (generate_makefile): Call handle_libtool
675         unconditionally.
676         * tests/Makefile.am (XFAIL_TESTS): Removed libtool2.test.
677
678         * tests/libtool2.test: Look for `.lo' files to be removed.
679
680         * tests/Makefile.am (XFAIL_TESTS): Added libtool2.test.
681
682         * tests/Makefile.am (TESTS): Removed dup.test.
683         * tests/dup.test: Removed.
684         * aclocal.in (scan_file): Don't give error for duplicate macro.
685
686 2001-07-01  Tom Tromey  <tromey@redhat.com>
687
688         * automake.texi (Program and Library Variables): Document
689         subdir-objects.  Document fact that per-object flags override AM_
690         flags.
691         (Options): Likewise.
692         (Yacc and Lex): Document YFLAGS, AM_YFLAGS, LFLAGS, AM_LFLAGS.
693         (Multilibs): New node.
694         (Macros): Documented missing macros.
695         (Auxiliary Programs): New node.
696
697         * lib/missing (makeinfo): If makeinfo exists, and we're in --run
698         mode, then simply fail.
699
700 2001-07-01  Tim Van Holder  <tim.van.holder@pandora.be>
701
702         * lib/ylwrap: Improve support for DOS paths (and paths
703         containing backslashes in general).
704
705 2001-07-01  Tom Tromey  <tromey@redhat.com>
706
707         * lib/missing: Added special exception to license.
708
709         * missing: Updated.
710         * lib/missing: Updated.  Added comment explaining configure.ac
711         oddity.
712
713         * lib/depcomp: Reorder arguments to gcc3.
714         From Per Oyvind Hvidsten.
715
716         * tests/Makefile.am (TESTS): Added libtool2.test.
717         * tests/libtool2.test: New file.
718
719         * automake.texi (Program and Library Variables): Added example for
720         _AR.
721
722 2001-06-29  Tom Tromey  <tromey@redhat.com>
723
724         * tests/cond11.test: Use `=', not `=='.
725         * tests/cond12.test: Look for automake in build directory, not
726         source directory.
727
728 2001-06-29  Richard Boulton  <richard@tartarus.org>
729
730         * automake.in (conditionals_true_when): Pass first parameters by
731         reference, avoiding bug which put all parameters in @CONDS instead
732         of @WHENS.  Report by Kalle Olavi Niemitalo.
733         Take a single WHEN instead of an array of WHENS.
734         Remove FIXME; can't now have an empty @WHENS.
735         (conditional_is_redundant): New sub.
736         (variable_conditions_reduce): Check whether each condition is
737         implied by any of the other conditions (other those already
738         discarded), rather than checking only against those already
739         considered (and kept).  Also, fix sense of check: was keeping
740         tautologous terms instead of discarding them.  Use
741         conditional_is_redundant instead of conditionals_true_when.
742         * tests/Makefile.am (TESTS): Added cond11.test and cond12.test.
743         * tests/cond11.test: New file.
744         * tests/cond12.test: New file.
745
746 2001-06-29  Raja R Harinath  <harinath@cs.umn.edu>
747
748         * automake.in (saw_sources_p): Work even if there are more
749         than one header files, and more than of one type of header.
750         * tests/Makefile.am (TESTS): Added new file.
751         * tests/depend4.test: New file.
752
753 2001-06-28  Tom Tromey  <tromey@redhat.com>
754
755         * lib/am/libs.am (RANLIB): Don't define.
756
757 2001-06-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
758
759         * automake.in (am_install_var): Assign 1 to $first on
760         first interation.
761
762 2001-06-23  Tom Tromey  <tromey@redhat.com>
763
764         Fix for yacc5.test:
765         * lib/ylwrap: Changed usage.
766         * lib/am/yacc.am: Rewrote to use new substitutions.
767         * lib/am/lex.am: Likewise.
768         * automake.in (handle_languages): Skip files whose language
769         doesn't have a compiler.  Handle `define_flag' attribute.
770         Changed '$' to "\$" to aid Emacs fontification.
771         (struct): Added `rule_file'.  Removed `derived_autodep'.  Added
772         `_target_hook' and `define_flag'.
773         (yacc, yaccxx, lex, lexxx): Set `rule_file', `flags', `compile',
774         and `compiler' attributes.  Removed `linker', `derived_autodep',
775         and `ansi' attributes.  Added `define_flag'.
776         (yacc, yaccxx): Added `_target_hook'.
777         (saw_extension): Count number of times extension seen.
778         (count_files_for_language): New sub.
779         (saw_sources_p): Use it.
780         (handle_single_transform_list): Allow language rewrite function
781         to return a new source extension.  Call target_hook.
782         (yacc_sources, lex_sources): Removed.
783         (initialize_per_input): Don't initialize yacc_sources or
784         lex_sources.
785         (lang_yacc_rewrite): Rewrote.
786         (lang_yaccxx_rewrite): Likewise.
787         (lang_lex_rewrite): Likewise.
788         (lang_lexxx_rewrite): Likewise.
789         (output_yacc_build_rule): Removed.
790         (output_lex_build_rule): Removed.
791         (lang_yacc_finish): Removed build rule generation.
792         (lang_lex_finish): Likewise.
793         (DASH_D_PATTERN): New global.
794         (lang_yacc_target_hook): New function.
795         (_target_hook): New function.
796         (register_language): Default `define_flag'.
797         * tests/yacc5.test: Updated test.
798         * tests/yacc4.test: Exit with status 77 if bison doesn't work.
799         * tests/yacc3.test: Remove bogus `make' invocation.  Added test
800         for all YFLAGS variables.
801
802 2001-06-20  Tom Tromey  <tromey@redhat.com>
803
804         * tests/yacc5.test: Check for per-executable YFLAGS.
805
806 2001-06-19  Tom Tromey  <tromey@redhat.com>
807
808         * tests/Makefile.am (TESTS): Added yacc5.test.
809         * tests/yacc5.test: New file.
810
811 2001-06-17  Tom Tromey  <tromey@redhat.com>
812
813         * automake.in (require_file_internal): Check for already-required
814         file after searching for it, and only if it is not found.  Don't
815         use `readlink' when checking for dangling symlink.  Work if
816         --force-missing specified.
817         * tests/acoutput2.test: Also test --force-missing.
818
819         Fix for libtool.test:
820         * automake.in (generate_makefile): Call handle_libtool.
821         (handle_libtool): New sub.
822         (handle_compile): Don't read `libtool' file.
823
824         * tests/acoutput2.test: New file.
825         * tests/Makefile.am (TESTS): Added acoutput2.test.
826
827 2001-06-15  Tom Tromey  <tromey@redhat.com>
828
829         * tests/Makefile.am (TESTS): Added libtool.test.
830         * tests/libtool.test: New file.
831
832 2001-06-14  Tom Tromey  <tromey@redhat.com>
833
834         Fix some lisp bugs reported by Bruno Haible:
835         * lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
836         echo.
837         (install-%DIR%LISP): Handle case where lispdir is not defined.
838         (uninstall-%DIR%LISP): Likewise.
839         (.el.elc): Added `else' clause.
840
841         Fix for bug reported by Steve M. Robbins:
842         * automake.in (handle_single_transform_list): When building a file
843         from a subdirectory, continue to use `AM_' prefix.
844         * tests/Makefile.am (TESTS): Added subobj7.test.
845         * tests/subobj7.test: New file.
846
847         * lib/am/configure.am ($(top_builddir)/config.status): Added
848         $(top_builddir) prefix to work around problems with some vendor
849         makes.  From Nicholas Joly.
850
851         * automake.in (yacc_lex_finish_helper): Find ylwrap in
852         top_srcdir.  From Tim Van Holder.
853         * tests/Makefile.am (TESTS): Added yacc6.test.
854         * tests/yacc6.test: New file.
855
856 2001-06-14  Tim Van Holder  <tim.van.holder@pandora.be>
857
858         * tests/defs, tests/installsh.test: Properly support
859         DOS-style paths.
860
861 2001-06-14  Tom Tromey  <tromey@redhat.com>
862
863         * tests/Makefile.am (TESTS): Added mdate4.test.
864         * tests/mdate4.test: New file.
865
866         * aclocal.in (scan_m4_files): Removed unused variable.
867
868 2001-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
869
870         * aclocal.in (scan_m4_files): Tweak the building of &search so
871         that multiple macro names can be found on the same line.  Ensure
872         we match whole macro name, not only substrings.
873
874 2001-06-12  Tom Tromey  <tromey@redhat.com>
875
876         * automake.texi (ANSI): Minor clarification.
877         (Other GNU Tools): Don't mention Guile.
878         (Guile): Removed.
879         (Java Support): Mention file extensions.
880         (Man pages): Mention dist_.  Don't mention info pages.
881
882 2001-06-11  Tom Tromey  <tromey@redhat.com>
883
884         * automake.texi (Program variables): Document AM_CPPFLAGS.
885         Deprecate INCLUDES.
886         (Java Support): Document AM_GCJFLAGS.
887         (Support for Other Languages): Removed `fixme'; added link to
888         suffix rule handling.
889
890         * automake.texi (Program and Library Variables): Document _LIBADD,
891         _LDADD, _LDFLAGS, _AR, and _DEPENDENCIES.
892
893 2001-06-11  Kevin Dalley  <kevind@rahul.net>
894
895         * missing: Support configure.ac.
896
897 2001-06-08  Tom Tromey  <tromey@redhat.com>
898
899         * tests/version4.test: New file.
900         * automake.in (version_check): New sub.
901         (handle_options): Use it.
902         * tests/Makefile.am (AUTOMAKE_OPTIONS): Removed.
903         (TESTS): Added version4.test.
904         * m4/Makefile.am (AUTOMAKE_OPTIONS): Removed.
905         * Makefile.am (AUTOMAKE_OPTIONS): Remove `gnits'.
906
907 2001-06-04  Kevin Dalley  <kevind@rahul.net>
908
909         * lib/am/dejagnu.am (site.exp): Fix typo.
910
911 2001-06-02  Tom Tromey  <tromey@redhat.com>
912
913         * automake.in (variable_conditions_sub): Move parent-only code
914         from here...
915         (variable_conditions): ... to here.
916         (variable_conditions_sub): Include this variable's conditions in
917         the resulting condition list.
918         * tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
919
920 2001-06-01  Tom Tromey  <tromey@redhat.com>
921
922         * tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
923         (TESTS): Likewise.
924         * tests/ltdeps.test: New file.  Report from Lars J. Aas.
925
926 2001-05-31  Tom Tromey  <tromey@redhat.com>
927
928         * automake.texi (Alternative): New node.
929         (Macros): Use new name for gcc.
930         (Java Support): Likewise.
931         (Dependencies): Rewrote.
932         (Invoking Automake): (Re-)document -i, --ignore-deps, and
933         --include-deps.
934
935         * automake.texi (Top level): Removed erroneous spaces.  Documented
936         MAKE and MAKEFLAGS.
937
938 2001-05-29  Tom Tromey  <tromey@redhat.com>
939
940         * m4/init.m4 (AM_INIT_AUTOMAKE): Allow any AM_*FLAGS variable.
941
942         * automake.texi (Include): Rewrote.
943         (Suffixes): Remove Java example.
944         (Java): Added more explanation.  Document variables.
945         (Uniform): Mention JAVA as a primary.
946         (Python): Updated for new Python support.
947         (Sources): Added a weak example.
948
949         * lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
950
951         * automake.texi (A Program): Mention `check' prefix.
952         (Program and Library Variables): New node.
953         (Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
954         AM_MAKEINFOFLAGS.
955         (etags): Mention per-program flags.
956         (Tests): Document AM_RUNTESTFLAGS; added sectioning; more
957         updates.
958
959         * lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
960         install-info-am.
961
962 2001-05-28  Tom Tromey  <tromey@redhat.com>
963
964         * m4/Makefile.am (MAINT_CHARSET): Removed.
965         * Makefile.am (MAINT_CHARSET): Removed.
966         * automake.in (maint_charset, dist_charset): Removed.
967         (local_maint_charset): Removed.
968         (initialize_per_input): Don't use maint_charset.
969         (handle_dist): Don't compute maint_charset or check DIST_CHARSET.
970
971         * lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
972         AM_MAKEINFOFLAGS.
973         (.%SUFFIX%.dvi): Likewise.
974         (.%SUFFIX%): Likewise.
975
976 2001-05-27  Tom Tromey  <tromey@redhat.com>
977
978         * automake.in (handle_multilib): Only add multilib support code at
979         top level.
980         * lib/am/multilib.am: Handle invocation of *-multi targets
981         differently for SUBDIRS and non-SUBDIRS Makefiles.
982         * m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
983         Only add multilib code when the Makefile in question is actually
984         rebuilt.
985
986         * lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
987
988 2001-05-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
989
990         * automake.in (handle_single_transform_list): Skip unknown
991         extensions.
992
993 2001-05-25  Tom Tromey  <tromey@redhat.com>
994
995         * m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
996
997 2001-05-24  Tom Tromey  <tromey@redhat.com>
998
999         * automake.in (handle_texinfo_helper): Find mdate-sh in current
1000         directory in some situations.
1001
1002         * automake.in (generate_makefile): Better explanation for ansi2knr
1003         fix.
1004
1005 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1006
1007         * automake.in (handle_languages): Skip unknown extensions.
1008         (derive_suffix): Check whether $extension_map{$source_ext}
1009         is undefined, not empty.
1010
1011 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1012
1013         * automake.in (read_am_file): Ignore trailing backslash on
1014         comment lines.
1015
1016 2001-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1017
1018         * automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
1019
1020 2001-05-21  Akim Demaille  <akim@epita.fr>
1021
1022         * automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
1023         multiple times'' warning.
1024
1025 2001-05-20  Tom Tromey  <tromey@redhat.com>
1026
1027         * configure.in: Updated to 1.4g.
1028
1029         * configure.in: Updated to 1.4f.
1030
1031         * Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
1032
1033         * lib/ansi2knr.c: New version.
1034
1035         * Makefile.am (FETCHFILES): Added ansi2knr.c.
1036         (fetch): Likewise.
1037
1038 2001-05-19  Tom Tromey  <tromey@redhat.com>
1039
1040         * config.guess, config.sub: New versions from FSF.
1041
1042         * Makefile.am (fetch): Compare against files in srcdir.
1043
1044         For for ansi2knr report from Harlan Stenn:
1045         * automake.in (generate_makefile): Run handle_compile before
1046         handle_languages.
1047
1048 2001-05-18  Tom Tromey  <tromey@redhat.com>
1049
1050         * automake.in: Reverted erroneous checkin.
1051
1052 2001-05-18  Akim Demaille  <akim@epita.fr>
1053
1054         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
1055         to missing `install-info'.
1056
1057 2001-05-17  Tom Tromey  <tromey@redhat.com>
1058
1059         * automake.in (lang_c_finish): Use `rm -f'.
1060
1061         * automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
1062         * tests/Makefile.am (TESTS): Added new file.
1063         * tests/ansi5.test: New file.
1064
1065 2001-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1066
1067         * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
1068         STRIP is not empty.
1069         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
1070         to install-sh unconditionally.  Don't set INSTALL_STRIP_PROGRAM_ENV.
1071         * automake.texi (Requirements): Document the use of the STRIP
1072         variable in cross-compilation environments.
1073
1074 2001-05-17  Tom Tromey  <tromey@redhat.com>
1075
1076         * m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
1077         to no dependency tracking.
1078         * tests/Makefile.am (TESTS): Added depcomp2.test.
1079         * tests/depcomp2.test: New file.  From Pavel Roskin.
1080
1081         * lib/depcomp (aix): Bug fix and simplification from Larry Jones.
1082
1083         * lib/depcomp (tru64): New dependency tracking mode.
1084
1085         Fix for PR automake/159:
1086         * lib/depcomp (aix): Rewrote.
1087         (sgi): Likewise.
1088
1089         Fix for PR automake/174:
1090         * tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
1091         * automake.in (read_am_file): Warn if `#' is at start of rule.
1092
1093 2001-05-16  Tom Tromey  <tromey@redhat.com>
1094
1095         For PR automake/174:
1096         * tests/Makefile.am (TESTS): Added comment3.test.
1097         (XFAIL_TESTS): Likewise.
1098         * tests/comment3.test: New file.
1099
1100         Fix for PR automake/175:
1101         * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
1102         * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
1103         `Leaving directory' messages.
1104
1105         For PR automake/175:
1106         * tests/Makefile.am (XFAIL_TESTS): Added make.test.
1107         * tests/make.test: Run test with `make -w'.
1108
1109         * tests/Makefile.am (TESTS): Removed maintclean.test.
1110         * lib/am/clean.am (maintainer-clean-generic): Don't remove
1111         Makefile.in.
1112         * lib/am/configure.am (maintainer-clean-am): Removed.
1113         (maintainer-clean-conf): Removed.
1114         * tests/maintclean.test: Removed.
1115
1116 2001-05-15  Tom Tromey  <tromey@redhat.com>
1117
1118         Fix for PR automake/177:
1119         * Makefile.am (maintainer-clean): Set perllibdir before invoking
1120         automake or aclocal.
1121
1122         Fix for maintclean.test:
1123         * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
1124         * lib/am/clean.am (distclean-generic): Don't remove config.cache
1125         or config.log.
1126         (distclean, maintainer-clean): Moved to...
1127         * lib/am/configure.am: ... here.
1128         (distclean): Remove config.cache and config.log.
1129         (maintainer-clean): Removed.
1130         (maintainer-clean-conf): New target.
1131         (maintainer-clean-am): New target.
1132
1133         * tests/Makefile.am (TESTS): Added maintclean.test.
1134         (XFAIL_TESTS): Likewise.
1135         * tests/maintclean.test: New file.
1136
1137         Fixes PR automake/175:
1138         * tests/target-cflags.test: Use $needs_gnu_make.
1139         * tests/exsource.test: Use $needs_gnu_make.
1140         * tests/make.test: Require GNU make.
1141         * tests/defs (needs_gnu_make): Compute.
1142
1143 2001-05-14  Tom Tromey  <tromey@redhat.com>
1144
1145         * lib/ylwrap: Fixed quoting on regular expression.  Fixes
1146         yacc4.test.
1147
1148         Fix for texinfo10.test.
1149         * tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
1150         * lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
1151         * automake.in (handle_texinfo_helper): New sub.
1152         (handle_texinfo): Rewrote.  Now defines LOCAL-TEXIS.
1153         * tests/texinfo10.test: Added more cases.
1154
1155         Fix for yaccvpath.test:
1156         * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
1157         * lib/am/distdir.am (distdir): Always look for file in build
1158         directory first.
1159         * lib/ylwrap: Quote the `#line' regular expression.
1160         * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
1161         change; don't run sed on the generated file.
1162         * tests/yaccvpath.test: Create new parser in srcdir.  Added test
1163         to make sure parser will be rebuilt at dist time.
1164
1165 2001-05-13  Pavel Roskin  <proski@gnu.org>
1166
1167         * automake.in ($IGNORE_PATTERN): Allow spaces before comments
1168         beginning with `##'.
1169         * automake.texi (General Operation): Document it.
1170
1171 2001-05-13  Tom Tromey  <tromey@redhat.com>
1172
1173         Reported by Rainer Orth:
1174         * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
1175         TOPDIR_P.
1176         * tests/Makefile.am (TESTS): Added distname.test.
1177         * tests/distname.test: New file.
1178
1179         * Makefile.am (dist_pkgdata_DATA): Removed.
1180
1181         * tests/defs: Find files to copy in lib/.
1182         * automake.in (perllibdir): Set to Automake directory.
1183         * ansi2knr.c, ansi2knr.1: Removed.
1184         * Makefile.am (dist_am_DATA): Removed.
1185         (amdir): Removed.
1186         (maintainer-check): Look for lib/am/*.am.  Expect 28 lines of
1187         diffs.
1188         (scriptdir): Removed.
1189         (dist_script_DATA): Likewise.
1190         (install-data-hook): Likewise.
1191         (installcheck-local): Likewise.
1192         (TAGS_FILES): Removed amfiles.
1193         (dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
1194         * tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
1195         point it to the right directory.
1196         * ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
1197         compile.am, configure.am, data.am, dejagnu.am, depend.am,
1198         depend2.am, distdir.am, footer.am, header-vars.am, header.am,
1199         install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
1200         libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
1201         mans.am, multilib.am, program.am, progs.am, python.am,
1202         remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
1203         texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
1204         * configure.in (AC_OUTPUT): Added lib/am/Makefile.
1205         (AUTOMAKE): Use --libdir, not --amdir.
1206         Ues AC_CONFIG_AUX_DIR.
1207         * lib/Makefile.am (SUBDIRS): Added `am'.
1208         (scriptdir): New macro.
1209         (dist_script_DATA): Likewise.
1210         (dist_pkgdata_DATA): Likewise.
1211         (install-data-hook): New target.
1212         (installcheck-local): Likewise.
1213         * lib/am/Makefile.in: New file.
1214         * lib/am/Makefile.am: Removed everything except amdir and
1215         dist_am_DATA.
1216
1217 2001-05-13  Akim Demaille  <akim@epita.fr>
1218
1219         * automake.in ($pkgdata_dir): Rename as...
1220         ($libdir): this.
1221         ($am_dir): Remove, replace its uses with $libdir.
1222         (&parse_arguments): Replace --amdir with --libdir.
1223         * automake.texi (Invoking Automake): Document --libdir, not
1224         --amdir.
1225         * tests/defs (AUTOMAKE): Use --libdir, not --amdir.
1226
1227 2001-05-13  Tom Tromey  <tromey@redhat.com>
1228
1229         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
1230         not AMDEP.
1231         * m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
1232         Correctly look at AMDEP_TRUE, not AMDEP.
1233
1234         Report from Robert Boehne:
1235         * tests/Makefile.am (TESTS): Added depend2.test.
1236         * tests/depend2.test: New file.
1237
1238 2001-05-13  James Henstridge  <james@daa.com.au>
1239
1240         * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
1241         Point pythondir at site-packages directory.  Rename
1242         PYTHON_SITE_PACKAGE to pkgpythondir.  Rename PYTHON_SITE_EXEC to
1243         pyexecdir.  Removed package/module argument.  Removed
1244         PYTHON_SITE_INSTALL.  Added version checking.
1245
1246 2001-05-14  Jim Meyering  <meyering@lucent.com>
1247
1248         * automake.in (macro_define): Change one remaining use of
1249         `variable_dump' to `macro_dump'.
1250
1251 2001-05-13  Tom Tromey  <tromey@redhat.com>
1252
1253         * m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
1254         and gcj.
1255
1256 2001-05-13  Akim Demaille  <akim@epita.fr>
1257
1258         * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
1259         (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
1260         (&am_primary_prefixes): Use `map' rather than `grep'.
1261
1262 2001-05-13  Akim Demaille  <akim@epita.fr>
1263
1264         * automake.in (Language): Set config_vars for yacc, yaccxx, lex,
1265         lexxx, asm.
1266         (&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
1267         (&lang_asm_finish): Remove, set asm's finisher to C's one.
1268
1269 2001-05-13  Akim Demaille  <akim@epita.fr>
1270
1271         * lang-compile.am: New file, loaded once per language.
1272         * depend2.am: Move definitions loaded once per language in the
1273         aforementioned file.
1274         * automake.in (&handle_languages): Load it.
1275         (&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
1276         handled by lang-compile.am.
1277
1278 2001-05-13  Tom Tromey  <tromey@redhat.com>
1279
1280         * tests/Makefile.am (TESTS): Added python.test.
1281         * tests/python.test: New file.
1282         * automake.in (handle_languages): Use
1283         config_aux_dir_set_in_configure_in.
1284         (handle_python): Correctly mention AM_PATH_PYTHON.  Use
1285         py-compile, not py_comp.  Define py_compile macro.
1286
1287 2001-05-13  Derek Price  <dprice@openavenue.com>
1288
1289         * automake.in (require_file_with_conf_line,
1290         require_file_with_line, require_file): Pass a @require_file_path
1291         of $relative_dir instead of '.' to require_file_internal so that
1292         all the special casing of '.' can be removed elsewhere.
1293         (require_config_file, require_conf_file_with_line,
1294         require_conf_file_with_conf_line): Remove special casing for '.'
1295         and make sure $config_aux_dir is maintained properly.
1296         (require_file_internal): Remove special casing of '.' and set
1297         @require_file_path when missing files are added.
1298         (maybe_push_required_file): Remove special casing of '.'
1299         (handle_dependencies): Remove a workaround for a bug now fixed
1300         and remove $config_aux_dir special casing.
1301         (handle_configure): Remove special casing for $config_aux_dir
1302         (handle_python): Ditto.
1303         (yacc_lex_finish_helper): Change $config_aux_dir switch to
1304         switch on the value of $config_aux_dir_set_in_configure_in.
1305         (handle_texinfo): Ditto.
1306         (scan_one_configure_file): Set $config_aux_dir and
1307         $config_aux_dir_set_in_configure_in properly so special casing
1308         on the value of $config_aux_dir can be removed elsewhere.
1309         * tests/depcomp.test: New file.
1310         * tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
1311         first subdir containing a C file.
1312         * tests/libobj2.test: Ditto.
1313         * tests/Makefile.am (TESTS): Added 'depcomp.test'.
1314
1315 2001-05-12  Tom Tromey  <tromey@redhat.com>
1316
1317         * tests/gcj.test: Updated for gcj dependency tracking.
1318         * tests/gcj2.test: Likewise.
1319
1320         Fixes PR automake/169.
1321         * m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ.  Don't assume gcc
1322         style for OBJC.
1323         * automake.in (java): Added autodep entry.
1324         * tests/Makefile.am (TESTS): Added gcj3.test.
1325         * tests/gcj3.test: New file.
1326
1327 2001-05-12  Raja R Harinath  <harinath@cs.umn.edu>
1328
1329         * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
1330         stop at the first '='.
1331         * tests/Makefile.am (TESTS): Added vars.test.
1332         * tests/vars.test: New file.
1333
1334 2001-05-12  Akim Demaille  <akim@epita.fr>
1335
1336         * automake.in (&handle_single_transform_list): Simplify
1337         computation of $object and $this_obj_ext.
1338         * tests/lex3.test: Merge into...
1339         * tests/lex.test: here.
1340         * tests/pr19.test: Improve and rename as...
1341         * tests/lex3.test: this.
1342
1343 2001-05-09  Tom Tromey  <tromey@redhat.com>
1344
1345         * automake.in (read_am_file): Correctly compute $saw_bk.
1346         (scan_autoconf_files): Ensure configure_dist_common is always
1347         set.
1348         * tests/defs (AUTOMAKE): Added --Werror.
1349
1350 2001-05-09  Pavel Roskin  <proski@gnu.org>
1351
1352         * automake.in (define_compiler_variable): Escape $(LIBTOOL) in
1353         double quotes.
1354
1355 2001-05-09  Tom Tromey  <tromey@redhat.com>
1356
1357         * tests/werror.test: Use `rm -f'.
1358
1359 2001-05-09  Akim Demaille  <akim@epita.fr>
1360
1361         * automake.in (&am_line_warning): Invoke `am_line_error', not itself.
1362
1363 2001-05-09  Akim Demaille  <akim@epita.fr>
1364
1365         * automake.in: Remove some code left from bad patches.
1366         (&handle_dependency): Remove, for the same reason.
1367
1368 2001-05-09  Akim Demaille  <akim@epita.fr>
1369
1370         * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
1371         (&handle_tests_dejagnu, &define_standard_variables): Don't.
1372         (&define_standard_variables): Don't transform %top_builddir% since...
1373         * header-vars.am: Use %TOPDIR% instead.
1374
1375 2001-05-09  Akim Demaille  <akim@epita.fr>
1376
1377         * automake.in (@objects): Remove, unused.
1378         Remove all the code related to it, and to former `$(OBJECTS)'.
1379
1380 2001-05-08  Tom Tromey  <tromey@redhat.com>
1381
1382         For PR automake/29:
1383         * ylwrap: Handle arguments to program.  Remove old code that tried
1384         to avoid absolute paths and add new code to do it in all cases.
1385         Removed ancient logic that tried to deal with relative path.
1386         * tests/Makefile.am (TESTS): Added yacc4.test.
1387         * tests/yacc4.test: New file.
1388
1389         Fix for PR automake/149 and werror.test:
1390         * automake.in (require_file_internal): Use am_line_warning or
1391         am_conf_line_warning when suppressing error.
1392         (am_line_warning): New sub.
1393         (am_conf_line_warning): Save and restore warning signal.
1394         * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
1395
1396         Fix for PR automake/36:
1397         * tests/Makefile.am (TESTS): Added asm.test.
1398         * tests/asm.test: New file.
1399         * automake.in (asm): Use ASFLAGS and AS.
1400         (lang_asm_finish): New sub.
1401
1402         * automake.in (read_am_file): Removed debugging code.
1403
1404         For PR automake/149:
1405         * tests/Makefile.am (TESTS): Added werror.test.
1406         (XFAIL_TESTS): Likewise.
1407         * tests/werror.test: New file.
1408
1409         * automake.in (conditional_true_when): Don't return if we see
1410         `TRUE'.
1411
1412         * tests/objc.test: Removed.
1413         * tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
1414         (TESTS): Likewise.
1415
1416         * automake.in (subst): New sub.
1417         (handle_languages): Use it.
1418         (output_lex_build_rule): Likewise; also use _am_quote.
1419         (check_libobjs_sources): Likewise.
1420         (make_paragraphs): Use subst.
1421
1422         * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
1423         problem.
1424
1425         * automake.in (file_contents_internal): Prototype now `$$%'.
1426         (register_language): Prototype now `%'.
1427
1428         Fixes test subobj6.test and PR automake/160:
1429         * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
1430         * compile.am (mostlyclean-compile): Added MOSTLYRMS.
1431         (distclean-compile): Added DISTRMS.
1432         * tests/subobj6.test (wish_SOURCES): Updated to reflect
1433         `mostlyclean' use; added test for non-subdir case.
1434         * automake.in (compile_clean_files): New global.
1435         (MOSTLY_CLEAN, DIST_CLEAN): New constants.
1436         (initialize_per_input): Initialize compile_clean_files.
1437         (handle_single_transform_list): Set compile_clean_files entries.
1438         (handle_compile): Handle compilation cleanups.
1439
1440 2001-05-08  Lars J. Aas  <larsa@sim.no>
1441
1442         * automake.texi (Canonicalizing Automake macros): Document not
1443         canonicalizing strudels (@) anymore.
1444
1445 2001-05-08  Akim Demaille  <akim@epita.fr>
1446
1447         * distdir.am (dist-all): Build all the flavors using a single
1448         distdir.
1449
1450 2001-05-08  Akim Demaille  <akim@epita.fr>
1451
1452         * automake.in (&file_contents_internal): Apply the @cond_stack to
1453         the rules and assignments.
1454         Don't rely on `$.' as it's biased by &make_paragraphs.
1455         Don't remove backslashes in variable values.
1456
1457 2001-05-08  Akim Demaille  <akim@epita.fr>
1458
1459         * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
1460         ($RULE_PATTERN): Use that from `&make_paragraphs'.
1461         ($MACRO_PATTERN): Just catch the name of a macro.
1462         ($BOGUS_MACRO_PATTERN): Remove.
1463         ($ASSIGNMENT_PATTERN): New.
1464         (&file_contents_internal, &make_paragraphs): Adjust.
1465         (&macro_define): Catch bad macro names.
1466         (&cond_stack_endif): Better error message.
1467         (&file_contents_internal): Don't remove backslashes in variable
1468         values.
1469         (&macro_define): Do it for `+=' user variables.
1470         (&define_standard_variables): Use `undef' instead of a dummy
1471         variable.
1472         (&make_paragraph): Be sure not to chop the trail of hash only
1473         lines: adjust the `##' regexp.
1474         (&rule_define): Fix a bug: don't read $1 but $target.
1475         * tests/condincl.test: Strengthen.
1476
1477 2001-05-08  Akim Demaille  <akim@epita.fr>
1478
1479         * automake.in (Language): Add attributes `Name' and `config_vars'.
1480         (&finish): Work properly if there is no _finish.
1481         (Automake): Register language Names and AC_SUBST dependencies.
1482         Register Fortran 77 variables upon which ratfor and ppf77 depend.
1483         (&handle_languages): Once per language, invoke
1484         `define_linker_variables', and check its config_vars.
1485         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
1486         (&lang_java_finish): Remove.
1487         (&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
1488
1489 2001-05-08  Akim Demaille  <akim@epita.fr>
1490
1491         * automake.in (&file_contents_internal): Accept $IS_AM.
1492         (&handle_compile, &define_standard_variables, &file_contents): Adjust.
1493
1494 2001-05-08  Akim Demaille  <akim@epita.fr>
1495
1496         * automake.in (am_install_var): Use `next' instead of `if' on the
1497         body of $X loop.
1498
1499 2001-05-08  Akim Demaille  <akim@epita.fr>
1500
1501         * automake.in (Language): Add attributes `lder' and `ld'.
1502         (&register_language): Specify for cxx, objc, f77, gcj.
1503         (&define_linker_variable): New.
1504         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
1505         (&lang_java_finish): Adjust.
1506         (&libtool_compiler): Remove.
1507
1508 2001-05-08  Akim Demaille  <akim@epita.fr>
1509
1510         * automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
1511         argument, as you don't use it.
1512         Hence...
1513         (&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
1514         don't use it.
1515         Hence...
1516         (&handle_programs): Don't mess with %lex_sources, as you don't use
1517         it.
1518
1519 2001-05-08  Akim Demaille  <akim@epita.fr>
1520
1521         * automake.in (Language): Add attribute `link'.
1522         (&register_language): Specify for cxx, objc, f77, gcj.
1523         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
1524         (&lang_java_finish): Adjust.
1525
1526 2001-05-08  Akim Demaille  <akim@epita.fr>
1527
1528         * automake.in (&define_compiler_variables): Use only $LANG as
1529         argument.
1530         (&handle_languages): Adjust.
1531
1532 2001-05-08  Akim Demaille  <akim@epita.fr>
1533
1534         * automake.in (&define_program_variable): Remove.
1535         (&scan_one_autoconf_file): Skip MAKEINFO when found in an
1536         AM_MISSING_PROG.
1537         (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
1538         * texinfos.am: Do it.
1539
1540 2001-05-08  Akim Demaille  <akim@epita.fr>
1541
1542         * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
1543         RUNTEST.
1544         * dejagnu.am: Do it.
1545         (site.exp): Use `if'.
1546
1547 2001-05-08  Akim Demaille  <akim@epita.fr>
1548
1549         * automake.in: Formatting changes.
1550         (variable_dump, variables_dump): Rename as...
1551         (macro_dump, macros_dump): these.
1552
1553 2001-05-08  Akim Demaille  <akim@epita.fr>
1554
1555         Support `if !COND', `else COND', `end COND'.
1556
1557         * automake.texi (Conditionals): Document it.
1558         * automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
1559         ($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
1560         ($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
1561         a leading `!' before the condition.
1562         (&handle_options): Use `\d'.
1563         (&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
1564         (&read_am_file, &file_contents_internal): Use them.
1565         (&transform): No longer substitute `%!COND%', forcing the use of
1566         `! %?COND%'.
1567         * ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
1568
1569 2001-05-08  Akim Demaille  <akim@epita.fr>
1570
1571         Uniform handling of per-object compilation rules.
1572         Note: Automake is repaired.
1573
1574         * automake.in (&handle_languages): Output per object rules for all
1575         the objects, not only for those which language supports dependency
1576         tracking.
1577         Fix Automake: when outputting per-object rules, use `-o' if the
1578         language has no `output_flag', as it's really needed.
1579         (&handle_single_transform_list): Instead of special casing files
1580         which need per object rules but which language don't support
1581         dependency tracking, keep them in the queue for processing by
1582         `&handle_languages'.
1583
1584 2001-05-08  Akim Demaille  <akim@epita.fr>
1585
1586         * automake.in (&handle_languages): `ext-compile.am' and
1587         `depend2.am' are now equivalent for generic rules: output only the
1588         latter.
1589         * ext-compile.am: Remove.
1590
1591 2001-05-08  Akim Demaille  <akim@epita.fr>
1592
1593         Note: This patch breaks Automake.  Repaired within two patches.
1594
1595         * automake.in (Language): Replace the attribute `output_arg' with
1596         `compile_flag' and `output_flag'.
1597         (Automake): Adjust language registrations.
1598         (&handle_languages): Transform `-c' and `-o' for both suffix and
1599         per object rules, instead of `OUTARG' and `LTOUTARG' only for
1600         generic rules.
1601         (&handle_single_transform_list): Adjust to `compile_flag' and
1602         `output_flag'.
1603         * depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
1604
1605 2001-05-08  Akim Demaille  <akim@epita.fr>
1606
1607         * automake.in (&handle_languages): Don't transform %COMPILER%.
1608         Use `$lang->compiler' instead of `$pfx' to transform generic
1609         %COMPILE% and %LTCOMPILE%.
1610         * ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
1611         of %COMPILER% and $<.
1612
1613 2001-05-07  Akim Demaille  <akim@epita.fr>
1614
1615         * automake.in (&handle_languages): Use the same `%transform' for
1616         both `depend2.am' and `ext-compile.am'.
1617         Delay the definition of `$flag' so it is right before the first use,
1618         and rename as `$flags'.
1619
1620 2001-05-07  Akim Demaille  <akim@epita.fr>
1621
1622         * automake.in (&handle_languages): Compute `$ltoutarg' and
1623         `$outarg' independently of dependency code.
1624         There is no use looping on a language's possible extensions since
1625         we loop over used extensions.
1626         Therefore, there is no use for a local `%transform'.
1627
1628 2001-05-07  Akim Demaille  <akim@epita.fr>
1629
1630         * automake.in (&handle_languages): Don't use $comp.
1631
1632 2001-05-07  Akim Demaille  <akim@epita.fr>
1633
1634         * automake.in (&handle_languages): Merge the two loops over
1635         %extension_seen/%languages into one and group code to be run once
1636         per language together.
1637
1638 2001-05-07  Akim Demaille  <akim@epita.fr>
1639
1640         * automake.in (&handle_languages): Move the `if
1641         ($use_dependencies)' block so that loops over extensions and
1642         languages are next to each other.
1643
1644 2001-05-07  Akim Demaille  <akim@epita.fr>
1645
1646         * automake.in (&depend2): Remove, merged into...
1647         (&handle_languages): here.
1648
1649 2001-05-07  Akim Demaille  <akim@epita.fr>
1650
1651         * automake.in (&finish_languages): Rename as...
1652         (&handle_languages): this.
1653         Include the body of...
1654         (&handle_dependency): this.
1655         Remove.
1656
1657 2001-05-06  Tom Tromey  <tromey@redhat.com>
1658
1659         For PR automake/46:
1660         * tests/Makefile.am (TESTS): Add subdir5.test.
1661         (XFAIL_TESTS): Likewise.
1662         * tests/subdir5.test: New file.
1663
1664         * tests/subobj6.test (wish_SOURCES): Use $MAKE.
1665         * tests/subobj5.test (wish_SOURCES): Use $MAKE.
1666
1667         * automake.in (GNITS_VERSION_PATTERN): Document.  Add `fork
1668         identifier'.
1669         (handle_options): Handle fork identifier in version number.
1670
1671         * automake.texi (Dist): Document distcheck-hook.
1672
1673         * tests/confh4.test: Update to reflect DEFS change.
1674         For PR automake/132.
1675
1676         Fix for PR automake/132:
1677         * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
1678         compilation.
1679         (java): Remove INCLUDES and DEFS from compilation.
1680         (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
1681         * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
1682         (DEFAULT_INCLUDES): New macro.
1683
1684         * automake.in (usage): Re-align explanatory text.
1685         Fixes PR automake/148.
1686
1687         * automake.texi (Uniform): Don't use @PROGRAMS@.
1688         Fixes PR automake/154.
1689
1690         For PR automake/160:
1691         * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
1692         (XFAIL_TESTS): Add subobj6.test.
1693         * tests/subobj6.test: New file.
1694
1695         * automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
1696         (Top level): Don't mention `flat'.
1697         (Extending): Likewise.
1698         (User Variables): New node.
1699
1700         * distdir.am (distdir): Make subdirectory for each file.
1701         Fixes test subobj5.test.
1702
1703         * tests/Makefile.am (TESTS): Add new file.
1704         (XFAIL_TESTS): Likewise.
1705         * tests/texinfo10.test: New file.
1706
1707 2001-05-05  Pavel Roskin <proski@gnu.org>
1708
1709         * automake.in (scan_texinfo_file): Treat @defindex and @synindex
1710         in the same way as @defcodeindex and @syncodeindex respectively.
1711
1712 2001-05-05  Tom Tromey  <tromey@redhat.com>
1713
1714         * mans.am (install-man%SECTION%): Minor cleanup.
1715         (uninstall-man%SECTION%): Likewise.
1716
1717         * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
1718         * mans.am (install-man%SECTION%): Handle dist_ and nodist_
1719         prefixes.
1720         (uninstall-man%SECTION%): Likewise.
1721         * automake.in (handle_man_pages): Handle dist_ and nodist_
1722         prefixes.
1723
1724         * automake.texi (Future): Removed.
1725         (Depth): Removed.
1726         (Hello): Don't mention `deep'.
1727         (Top level): Likewise.
1728
1729         * automake.in (conditional_true_when): Use a hash, not index().
1730         Also, a TRUE component always results in a true return.
1731         Fixes test cond10.test.  For PR automake/164.
1732         * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test.
1733
1734 2001-05-05  Raja R Harinath  <harinath@cs.umn.edu>
1735
1736         For PR automake/164:
1737         * tests/Makefile.am (TESTS): Added new file.
1738         (XFAIL_TESTS): Likewise.
1739         * tests/cond10.test: New file.
1740
1741 2001-05-05  Tom Tromey  <tromey@redhat.com>
1742
1743         * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
1744         prints to stderr.
1745         (install-info-am): Likewise.
1746
1747 2001-05-05  Pavel Roskin <proski@gnu.org>
1748
1749         * automake.in (scan_texinfo_file): Don't push undefined values
1750         to @clean_suffixes.
1751
1752 2001-05-05  Richard Boulton  <richard@tartarus.org>
1753
1754         * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
1755         first.
1756
1757 2001-05-05  Robert Collins  <robert.collins@itdomain.com.au>
1758
1759         * automake.in (required_targets): Added uninstall-am.
1760
1761 2001-05-05  Tom Tromey  <tromey@redhat.com>
1762
1763         Fix bug reported by Robert Boehne:
1764         * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
1765         substituted.
1766         (handle_dependencies): Likewise.
1767         * Makefile.am (maintainer-check): Look for AMDEP_TRUE
1768         substitution.  Correct diff now has 30 lines.  Look for space
1769         after losing `undef'.
1770
1771 2001-05-04  Peter Eisentraut  <peter_e@gmx.net>
1772
1773         * m4/sanity.m4: Remove the temp file before possible error exits.
1774
1775 2001-05-04  Akim Demaille  <akim@epita.fr>
1776
1777         * configure.in: Set perllibdir.
1778         From Dave Morrison.
1779
1780 2001-05-04  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
1781
1782         * automake.in ($pkgdata_dir): New.
1783         (&require_file_internal): Use it.
1784
1785 2001-05-03  Akim Demaille  <akim@epita.fr>
1786
1787         Case insensitive FS choke on Automake/ vs automake.
1788         Reported by Tim Van Holder.
1789
1790         * Automake/: Move into...
1791         * lib/: this new directory.
1792
1793 2001-05-03  Raja R Harinath  <harinath@cs.umn.edu>
1794
1795         * data.am (install-%DIR%%PRIMARY%): Execute the same command as
1796         echoed.
1797
1798 2001-04-30  Jim Meyering  <meyering@lucent.com>
1799
1800         * automake.in: Remove `/lib' from include directory.
1801
1802 2001-04-27  Akim Demaille  <akim@epita.fr>
1803
1804         AM_INIT_AUTOMAKE is no longer optional.
1805
1806         * automake.in ($seen_make_set, $seen_prog_install)
1807         ($seen_arg_prog): Remove.
1808         (&handle_programs, &handle_scripts, &scan_one_autoconf_file):
1809         Remove related code.
1810
1811 2001-04-27  Akim Demaille  <akim@epita.fr>
1812
1813         * tests/specflags4.test, tests/specflags5.test: Remove, merged
1814         into...
1815         * tests/specflags3.test: here.
1816
1817 2001-04-27  Akim Demaille  <akim@epita.fr>
1818
1819         * automake.in ($seen_path_xtra): Remove.
1820         (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
1821         (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
1822
1823 2001-04-27  Akim Demaille  <akim@epita.fr>
1824
1825         * automake.in (&file_contents_internal): Declare it.
1826
1827 2001-04-27  Akim Demaille  <akim@epita.fr>
1828
1829         * automake.in (&read_am_file, &file_contents_internal): Don't
1830         define macros when `FALSE', to avoid errors on doubly defined
1831         variables but under condition `FALSE'.  In order to allow...
1832         (&am_install_var): When reading the associated file for the first
1833         time, enable `%?FIRST%'.
1834         (&handle_libraries): Let libs.am define $(AR) and $(RANLIB).
1835         * libs.am: Do it when `%?FIRST%'.
1836
1837 2001-04-27  Akim Demaille  <akim@epita.fr>
1838
1839         * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
1840         * ansi2knr.am: Do it.
1841         Prefer `if %?FOO%' to `if %!FOO%'.
1842
1843 2001-04-27  Akim Demaille  <akim@epita.fr>
1844
1845         * automake.in (&register_language, &finish_languages): Use `pure'
1846         as a Boolean.
1847         (&register_language): Use %done properly with objects, not names.
1848         (&finish_languages): Replace `$non_c' with `$needs_c'.
1849
1850 2001-04-27  Akim Demaille  <akim@epita.fr>
1851
1852         Unify LISP, PYTHON and JAVA primaries.
1853
1854         * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e.,
1855         return if there are no files, hook elisp-comp on the Autoconf
1856         macro, rely on lisp.am to define variables.
1857         (&handle_python, &handle_java): Likewise.
1858         (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and
1859         `PYTHON' must be handled here, not in `&handle_python'.
1860         * java.am: Define needed variables and rules.
1861
1862 2001-04-27  Akim Demaille  <akim@epita.fr>
1863
1864         * automake.in (&am_install_var): Transform `ONE_PRIMARY'.
1865         * data.am: Use it.
1866         * header.am: Include data.am.
1867
1868 2001-04-27  Akim Demaille  <akim@epita.fr>
1869
1870         * automake.in (&am_install_var): Transform `PRIMARY'.
1871         * data.am: Equip with %PRIMARY%.
1872
1873 2001-04-27  Akim Demaille  <akim@epita.fr>
1874
1875         * automake.in (@conditional_stack): Rename as...
1876         (@cond_stack): this.
1877         (&file_contents_internal): Support inclusion of files.
1878
1879 2001-04-27  Akim Demaille  <akim@epita.fr>
1880
1881         * automake.in (&lang_extensions): Remove.
1882         (&add_depend2, &saw_sources_p): Adjust.
1883         * depend2.am: `%EXT%' no longer includes the dot.
1884
1885 2001-04-27  Akim Demaille  <akim@epita.fr>
1886
1887         * automake.in (&finish_languages, &handle_single_transform_list)
1888         (&add_depend2, &handle_dependencies): No longer use the language
1889         name in `$lang'.  Rename `$lang_obj' as `$lang'.
1890
1891 2001-04-27  Akim Demaille  <akim@epita.fr>
1892
1893         * automake.in (&register_language): Use `new Language' with a hash.
1894
1895 2001-04-27  Akim Demaille  <akim@epita.fr>
1896
1897         * automake.in (&register_language): Rename `output-arg' and
1898         `derived-autodep' as `output_arg' and `derived_autodep' to match
1899         the Language attribute.
1900         Set the defaults in %option instead of $lang.
1901
1902 2001-04-27  Akim Demaille  <akim@epita.fr>
1903
1904         * Automake/: New directory.
1905         * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct.
1906         * automake.in (Language): Use Automake::Struct.
1907         * tests/defs: Adjust to find Struct.
1908
1909 2001-04-23  Pavel Roskin <proski@gnu.org>
1910
1911         * automake.in: Add forward declaration for register_language().
1912         * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
1913         passes now.
1914
1915 2001-04-20  Akim Demaille  <akim@epita.fr>
1916
1917         * automake.in (%required_targets): Add `uninstall'.
1918         From Robert Collins.
1919
1920 2001-04-12  Akim Demaille  <akim@epita.fr>
1921
1922         * automake.in (Language): Add attribute `name'.
1923         (&register_language): The name of the language is now given in the
1924         hash.
1925         No longer use `$lang' as the name of the language.
1926         Rename `$lang_obj' as `$lang'.
1927
1928 2001-04-12  Akim Demaille  <akim@epita.fr>
1929
1930         * automake.in (Language): Add attribute `_finish'.
1931         (&finish): New.
1932         (Automake): Adjust.
1933         (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish)
1934         (&lang_asm_finish): Remove.
1935
1936 2001-04-12  Akim Demaille  <akim@epita.fr>
1937
1938         * automake.in (Language): Add attribute `extensions'.
1939         (Automake): Pass a hash to `&register_language' instead of a
1940         list of pseudo assignments.
1941         (&register_language): Adjust.
1942         (&finish_languages): Initialize `$ltoutarg'.
1943
1944 2001-04-12  Akim Demaille  <akim@epita.fr>
1945
1946         * automake.in (Language): Add attribute `output_arg'.
1947         (%language_map): Remove.
1948         (&register_language): Build only the object, and store in
1949         %languages only.
1950         (&finish_languages, &handle_single_transform_list): Adjust.
1951
1952 2001-04-12  Akim Demaille  <akim@epita.fr>
1953
1954         * automake.in (Language): Add attributes `flags', `compile' and
1955         `compiler'.
1956         (&finish_languages, &handle_single_transform_list, &handle_dist)
1957         (&add_depend2, &register_language): Use them and the `linker' and
1958         `pure' attributes.
1959
1960 2001-04-12  Akim Demaille  <akim@epita.fr>
1961
1962         * automake.in (&handle_single_transform_list, &finish_languages)
1963         (&handle_dist, &handle_dependencies): Use the language object for
1964         autodep and derived-autodep too.
1965
1966 2001-04-12  Akim Demaille  <akim@epita.fr>
1967
1968         * automake.in (&macro_define): Ignore Automake definition for
1969         ($var, $cond) if there is already a user definition for ($var, $cond).
1970
1971 2001-04-12  Akim Demaille  <akim@epita.fr>
1972
1973         * automake.in (&scan_texinfo_file): Catch @cindex and the like,
1974         but also @deffn and so on which push data in indexes.
1975         Reported by Derek R. Price.
1976
1977 2001-04-12  Akim Demaille  <akim@epita.fr>
1978
1979         * automake.in (Language): New package, temporarily in this file.
1980         Use Class::Struct.
1981         (Automake): New package.
1982         (%languages): New.
1983         (&handle_single_transform_list): Use the language object's `ansi'
1984         attribute instead of `$language_map{"$lang-ansi-p"}'.
1985         (&register_language): Build and register the language too.
1986
1987 2001-04-11  Tom Tromey  <tromey@redhat.com>
1988
1989         Fixes report from Larry Jones:
1990         * automake.in (handle_dependencies): Add `@_am_quote@' where
1991         appropriate.
1992         * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make.
1993
1994 2001-04-11  Akim Demaille  <akim@epita.fr>
1995
1996         * depend2.am: Fix the `if' condition for Libtool.
1997         Reported by Robert Boehne.
1998
1999 2001-04-10  Robert Collins  <robert.collins@itdomain.com.au>
2000
2001         * tests/subobj5.test: New file.
2002
2003 2001-04-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
2004
2005         * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make.
2006         * tests/Makefile.am (TESTS): Added make.test.
2007         * tests/make.test: New file.
2008
2009 2001-04-10  Tom Tromey  <tromey@redhat.com>
2010
2011         * tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
2012
2013 2001-04-10  Derek R. Price  <dprice@collab.net>
2014
2015         * tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
2016
2017 2001-04-10  Akim Demaille  <akim@epita.fr>
2018
2019         * distdir.am: Add a missing backslash.
2020
2021 2001-04-10  Akim Demaille  <akim@epita.fr>
2022
2023         * automake.in (&scan_aclocal_m4): Handle $relative_dir and special
2024         variables.
2025         Specify to the caller whether $regen_aclocal_m4.
2026         (&handle_configure): Adjust.
2027         Transform `REGEN-ACLOCAL-M4'.
2028         Reported by Tom.
2029         * configure.am: Use it.
2030         * tests/defs (me): New.
2031         * tests/confdeps.test: New.
2032
2033 2001-04-09  Tom Tromey  <tromey@redhat.com>
2034
2035         * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
2036         Fixes report from Jim Meyering.
2037
2038 2001-04-09  Akim Demaille  <akim@epita.fr>
2039
2040         * automake.in (&handle_configure): Don't bother with optimizing
2041         macro uses.
2042
2043 2001-04-09  Akim Demaille  <akim@epita.fr>
2044
2045         * tests/cond3.test (expected): Adjust.
2046
2047 2001-04-09  Akim Demaille  <akim@epita.fr>
2048
2049         * automake.in (&handle_single_transform_list): Remove $xbase,
2050         unused.
2051         (&handle_source_transform): All the variables have conditions now,
2052         simplify.
2053         (&variable_delete): Admit an argument @conds.
2054
2055 2001-04-09  Akim Demaille  <akim@epita.fr>
2056
2057         * automake.in ($source_suffix_pattern): Remove, unused.
2058         %extension_map seems to have replaced it.
2059
2060 2001-04-09  Akim Demaille  <akim@epita.fr>
2061
2062         * ext-compile.am: New file.
2063         * automake.in (&finish_languages): Output it.
2064         Require a C linker if there are several registered source suffixes.
2065         (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
2066         extensions, which are discovered in ext-compile.am.
2067         With the help from Robert Boehne.
2068
2069 2001-04-09  Akim Demaille  <akim@epita.fr>
2070
2071         * automake.in (&handle_compile): Extract from...
2072         (&get_object_extension): here.
2073         (&read_am_file): Call it.
2074         ($included_generic_compile, $included_knr_compile)
2075         ($included_libtool_compile): Remove.
2076         ($get_object_extension_was_run): New.
2077
2078 2001-04-09  Akim Demaille  <akim@epita.fr>
2079
2080         Use AM_CONDITIONAL and if/endif for AMDEP.
2081
2082         * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
2083         * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
2084         to a configure time if/endif), or to `FALSE' (static removal of
2085         the code).
2086         (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
2087         * depend2.am: Use if/endif.
2088
2089         Adjust the 101 tests that use dependencies so that they
2090         properly invoke aclocal before automake.  They need to `see'
2091         `AM_CONDITIONAL([AMDEP], ...)'.
2092
2093 2001-04-09  Akim Demaille  <akim@epita.fr>
2094
2095         * tags.am: Fix missing leading tabs.
2096
2097 2001-04-09  Akim Demaille  <akim@epita.fr>
2098
2099         * automake.in: Use simple quotes to define the _PATTERN variables
2100         to unobfuscate the regexps.
2101         ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
2102
2103 2001-04-09  Akim Demaille  <akim@epita.fr>
2104
2105         * automake.in (&rule_define): When you discover a suffix rules,
2106         register the extensions for .SUFFIXES.
2107         (&handle_texinfo): Don't register the suffixes.
2108         (&get_object_extension): Don't register suffixes, let them be
2109         discovered in depend2.am.
2110         (&handle_emacs_lisp): Depend on your lisp.am.
2111         * lisp.am: Include the rule &handle_emacs_lisp used to output.
2112
2113 2001-04-09  Akim Demaille  <akim@epita.fr>
2114
2115         * subdirs.am: Don't define info related recursive targets.
2116         * texinfos.am: Do.
2117
2118 2001-04-09  Akim Demaille  <akim@epita.fr>
2119
2120         * subdirs.am (RECURSIVE_TARGETS): New variable.
2121         Use it.
2122         * automake.in (&handle_subdirs): Output it.
2123         (&file_contents_internal): Support value spread on several lines.
2124
2125 2001-04-09  Akim Demaille  <akim@epita.fr>
2126
2127         * automake.in (&handle_man_pages): Rely on mans.am to define
2128         man%SECTION%dir and MANS.
2129         * mans.am: Do it.
2130
2131 2001-04-09  Akim Demaille  <akim@epita.fr>
2132
2133         * automake.in (&variable_dump): Use %var_type properly.
2134         (&macro_define): Enforce better overriding rules.
2135         Handle the special case that used to handle...
2136         (&define_pretty_variable): this.
2137         Hence, don't.
2138         The variables you define are owned by Automake.
2139         (&generate_makefile): PRE_INSTALL and co must not be defined *by
2140         the user*.
2141         (&variable_defined): Now independent of the owner.
2142         (&variable_output, &variable_pretty_output): Adjust to %var_type.
2143
2144 2001-04-09  Akim Demaille  <akim@epita.fr>
2145
2146         * automake.in (%var_was_plus_eq): Rename as...
2147         (%var_type): this.
2148         (%def_type): Remove.
2149         (&macro_define): %var_type may now hold `', `+', or `:'.
2150         (%conditional, %am_vars, %content_lines): Rename as...
2151         (%var_value, %var_comment, %var_line): these.
2152
2153 2001-04-09  Akim Demaille  <akim@epita.fr>
2154
2155         * automake.in (&variable_output): Admit a list of @CONDS.
2156         (&variable_pretty_output): New.
2157         (&define_pretty_variable): Use it.
2158         (&read_am_file, &file_contents_internal): Prepend a separator to
2159         $am_vars only if there is none yet.
2160         (&file_contents_internal): Rename $separator as $spacing to
2161         harmonize with &read_am_file.
2162
2163 2001-04-09  Akim Demaille  <akim@epita.fr>
2164
2165         * automake.in (&am_install_var): Transform DIST, and let the *.am
2166         files handle DIST_COMMON.
2167         * data.am, header.am, java.am, list.am, python.am, script.am: Set
2168         DIST_COMMON.
2169
2170 2001-04-09  Akim Demaille  <akim@epita.fr>
2171
2172         * automake.in (%dist_common): Remove.
2173         (%configure_dist_common): Replace with...
2174         ($configure_dist_common): this.
2175         (&generate_makefile): Read the user file before using
2176         push_dist_common, as it sets DIST_COMMON, and read_am_file checks
2177         that no variable is defined before it is run.
2178         (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
2179         (&dist_cmp): Rename as...
2180         (&for_dist_common): this.
2181         (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
2182         it.
2183         Adjust to $configure_dist_common.
2184         * configure.am, texi-vers.am: Set DIST_COMMON.
2185
2186 2001-04-09  Akim Demaille  <akim@epita.fr>
2187
2188         * automake.in (&handle_aclocal_m4): Rename as...
2189         (&scan_aclocal_m4): this.
2190         Return the list of aclocal.m4 dependencies.
2191         (&handle_configure): Invoke it, and use it when loading...
2192         * configure.am: Template the rules to recreate aclocal.m4.
2193
2194 2001-04-09  Akim Demaille  <akim@epita.fr>
2195
2196         * automake.in (&get_object_extension): Use ansi2knr.am.
2197         * clean-kr.am, kr-extra.am: Remove, merged into...
2198         * ansi2knr.am: this new file.
2199
2200 2001-04-09  Akim Demaille  <akim@epita.fr>
2201
2202         * automake.in (&transform): Fix an incredible bug which was
2203         breaking the if/endif system.
2204         ($ELSE_PATTERN): Admit an optional argument.
2205
2206 2001-04-09  Akim Demaille  <akim@epita.fr>
2207
2208         * comp-vars.am: Remove, merged into...
2209         * compile.am: here.
2210         * automake.in (&get_object_extension): Adjust.
2211
2212 2001-04-09  Akim Demaille  <akim@epita.fr>
2213
2214         * remake.am: Merge into...
2215         * configure.am: ... here.
2216         * automake.in (&handle_configure): Adjust.
2217
2218 2001-04-09  Akim Demaille  <akim@epita.fr>
2219
2220         * automake.in (&output_lex_build_rule): Output this...
2221         * lex.am: New file.
2222
2223 2001-04-09  Akim Demaille  <akim@epita.fr>
2224
2225         * automake.in (&condition_negate): New.
2226         (&variable_conditions_permutations): Use it.
2227         (&read_am_file, &file_contents): Use it on `else' clauses to
2228         support `if FALSE'.
2229         (&output_yacc_build_rule): Output this...
2230         * yacc.am: New file.
2231
2232 2001-04-09  Akim Demaille  <akim@epita.fr>
2233
2234         * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
2235         (&handle_dist): Don't.
2236         (&handle_clean): Don't handle config.status here, let...
2237         * clean.am: ... do it.
2238         * distdir.am: Adjust.
2239
2240 2001-04-09  Akim Demaille  <akim@epita.fr>
2241
2242         * automake.in: Use strict vars and subs.
2243         Declare `%require_file_found'.
2244         (&handle_source_transform, &make_paragraphs): Declare my variables.
2245
2246 2001-04-09  Akim Demaille  <akim@epita.fr>
2247
2248         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
2249         * progs.am, python.am: Use if/endif instead of ?INSTALL?.
2250         * java.am (_am_installdirs): Be sure to set it.
2251
2252 2001-04-09  Akim Demaille  <akim@epita.fr>
2253
2254         * automake.in (&make_condition): Return '#' when FALSE.
2255         (&conditional_string): Return FALSE, not '#' in the corresponding
2256         cases.
2257         (&file_contents_internal): Adjust.
2258         (&check_variable_defined_unconditional): Dump the guilty variable.
2259
2260 2001-04-09  Akim Demaille  <akim@epita.fr>
2261
2262         * distdir.am: Use and abuse of if/endif.
2263         * scripts.am: Using if/endif with variables is fine.
2264
2265 2001-04-09  Akim Demaille  <akim@epita.fr>
2266
2267         * automake.in (&make_paragraphs):  Extract from &file_contents.
2268         Make it more robust than the previous RE based scheme.
2269         (&file_contents): Use it.
2270
2271 2001-04-09  Akim Demaille  <akim@epita.fr>
2272
2273         * automake.in (&make_paragraphs):  Extract from &file_contents.
2274         Make it more robust than the previous RE based scheme.
2275         (&file_contents): Use it.
2276
2277 2001-04-09  Akim Demaille  <akim@epita.fr>
2278
2279         * tests/yacc2.test: Don't define several times a variable, as
2280         automake complains.
2281
2282 2001-04-09  Akim Demaille  <akim@epita.fr>
2283
2284         * automake.in (&handle_source_transform): Fix pr72: don't define
2285         $linker if there are no @files.
2286
2287 2001-04-09  Akim Demaille  <akim@epita.fr>
2288
2289         Avoid reading twice header-vars.am as now macro_define
2290         complains.
2291
2292         * automake.in (&define_standard_variables): Don't output the
2293         variables.
2294         (&read_main_am_file): Output first user variables, then Automake
2295         variables.
2296         Don't call twice &define_standard_variables.
2297         Save variable comments in $am_vars.
2298         (&variable_output): New.
2299         (&file_contents_internal): New.
2300         Save variable comments in $am_vars.
2301         (&file_contents): Use it.
2302
2303 2001-04-09  Akim Demaille  <akim@epita.fr>
2304
2305         * automake.in (&macro_define): The user is allowed to override
2306         a value if it was set by Automake, or if it was found in AC_SUBST.
2307
2308 2001-04-09  Akim Demaille  <akim@epita.fr>
2309
2310         * automake.in (&handle_source_transform): Better locality of the
2311         variables.
2312         Use `next' to skip nonexistent variables.
2313
2314 2001-04-09  Akim Demaille  <akim@epita.fr>
2315
2316         * automake.in (&variable_dump): If a variable is undefined, say
2317         it.
2318         (&check_ambiguous_conditional): Give finer error messages.
2319         (&macro_define): Check that a `+=' variable is not set with `='.
2320         Check for ambiguous definitions each time you _set_ (even with `+=')
2321         a variable.
2322         (&read_main_am_file): Perform a deep copy of %conditional.
2323
2324 2001-04-09  Akim Demaille  <akim@epita.fr>
2325
2326         * automake.in (&variable_defined): Some callers, e.g.,
2327         &am_primary_prefixes, really want to know if the variable is
2328         defined for any condition, not `TRUE' by default.
2329         (&am_primary_prefixes): Give a more precise error message.
2330
2331 2001-04-09  Akim Demaille  <akim@epita.fr>
2332
2333         (&variable_conditions): Don't include `FALSE' in the result.
2334
2335 2001-04-09  Akim Demaille  <akim@epita.fr>
2336
2337         * automake.in (&variable_conditions_reduce): FALSE is absorbent.
2338         (&variable_conditions): Don't include `FALSE' in the result.
2339
2340 2001-04-09  Akim Demaille  <akim@epita.fr>
2341
2342         * tests/defs, tests/depend3.test: Remove useless code.
2343
2344 2001-04-09  Akim Demaille  <akim@epita.fr>
2345
2346         * automake.in (&handle_source_transform):  Use
2347         &variable_conditions, don't read $conditional{$var}.
2348         (&variable_conditions_sub): When the call is the top level call,
2349         generate all the permutations of the conditions.
2350
2351 2001-04-09  Akim Demaille  <akim@epita.fr>
2352
2353         * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
2354         that it does not get noticed twice by automake, which now
2355         complains for multiple definitions.
2356         * tests/vartar.test: s/INSTALL/install/g, automake now complains
2357         because we defined INSTALL.
2358
2359 2001-04-09  Akim Demaille  <akim@epita.fr>
2360
2361         * automake.in (&generate_makefile) Use macro_define to define
2362         SOURCES and OBJECTS.
2363         (&variable_defined): Don't check for $conditional{VAR}{COND} as
2364         this would make perl create $condition{VAR}, which we don't want.
2365
2366 2001-04-09  Akim Demaille  <akim@epita.fr>
2367
2368         * automake.in (&variable_defined, &define_pretty_variable):
2369         Simplify code which used to handle the cases where not all
2370         variables were in %conditional.
2371         (&define_variable): Use &define_pretty_variable.
2372         (&variable_conditions_sub, &variable_value_as_list_worker)
2373         (&variable_value_as_list, &rule_define): Simplify syntax.
2374         (&read_main_am_file): Dump the guilty predefined variables.
2375
2376 2001-04-09  Akim Demaille  <akim@epita.fr>
2377
2378         * automake.in (&variable_conditions_sub)
2379         (&variable_value_as_list_worker): Remove dead code which used to
2380         handle the cases where not all variables were in %conditional.
2381
2382 2001-04-09  Akim Demaille  <akim@epita.fr>
2383
2384         * automake.in (&handle_source_transform, &read_main_am_file):
2385         Simplify loops which were split in two parts, conditional vs
2386         unconditional variables.
2387
2388 2001-04-09  Akim Demaille  <akim@epita.fr>
2389
2390         Handle unconditional values of variables as conditioned by
2391         `TRUE'.
2392
2393         * automake.in (%contents): Remove.
2394         (&generate_makefile, &handle_ltlibraries, &macro_define)
2395         (&read_am_file, &variable_defined, &variable_conditions_sub)
2396         (&variable_value, &variable_value_as_list_worker)
2397         (&variable_value_as_list, &define_pretty_variable)
2398         (&read_main_am_file): Use
2399         $conditional, not %contents.
2400         (&variable_conditions_permutations): Don't return TRUE and FALSE.
2401         (&variable_conditionally_defined): New.
2402         (&handle_dist): Use it.
2403         (&check_ambiguous_conditional): When multiply defined, specify
2404         under which condition.
2405         (&macro_define): Use it.
2406         (&variable_delete): New.
2407         (&read_am_file): Use it.
2408         (&am_install_var): Simplify, as all the variables are in
2409         %conditional now.
2410
2411 2001-04-07  Tom Tromey  <tromey@redhat.com>
2412
2413         * tests/Makefile.am (XFAIL_TESTS): Added man.test.
2414         (TESTS): Likewise.
2415         * tests/man.test: New file.
2416
2417 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
2418
2419         * depcomp (gcc3): Invert test condition.
2420
2421 2001-04-07  Tom Tromey  <tromey@redhat.com>
2422
2423         * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
2424         statement.  Report from Larry Jones.
2425
2426 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
2427
2428         * depcomp (sgi): Fix sed expression.  Report from Robert Boehne.
2429
2430 2001-04-01  Tom Tromey  <tromey@redhat.com>
2431
2432         * java.am (.PHONY clean-am): Removed trailing ":".
2433         From Per Bothner.  Fixes PR automake/139.
2434
2435 2001-03-28  Akim Demaille  <akim@epita.fr>
2436
2437         * program.am: Fix a stupid typo: now *all* (not none) the programs
2438         use `$(EXEEXT)'.
2439         Reported by Robert Boehne.
2440
2441 2001-03-23  Akim Demaille  <akim@epita.fr>
2442
2443         * automake.in (&read_am_file, &file_contents): Avoid name clashes
2444         on $cond.
2445
2446 2001-03-23  Akim Demaille  <akim@epita.fr>
2447
2448         * automake.in (&variable_conditionally_defined): Rename as...
2449         (&check_variable_unconditionally_defined): this.
2450         (&variable_dump): Fix the output.
2451         (&variable_defined, &macro_define): Since conditions are
2452         canonicalized, don't use a loop to look for a condition: read the
2453         hash.
2454         (&macro_define, &rule_define, &read_am_file, &file_contents):
2455         Rename $cond_string as $cond.
2456         * distdir.am (PACKAGE, VERSION): Remove; since they are already
2457         discovered via AC_SUBST, they now trigger a `defined twice' error.
2458
2459 2001-03-23  Akim Demaille  <akim@epita.fr>
2460
2461         * automake.in (&handle_footer, &handle_installdirs)
2462         (&read_main_am_file): Don't read %contents directly, use
2463         &variable_value.
2464
2465 2001-03-23  Akim Demaille  <akim@epita.fr>
2466
2467         * automake.in (&read_am_file): Define the variables in a single
2468         shot.
2469         Factor the $saw_bk code.
2470
2471 2001-03-23  Akim Demaille  <akim@epita.fr>
2472
2473         * automake.in (&read_am_file): Keep $cond_string up to date.
2474
2475 2001-03-23  Akim Demaille  <akim@epita.fr>
2476
2477         * automake.in (&define_variable): Use &macro_define.
2478
2479 2001-03-23  Akim Demaille  <akim@epita.fr>
2480
2481         * automake.in (&macro_define): Don't lose the location if we
2482         redefine a variable.
2483         Don't push all the variables in @var_list, let...
2484         (&read_am_file, &file_contents): ... do it.
2485         (&define_pretty_variable): Use macro_define.
2486         (&am_install_var): Delete the value of variables being redefined
2487         to pacify &macro_define which checks that variables are not
2488         doubly defined.
2489
2490 2001-03-23  Akim Demaille  <akim@epita.fr>
2491
2492         * automake.in (&conditional_dump): Rename as...
2493         (&variables_dump): this.  Use...
2494         (&variable_dump): this new sub.
2495
2496 2001-03-23  Akim Demaille  <akim@epita.fr>
2497
2498         * automake.in (&file_contents): Maintain $cond_string sync with
2499         @cond_stack.
2500         Output rules only if not under `FALSE'.
2501         Define variables under $cond_string.
2502         * scripts.am: For the time being if/endif does not work properly
2503         with macros.
2504
2505 2001-03-23  Akim Demaille  <akim@epita.fr>
2506
2507         * automake.in (IF_PATTERN): Unobfuscate the parens.
2508         (ENDIF_PATTERN): Allow a condition to be specified.
2509         (&file_contents): Use a @cond_stack.
2510         (&transform): At least for an easy transition, also transform
2511         %?FOO% and %!FOO%, as suggested by Lars.
2512         * scripts.am: First test bed for static if/endif use.
2513
2514 2001-03-23  Akim Demaille  <akim@epita.fr>
2515
2516         * automake.in (&file_contents): Use rule_define.
2517
2518 2001-03-23  Akim Demaille  <akim@epita.fr>
2519
2520         * automake.in (&macro_define): Don't rely on $1.
2521         Initialize the variable.
2522         Set its Automakism only if not defined or if given to the user.
2523         When concatenating values, insert a separator only if the value
2524         was not empty.
2525         (&read_am_file): When dumping the @var_list, skip Automake
2526         variables.
2527         (&file_contents): Use macro_define.
2528
2529 2001-03-23  Akim Demaille  <akim@epita.fr>
2530
2531         * automake.in (&rule_define): Extract from...
2532         (&read_am_file): here.
2533
2534 2001-03-23  Akim Demaille  <akim@epita.fr>
2535
2536         * automake.in (&macro_define, &read_am_file): More work for the
2537         former from the latter.  Reorganize the latter.
2538
2539 2001-03-23  Akim Demaille  <akim@epita.fr>
2540
2541         * automake.in (&macro_define): Extract from...
2542         (&read_am_file): here.
2543
2544 2001-03-23  Akim Demaille  <akim@epita.fr>
2545
2546         * automake.in (%am_var_defs): Replace with...
2547         (%var_is_am): this.
2548         (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
2549         (&file_contents, am_primary_&prefixes): Adjust.
2550         (&variable_defined, &define_variable): The actual semantics is
2551         `user defined'.
2552         (&read_main_am_file): Assert the var is user defined when
2553         outputting @var_list.
2554
2555 2001-03-23  Akim Demaille  <akim@epita.fr>
2556
2557         * automake.in (read_am_file): TRUE and FALSE are predefined
2558         conditionals.
2559         (&by_condition): Adjust.
2560         (&conditional_string): Recognize `TRUE' and `FALSE'.
2561         (&make_condition): Use it.
2562         * m4/cond.m4: Reject TRUE and FALSE as conditionals.
2563         * automake.texi (Conditionals): Adjust.
2564         * tests/cond9.test: s/FALSE/WRONG/.
2565
2566 2001-03-12  Pavel Roskin  <proski@gnu.org>
2567
2568         * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
2569         now.
2570
2571 2001-03-12  Akim Demaille  <akim@epita.fr>
2572
2573         * automake.in (&variable_conditions_permutations): Separate the
2574         conditions.
2575         * tests/cond3.test: Improve the sed expression.
2576
2577 2001-03-09  Pavel Roskin  <proski@gnu.org>
2578
2579         * Makefile.am (maintainer-check): Scan all *.am files and tests
2580         for invocations of `rm' without `-f'.
2581         * tests/mclean.test: Adjusted to prevent triggering the above
2582         test.
2583
2584 2001-03-09  Tom Tromey  <tromey@redhat.com>
2585
2586         * automake.in (scan_one_autoconf_file): Fixed comment to avoid
2587         maintainer-check failure.
2588
2589 2001-03-09  Akim Demaille  <akim@epita.fr>
2590
2591         * tests/cond3.test: Strengthen.
2592
2593 2001-03-09  Akim Demaille  <akim@epita.fr>
2594
2595         * automake.in (&conditional_string): Produce a unique string
2596         characterizing a condition stack.
2597         (&conditional_same): Remove, comparing two strings is now enough.
2598         (&variable_defined): Adjust.
2599         (&read_am_file): Use conditional_string.
2600
2601 2001-03-08  Akim Demaille  <akim@epita.fr>
2602
2603         * automake.in: Use -w.
2604         Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
2605         (&parse_arguments): Support --Werror and --Wno-error as a
2606         temporary hack until --warning/-W is properly implemented.
2607         (&handle_single_transform_list): Prototype.
2608         Be sure to define $directory.
2609         Use `exists' instead of testing the value of a maybe undefined
2610         hash value.
2611         (&add_depend2, &handle_configure, &handle_footer, &file_contents)
2612         (&handle_factored_dependencies): Use defined values.
2613         (&scan_one_autoconf_file): Save $_.
2614         * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
2615         Run automake with --Wno-error.
2616
2617 2001-03-07  Akim Demaille  <akim@epita.fr>
2618
2619         * automake.in (&handle_all): Use an array instead of a scalar for
2620         local_headers.
2621         Get rid of all-redirect: let `all' be that target.
2622
2623 2001-03-07  Akim Demaille  <akim@epita.fr>
2624
2625         * automake.in (&handle_merge_targets): Ventilate its non `all'
2626         related content into...
2627         (&generate_makefile): here.
2628         (&handle_merge_targets): Rename as...
2629         (&handle_all): this.
2630         Remove a useless `if': `@all' is obviously not empty, since it
2631         contains at least the `basename ($makefile)' which has just been
2632         unshifted.
2633
2634 2001-03-07  Akim Demaille  <akim@epita.fr>
2635
2636         * automake.in, aclocal.in: Backquote is inert in double quotes.
2637
2638 2001-03-06  Akim Demaille  <akim@epita.fr>
2639
2640         * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
2641         into `grep -v ...'.
2642
2643 2001-03-06  Pavel Roskin  <proski@gnu.org>
2644
2645         * java.am: Use `rm -f' instead of `rm'.
2646
2647 2001-03-06  Akim Demaille  <akim@epita.fr>
2648
2649         * automake.in (&push_dist_common): Simplify.
2650
2651 2001-03-06  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
2652
2653         * ltlib.am: Replaced spaces with tab.
2654
2655 2001-03-06  Pavel Roskin  <proski@gnu.org>
2656
2657         * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
2658         fixed now.
2659
2660 2001-03-05  Pavel Roskin  <proski@gnu.org>
2661
2662         * header.am, scripts.am: Use ?INSTALL? in the install and
2663         uninstall rules.
2664
2665 2001-03-05  Pavel Roskin  <proski@gnu.org>
2666
2667         * tests/copy.test: Never use `rm' without `-f' - it may ask
2668         questions, notably for read-only files during `make distcheck'.
2669         * tests/insh.test: Likewise.
2670         * tests/installsh.test: Likewise.
2671         * tests/symlink.test: Likewise.
2672         * tests/symlink2.test: Likewise.
2673         * tests/symlink3.test: Likewise.
2674
2675 2001-03-05  Pavel Roskin  <proski@gnu.org>
2676
2677         * noinstdir.test: New test.
2678         * tests/Makefile.am (TESTS): Add noinstdir.test.
2679         (XFAIL_TESTS): Likewise.
2680
2681 2001-03-05  Akim Demaille  <akim@epita.fr>
2682
2683         * automake.in (&handle_options): Change the RE so that the third
2684         part of the versions always exist.
2685         (&file_contents): Don't pass uninitialized values to &transform.
2686
2687 2001-03-05  Akim Demaille  <akim@epita.fr>
2688
2689         * automake.in (&file_contents): Require a hash as second argument.
2690         Adjust callers.
2691
2692 2001-03-05  Akim Demaille  <akim@epita.fr>
2693
2694         Always use hashes with &file_contents.
2695
2696         * automake.in (&handle_texinfo): texibuild.am does not need
2697         TEXINFODIR.
2698         texinfos.am wants only TEXICLEANS.
2699         (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
2700         %transform.
2701         * texinfos.am: Adjust.
2702
2703 2001-03-05  Akim Demaille  <akim@epita.fr>
2704
2705         * automake.in (&handle_programs, &handle_libraries, &handle_tags)
2706         (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
2707         (&am_install_var): Forget about `-clean'.
2708         Transform ?INSTALL?.
2709         Always output the *.am file.
2710         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
2711         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
2712         Remove, merged into the corresponding *.am file.
2713         * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
2714         ?INSTALL?.
2715
2716 2001-03-05  Pavel Roskin  <proski@gnu.org>
2717
2718         * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
2719
2720 2001-03-05  Akim Demaille  <akim@epita.fr>
2721
2722         If OBJEXT and EXEEXT are not set, provide a default value, and use
2723         them unconditionally.
2724
2725         * automake.in (&generate_makefile): Provide default values for
2726         EXEEXT and OBJEXT.
2727         (&get_object_extension, &finish_languages)
2728         (&handle_single_transform_list, &handle_programs, &add_depend2)
2729         (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
2730         them, they are defined.
2731         * compile.am, depend2.am, program.am, progs.am: Likewise.
2732         * remake-hdr.am: Fix a typo.
2733         * tests/cxxo.test, tests/fo.test, tests/implicit.test,
2734         * tests/interp.test, tests/subobj.test, tests/subobj2.test,
2735         * tests/suffix2.test: Adjust.
2736
2737 2001-03-05  Akim Demaille  <akim@epita.fr>
2738
2739         * automake.in (&file_contents): Map MAINTAINER-MODE to
2740         @MAINTAINER_MODE_TRUE@ or nothing.
2741         * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
2742         Suggested by Tom.
2743
2744 2001-03-05  Akim Demaille  <akim@epita.fr>
2745
2746         * automake.in (&do_one_merge_target): Remove, was only called from...
2747         (&handle_merge_targets): here for `all'.
2748         Adjust.
2749
2750 2001-03-05  Akim Demaille  <akim@epita.fr>
2751
2752         Make the installation/uninstallation of Info pages follow the
2753         regular am/recursive scheme.
2754
2755         * automake.in (%required_targets, %dependencies): Add
2756         install-info.
2757         (%dependencies): Add install-info, install-info-am, and
2758         unstall-info.
2759         (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
2760         reversed BTW.  Does anybody use the option `no-installinfo'?
2761         (&handle_merge_targets): Let the handling of info related targets
2762         to...
2763         (&handle_factored_dependencies): this.
2764         * subdirs.am: Use ?INSTALL-INFO?.
2765         * texinfos.am: Define the install-info, uninstall-info and
2766         uninstall-info-am targets.
2767
2768 2001-03-05  Akim Demaille  <akim@epita.fr>
2769
2770         * automake.in (%required_targets, %dependencies): Add dvi, info,
2771         dvi-am, info-am.
2772         (@info, @dvi): Remove.
2773         (&handle_texinfo, &handle_merge_targets): Adjust.
2774         (&handle_factored_dependencies): Required targets are phony.
2775         * texinfos.am: Build info, dvi, and the corresponding -am or
2776         -recursive targets.
2777
2778 2001-03-05  Akim Demaille  <akim@epita.fr>
2779
2780         * automake.in (&am_install_var): Remove $cygxform, unused.
2781
2782 2001-03-05  Akim Demaille  <akim@epita.fr>
2783
2784         * automake.in (&file_contents): Transform LIBTOOL.
2785         (&am_install_var): Remove $ltxform.
2786         * ltlib.am, progs.am: Adjust.
2787
2788 2001-03-05  Akim Demaille  <akim@epita.fr>
2789
2790         * automake.in: Require AC_PROG_INSTALL in...
2791         (&scan_autoconf_files): here.
2792
2793 2001-03-05  Akim Demaille  <akim@epita.fr>
2794
2795         * configure.am: New file.
2796         * automake.in (&file_contents): Transform CONFIGURE-AC.
2797         (&handle_texinfo, &handle_configure): Don't transform
2798         CONFIGURE_AM.
2799         (&handle_configure): Use `configure.am'.
2800         * remake-hdr.am, remake.am, texi-vers.am: Adjust to
2801         MAINTAINER-MODE and CONFIGURE-AC.
2802
2803 2001-03-05  Akim Demaille  <akim@epita.fr>
2804
2805         * automake.in (&pretty_print_internal): Don't output useless
2806         spaces.
2807         (define_pretty_variable): Don't issue the space after the `=' sign
2808         to avoid trailing spaces in Makefile.ins.
2809
2810 2001-03-05  Akim Demaille  <akim@epita.fr>
2811
2812         * automake.in (&generate_makefile): Invoke &initialize_per_input
2813         *before* setting $am_file_name and $in_file_name.
2814
2815 2001-03-05  Akim Demaille  <akim@epita.fr>
2816
2817         * automake.in ($in_file_name, $am_file_name, $relative_dirs):
2818         Globals, initialized...
2819         (&initialize_per_input): here.
2820
2821 2001-03-05  Akim Demaille  <akim@epita.fr>
2822
2823         * automake.in ($am_relative_dir): Global.
2824         (&initialize_per_input): Init it.
2825         (%make_list, @make_input_list): My them from
2826         (&scan_autoconf_files): here.
2827         (&require_file_internal): Mying changes.
2828
2829 2001-03-05  Akim Demaille  <akim@epita.fr>
2830
2831         * automake.in (%am_vars, @var_list, %def_type): Globals.
2832         (&initialize_per_input): Initialize them.
2833         (&read_main_am_file): Don't local them.
2834         (&get_object_extension): $objext is private.
2835         (&handle_single_transform_list): $lang is.
2836         (&handle_ltlibraries): $libname_rx is.
2837         (&scan_autoconf_config_files): How about actually paying attention
2838         to your arguments, instead of working on $_? (this is no Perl
2839         variable, it's a Perl variable followed by a question mark).
2840         (&file_contents): $contents and $separator are private.
2841         (&am_install_var): Declare @condvals, not $condvals.
2842         (%make_dirs): My.
2843
2844 2001-03-05  Akim Demaille  <akim@epita.fr>
2845
2846         * automake.in (&initialize_per_input): Move to the top.
2847         Precede with the `my' list of its variables.
2848
2849 2001-03-05  Akim Demaille  <akim@epita.fr>
2850
2851         * automake.in ($am_file): Use vars.
2852         ($am_file_name, $in_file_name): Private to &generate_makefile.
2853
2854 2001-03-05  Akim Demaille  <akim@epita.fr>
2855
2856         * automake.in: Preparation for `use strict': Move the
2857         initialization of the constants to the top, from...
2858         (&initialize_global_constants): here.
2859
2860 2001-03-05  Akim Demaille  <akim@epita.fr>
2861
2862         * automake.in (&handle_single_transform_list, &add_depend2): Let
2863         $lang_specific_files{$lang} be a list instead of a string.
2864
2865 2001-03-05  Akim Demaille  <akim@epita.fr>
2866
2867         Let's make it run ten times faster...
2868
2869         * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
2870         transformations.
2871         (&file_contents): Let `$command' remove the Automake commands, and
2872         normalize the series of `\n'.
2873         Slurp the file and apply $command in a single step.
2874         No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
2875         is already normalized to be handled by &transform.
2876
2877 2001-03-05  Tom Tromey  <tromey@redhat.com>
2878
2879         * automake.in (register_language): Add entry for `-pure'.
2880         Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
2881         (finish_languages): Use `-pure' field of language map.
2882
2883 2001-03-03  Tom Tromey  <tromey@redhat.com>
2884
2885         * tests/yaccvpath.test: No need to remove dummy files.
2886         * tests/subobj3.test: No need to remove dummy files.
2887         * tests/pr9.test: No need to remove dummy files.
2888         * tests/pr87.test: No need to remove dummy files.
2889         * tests/pr19.test: No need to remove dummy files.
2890         * tests/install2.test: No need to remove dummy files.
2891         * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
2892         and depcomp.
2893
2894 2001-02-27  Pavel Roskin  <proski@gnu.org>
2895
2896         * tests/yaccvpath.test: Add a delay to make parse.c really out
2897         of date. Detect the problem earlier, after `make distdir'. Drop
2898         dependency on flex. Always use the `-y' flag for bison. Comment
2899         changes.
2900         * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
2901
2902 2001-03-02  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
2903
2904         * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
2905
2906 2001-02-28  Akim Demaille  <akim@epita.fr>
2907
2908         * automake.in (&add_depend2): Transform `GENERIC'.
2909         Get rid of the ad hoc transformation of `@EXT@.o:' which in
2910         addition was broken by the `@ -> %' patch.
2911         * depend2.am: Adjust to use ?GENERIC?.
2912
2913 2001-02-28  Akim Demaille  <akim@epita.fr>
2914
2915         * Makefile.am (maintainer-check): `undef $/' is OK.
2916
2917 2001-02-28  Akim Demaille  <akim@epita.fr>
2918
2919         * automake.in (&handle_configure): Fortunately, $top_reldir,
2920         the definition of which was highly suspicious, was unused.
2921
2922 2001-02-27  Akim Demaille  <akim@epita.fr>
2923
2924         * automake.in (%exec_dir_p): Move to the top so that it is visible
2925         to all routines.
2926
2927 2001-02-27  Pavel Roskin  <proski@gnu.org>
2928
2929         * tests/yaccvpath.test: Prevent automake from looking into ..
2930         and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
2931
2932 2001-02-27  Akim Demaille  <akim@epita.fr>
2933
2934         * automake.in (%exec_dir_p): Pulled out from...
2935         (&am_primary_prefixes): here.
2936
2937 2001-02-27  Akim Demaille  <akim@epita.fr>
2938
2939         * automake.in (&usage): Display $0, not $me.
2940
2941 2001-02-27  Akim Demaille  <akim@epita.fr>
2942
2943         * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
2944         * automake.in (&handle_clean): Don't escape what's given to
2945         &transform.
2946
2947 2001-02-27  Akim Demaille  <akim@epita.fr>
2948
2949         Distinguish automake substitutions from config.status
2950         substitutions.
2951
2952         * automake.in (&add_depend2): Transform AMDEP.
2953         (&handle_clean): Transform MCFILES and MFILES.
2954         (&file_contents): Transform MAINTAINER_MODE.
2955         (&transform, &am_install_var): Use `%', not `@'.
2956         Adjust all the *.am files.
2957         * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
2958         * depend2.am: Display the double dependency on both ?AMDEP? and
2959         @AMDEP@.
2960
2961 2001-02-27  Tom Tromey  <tromey@redhat.com>
2962
2963         * distdir.am (distcheck): Fixed new code.
2964
2965         * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
2966         Only configure once.
2967
2968         * distdir.am (distcheck): Print error message if distclean failed
2969         to fully clean.
2970
2971 2001-02-27  Pavel Roskin  <proski@gnu.org>
2972
2973         * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
2974
2975 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2976
2977         * tests/Makefile.am (TESTS): Added yaccvpath.test.
2978         * tests/yaccvpath.test: New file.
2979
2980 2001-02-26  Akim Demaille  <akim@epita.fr>
2981
2982         * automake.in (&am_install_var): Recognize whether predefined
2983         directories are `data' or `exec'.
2984         * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
2985         ?EXEC?.
2986         * tests/instdata2.test: Update.
2987
2988 2001-02-26  Akim Demaille  <akim@epita.fr>
2989
2990         * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
2991         necessarily in infodir.
2992
2993 2001-02-26  Akim Demaille  <akim@epita.fr>
2994
2995         * automake.in ($am_file): Be `local', as my'd variables used in
2996         `foreach' loops are always private to the loop.
2997
2998 2001-02-26  Pavel Roskin  <proski@gnu.org>
2999
3000         * Makefile.am: Add install.am.
3001
3002 2001-02-26  Akim Demaille  <akim@epita.fr>
3003
3004         * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
3005         routines, otherwise the elements to compare are passed in @_
3006         instead of $a and $b.
3007
3008 2001-02-26  Akim Demaille  <akim@epita.fr>
3009
3010         * automake.in (%required_targets): `installcheck-am' is needed.
3011
3012 2001-02-26  Akim Demaille  <akim@epita.fr>
3013
3014         * automake.in (&transform_cond): Merge into...
3015         (&transform): this.
3016         Adjust all uses.
3017
3018 2001-02-26  Akim Demaille  <akim@epita.fr>
3019
3020         * automake.in (&handle_dist): Use &transform instead of dedicated
3021         magic for DISTDIRS.
3022         But be sure to always do it.
3023         * distdir.am: Adjust.
3024
3025 2001-02-26  Akim Demaille  <akim@epita.fr>
3026
3027         * automake.in: Use File::Basename.
3028         (&dirname, &basename): Remove.
3029
3030 2001-02-26  Akim Demaille  <akim@epita.fr>
3031
3032         * automake.in ($me): New.
3033         Use it.
3034         (&usage): Display your full name.
3035
3036 2001-02-26  Akim Demaille  <akim@epita.fr>
3037
3038         * automake.texi (Invoking Automake): Remove dead options.
3039
3040 2001-02-26  Akim Demaille  <akim@epita.fr>
3041
3042         * automake.in (&scan_texinfo_file): Also compute the list of files
3043         to clean.
3044         Handle local errors.
3045         (&handle_texinfo): Use it.
3046
3047 2001-02-26  Akim Demaille  <akim@epita.fr>
3048
3049         * automake.in: Don't pass arguments to...
3050         (&parse_arguments): Work on @ARGV.
3051         Use Getopt.
3052         Add support for `-f'.
3053         (&version): New.
3054         (&usage): Update.
3055
3056 2001-02-26  Akim Demaille  <akim@epita.fr>
3057
3058         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
3059         handle installcheck and installcheck-am.
3060         * install.am: Do it.
3061
3062 2001-02-26  Akim Demaille  <akim@epita.fr>
3063
3064         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
3065         handle install and install-am.
3066         * install.am: Do it.
3067
3068 2001-02-26  Akim Demaille  <akim@epita.fr>
3069
3070         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
3071         work on targets handled by %dependencies.
3072         (&handle_factored_dependencies): Do it.
3073         * install.am: Install install-exec, install-data and uninstall's
3074         suites.
3075
3076 2001-02-26  Akim Demaille  <akim@epita.fr>
3077
3078         * automake.in (&handle_merge_targets): Move `install-strip' from
3079         here...
3080         * install.am: to here.
3081
3082 2001-02-26  Akim Demaille  <akim@epita.fr>
3083
3084         * automake.in (@installdirs): Remove.
3085         (&file_contents): Be able to grow Automake macros with `+='.
3086         (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
3087         files define _am_installdirs.
3088         (&handle_installdirs): Remove the code, just output `install.am'.
3089         * install.am: New.
3090         * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
3091         * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
3092
3093 2001-02-26  Akim Demaille  <akim@epita.fr>
3094
3095         * tests/instdata2.test (libexec_DATA): Exercise more
3096         possibilities.
3097
3098 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
3099
3100         * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
3101
3102 2001-02-25  Tom Tromey  <tromey@redhat.com>
3103
3104         * tests/instdata2.test: Added `sbin_DATA' check.
3105
3106         * tests/Makefile.am (TESTS): Added subdircond.test.
3107         * tests/subdircond.test: New file.
3108         * automake.in (handle_gettext): Don't fail if SUBDIRS
3109         conditionally defined.
3110
3111         * automake.in: Use IO::File.
3112         (generate_makefile): Use IO::File.
3113         (scan_texinfo_file): Likewise.
3114         (handle_aclocal_m4): Likewise.
3115         (scan_autoconf_traces): Likewise.
3116         (scan_one_autoconf_file): Likewise.
3117         (read_am_file): Likewise.
3118         (file_contents): Likewise.
3119         (create): Likewise.
3120
3121 2001-02-25  Akim Demaille  <akim@epita.fr>
3122
3123         * automake.in (handle_texinfo): Remove code handled by texinfos.am.
3124
3125 2001-02-25  Akim Demaille  <akim@epita.fr>
3126
3127         * automake.in (&transform): Also call &transform_cond on your
3128         arguments.
3129         (&handle_dist): Adjust.
3130         (&handle_factored_dependencies): Uniq dependencies.
3131
3132 2001-02-25  Akim Demaille  <akim@epita.fr>
3133
3134         * automake.in (&handle_gettext): Simplify redundant `if'.
3135         Used &variable_value, don't read %contents directly.
3136
3137 2001-02-25  Akim Demaille  <akim@epita.fr>
3138
3139         * automake.in ($install_recursive): Remove, replaced with calls to
3140         `&variable_defined ('SUBDIRS')'.
3141         (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
3142         (&file_contents): now does.
3143
3144 2001-02-25  Akim Demaille  <akim@epita.fr>
3145
3146         * automake.in (&handle_man_pages): $found is dead.
3147
3148 2001-02-25  Akim Demaille  <akim@epita.fr>
3149
3150         Internally just store the conditionals as space separated lists of
3151         CONDITIONS (instead of @CONDITIONS@).
3152
3153         * automake.in (&conditional_true_when, &variable_conditions_sub):
3154         Split conditions at spaces.
3155         (&handle_dependencies, &variable_conditions_permutations): Don't
3156         put @ around conditions.
3157         (&variable_conditions_cmp): There are no @ to strip.
3158         (&make_condition): New.
3159         (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
3160         it.
3161         (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
3162         Join @conditional_stack with spaces.
3163         (&read_main_am_file): Adjust the output of variables.
3164         Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
3165         true' and no longer `@TEST@TRUE = @TEST@true'.
3166         (&variable_conditions_cmp): Rename as...
3167         (&by_condition): this.
3168         Sort in a human pleasant order.
3169         Use it everywhere a human can see conditions.
3170         (&variable_conditions_reduce): Don't sort conditions, that's
3171         pointless.
3172         * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
3173
3174 2001-02-25  Akim Demaille  <akim@epita.fr>
3175
3176         * automake.in: `my' the globals.
3177
3178 2001-02-25  Akim Demaille  <akim@epita.fr>
3179
3180         * automake.in (&initialize_per_input): %targets_conditionals is
3181         new.
3182         (&read_am_file): When slurping a rule, set the target related
3183         variable, and no variable related variable.
3184         (&file_contents): Likewise.
3185         * tests/vartar.test, tests/ctarget1.test: New.
3186
3187 2001-02-25  Akim Demaille  <akim@epita.fr>
3188
3189         * automake.in (&variable_defined, &variable_value_as_list_worker):
3190         If $VAR is effectively a variable, don't die if it's also a
3191         target.
3192         Plus some formatting changes.
3193
3194 2001-02-25  Akim Demaille  <akim@epita.fr>
3195
3196         * automake.in: Mying changes.
3197         * Makefile.am (maintainer-check): Check the stability of the
3198         number of uses of `local'.
3199
3200 2001-02-25  Akim Demaille  <akim@epita.fr>
3201
3202         * automake.in: Mying changes.
3203
3204 2001-02-25  Akim Demaille  <akim@epita.fr>
3205
3206         * automake.in: Mying changes.
3207
3208 2001-02-25  Akim Demaille  <akim@epita.fr>
3209
3210         * automake.in: Mying changes.
3211         (&handle_tags): Fix a bug uncovered by the previous mying changes:
3212         transform CONFIG into $config, not $xform.
3213
3214 2001-02-25  Akim Demaille  <akim@epita.fr>
3215
3216         * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
3217         Don't deal with install-data-am, install-exec-am and unstall-am.
3218         (&initialize_per_input): Add them to %dependencies.
3219         Remove %exec_dir_p since the *.am files are now in charge of it.
3220         Remove @uninstall, @install_data, @install_exec.
3221         (&handle_merge_targets): Adjust to these removals.
3222         (&file_contents): Also &transform_cond for --no-installman and
3223         --no-installinfo.
3224         (&do_one_merge_target): Add some magic to install hooks on
3225         %dependencies' targets.
3226         (%required_targets): New.
3227         (&handle_factored_dependencies): Output required targets.
3228         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
3229         * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
3230         * texinfos.am: Declare your dependencies on install-data-am,
3231         install-exec-am and uninstall-am.
3232         * tests/instdata2.test (incldata_HEADERS): New test.
3233
3234 2001-02-24  Tom Tromey  <tromey@redhat.com>
3235
3236         * Makefile.am (amfiles): Added texibuild.am.
3237         * texibuild.am: New file.
3238         * tests/Makefile.am (TESTS): Added texinfo9.test.
3239         * tests/texinfo9.test: New file.
3240         * automake.in (handle_texinfo): Keep track of suffixes used.  Give
3241         error if suffix unrecognized.  Removed extraneous newline.
3242
3243 2001-02-23  Akim Demaille  <akim@epita.fr>
3244
3245         * automake.in (&am_install_var): Don't hook on the clean targets
3246         and .PHONY.
3247         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
3248         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
3249         Do it.
3250
3251 2001-02-23  Akim Demaille  <akim@epita.fr>
3252
3253         * automake.in: Promote local `my' over `local'.
3254
3255 2001-02-23  Akim Demaille  <akim@epita.fr>
3256
3257         * automake.in: Formatting and mying changes.
3258
3259 2001-02-23  Akim Demaille  <akim@epita.fr>
3260
3261         * automake.in: Formatting and mying changes.
3262
3263 2001-02-23  Akim Demaille  <akim@epita.fr>
3264
3265         * automake.in (&handle_man_pages): Let install-man and
3266         uninstall-man be handled by the dependency tracker.
3267         (&initialize_per_input): Let %dependencies track them.
3268         * mans.am: Add the needed hooks with the proper dependencies.
3269
3270 2001-02-22  Pavel Roskin  <proski@gnu.org>
3271
3272         * tests/target-cflags.test: Don't use subshell to configure in
3273         subdirectory. Typo fix - run `./foo', not `/foo'.
3274
3275 2001-02-22  Akim Demaille  <akim@epita.fr>
3276
3277         * automake.in: Formatting and mying changes.
3278
3279 2001-02-21  Tom Tromey  <tromey@redhat.com>
3280
3281         * automake.in (handle_dist): Introduce new variable to avoid extra
3282         keys in %dist_dirs.  Fixes distdir.test.
3283
3284         * automake.in (handle_texinfo): Only remove suffixes we can
3285         handle.
3286
3287         * tests/distdir.test: Check to make sure directory isn't made in
3288         build directory.
3289
3290         * automake.in (handle_dist): Do nothing in Cygnus mode.
3291
3292 2001-02-21  Pavel Roskin  <proski@gnu.org>
3293
3294         * header-vars.am: Remove tabs before variable definitions.
3295
3296 2001-02-21  Akim Demaille  <akim@epita.fr>
3297
3298         * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
3299         false diagnostics.
3300
3301 2001-02-21  Akim Demaille  <akim@epita.fr>
3302
3303         * automake.in (&dist_cmp, &target_cmp): Be sure to return a
3304         numeric value as required by Perl 5.6.
3305
3306 2001-02-21  Akim Demaille  <akim@epita.fr>
3307
3308         * dist-vars.am: Remove, merge into...
3309         * distdir.am: this.
3310         * automake.in (dirname, basename, backname): Move to the top of
3311         the file so that prototypes are checked,
3312         Use them without `&'.
3313         (&handle_dist): Adjust.
3314
3315 2001-02-21  Akim Demaille  <akim@epita.fr>
3316
3317         * automake.in (&check_ambiguous_conditional, &read_main_am_file):
3318         Use a uniform naming scheme.
3319         (&quote_cond_val, &unquote_cond_val): Delete, dead code.
3320         (&read_am_file): Fix conditional definition of backslash continued
3321         items.
3322
3323 2001-02-21  Akim Demaille  <akim@epita.fr>
3324
3325         Change the handling of conditionals: instead of using an ad-hoc
3326         encoding to store a hash in a string, use hashes.
3327
3328         * automake.in (&conditional_dump): New.
3329         (&check_ambiguous_conditional, &variable_defined)
3330         (&variable_conditions_sub, &variable_value_as_list_worker)
3331         (&define_variable, read_am_file, &read_main_am_file): Be sure to
3332         handle `$conditional{$vars}' as a hash instead of a plain string.
3333
3334 2001-02-21  Akim Demaille  <akim@epita.fr>
3335
3336         * automake.in (&conditional_true_when): Modernize, simplify.
3337         Warning: `$comp' is now private (my), while it used to be
3338         `inherited' from a `local' elsewhere in the code.  AFAICT it was
3339         wrong, but some dirty side effect might show up.
3340         (&conditionals_true_when): New.
3341         (&variable_conditions_sub, &variable_conditions_reduce): Use it.
3342
3343 2001-02-21  Akim Demaille  <akim@epita.fr>
3344
3345         * automake.in ($top_builddir): Remove, used in one place.
3346         (&define_standard_variables): Adjust.
3347         Move the definition of triplet variables into...
3348         * header-vars.am: here.
3349
3350 2001-02-21  Akim Demaille  <akim@epita.fr>
3351
3352         * automake.in (&initialize_global_constants): Don't define $USAGE.
3353         (&usage): Handle the former content of $USAGE.
3354         Don't pretend autoconf cares about Makefile.in.
3355         Classify the options.
3356         (&handle_tests): Formatting and mying changes.
3357
3358 2001-02-21  Akim Demaille  <akim@epita.fr>
3359
3360         * automake.in (&handle_tests_dejagnu): Move the definition of a
3361         default `site.exp' into...
3362         * dejagnu.am (site.exp): here.
3363         Use DOS compliant file names.
3364
3365 2001-02-21  Akim Demaille  <akim@epita.fr>
3366
3367         * automake.in (&dist_cmp): New.
3368         (&handle_dist): Use it.
3369         Promote `my' over `local'.
3370
3371 2001-02-21  Akim Demaille  <akim@epita.fr>
3372
3373         * dist.am: Remove, merge into...
3374         * distdir.am: here.  Use the neat sed snippet for banners.
3375         BTW, distcheck is phony.
3376         * automake.in (&handle_dist_worker): Remove, merge into...
3377         (&handle_dist): this.
3378         (&file_contents): Strip leading new lines.
3379         Be sure to end comments with new lines.
3380
3381 2001-02-21  Akim Demaille  <akim@epita.fr>
3382
3383         * distdir.am (GZIP_ENV): Define.
3384         * automake.in (&handle_dist): Don't.
3385         (&uniq): New.
3386         (&handle_dist_worker, &am_install_var): Use it.
3387
3388 2001-02-21  Akim Demaille  <akim@epita.fr>
3389
3390         * distdir.am (distdir): Handle the DIST-TARGETS.
3391         * automake.in (&handle_dist_worker): Don't.
3392
3393 2001-02-21  Akim Demaille  <akim@epita.fr>
3394
3395         * automake.in (&file_contents): Transform the global options (such
3396         as CYGNUS).
3397         (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
3398
3399 2001-02-21  Akim Demaille  <akim@epita.fr>
3400
3401         * distdir.am (distdir): Be sure to have permissive rights on its
3402         contents.
3403         (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
3404         targets.
3405         And BTW, all these guys are phony.
3406         * automake.in (&handle_dist_worker): As its name doesn't indicate,
3407         output distributions.
3408         (&handle_dist): As its name doesn't indicate, don't.
3409         (&initialize_global_constants): Don't define variables which
3410         content is now handled by distdir.am.
3411         But register `dist-all' as a factored target.
3412         (&handle_factored_dependencies): Don't output empty targets.
3413
3414 2001-02-20  Tom Tromey  <tromey@redhat.com>
3415
3416         * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
3417         invocation.
3418
3419 2001-02-18  Tom Tromey  <tromey@redhat.com>
3420
3421         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
3422         Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
3423         (AM_PROG_STRIP): Commented out.
3424
3425 2001-02-17  Raja R Harinath  <harinath@cs.umn.edu>
3426
3427         * depcomp (gcc3): Protect against the compiler deleting
3428         the dependency output file.
3429
3430 2001-02-17  Tom Tromey  <tromey@redhat.com>
3431
3432         * automake.in (handle_merge_targets): Use double quotes around
3433         setting of INSTALL_STRIP_PROGRAM.
3434         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
3435         to absolute path at runtime.
3436         (AM_PROG_STRIP): Don't explicitly test $STRIP.
3437
3438 2001-01-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
3439
3440         * m4/strip.m4: New file.
3441         * m4/Makefile.am (m4data_DATA): Add strip.m4.
3442         * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
3443         * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
3444         * automake.in (handle_merge_targets): In the install-strip rule,
3445         set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
3446         to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
3447         * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
3448         don't use INSTALL_STRIP_FLAG any longer.
3449
3450 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
3451
3452         * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
3453         argument.
3454
3455 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
3456
3457         * automake.in (unquote_m4_arg): New function.
3458         (scan_one_configure_file): Call unquote_m4_arg on
3459         AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
3460         works.
3461
3462 2001-02-15  Tom Tromey  <tromey@redhat.com>
3463
3464         * config.guess, config.sub: New versions from FSF.
3465
3466         * Makefile.am (WGET): New macro.
3467         (FETCHFILES): New macro.
3468         (fetch): New target.
3469
3470         * tests/subobj3.test: Exit with status 77 if gcc not found.
3471         * tests/pr9.test: Exit with status 77 if gzip not found.
3472         * tests/pr87.test: Exit with status 77 if gcc not found.
3473         * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
3474         * tests/install2.test: Exit with status 77 if gzip not found.
3475         * tests/exsource.test: Exit with status 77 if GNU make not found.
3476         * tests/ansi3.test: Exit with status 77 if gcc not found.
3477
3478         * tests/target-cflags.test: Require GNU make.  Exit with status 77
3479         if gcc or make not found.  Fixes PR automake/121.
3480
3481         * configure.in: Require Perl 5.005.
3482         * automake.in: Require 5.005.
3483
3484         * automake.texi (Top): Conditionalize on `nottex', not `info'.
3485         Fixes PR automake/122.
3486
3487 2001-02-14  Tom Tromey  <tromey@redhat.com>
3488
3489         * automake.in (add_depend2): Only emit a given object rule once.
3490         Fixes specflags6.test.
3491
3492 2001-02-14  Richard Boulton  <richard@tartarus.org>
3493
3494         * tests/specflags6.test: New file.
3495
3496 2001-02-14  Tom Tromey  <tromey@redhat.com>
3497
3498         * automake.texi (A Shared Library): Mention -module.
3499
3500 2001-02-13  Tom Tromey  <tromey@redhat.com>
3501
3502         * automake.in (do_one_merge_target): Always register $name and
3503         $name-am as phony.
3504
3505         * automake.in (do_one_merge_target): Register `all' as phony
3506         target.
3507
3508         * configure.in: Updated to 1.4e for cvs.
3509
3510 2001-02-12  Tom Tromey  <tromey@redhat.com>
3511
3512         * configure.in: Updated to 1.4d and released.
3513
3514         * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
3515         names through autoconf.
3516
3517         Fix for subdirbuiltsources.test:
3518         * automake.in (initialize_per_input): [all_target] Initialize to
3519         empty string.
3520         (handle_merge_targets): Use all-redirect target to handle built
3521         sources.
3522         (do_one_merge_target): Don't generate all-redirect rule.
3523
3524 2001-02-11  Peter Muir  <iyhi@yahoo.com>
3525
3526         * tests/subdirbuiltsources.test: New file.
3527         * tests/Makefile.am (TESTS): Added new file.
3528
3529 2001-02-10  Tom Tromey  <tromey@redhat.com>
3530
3531         * tests/condlib.test: New file.
3532         * tests/Makefile.am (TESTS): Added new file.
3533
3534 2001-02-10  Lars J. Aas  <larsa@sim.no>
3535
3536         * automake.in ($MACRO_PATTERN): Include '@' in name regex.
3537         (&canonicalize): New. Includes '@' in canonical range.
3538         (&check_canonical_spelling, &handle_programs, &handle_libraries,
3539         &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
3540
3541 2001-02-10  Raja R Harinath  <harinath@cs.umn.edu>
3542
3543         * automake.in (handle_configure): Revert part of
3544         '2001-02-04  Kevin Ryde <user42@zip.com.au>'.  Don't
3545         set CONFIG_COMMANDS explicitly.
3546
3547 2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>
3548
3549         * depcomp (gcc3): Propagate exit code.
3550
3551 2001-02-09  Lars J. Aas  <larsa@sim.no>
3552
3553         * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
3554
3555 2001-02-09  Tom Tromey  <tromey@redhat.com>
3556
3557         Clean up maintainer-check warnings:
3558         * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
3559         check.
3560         * automake.in (handle_dist_worker): Removed redundant `my $xform'.
3561
3562 2001-02-09  Akim Demaille  <akim@epita.fr>
3563
3564         * automake.in (&file_contents): Remove a dead branch.
3565
3566 2001-02-09  Akim Demaille  <akim@epita.fr>
3567
3568         * automake.in (&transform): Use `my', not `local'.
3569         (&transform_cond): New.
3570         (&get_object_extension, &handle_texinfo, &handle_tags)
3571         (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
3572         (&handle_tests_dejagnu): Use it.
3573         * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
3574         * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
3575
3576 2001-02-09  Akim Demaille  <akim@epita.fr>
3577
3578         * automake.in: Various formatting changes, and modernization of
3579         Perl constructs.
3580         (&backname): New.
3581         (&handle_configure, define_standard_variables): Use it.
3582
3583 2001-02-08  Tom Tromey  <tromey@redhat.com>
3584
3585         * automake.in (file_contents): Only add $actions if any are
3586         found.  Fixes new failure in pr87.test.
3587
3588 2001-02-08  Pavel Roskin  <proski@gnu.org>
3589
3590         * tests/pr87.test: Check foo/Makfile.in after it is created.
3591
3592 2001-02-08  Tom Tromey  <tromey@redhat.com>
3593
3594         * tests/pr87.test: Added check for blank line after `.c.o' rule.
3595         Report from Lars J. Aas.
3596
3597 2001-02-07  Lars J. Aas  <larsa@sim.no>
3598
3599         * lisp.am (install-@DIR@LISP): Removed extra space.
3600         * header.am (install-@DIR@HEADERS): Removed extra space.
3601         * data.am (install-@DIR@DATA): Removed extra space.
3602
3603 2001-02-07  Tom Tromey  <tromey@redhat.com>
3604
3605         * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
3606
3607         * automake.in (handle_dependencies): Use _am_include, not
3608         AMINCLUDE.
3609         * tests/exsource.test: Use _am_include, not AMINCLUDE.
3610         * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
3611
3612         * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
3613
3614         * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
3615
3616         * automake.in (handle_configure): Handle case where output file is
3617         in subdir with no Makefile of its own.  Fixes remake3.test,
3618         distcommon.test.
3619
3620 2001-02-06  Pavel Roskin  <proski@gnu.org>
3621
3622         * automake.in (handle_dependencies): Rename AM_INCLUDE to
3623         AMINCLUDE.
3624         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
3625         * tests/exsource.test: Likewise.
3626
3627 2001-02-06  Derek Price  <derek.price@openavenue.com>
3628
3629         * automake.in (handle_configure): Fix syntax error.
3630
3631 2001-02-06  Akim Demaille  <akim@epita.fr>
3632
3633         * subdirs.am: This file is the exception: clean recursive targets
3634         are called by the clean targets, not the clean-am targets.
3635         Otherwise we have a circular dependency: clean -> clean-am ->
3636         clean-recursive -> clean.
3637         * automake.in (handle_clean): Bind `-local' targets to `-am'
3638         targets, not top targets.
3639         Don't declare -recursive dependencies of the clean targets:
3640         `subdirs.am' did it.  Less hard coded knowledge, transfered
3641         into...
3642         * clean.am: here.
3643
3644 2001-02-06  Akim Demaille  <akim@epita.fr>
3645
3646         Monstro unsplitable patch.
3647
3648         The aim is to remove hard coded knowledge about clean targets from
3649         automake.in, leaving them in the *.am files.
3650         In addition to the mechanic needed to factor some dependencies, it
3651         appears some rules (most notably distclean and maintainer-clean)
3652         need factored actions.  So first, be ready to catch factored
3653         rules.
3654
3655         * automake.in (&file_contents): For the time being, use an extended
3656         $RULE_PATTERN which is able to match any kind of rules, with or
3657         without dependency, with or without actions.
3658         Handle all the rules uniformly, storing in %actions the factored
3659         actions.
3660         (&flatten, &target_cmp): New.
3661         (&handle_factored_dependencies): Output the %actions.
3662         No longer special case `clean'.
3663         Output the rules in alphabetical order, but keeping `.PHONY' last.
3664
3665         Now we must not use &push_phony_cleaners, which is doing all sort
3666         of magic to push a bit of everything in all the clean targets.
3667         The biggest problem being that, making a Cartesian product, it
3668         requires many useless targets.  The `*.am' file know better.
3669         But first, register the new factored rules.
3670
3671         * automake.in (&initialize_per_input): Include clean, mostlyclean,
3672         maintainer-clean, distclean and their `*-am' counterpart in
3673         %dependencies.
3674         Initialize %actions.
3675         (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
3676         handle_dependencies, handle_subdirs, handle_configure, handle_clean)
3677         (handle_emacs_lisp, handle_python): Don't play with
3678         &push_phony_cleaners nor &depend and `clean'.
3679         * texinfos.am, texi-vers.am, tags-clean.am:
3680         * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
3681         * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
3682         * clean-kr.am, clean-hdr.am: Do it.
3683         Whenever a target is empty, just remove it, it will no longer be
3684         called.
3685
3686         There is still some magic about clean to hard code.  But really,
3687         that's the end of &do_one_clean_target.
3688
3689         * automake.in (&do_one_clean_target): Kaboom out.
3690         (&handle_clean): Rewrite the magic code.
3691         (&am_install_var): No longer use &push_phony_cleaners, nor depend
3692         on `clean'.
3693         (&push_phony_cleaners): Kaboom too.
3694
3695 2001-02-06  Akim Demaille  <akim@epita.fr>
3696
3697         * automake.in (do_one_clean_target): Don't hard code knowledge
3698         about libtool, and maintainer-clean.
3699         * clean.am, libtool.am: Handle these.
3700
3701 2001-02-05  Akim Demaille  <akim@epita.fr>
3702
3703         * automake.in (handle_texinfo): No longer hard code the clean
3704         targets.
3705         (texinfos.am): Include them.
3706
3707 2001-02-05  Akim Demaille  <akim@epita.fr>
3708
3709         * Makefile.am (perl4-check): Remove, we now require Perl 5.
3710         (maintainer-check): Don't be silent when you find a problem, and
3711         actually, even specify the locations.
3712         Also check that @_ is assigned to arrays.
3713
3714 2001-02-05  Akim Demaille  <akim@epita.fr>
3715
3716         * m4/regex.m4: Use AC_LIBSOURCES.
3717         * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
3718         _AC_LIBOBJ_DECL.
3719
3720 2001-02-04  Tom Tromey  <tromey@redhat.com>
3721
3722         * m4/Makefile.am (m4data_DATA): Added make.m4.
3723         * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
3724         dependency files.
3725         * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
3726         Copy depcomp to subdir.
3727         * m4/make.m4: New file.
3728
3729 2001-02-04  Pavel Roskin  <proski@gnu.org>
3730
3731         * automake.in (handle_dist_worker): Remove a line that is now
3732         in distdir.am.
3733
3734 2001-02-04  Kevin Ryde  <user42@zip.com.au>
3735
3736         * automake.in (handle_configure): Call config.status with empty
3737         CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
3738
3739 2001-02-04  Tom Tromey  <tromey@redhat.com>
3740
3741         * depcomp (ddashmd): Removed case.
3742         (sgi): Handle failure exit correctly
3743         (aix): Likewise.  Also, add dummy `.h' targets.
3744
3745 2001-02-04  Akim Demaille  <akim@epita.fr>
3746
3747         * distdir.am (distdir): New file, extracted from...
3748         * automake.in (handle_dist_worker): here.
3749         Adjust.
3750
3751 2001-02-04  Akim Demaille  <akim@epita.fr>
3752
3753         * automake.in (@clean): Remove, replaced by...
3754         ($dependencies{'clean'}): this.
3755         Use `&depend' instead of push'ing into @clean.
3756         (handle_factored_dependencies): For the time being, skip 'clean'.
3757         (do_one_clean_target): Don't ask for argument 1 and 4 as they are
3758         always `clean', and `@clean'.
3759
3760 2001-02-04  Akim Demaille  <akim@epita.fr>
3761
3762         * automake.in (%dependencies): Don't be initialize globally for
3763         all the files, but in...
3764         (&initialize_per_input): here.
3765         (&depend): New.
3766         (@phony): Replace all occurrences with the corresponding &depend
3767         invocation.
3768
3769 2001-02-03  Tom Tromey  <tromey@redhat.com>
3770
3771         * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
3772         * header-vars.am (INSTALL_HEADER): New macro.
3773
3774         * automake.texi (Rebuilding): New node.
3775
3776 -----
3777
3778 Copyright 2001 Free Software Foundation, Inc.
3779
3780 This file is part of GNU Automake.
3781
3782 GNU Automake is free software; you can redistribute it and/or modify
3783 it under the terms of the GNU General Public License as published by
3784 the Free Software Foundation; either version 2, or (at your option)
3785 any later version.
3786
3787 GNU Automake is distributed in the hope that it will be useful,
3788 but WITHOUT ANY WARRANTY; without even the implied warranty of
3789 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3790 GNU General Public License for more details.
3791
3792 You should have received a copy of the GNU General Public License
3793 along with autoconf; see the file COPYING.  If not, write to
3794 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3795 Boston, MA 02111-1307, USA.