* ext-compile.am: New file.
[platform/upstream/automake.git] / ChangeLog
1 2001-04-09  Akim Demaille  <akim@epita.fr>
2
3         * ext-compile.am: New file.
4         * automake.in (&finish_languages): Output it.
5         Require a C linker if there are several registered source suffixes.
6         (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
7         extensions, which are discovered in ext-compile.am.
8         With the help from Robert Boehne.
9
10 2001-04-09  Akim Demaille  <akim@epita.fr>
11
12         * automake.in (&handle_compile): Extract from...
13         (&get_object_extension): here.
14         (&read_am_file): Call it.
15         ($included_generic_compile, $included_knr_compile)
16         ($included_libtool_compile): Remove.
17         ($get_object_extension_was_run): New.
18
19 2001-04-09  Akim Demaille  <akim@epita.fr>
20
21         Use AM_CONDITIONAL and if/endif for AMDEP.
22
23         * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
24         * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
25         to a configure time if/endif), or to `FALSE' (static removal of
26         the code).
27         (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
28         * depend2.am: Use if/endif.
29
30         Adjust the 101 tests that use dependencies so that they
31         properly invoke aclocal before automake.  They need to `see'
32         `AM_CONDITIONAL([AMDEP], ...)'.
33
34 2001-04-09  Akim Demaille  <akim@epita.fr>
35
36         * tags.am: Fix missing leading tabs.
37
38 2001-04-09  Akim Demaille  <akim@epita.fr>
39
40         * automake.in: Use simple quotes to define the _PATTERN variables
41         to unobfuscate the regexps.
42         ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
43
44         
45 2001-04-09  Akim Demaille  <akim@epita.fr>
46
47         * automake.in (&rule_define): When you discover a suffix rules,
48         register the extensions for .SUFFIXES.
49         (&handle_texinfo): Don't register the suffixes.
50         (&get_object_extension): Don't register suffixes, let them be
51         discovered in depend2.am.
52         (&handle_emacs_lisp): Depend on your lisp.am.
53         * lisp.am: Include the rule &handle_emacs_lisp used to output.
54
55 2001-04-09  Akim Demaille  <akim@epita.fr>
56
57         * subdirs.am: Don't define info related recursive targets.
58         * texinfos.am: Do.
59
60 2001-04-09  Akim Demaille  <akim@epita.fr>
61
62         * subdirs.am (RECURSIVE_TARGETS): New variable.
63         Use it.
64         * automake.in (&handle_subdirs): Output it.
65         (&file_contents_internal): Support value spread on several lines.
66
67 2001-04-09  Akim Demaille  <akim@epita.fr>
68
69         * automake.in (&handle_man_pages): Rely on mans.am to define
70         man%SECTION%dir and MANS.
71         * mans.am: Do it.
72
73 2001-04-09  Akim Demaille  <akim@epita.fr>
74
75         * automake.in (&variable_dump): Use %var_type properly.
76         (&macro_define): Enforce better overriding rules.
77         Handle the special case that used to handle...
78         (&define_pretty_variable): this.
79         Hence, don't.
80         The variables you define are owned by Automake.
81         (&generate_makefile): PRE_INSTALL and co must not be defined *by
82         the user*.
83         (&variable_defined): Now independent from the owner.
84         (&variable_output, &variable_pretty_output): Adjust to %var_type.
85
86 2001-04-09  Akim Demaille  <akim@epita.fr>
87
88         * automake.in (%var_was_plus_eq): Rename as...
89         (%var_type): this.
90         (%def_type): Remove.
91         (&macro_define): %var_type may now hold `', `+', or `:'.
92         (%conditional, %am_vars, %content_lines): Rename as...
93         (%var_value, %var_comment, %var_line): these.
94
95 2001-04-09  Akim Demaille  <akim@epita.fr>
96
97         * automake.in (&variable_output): Admit a list of @CONDS.
98         (&variable_pretty_output): New.
99         (&define_pretty_variable): Use it.
100         (&read_am_file, &file_contents_internal): Prepend a separator to
101         $am_vars only if there is none yet.
102         (&file_contents_internal): Rename $separator as $spacing to
103         harmonize with &read_am_file.
104
105 2001-04-09  Akim Demaille  <akim@epita.fr>
106
107         * automake.in (&am_install_var): Transform DIST, and let the *.am
108         files handle DIST_COMMON.
109         * data.am, header.am, java.am, list.am, python.am, script.am: Set
110         DIST_COMMON.
111
112 2001-04-09  Akim Demaille  <akim@epita.fr>
113
114         * automake.in (%dist_common): Remove.
115         (%configure_dist_common): Replace with...
116         ($configure_dist_common): this.
117         (&generate_makefile): Read the user file before using
118         push_dist_common, as it sets DIST_COMMON, and read_am_file checks
119         that no variable is defined before it is run.
120         (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
121         (&dist_cmp): Rename as...
122         (&for_dist_common): this.
123         (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
124         it.
125         Adjust to $configure_dist_common.
126         * configure.am, texi-vers.am: Set DIST_COMMON.
127
128 2001-04-09  Akim Demaille  <akim@epita.fr>
129
130         * automake.in (&handle_aclocal_m4): Rename as...
131         (&scan_aclocal_m4): this.
132         Return the list of aclocal.m4 dependencies.
133         (&handle_configure): Invoke it, and use it when loading...
134         * configure.am: Template the rules to recreate aclocal.m4.
135
136 2001-04-09  Akim Demaille  <akim@epita.fr>
137
138         * automake.in (&get_object_extension): Use ansi2knr.am.
139         * clean-kr.am, kr-extra.am: Remove, merged into...
140         * ansi2knr.am: this new file.
141
142 2001-04-09  Akim Demaille  <akim@epita.fr>
143
144         * automake.in (&transform): Fix an incredible bug which was
145         breaking the if/endif system.
146         ($ELSE_PATTERN): Admit an optional argument.
147
148 2001-04-09  Akim Demaille  <akim@epita.fr>
149
150         * comp-vars.am: Remove, merged into...
151         * compile.am: here.
152         * automake.in (&get_object_extension): Adjust.
153
154 2001-04-09  Akim Demaille  <akim@epita.fr>
155
156         * remake.am: Merge into...
157         * configure.am: ... here.
158         * automake.in (&handle_configure): Adjust.
159
160 2001-04-09  Akim Demaille  <akim@epita.fr>
161
162         * automake.in (&output_lex_build_rule): Output this...
163         * lex.am: New file.
164
165 2001-04-09  Akim Demaille  <akim@epita.fr>
166
167         * automake.in (&condition_negate): New.
168         (&variable_conditions_permutations): Use it.
169         (&read_am_file, &file_contents): Use it on `else' clauses to
170         support `if FALSE'.
171         (&output_yacc_build_rule): Output this...
172         * yacc.am: New file.
173
174 2001-04-09  Akim Demaille  <akim@epita.fr>
175
176         * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
177         (&handle_dist): Don't.
178         (&handle_clean): Don't handle config.status here, let...
179         * clean.am: ... do it.
180         * distdir.am: Adjust.
181
182 2001-04-09  Akim Demaille  <akim@epita.fr>
183
184         * automake.in: Use strict vars and subs.
185         Declare `%require_file_found'.
186         (&handle_source_transform, &make_paragraphs): Declare my variables.
187
188 2001-04-09  Akim Demaille  <akim@epita.fr>
189
190         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
191         * progs.am, python.am: Use if/endif instead of ?INSTALL?.
192         * java.am (_am_installdirs): Be sure to set it.
193
194 2001-04-09  Akim Demaille  <akim@epita.fr>
195
196         * automake.in (&make_condition): Return '#' when FALSE.
197         (&conditional_string): Return FALSE, not '#' in the corresponding
198         cases.
199         (&file_contents_internal): Adjust.
200         (&check_variable_defined_unconditional): Dump the guilty variable.
201
202 2001-04-09  Akim Demaille  <akim@epita.fr>
203
204         * distdir.am: Use and abuse of if/endif.
205         * scripts.am: Using if/endif with variables is fine.
206
207 2001-04-09  Akim Demaille  <akim@epita.fr>
208
209         * automake.in (&make_paragraphs):  Extract from &file_contents.
210         Make it more robust than the previous RE based scheme.
211         (&file_contents): Use it.
212
213 2001-04-09  Akim Demaille  <akim@epita.fr>
214
215         * automake.in (&make_paragraphs):  Extract from &file_contents.
216         Make it more robust than the previous RE based scheme.
217         (&file_contents): Use it.
218
219 2001-04-09  Akim Demaille  <akim@epita.fr>
220
221         * tests/yacc2.test: Don't define several times a variable, as
222         automake complains.
223
224 2001-04-09  Akim Demaille  <akim@epita.fr>
225
226         * automake.in (&handle_source_transform): Fix pr72: don't define
227         $linker if there are no @files.
228
229 2001-04-09  Akim Demaille  <akim@epita.fr>
230
231         Avoid reading twice header-vars.am as now macro_define
232         complains.
233
234         * automake.in (&define_standard_variables): Don't output the
235         variables.
236         (&read_main_am_file): Output first user variables, then Automake
237         variables.
238         Don't call twice &define_standard_variables.
239         Save variable comments in $am_vars.
240         (&variable_output): New.
241         (&file_contents_internal): New.
242         Save variable comments in $am_vars.
243         (&file_contents): Use it.
244
245 2001-04-09  Akim Demaille  <akim@epita.fr>
246
247         * automake.in (&macro_define): The user is allowed to override
248         a value if it was set by Automake, or if it was found in AC_SUBST.
249
250 2001-04-09  Akim Demaille  <akim@epita.fr>
251
252         * automake.in (&handle_source_transform): Better locality of the
253         variables.
254         Use `next' to skip nonexistent variables.
255
256 2001-04-09  Akim Demaille  <akim@epita.fr>
257
258         * automake.in (&variable_dump): If a variable is undefined, say
259         it.
260         (&check_ambiguous_conditional): Give finer error messages.
261         (&macro_define): Check that a `+=' variable is not set with `='.
262         Check for ambiguous definitions each time you _set_ (even with `+=')
263         a variable.
264         (&read_main_am_file): Perform a deep copy of %conditional.
265
266 2001-04-09  Akim Demaille  <akim@epita.fr>
267
268         * automake.in (&variable_defined): Some callers, e.g.,
269         &am_primary_prefixes, really want to know if the variable is
270         defined for any condition, not `TRUE' by default.
271         (&am_primary_prefixes): Give a more precise error message.
272
273 2001-04-09  Akim Demaille  <akim@epita.fr>
274
275         (&variable_conditions): Don't include `FALSE' in the result.
276
277 2001-04-09  Akim Demaille  <akim@epita.fr>
278
279         * automake.in (&variable_conditions_reduce): FALSE is absorbent.
280         (&variable_conditions): Don't include `FALSE' in the result.
281
282 2001-04-09  Akim Demaille  <akim@epita.fr>
283
284         * tests/defs, tests/depend3.test: Remove useless code.
285
286 2001-04-09  Akim Demaille  <akim@epita.fr>
287
288         * automake.in (&handle_source_transform):  Use
289         &variable_conditions, don't read $conditional{$var}.
290         (&variable_conditions_sub): When the call is the top level call,
291         generate all the permutations of the conditions.
292
293 2001-04-09  Akim Demaille  <akim@epita.fr>
294
295         * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
296         that it does not get noticed twice by automake, which now
297         complains for multiple definitions.
298         * tests/vartar.test: s/INSTALL/install/g, automake now complains
299         because we defined INSTALL.
300
301 2001-04-09  Akim Demaille  <akim@epita.fr>
302
303         * automake.in (&generate_makefile) Use macro_define to define
304         SOURCES and OBJECTS.
305         (&variable_defined): Don't check for $conditional{VAR}{COND} as
306         this would make perl create $condition{VAR}, which we don't want.
307
308 2001-04-09  Akim Demaille  <akim@epita.fr>
309
310         * automake.in (&variable_defined, &define_pretty_variable):
311         Simplify code which used to handle the cases where not all
312         variables were in %conditional.
313         (&define_variable): Use &define_pretty_variable.
314         (&variable_conditions_sub, &variable_value_as_list_worker)
315         (&variable_value_as_list, &rule_define): Simplify syntax.
316         (&read_main_am_file): Dump the guilty predefined variables.
317
318 2001-04-09  Akim Demaille  <akim@epita.fr>
319
320         * automake.in (&variable_conditions_sub)
321         (&variable_value_as_list_worker): Remove dead code which used to
322         handle the cases where not all variables were in %conditional.
323
324 2001-04-09  Akim Demaille  <akim@epita.fr>
325
326         * automake.in (&handle_source_transform, &read_main_am_file):
327         Simplify loops which were split in two parts, conditional vs
328         unconditional variables.
329
330 2001-04-09  Akim Demaille  <akim@epita.fr>
331
332         Handle unconditional values of variables as conditioned by
333         `TRUE'.
334
335         * automake.in (%contents): Remove.
336         (&generate_makefile, &handle_ltlibraries, &macro_define)
337         (&read_am_file, &variable_defined, &variable_conditions_sub)
338         (&variable_value, &variable_value_as_list_worker)
339         (&variable_value_as_list, &define_pretty_variable)
340         (&read_main_am_file): Use
341         $conditional, not %contents.
342         (&variable_conditions_permutations): Don't return TRUE and FALSE.
343         (&variable_conditionally_defined): New.
344         (&handle_dist): Use it.
345         (&check_ambiguous_conditional): When multiply defined, specify
346         under which condition.
347         (&macro_define): Use it.
348         (&variable_delete): New.
349         (&read_am_file): Use it.
350         (&am_install_var): Simplify, as all the variables are in
351         %conditional now.
352
353 2001-04-07  Tom Tromey  <tromey@redhat.com>
354
355         * tests/Makefile.am (XFAIL_TESTS): Added man.test.
356         (TESTS): Likewise.
357         * tests/man.test: New file.
358
359 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
360
361         * depcomp (gcc3): Invert test condition.
362
363 2001-04-07  Tom Tromey  <tromey@redhat.com>
364
365         * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
366         statement.  Report from Larry Jones.
367
368 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
369
370         * depcomp (sgi): Fix sed expression.  Report from Robert Boehne.
371
372 2001-04-01  Tom Tromey  <tromey@redhat.com>
373
374         * java.am (.PHONY clean-am): Removed trailing ":".
375         From Per Bothner.  Fixes PR automake/139.
376
377 2001-03-28  Akim Demaille  <akim@epita.fr>
378
379         * program.am: Fix a stupid typo: now *all* (not none) the programs
380         use `$(EXEEXT)'.
381         Reported by Robert Boehne.
382
383 2001-03-23  Akim Demaille  <akim@epita.fr>
384
385         * automake.in (&read_am_file, &file_contents): Avoid name clashes
386         on $cond.
387
388 2001-03-23  Akim Demaille  <akim@epita.fr>
389
390         * automake.in (&variable_conditionally_defined): Rename as...
391         (&check_variable_unconditionally_defined): this.
392         (&variable_dump): Fix the output.
393         (&variable_defined, &macro_define): Since conditions are
394         canonicalized, don't use a loop to look for a condition: read the
395         hash.
396         (&macro_define, &rule_define, &read_am_file, &file_contents):
397         Rename $cond_string as $cond.
398         * distdir.am (PACKAGE, VERSION): Remove; since they are already
399         discovered via AC_SUBST, they now trigger a `defined twice' error.
400
401 2001-03-23  Akim Demaille  <akim@epita.fr>
402
403         * automake.in (&handle_footer, &handle_installdirs)
404         (&read_main_am_file): Don't read %contents directly, use
405         &variable_value.
406
407 2001-03-23  Akim Demaille  <akim@epita.fr>
408
409         * automake.in (&read_am_file): Define the variables in a single
410         shot.
411         Factor the $saw_bk code.
412
413 2001-03-23  Akim Demaille  <akim@epita.fr>
414
415         * automake.in (&read_am_file): Keep $cond_string up to date.
416
417 2001-03-23  Akim Demaille  <akim@epita.fr>
418
419         * automake.in (&define_variable): Use &macro_define.
420
421 2001-03-23  Akim Demaille  <akim@epita.fr>
422
423         * automake.in (&macro_define): Don't lose the location if we
424         redefine a variable.
425         Don't push all the variables in @var_list, let...
426         (&read_am_file, &file_contents): ... do it.
427         (&define_pretty_variable): Use macro_define.
428         (&am_install_var): Delete the value of variables being redefined
429         to pacify &macro_define which checks that variables are not
430         doubly defined.
431
432 2001-03-23  Akim Demaille  <akim@epita.fr>
433
434         * automake.in (&conditional_dump): Rename as...
435         (&variables_dump): this.  Use...
436         (&variable_dump): this new sub.
437
438 2001-03-23  Akim Demaille  <akim@epita.fr>
439
440         * automake.in (&file_contents): Maintain $cond_string sync with
441         @cond_stack.
442         Output rules only if not under `FALSE'.
443         Define variables under $cond_string.
444         * scripts.am: For the time being if/endif does not work properly
445         with macros.
446
447 2001-03-23  Akim Demaille  <akim@epita.fr>
448
449         * automake.in (IF_PATTERN): Unobfuscate the parens.
450         (ENDIF_PATTERN): Allow a condition to be specified.
451         (&file_contents): Use a @cond_stack.
452         (&transform): At least for an easy transition, also transform
453         %?FOO% and %!FOO%, as suggested by Lars.
454         * scripts.am: First test bed for static if/endif use.
455
456 2001-03-23  Akim Demaille  <akim@epita.fr>
457
458         * automake.in (&file_contents): Use rule_define.
459
460 2001-03-23  Akim Demaille  <akim@epita.fr>
461
462         * automake.in (&macro_define): Don't rely on $1.
463         Initialize the variable.
464         Set its Automakism only if not defined or if given to the user.
465         When concatenating values, insert a separator only if the value
466         was not empty.
467         (&read_am_file): When dumping the @var_list, skip Automake
468         variables.
469         (&file_contents): Use macro_define.
470
471 2001-03-23  Akim Demaille  <akim@epita.fr>
472
473         * automake.in (&rule_define): Extract from...
474         (&read_am_file): here.
475
476 2001-03-23  Akim Demaille  <akim@epita.fr>
477
478         * automake.in (&macro_define, &read_am_file): More work for the
479         former from the latter.  Reorganize the latter.
480
481 2001-03-23  Akim Demaille  <akim@epita.fr>
482
483         * automake.in (&macro_define): Extract from...
484         (&read_am_file): here.
485
486 2001-03-23  Akim Demaille  <akim@epita.fr>
487
488         * automake.in (%am_var_defs): Replace with...
489         (%var_is_am): this.
490         (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
491         (&file_contents, am_primary_&prefixes): Adjust.
492         (&variable_defined, &define_variable): The actual semantics is
493         `user defined'.
494         (&read_main_am_file): Assert the var is user defined when
495         outputting @var_list.
496
497 2001-03-23  Akim Demaille  <akim@epita.fr>
498
499         * automake.in (read_am_file): TRUE and FALSE are predefined
500         conditionals.
501         (&by_condition): Adjust.
502         (&conditional_string): Recognize `TRUE' and `FALSE'.
503         (&make_condition): Use it.
504         * m4/cond.m4: Reject TRUE and FALSE as conditionals.
505         * automake.texi (Conditionals): Adjust.
506         * tests/cond9.test: s/FALSE/WRONG/.
507
508 2001-03-12  Pavel Roskin  <proski@gnu.org>
509
510         * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
511         now.
512
513 2001-03-12  Akim Demaille  <akim@epita.fr>
514
515         * automake.in (&variable_conditions_permutations): Separate the
516         conditions.
517         * tests/cond3.test: Improve the sed expression.
518
519 2001-03-09  Pavel Roskin  <proski@gnu.org>
520
521         * Makefile.am (maintainer-check): Scan all *.am files and tests
522         for invocations of `rm' without `-f'.
523         * tests/mclean.test: Adjusted to prevent triggering the above
524         test.
525
526 2001-03-09  Tom Tromey  <tromey@redhat.com>
527
528         * automake.in (scan_one_autoconf_file): Fixed comment to avoid
529         maintainer-check failure.
530
531 2001-03-09  Akim Demaille  <akim@epita.fr>
532
533         * tests/cond3.test: Strengthen.
534
535 2001-03-09  Akim Demaille  <akim@epita.fr>
536
537         * automake.in (&conditional_string): Produce a unique string
538         characterizing a condition stack.
539         (&conditional_same): Remove, comparing two strings is now enough.
540         (&variable_defined): Adjust.
541         (&read_am_file): Use conditional_string.
542
543 2001-03-08  Akim Demaille  <akim@epita.fr>
544
545         * automake.in: Use -w.
546         Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
547         (&parse_arguments): Support --Werror and --Wno-error as a
548         temporary hack until --warning/-W is properly implemented.
549         (&handle_single_transform_list): Prototype.
550         Be sure to define $directory.
551         Use `exists' instead of testing the value of a maybe undefined
552         hash value.
553         (&add_depend2, &handle_configure, &handle_footer, &file_contents)
554         (&handle_factored_dependencies): Use defined values.
555         (&scan_one_autoconf_file): Save $_.
556         * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
557         Run automake with --Wno-error.
558
559 2001-03-07  Akim Demaille  <akim@epita.fr>
560
561         * automake.in (&handle_all): Use an array instead of a scalar for
562         local_headers.
563         Get rid of all-redirect: let `all' be that target.
564
565 2001-03-07  Akim Demaille  <akim@epita.fr>
566
567         * automake.in (&handle_merge_targets): Ventilate its non `all'
568         related content into...
569         (&generate_makefile): here.
570         (&handle_merge_targets): Rename as...
571         (&handle_all): this.
572         Remove a useless `if': `@all' is obviously not empty, since it
573         contains at least the `basename ($makefile)' which has just been
574         unshifted.
575
576 2001-03-07  Akim Demaille  <akim@epita.fr>
577
578         * automake.in, aclocal.in: Backquote is inert in double quotes.
579
580 2001-03-06  Akim Demaille  <akim@epita.fr>
581
582         * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
583         into `grep -v ...'.
584
585 2001-03-06  Pavel Roskin  <proski@gnu.org>
586
587         * java.am: Use `rm -f' instead of `rm'.
588
589 2001-03-06  Akim Demaille  <akim@epita.fr>
590
591         * automake.in (&push_dist_common): Simplify.
592
593 2001-03-06  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
594
595         * ltlib.am: Replaced spaces with tab.
596
597 2001-03-06  Pavel Roskin  <proski@gnu.org>
598
599         * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
600         fixed now.
601
602 2001-03-05  Pavel Roskin  <proski@gnu.org>
603
604         * header.am, scripts.am: Use ?INSTALL? in the install and
605         uninstall rules.
606
607 2001-03-05  Pavel Roskin  <proski@gnu.org>
608
609         * tests/copy.test: Never use `rm' without `-f' - it may ask
610         questions, notably for read-only files during `make distcheck'.
611         * tests/insh.test: Likewise.
612         * tests/installsh.test: Likewise.
613         * tests/symlink.test: Likewise.
614         * tests/symlink2.test: Likewise.
615         * tests/symlink3.test: Likewise.
616
617 2001-03-05  Pavel Roskin  <proski@gnu.org>
618
619         * noinstdir.test: New test.
620         * tests/Makefile.am (TESTS): Add noinstdir.test.
621         (XFAIL_TESTS): Likewise.
622
623 2001-03-05  Akim Demaille  <akim@epita.fr>
624
625         * automake.in (&handle_options): Change the RE so that the third
626         part of the versions always exist.
627         (&file_contents): Don't pass uninitialized values to &transform.
628
629 2001-03-05  Akim Demaille  <akim@epita.fr>
630
631         * automake.in (&file_contents): Require a hash as second argument.
632         Adjust callers.
633
634 2001-03-05  Akim Demaille  <akim@epita.fr>
635
636         Always use hashes with &file_contents.
637
638         * automake.in (&handle_texinfo): texibuild.am does not need
639         TEXINFODIR.
640         texinfos.am wants only TEXICLEANS.
641         (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
642         %transform.
643         * texinfos.am: Adjust.
644
645 2001-03-05  Akim Demaille  <akim@epita.fr>
646
647         * automake.in (&handle_programs, &handle_libraries, &handle_tags)
648         (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
649         (&am_install_var): Forget about `-clean'.
650         Transform ?INSTALL?.
651         Always output the *.am file.
652         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
653         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
654         Remove, merged into the corresponding *.am file.
655         * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
656         ?INSTALL?.
657
658 2001-03-05  Pavel Roskin  <proski@gnu.org>
659
660         * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
661
662 2001-03-05  Akim Demaille  <akim@epita.fr>
663
664         If OBJEXT and EXEEXT are not set, provide a default value, and use
665         them unconditionally.
666
667         * automake.in (&generate_makefile): Provide default values for
668         EXEEXT and OBJEXT.
669         (&get_object_extension, &finish_languages)
670         (&handle_single_transform_list, &handle_programs, &add_depend2)
671         (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
672         them, they are defined.
673         * compile.am, depend2.am, program.am, progs.am: Likewise.
674         * remake-hdr.am: Fix a typo.
675         * tests/cxxo.test, tests/fo.test, tests/implicit.test,
676         * tests/interp.test, tests/subobj.test, tests/subobj2.test,
677         * tests/suffix2.test: Adjust.
678
679 2001-03-05  Akim Demaille  <akim@epita.fr>
680
681         * automake.in (&file_contents): Map MAINTAINER-MODE to
682         @MAINTAINER_MODE_TRUE@ or nothing.
683         * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
684         Suggested by Tom.
685
686 2001-03-05  Akim Demaille  <akim@epita.fr>
687
688         * automake.in (&do_one_merge_target): Remove, was only called from...
689         (&handle_merge_targets): here for `all'.
690         Adjust.
691
692 2001-03-05  Akim Demaille  <akim@epita.fr>
693
694         Make the installation/uninstallation of Info pages follow the
695         regular am/recursive scheme.
696
697         * automake.in (%required_targets, %dependencies): Add
698         install-info.
699         (%dependencies): Add install-info, install-info-am, and
700         unstall-info.
701         (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
702         reversed BTW.  Does anybody use the option `no-installinfo'?
703         (&handle_merge_targets): Let the handling of info related targets
704         to...
705         (&handle_factored_dependencies): this.
706         * subdirs.am: Use ?INSTALL-INFO?.
707         * texinfos.am: Define the install-info, uninstall-info and
708         uninstall-info-am targets.
709
710 2001-03-05  Akim Demaille  <akim@epita.fr>
711
712         * automake.in (%required_targets, %dependencies): Add dvi, info,
713         dvi-am, info-am.
714         (@info, @dvi): Remove.
715         (&handle_texinfo, &handle_merge_targets): Adjust.
716         (&handle_factored_dependencies): Required targets are phony.
717         * texinfos.am: Build info, dvi, and the corresponding -am or
718         -recursive targets.
719
720 2001-03-05  Akim Demaille  <akim@epita.fr>
721
722         * automake.in (&am_install_var): Remove $cygxform, unused.
723
724 2001-03-05  Akim Demaille  <akim@epita.fr>
725
726         * automake.in (&file_contents): Transform LIBTOOL.
727         (&am_install_var): Remove $ltxform.
728         * ltlib.am, progs.am: Adjust.
729
730 2001-03-05  Akim Demaille  <akim@epita.fr>
731
732         * automake.in: Require AC_PROG_INSTALL in...
733         (&scan_autoconf_files): here.
734
735 2001-03-05  Akim Demaille  <akim@epita.fr>
736
737         * configure.am: New file.
738         * automake.in (&file_contents): Transform CONFIGURE-AC.
739         (&handle_texinfo, &handle_configure): Don't transform
740         CONFIGURE_AM.
741         (&handle_configure): Use `configure.am'.
742         * remake-hdr.am, remake.am, texi-vers.am: Adjust to
743         MAINTAINER-MODE and CONFIGURE-AC.
744
745 2001-03-05  Akim Demaille  <akim@epita.fr>
746
747         * automake.in (&pretty_print_internal): Don't output useless
748         spaces.
749         (define_pretty_variable): Don't issue the space after the `=' sign
750         to avoid trailing spaces in Makefile.ins.
751
752 2001-03-05  Akim Demaille  <akim@epita.fr>
753
754         * automake.in (&generate_makefile): Invoke &initialize_per_input
755         *before* setting $am_file_name and $in_file_name.
756
757 2001-03-05  Akim Demaille  <akim@epita.fr>
758
759         * automake.in ($in_file_name, $am_file_name, $relative_dirs):
760         Globals, initialized...
761         (&initialize_per_input): here.
762
763 2001-03-05  Akim Demaille  <akim@epita.fr>
764
765         * automake.in ($am_relative_dir): Global.
766         (&initialize_per_input): Init it.
767         (%make_list, @make_input_list): My them from
768         (&scan_autoconf_files): here.
769         (&require_file_internal): Mying changes.
770
771 2001-03-05  Akim Demaille  <akim@epita.fr>
772
773         * automake.in (%am_vars, @var_list, %def_type): Globals.
774         (&initialize_per_input): Initialize them.
775         (&read_main_am_file): Don't local them.
776         (&get_object_extension): $objext is private.
777         (&handle_single_transform_list): $lang is.
778         (&handle_ltlibraries): $libname_rx is.
779         (&scan_autoconf_config_files): How about actually paying attention
780         to your arguments, instead of working on $_? (this is no Perl
781         variable, it's a Perl variable followed by a question mark).
782         (&file_contents): $contents and $separator are private.
783         (&am_install_var): Declare @condvals, not $condvals.
784         (%make_dirs): My.
785
786 2001-03-05  Akim Demaille  <akim@epita.fr>
787
788         * automake.in (&initialize_per_input): Move to the top.
789         Precede with the `my' list of its variables.
790
791 2001-03-05  Akim Demaille  <akim@epita.fr>
792
793         * automake.in ($am_file): Use vars.
794         ($am_file_name, $in_file_name): Private to &generate_makefile.
795
796 2001-03-05  Akim Demaille  <akim@epita.fr>
797
798         * automake.in: Preparation for `use strict': Move the
799         initialization of the constants to the top, from...
800         (&initialize_global_constants): here.
801
802 2001-03-05  Akim Demaille  <akim@epita.fr>
803
804         * automake.in (&handle_single_transform_list, &add_depend2): Let
805         $lang_specific_files{$lang} be a list instead of a string.
806
807 2001-03-05  Akim Demaille  <akim@epita.fr>
808
809         Let's make it run ten times faster...
810
811         * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
812         transformations.
813         (&file_contents): Let `$command' remove the Automake commands, and
814         normalize the series of `\n'.
815         Slurp the file and apply $command in a single step.
816         No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
817         is already normalized to be handled by &transform.
818
819 2001-03-05  Tom Tromey  <tromey@redhat.com>
820
821         * automake.in (register_language): Add entry for `-pure'.
822         Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
823         (finish_languages): Use `-pure' field of language map.
824
825 2001-03-03  Tom Tromey  <tromey@redhat.com>
826
827         * tests/yaccvpath.test: No need to remove dummy files.
828         * tests/subobj3.test: No need to remove dummy files.
829         * tests/pr9.test: No need to remove dummy files.
830         * tests/pr87.test: No need to remove dummy files.
831         * tests/pr19.test: No need to remove dummy files.
832         * tests/install2.test: No need to remove dummy files.
833         * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
834         and depcomp.
835
836 2001-02-27  Pavel Roskin  <proski@gnu.org>
837
838         * tests/yaccvpath.test: Add a delay to make parse.c really out
839         of date. Detect the problem earlier, after `make distdir'. Drop
840         dependency on flex. Always use the `-y' flag for bison. Comment
841         changes.
842         * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
843
844 2001-03-02  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
845
846         * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
847
848 2001-02-28  Akim Demaille  <akim@epita.fr>
849
850         * automake.in (&add_depend2): Transform `GENERIC'.
851         Get rid of the ad hoc transformation of `@EXT@.o:' which in
852         addition was broken by the `@ -> %' patch.
853         * depend2.am: Adjust to use ?GENERIC?.
854
855 2001-02-28  Akim Demaille  <akim@epita.fr>
856
857         * Makefile.am (maintainer-check): `undef $/' is OK.
858
859 2001-02-28  Akim Demaille  <akim@epita.fr>
860
861         * automake.in (&handle_configure): Fortunately, $top_reldir,
862         the definition of which was highly suspicious, was unused.
863
864 2001-02-27  Akim Demaille  <akim@epita.fr>
865
866         * automake.in (%exec_dir_p): Move to the top so that it is visible
867         to all routines.
868
869 2001-02-27  Pavel Roskin  <proski@gnu.org>
870
871         * tests/yaccvpath.test: Prevent automake from looking into ..
872         and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
873
874 2001-02-27  Akim Demaille  <akim@epita.fr>
875
876         * automake.in (%exec_dir_p): Pulled out from...
877         (&am_primary_prefixes): here.
878
879 2001-02-27  Akim Demaille  <akim@epita.fr>
880
881         * automake.in (&usage): Display $0, not $me.
882
883 2001-02-27  Akim Demaille  <akim@epita.fr>
884
885         * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
886         * automake.in (&handle_clean): Don't escape what's given to
887         &transform.
888
889 2001-02-27  Akim Demaille  <akim@epita.fr>
890
891         Distinguish automake substitutions from config.status
892         substitutions.
893
894         * automake.in (&add_depend2): Transform AMDEP.
895         (&handle_clean): Transform MCFILES and MFILES.
896         (&file_contents): Transform MAINTAINER_MODE.
897         (&transform, &am_install_var): Use `%', not `@'.
898         Adjust all the *.am files.
899         * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
900         * depend2.am: Display the double dependency on both ?AMDEP? and
901         @AMDEP@.
902
903 2001-02-27  Tom Tromey  <tromey@redhat.com>
904
905         * distdir.am (distcheck): Fixed new code.
906
907         * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
908         Only configure once.
909
910         * distdir.am (distcheck): Print error message if distclean failed
911         to fully clean.
912
913 2001-02-27  Pavel Roskin  <proski@gnu.org>
914
915         * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
916
917 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
918
919         * tests/Makefile.am (TESTS): Added yaccvpath.test.
920         * tests/yaccvpath.test: New file.
921
922 2001-02-26  Akim Demaille  <akim@epita.fr>
923
924         * automake.in (&am_install_var): Recognize whether predefined
925         directories are `data' or `exec'.
926         * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
927         ?EXEC?.
928         * tests/instdata2.test: Update.
929
930 2001-02-26  Akim Demaille  <akim@epita.fr>
931
932         * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
933         necessarily in infodir.
934
935 2001-02-26  Akim Demaille  <akim@epita.fr>
936
937         * automake.in ($am_file): Be `local', as my'd variables used in
938         `foreach' loops are always private to the loop.
939
940 2001-02-26  Pavel Roskin  <proski@gnu.org>
941
942         * Makefile.am: Add install.am.
943
944 2001-02-26  Akim Demaille  <akim@epita.fr>
945
946         * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
947         routines, otherwise the elements to compare are passed in @_
948         instead of $a and $b.
949
950 2001-02-26  Akim Demaille  <akim@epita.fr>
951
952         * automake.in (%required_targets): `installcheck-am' is needed.
953
954 2001-02-26  Akim Demaille  <akim@epita.fr>
955
956         * automake.in (&transform_cond): Merge into...
957         (&transform): this.
958         Adjust all uses.
959
960 2001-02-26  Akim Demaille  <akim@epita.fr>
961
962         * automake.in (&handle_dist): Use &transform instead of dedicated
963         magic for DISTDIRS.
964         But be sure to always do it.
965         * distdir.am: Adjust.
966
967 2001-02-26  Akim Demaille  <akim@epita.fr>
968
969         * automake.in: Use File::Basename.
970         (&dirname, &basename): Remove.
971
972 2001-02-26  Akim Demaille  <akim@epita.fr>
973
974         * automake.in ($me): New.
975         Use it.
976         (&usage): Display your full name.
977
978 2001-02-26  Akim Demaille  <akim@epita.fr>
979
980         * automake.texi (Invoking Automake): Remove dead options.
981
982 2001-02-26  Akim Demaille  <akim@epita.fr>
983
984         * automake.in (&scan_texinfo_file): Also compute the list of files
985         to clean.
986         Handle local errors.
987         (&handle_texinfo): Use it.
988
989 2001-02-26  Akim Demaille  <akim@epita.fr>
990
991         * automake.in: Don't pass arguments to...
992         (&parse_arguments): Work on @ARGV.
993         Use Getopt.
994         Add support for `-f'.
995         (&version): New.
996         (&usage): Update.
997
998 2001-02-26  Akim Demaille  <akim@epita.fr>
999
1000         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
1001         handle installcheck and installcheck-am.
1002         * install.am: Do it.
1003
1004 2001-02-26  Akim Demaille  <akim@epita.fr>
1005
1006         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
1007         handle install and install-am.
1008         * install.am: Do it.
1009
1010 2001-02-26  Akim Demaille  <akim@epita.fr>
1011
1012         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
1013         work on targets handled by %dependencies.
1014         (&handle_factored_dependencies): Do it.
1015         * install.am: Install install-exec, install-data and uninstall's
1016         suites.
1017
1018 2001-02-26  Akim Demaille  <akim@epita.fr>
1019
1020         * automake.in (&handle_merge_targets): Move `install-strip' from
1021         here...
1022         * install.am: to here.
1023
1024 2001-02-26  Akim Demaille  <akim@epita.fr>
1025
1026         * automake.in (@installdirs): Remove.
1027         (&file_contents): Be able to grow Automake macros with `+='.
1028         (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
1029         files define _am_installdirs.
1030         (&handle_installdirs): Remove the code, just output `install.am'.
1031         * install.am: New.
1032         * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
1033         * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
1034
1035 2001-02-26  Akim Demaille  <akim@epita.fr>
1036
1037         * tests/instdata2.test (libexec_DATA): Exercise more
1038         possibilities.
1039
1040 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1041
1042         * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
1043
1044 2001-02-25  Tom Tromey  <tromey@redhat.com>
1045
1046         * tests/instdata2.test: Added `sbin_DATA' check.
1047
1048         * tests/Makefile.am (TESTS): Added subdircond.test.
1049         * tests/subdircond.test: New file.
1050         * automake.in (handle_gettext): Don't fail if SUBDIRS
1051         conditionally defined.
1052
1053         * automake.in: Use IO::File.
1054         (generate_makefile): Use IO::File.
1055         (scan_texinfo_file): Likewise.
1056         (handle_aclocal_m4): Likewise.
1057         (scan_autoconf_traces): Likewise.
1058         (scan_one_autoconf_file): Likewise.
1059         (read_am_file): Likewise.
1060         (file_contents): Likewise.
1061         (create): Likewise.
1062
1063 2001-02-25  Akim Demaille  <akim@epita.fr>
1064
1065         * automake.in (handle_texinfo): Remove code handled by texinfos.am.
1066
1067 2001-02-25  Akim Demaille  <akim@epita.fr>
1068
1069         * automake.in (&transform): Also call &transform_cond on your
1070         arguments.
1071         (&handle_dist): Adjust.
1072         (&handle_factored_dependencies): Uniq dependencies.
1073
1074 2001-02-25  Akim Demaille  <akim@epita.fr>
1075
1076         * automake.in (&handle_gettext): Simplify redundant `if'.
1077         Used &variable_value, don't read %contents directly.
1078
1079 2001-02-25  Akim Demaille  <akim@epita.fr>
1080
1081         * automake.in ($install_recursive): Remove, replaced with calls to
1082         `&variable_defined ('SUBDIRS')'.
1083         (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
1084         (&file_contents): now does.
1085
1086 2001-02-25  Akim Demaille  <akim@epita.fr>
1087
1088         * automake.in (&handle_man_pages): $found is dead.
1089
1090 2001-02-25  Akim Demaille  <akim@epita.fr>
1091
1092         Internally just store the conditionals as space separated lists of
1093         CONDITIONS (instead of @CONDITIONS@).
1094
1095         * automake.in (&conditional_true_when, &variable_conditions_sub):
1096         Split conditions at spaces.
1097         (&handle_dependencies, &variable_conditions_permutations): Don't
1098         put @ around conditions.
1099         (&variable_conditions_cmp): There are no @ to strip.
1100         (&make_condition): New.
1101         (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
1102         it.
1103         (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
1104         Join @conditional_stack with spaces.
1105         (&read_main_am_file): Adjust the output of variables.
1106         Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
1107         true' and no longer `@TEST@TRUE = @TEST@true'.
1108         (&variable_conditions_cmp): Rename as...
1109         (&by_condition): this.
1110         Sort in a human pleasant order.
1111         Use it everywhere a human can see conditions.
1112         (&variable_conditions_reduce): Don't sort conditions, that's
1113         pointless.
1114         * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
1115
1116 2001-02-25  Akim Demaille  <akim@epita.fr>
1117
1118         * automake.in: `my' the globals.
1119
1120 2001-02-25  Akim Demaille  <akim@epita.fr>
1121
1122         * automake.in (&initialize_per_input): %targets_conditionals is
1123         new.
1124         (&read_am_file): When slurping a rule, set the target related
1125         variable, and no variable related variable.
1126         (&file_contents): Likewise.
1127         * tests/vartar.test, tests/ctarget1.test: New.
1128
1129 2001-02-25  Akim Demaille  <akim@epita.fr>
1130
1131         * automake.in (&variable_defined, &variable_value_as_list_worker):
1132         If $VAR is effectively a variable, don't die if it's also a
1133         target.
1134         Plus some formatting changes.
1135
1136 2001-02-25  Akim Demaille  <akim@epita.fr>
1137
1138         * automake.in: Mying changes.
1139         * Makefile.am (maintainer-check): Check the stability of the
1140         number of uses of `local'.
1141
1142 2001-02-25  Akim Demaille  <akim@epita.fr>
1143
1144         * automake.in: Mying changes.
1145
1146 2001-02-25  Akim Demaille  <akim@epita.fr>
1147
1148         * automake.in: Mying changes.
1149
1150 2001-02-25  Akim Demaille  <akim@epita.fr>
1151
1152         * automake.in: Mying changes.
1153         (&handle_tags): Fix a bug uncovered by the previous mying changes:
1154         transform CONFIG into $config, not $xform.
1155
1156 2001-02-25  Akim Demaille  <akim@epita.fr>
1157
1158         * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
1159         Don't deal with install-data-am, install-exec-am and unstall-am.
1160         (&initialize_per_input): Add them to %dependencies.
1161         Remove %exec_dir_p since the *.am files are now in charge of it.
1162         Remove @uninstall, @install_data, @install_exec.
1163         (&handle_merge_targets): Adjust to these removals.
1164         (&file_contents): Also &transform_cond for --no-installman and
1165         --no-installinfo.
1166         (&do_one_merge_target): Add some magic to install hooks on
1167         %dependencies' targets.
1168         (%required_targets): New.
1169         (&handle_factored_dependencies): Output required targets.
1170         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
1171         * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
1172         * texinfos.am: Declare your dependencies on install-data-am,
1173         install-exec-am and uninstall-am.
1174         * tests/instdata2.test (incldata_HEADERS): New test.
1175
1176 2001-02-24  Tom Tromey  <tromey@redhat.com>
1177
1178         * Makefile.am (amfiles): Added texibuild.am.
1179         * texibuild.am: New file.
1180         * tests/Makefile.am (TESTS): Added texinfo9.test.
1181         * tests/texinfo9.test: New file.
1182         * automake.in (handle_texinfo): Keep track of suffixes used.  Give
1183         error if suffix unrecognized.  Removed extraneous newline.
1184
1185 2001-02-23  Akim Demaille  <akim@epita.fr>
1186
1187         * automake.in (&am_install_var): Don't hook on the clean targets
1188         and .PHONY.
1189         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
1190         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
1191         Do it.
1192
1193 2001-02-23  Akim Demaille  <akim@epita.fr>
1194
1195         * automake.in: Promote local `my' over `local'.
1196
1197 2001-02-23  Akim Demaille  <akim@epita.fr>
1198
1199         * automake.in: Formatting and mying changes.
1200
1201 2001-02-23  Akim Demaille  <akim@epita.fr>
1202
1203         * automake.in: Formatting and mying changes.
1204
1205 2001-02-23  Akim Demaille  <akim@epita.fr>
1206
1207         * automake.in (&handle_man_pages): Let install-man and
1208         uninstall-man be handled by the dependency tracker.
1209         (&initialize_per_input): Let %dependencies track them.
1210         * mans.am: Add the needed hooks with the proper dependencies.
1211
1212 2001-02-22  Pavel Roskin  <proski@gnu.org>
1213
1214         * tests/target-cflags.test: Don't use subshell to configure in
1215         subdirectory. Typo fix - run `./foo', not `/foo'.
1216
1217 2001-02-22  Akim Demaille  <akim@epita.fr>
1218
1219         * automake.in: Formatting and mying changes.
1220
1221 2001-02-21  Tom Tromey  <tromey@redhat.com>
1222
1223         * automake.in (handle_dist): Introduce new variable to avoid extra
1224         keys in %dist_dirs.  Fixes distdir.test.
1225
1226         * automake.in (handle_texinfo): Only remove suffixes we can
1227         handle.
1228
1229         * tests/distdir.test: Check to make sure directory isn't made in
1230         build directory.
1231
1232         * automake.in (handle_dist): Do nothing in Cygnus mode.
1233
1234 2001-02-21  Pavel Roskin  <proski@gnu.org>
1235
1236         * header-vars.am: Remove tabs before variable definitions.
1237
1238 2001-02-21  Akim Demaille  <akim@epita.fr>
1239
1240         * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
1241         false diagnostics.
1242
1243 2001-02-21  Akim Demaille  <akim@epita.fr>
1244
1245         * automake.in (&dist_cmp, &target_cmp): Be sure to return a
1246         numeric value as required by Perl 5.6.
1247
1248 2001-02-21  Akim Demaille  <akim@epita.fr>
1249
1250         * dist-vars.am: Remove, merge into...
1251         * distdir.am: this.
1252         * automake.in (dirname, basename, backname): Move to the top of
1253         the file so that prototypes are checked,
1254         Use them without `&'.
1255         (&handle_dist): Adjust.
1256
1257 2001-02-21  Akim Demaille  <akim@epita.fr>
1258
1259         * automake.in (&check_ambiguous_conditional, &read_main_am_file):
1260         Use a uniform naming scheme.
1261         (&quote_cond_val, &unquote_cond_val): Delete, dead code.
1262         (&read_am_file): Fix conditional definition of backslash continued
1263         items.
1264
1265 2001-02-21  Akim Demaille  <akim@epita.fr>
1266
1267         Change the handling of conditionals: instead of using an ad-hoc
1268         encoding to store a hash in a string, use hashes.
1269
1270         * automake.in (&conditional_dump): New.
1271         (&check_ambiguous_conditional, &variable_defined)
1272         (&variable_conditions_sub, &variable_value_as_list_worker)
1273         (&define_variable, read_am_file, &read_main_am_file): Be sure to
1274         handle `$conditional{$vars}' as a hash instead of a plain string.
1275
1276 2001-02-21  Akim Demaille  <akim@epita.fr>
1277
1278         * automake.in (&conditional_true_when): Modernize, simplify.
1279         Warning: `$comp' is now private (my), while it used to be
1280         `inherited' from a `local' elsewhere in the code.  AFAICT it was
1281         wrong, but some dirty side effect might show up.
1282         (&conditionals_true_when): New.
1283         (&variable_conditions_sub, &variable_conditions_reduce): Use it.
1284
1285 2001-02-21  Akim Demaille  <akim@epita.fr>
1286
1287         * automake.in ($top_builddir): Remove, used in one place.
1288         (&define_standard_variables): Adjust.
1289         Move the definition of triplet variables into...
1290         * header-vars.am: here.
1291
1292 2001-02-21  Akim Demaille  <akim@epita.fr>
1293
1294         * automake.in (&initialize_global_constants): Don't define $USAGE.
1295         (&usage): Handle the former content of $USAGE.
1296         Don't pretend autoconf cares about Makefile.in.
1297         Classify the options.
1298         (&handle_tests): Formatting and mying changes.
1299
1300 2001-02-21  Akim Demaille  <akim@epita.fr>
1301
1302         * automake.in (&handle_tests_dejagnu): Move the definition of a
1303         default `site.exp' into...
1304         * dejagnu.am (site.exp): here.
1305         Use DOS compliant file names.
1306
1307 2001-02-21  Akim Demaille  <akim@epita.fr>
1308
1309         * automake.in (&dist_cmp): New.
1310         (&handle_dist): Use it.
1311         Promote `my' over `local'.
1312
1313 2001-02-21  Akim Demaille  <akim@epita.fr>
1314
1315         * dist.am: Remove, merge into...
1316         * distdir.am: here.  Use the neat sed snippet for banners.
1317         BTW, distcheck is phony.
1318         * automake.in (&handle_dist_worker): Remove, merge into...
1319         (&handle_dist): this.
1320         (&file_contents): Strip leading new lines.
1321         Be sure to end comments with new lines.
1322
1323 2001-02-21  Akim Demaille  <akim@epita.fr>
1324
1325         * distdir.am (GZIP_ENV): Define.
1326         * automake.in (&handle_dist): Don't.
1327         (&uniq): New.
1328         (&handle_dist_worker, &am_install_var): Use it.
1329
1330 2001-02-21  Akim Demaille  <akim@epita.fr>
1331
1332         * distdir.am (distdir): Handle the DIST-TARGETS.
1333         * automake.in (&handle_dist_worker): Don't.
1334
1335 2001-02-21  Akim Demaille  <akim@epita.fr>
1336
1337         * automake.in (&file_contents): Transform the global options (such
1338         as CYGNUS).
1339         (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
1340
1341 2001-02-21  Akim Demaille  <akim@epita.fr>
1342
1343         * distdir.am (distdir): Be sure to have permissive rights on its
1344         contents.
1345         (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
1346         targets.
1347         And BTW, all these guys are phony.
1348         * automake.in (&handle_dist_worker): As its name doesn't indicate,
1349         output distributions.
1350         (&handle_dist): As its name doesn't indicate, don't.
1351         (&initialize_global_constants): Don't define variables which
1352         content is now handled by distdir.am.
1353         But register `dist-all' as a factored target.
1354         (&handle_factored_dependencies): Don't output empty targets.
1355
1356 2001-02-20  Tom Tromey  <tromey@redhat.com>
1357
1358         * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
1359         invocation.
1360
1361 2001-02-18  Tom Tromey  <tromey@redhat.com>
1362
1363         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
1364         Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
1365         (AM_PROG_STRIP): Commented out.
1366
1367 2001-02-17  Raja R Harinath  <harinath@cs.umn.edu>
1368
1369         * depcomp (gcc3): Protect against the compiler deleting
1370         the dependency output file.
1371
1372 2001-02-17  Tom Tromey  <tromey@redhat.com>
1373
1374         * automake.in (handle_merge_targets): Use double quotes around
1375         setting of INSTALL_STRIP_PROGRAM.
1376         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
1377         to absolute path at runtime.
1378         (AM_PROG_STRIP): Don't explicitly test $STRIP.
1379
1380 2001-01-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
1381
1382         * m4/strip.m4: New file.
1383         * m4/Makefile.am (m4data_DATA): Add strip.m4.
1384         * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
1385         * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
1386         * automake.in (handle_merge_targets): In the install-strip rule,
1387         set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
1388         to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
1389         * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
1390         don't use INSTALL_STRIP_FLAG any longer.
1391
1392 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1393
1394         * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
1395         argument.
1396
1397 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1398
1399         * automake.in (unquote_m4_arg): New function.
1400         (scan_one_configure_file): Call unquote_m4_arg on
1401         AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
1402         works.
1403
1404 2001-02-15  Tom Tromey  <tromey@redhat.com>
1405
1406         * config.guess, config.sub: New versions from FSF.
1407
1408         * Makefile.am (WGET): New macro.
1409         (FETCHFILES): New macro.
1410         (fetch): New target.
1411
1412         * tests/subobj3.test: Exit with status 77 if gcc not found.
1413         * tests/pr9.test: Exit with status 77 if gzip not found.
1414         * tests/pr87.test: Exit with status 77 if gcc not found.
1415         * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
1416         * tests/install2.test: Exit with status 77 if gzip not found.
1417         * tests/exsource.test: Exit with status 77 if GNU make not found.
1418         * tests/ansi3.test: Exit with status 77 if gcc not found.
1419
1420         * tests/target-cflags.test: Require GNU make.  Exit with status 77
1421         if gcc or make not found.  Fixes PR automake/121.
1422
1423         * configure.in: Require Perl 5.005.
1424         * automake.in: Require 5.005.
1425
1426         * automake.texi (Top): Conditionalize on `nottex', not `info'.
1427         Fixes PR automake/122.
1428
1429 2001-02-14  Tom Tromey  <tromey@redhat.com>
1430
1431         * automake.in (add_depend2): Only emit a given object rule once.
1432         Fixes specflags6.test.
1433
1434 2001-02-14  Richard Boulton  <richard@tartarus.org>
1435
1436         * tests/specflags6.test: New file.
1437
1438 2001-02-14  Tom Tromey  <tromey@redhat.com>
1439
1440         * automake.texi (A Shared Library): Mention -module.
1441
1442 2001-02-13  Tom Tromey  <tromey@redhat.com>
1443
1444         * automake.in (do_one_merge_target): Always register $name and
1445         $name-am as phony.
1446
1447         * automake.in (do_one_merge_target): Register `all' as phony
1448         target.
1449
1450         * configure.in: Updated to 1.4e for cvs.
1451
1452 2001-02-12  Tom Tromey  <tromey@redhat.com>
1453
1454         * configure.in: Updated to 1.4d and released.
1455
1456         * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
1457         names through autoconf.
1458
1459         Fix for subdirbuiltsources.test:
1460         * automake.in (initialize_per_input): [all_target] Initialize to
1461         empty string.
1462         (handle_merge_targets): Use all-redirect target to handle built
1463         sources.
1464         (do_one_merge_target): Don't generate all-redirect rule.
1465
1466 2001-02-11  Peter Muir  <iyhi@yahoo.com>
1467
1468         * tests/subdirbuiltsources.test: New file.
1469         * tests/Makefile.am (TESTS): Added new file.
1470
1471 2001-02-10  Tom Tromey  <tromey@redhat.com>
1472
1473         * tests/condlib.test: New file.
1474         * tests/Makefile.am (TESTS): Added new file.
1475
1476 2001-02-10  Lars J. Aas  <larsa@sim.no>
1477
1478         * automake.in ($MACRO_PATTERN): Include '@' in name regex.
1479         (&canonicalize): New. Includes '@' in canonical range.
1480         (&check_canonical_spelling, &handle_programs, &handle_libraries,
1481         &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
1482
1483 2001-02-10  Raja R Harinath  <harinath@cs.umn.edu>
1484
1485         * automake.in (handle_configure): Revert part of
1486         '2001-02-04  Kevin Ryde <user42@zip.com.au>'.  Don't
1487         set CONFIG_COMMANDS explicitly.
1488
1489 2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>
1490
1491         * depcomp (gcc3): Propagate exit code.
1492
1493 2001-02-09  Lars J. Aas  <larsa@sim.no>
1494
1495         * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
1496
1497 2001-02-09  Tom Tromey  <tromey@redhat.com>
1498
1499         Clean up maintainer-check warnings:
1500         * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
1501         check.
1502         * automake.in (handle_dist_worker): Removed redundant `my $xform'.
1503
1504 2001-02-09  Akim Demaille  <akim@epita.fr>
1505
1506         * automake.in (&file_contents): Remove a dead branch.
1507
1508 2001-02-09  Akim Demaille  <akim@epita.fr>
1509
1510         * automake.in (&transform): Use `my', not `local'.
1511         (&transform_cond): New.
1512         (&get_object_extension, &handle_texinfo, &handle_tags)
1513         (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
1514         (&handle_tests_dejagnu): Use it.
1515         * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
1516         * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
1517
1518 2001-02-09  Akim Demaille  <akim@epita.fr>
1519
1520         * automake.in: Various formatting changes, and modernization of
1521         Perl constructs.
1522         (&backname): New.
1523         (&handle_configure, define_standard_variables): Use it.
1524
1525 2001-02-08  Tom Tromey  <tromey@redhat.com>
1526
1527         * automake.in (file_contents): Only add $actions if any are
1528         found.  Fixes new failure in pr87.test.
1529
1530 2001-02-08  Pavel Roskin  <proski@gnu.org>
1531
1532         * tests/pr87.test: Check foo/Makfile.in after it is created.
1533
1534 2001-02-08  Tom Tromey  <tromey@redhat.com>
1535
1536         * tests/pr87.test: Added check for blank line after `.c.o' rule.
1537         Report from Lars J. Aas.
1538
1539 2001-02-07  Lars J. Aas <larsa@sim.no>
1540
1541         * lisp.am (install-@DIR@LISP): Removed extra space.
1542         * header.am (install-@DIR@HEADERS): Removed extra space.
1543         * data.am (install-@DIR@DATA): Removed extra space.
1544
1545 2001-02-07  Tom Tromey  <tromey@redhat.com>
1546
1547         * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
1548
1549         * automake.in (handle_dependencies): Use _am_include, not
1550         AMINCLUDE.
1551         * tests/exsource.test: Use _am_include, not AMINCLUDE.
1552         * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
1553
1554         * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
1555
1556         * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
1557
1558         * automake.in (handle_configure): Handle case where output file is
1559         in subdir with no Makefile of its own.  Fixes remake3.test,
1560         distcommon.test.
1561
1562 2001-02-06  Pavel Roskin  <proski@gnu.org>
1563
1564         * automake.in (handle_dependencies): Rename AM_INCLUDE to
1565         AMINCLUDE.
1566         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
1567         * tests/exsource.test: Likewise.
1568
1569 2001-02-06  Derek Price  <derek.price@openavenue.com>
1570
1571         * automake.in (handle_configure): Fix syntax error.
1572
1573 2001-02-06  Akim Demaille  <akim@epita.fr>
1574
1575         * subdirs.am: This file is the exception: clean recursive targets
1576         are called by the clean targets, not the clean-am targets.
1577         Otherwise we have a circular dependency: clean -> clean-am ->
1578         clean-recursive -> clean.
1579         * automake.in (handle_clean): Bind `-local' targets to `-am'
1580         targets, not top targets.
1581         Don't declare -recursive dependencies of the clean targets:
1582         `subdirs.am' did it.  Less hard coded knowledge, transfered
1583         into...
1584         * clean.am: here.
1585
1586 2001-02-06  Akim Demaille  <akim@epita.fr>
1587
1588         Monstro unsplitable patch.
1589
1590         The aim is to remove hard coded knowledge about clean targets from
1591         automake.in, leaving them in the *.am files.
1592         In addition to the mechanic needed to factor some dependencies, it
1593         appears some rules (most notably distclean and maintainer-clean)
1594         need factored actions.  So first, be ready to catch factored
1595         rules.
1596
1597         * automake.in (&file_contents): For the time being, use an extended
1598         $RULE_PATTERN which is able to match any kind of rules, with or
1599         without dependency, with or without actions.
1600         Handle all the rules uniformly, storing in %actions the factored
1601         actions.
1602         (&flatten, &target_cmp): New.
1603         (&handle_factored_dependencies): Output the %actions.
1604         No longer special case `clean'.
1605         Output the rules in alphabetical order, but keeping `.PHONY' last.
1606
1607         Now we must not use &push_phony_cleaners, which is doing all sort
1608         of magic to push a bit of everything in all the clean targets.
1609         The biggest problem being that, making a Cartesian product, it
1610         requires many useless targets.  The `*.am' file know better.
1611         But first, register the new factored rules.
1612
1613         * automake.in (&initialize_per_input): Include clean, mostlyclean,
1614         maintainer-clean, distclean and their `*-am' counterpart in
1615         %dependencies.
1616         Initialize %actions.
1617         (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
1618         handle_dependencies, handle_subdirs, handle_configure, handle_clean)
1619         (handle_emacs_lisp, handle_python): Don't play with
1620         &push_phony_cleaners nor &depend and `clean'.
1621         * texinfos.am, texi-vers.am, tags-clean.am:
1622         * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
1623         * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
1624         * clean-kr.am, clean-hdr.am: Do it.
1625         Whenever a target is empty, just remove it, it will no longer be
1626         called.
1627
1628         There is still some magic about clean to hard code.  But really,
1629         that's the end of &do_one_clean_target.
1630
1631         * automake.in (&do_one_clean_target): Kaboom out.
1632         (&handle_clean): Rewrite the magic code.
1633         (&am_install_var): No longer use &push_phony_cleaners, nor depend
1634         on `clean'.
1635         (&push_phony_cleaners): Kaboom too.
1636
1637 2001-02-06  Akim Demaille  <akim@epita.fr>
1638
1639         * automake.in (do_one_clean_target): Don't hard code knowledge
1640         about libtool, and maintainer-clean.
1641         * clean.am, libtool.am: Handle these.
1642
1643 2001-02-05  Akim Demaille  <akim@epita.fr>
1644
1645         * automake.in (handle_texinfo): No longer hard code the clean
1646         targets.
1647         (texinfos.am): Include them.
1648
1649 2001-02-05  Akim Demaille  <akim@epita.fr>
1650
1651         * Makefile.am (perl4-check): Remove, we now require Perl 5.
1652         (maintainer-check): Don't be silent when you find a problem, and
1653         actually, even specify the locations.
1654         Also check that @_ is assigned to arrays.
1655
1656 2001-02-05  Akim Demaille  <akim@epita.fr>
1657
1658         * m4/regex.m4: Use AC_LIBSOURCES.
1659         * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
1660         _AC_LIBOBJ_DECL.
1661
1662 2001-02-04  Tom Tromey  <tromey@redhat.com>
1663
1664         * m4/Makefile.am (m4data_DATA): Added make.m4.
1665         * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
1666         dependency files.
1667         * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
1668         Copy depcomp to subdir.
1669         * m4/make.m4: New file.
1670
1671 2001-02-04  Pavel Roskin  <proski@gnu.org>
1672
1673         * automake.in (handle_dist_worker): Remove a line that is now
1674         in distdir.am.
1675
1676 2001-02-04  Kevin Ryde <user42@zip.com.au>
1677
1678         * automake.in (handle_configure): Call config.status with empty
1679         CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
1680
1681 2001-02-04  Tom Tromey  <tromey@redhat.com>
1682
1683         * depcomp (ddashmd): Removed case.
1684         (sgi): Handle failure exit correctly
1685         (aix): Likewise.  Also, add dummy `.h' targets.
1686
1687 2001-02-04  Akim Demaille  <akim@epita.fr>
1688
1689         * distdir.am (distdir): New file, extracted from...
1690         * automake.in (handle_dist_worker): here.
1691         Adjust.
1692
1693 2001-02-04  Akim Demaille  <akim@epita.fr>
1694
1695         * automake.in (@clean): Remove, replaced by...
1696         ($dependencies{'clean'}): this.
1697         Use `&depend' instead of push'ing into @clean.
1698         (handle_factored_dependencies): For the time being, skip 'clean'.
1699         (do_one_clean_target): Don't ask for argument 1 and 4 as they are
1700         always `clean', and `@clean'.
1701
1702 2001-02-04  Akim Demaille  <akim@epita.fr>
1703
1704         * automake.in (%dependencies): Don't be initialize globally for
1705         all the files, but in...
1706         (&initialize_per_input): here.
1707         (&depend): New.
1708         (@phony): Replace all occurrences with the corresponding &depend
1709         invocation.
1710
1711 2001-02-03  Tom Tromey  <tromey@redhat.com>
1712
1713         * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
1714         * header-vars.am (INSTALL_HEADER): New macro.
1715
1716         * automake.texi (Rebuilding): New node.
1717
1718 2000-12-29  Derek Price  <derek.price@openavenue.com>
1719
1720         * automake.in (handle_dependencies): Switched the DEP_FILES
1721         definition to be conditional on @AMDEP@.
1722
1723 2001-02-03  Ville Laurikari <vlaurika@hutcs.cs.hut.fi>
1724
1725         * depcomp (aix): New side-effect dependency tracking mode, for
1726         the C for AIX compiler.
1727         * m4/depend.m4 (AM_DEPENDENCIES): Recreate `conftest.c' and
1728         `conftest.h' for each test.
1729
1730 2001-02-03  Tom Tromey  <tromey@redhat.com>
1731
1732         * automake.texi (Dist): Updated to mention caveat of putting
1733         directory in EXTRA_DIST and also providing a nice example of
1734         removing the CVS dir.
1735         From Ganesan Rajagopal.
1736
1737         * m4/depend.m4 (depcpp): Run tests in a subdir.  Fixes report from
1738         Bob Proulx.
1739
1740         * automake.in (scan_one_autoconf_file): Disable warning about
1741         AM_PROG_LIBTOOL.
1742
1743         * automake.in (handle_configure): Don't modify variable which
1744         aliases list element.  Don't push @inputs onto the dist list.
1745         Fixes colon7.test.
1746         (initialize_per_input) [dist_dirs]: New variable.
1747         (handle_dist_worker): Use global dist_dirs.
1748         (handle_configure): Set dist_dirs entries at toplevel.
1749
1750 2001-02-02  Gordon Sadler <gbsadler1@lcisp.com>
1751
1752         * automake.texi (Java Support): Added index, @section.
1753
1754 2001-02-02  Pavel Roskin  <proski@gnu.org>
1755
1756         * automake.in (scan_autoconf_traces): Restore trace messages.
1757
1758         * automake.in (handle_aclocal_m4): Fix stripping of the initial
1759         "./" from the dependencies of aclocal.m4.
1760         Reported by Ralf Corsepius.
1761
1762 2001-02-01  Pavel Roskin  <proski@gnu.org>
1763
1764         * aclocal.in: Rename "verbosity" to "verbose". Always prepend
1765         "aclocal: " to the verbose output.
1766
1767         * automake.in: Remove all debugging messages.
1768
1769 2001-01-31  Akim Demaille  <akim@epita.fr>
1770
1771         * automake.in (add_depend2): Quote properly $obj and $source.
1772
1773 2001-01-31  Akim Demaille  <akim@epita.fr>
1774
1775         * depend2.am: Instead of replacing @PFX@ in $(@PFX@COMPILE), and
1776         then replacing `$(@PFX@COMPILE)' for the files that need some
1777         special flags, use only @COMPILE@.  Similarly for @LTCOMPILE@.
1778         Try to document this file.
1779         * automake.in (add_depend2): Adjust to these changes.
1780
1781 2001-01-31  Akim Demaille  <akim@epita.fr>
1782
1783         * automake.in (%factored_dependencies): New.
1784         (file_contents): Use it.
1785         (handle_phony): Rename as...
1786         (handle_factored_dependencies): this.
1787         * subdirs.am: No need for convolved syntax to declare .PHONY.
1788
1789 2001-01-31  Akim Demaille  <akim@epita.fr>
1790
1791         * automake.in: maintainer-check fixes.
1792
1793 2001-01-31  Akim Demaille  <akim@epita.fr>
1794
1795         * automake.in (file_contents): Rewrite: instead of trying to parse
1796         it line by line, first swallow it completely into $CONTENTS,
1797         *then*, parse it *paragraph* by paragraph.
1798
1799 2001-01-30  Akim Demaille  <akim@epita.fr>
1800
1801         * automake.in (file_contents): Remove.
1802         (file_contents_with_transform): Swap the order of the arguments,
1803         and rename as...
1804         (file_contents): this.
1805         Adjust all uses.
1806
1807 2001-01-30  Tom Tromey  <tromey@redhat.com>
1808
1809         * automake.in (scan_one_autoconf_file): Don't mention
1810         omit_dependencies.
1811
1812 2001-01-29  Akim Demaille  <akim@epita.fr>
1813
1814         * automake.in (&scan_autoconf_config_files): Extract from
1815         &scan_one_autoconf_file.
1816         (&scan_one_autoconf_file): Use it.
1817         (&scan_autoconf_traces): New.
1818         ($scan_autoconf_files): Use it.
1819
1820 2001-01-29  Akim Demaille  <akim@epita.fr>
1821
1822         * texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a
1823         .PHONY target.
1824         * automake.in (handle_texinfo, handle_man_pages, handle_multilib)
1825         (handle_etags, handle_subdirs): Don't push into @phony.
1826
1827 2001-01-29  Akim Demaille  <akim@epita.fr>
1828
1829         * automake.in (scan_one_autoconf_file): Correctly recognize
1830         configure.ac.
1831
1832 2001-01-29  Akim Demaille  <akim@epita.fr>
1833
1834         * automake.in (handle_tests_dejagnu): New, extracted from...
1835         (handle_tests): here.  Use `.PHONY:'.
1836
1837 2001-01-29  Akim Demaille  <akim@epita.fr>
1838
1839         * automake.in (handle_phony): Sort.
1840         (file_contents_with_transform): Catch `.PHONY:'.
1841         (handle_tests): Instead dumping the hard coded target check-TESTS
1842         and registering its .PHONYsm, get them from...
1843         * check.am: here, new file.
1844
1845 2001-01-29  Akim Demaille  <akim@epita.fr>
1846
1847         * automake.in (add_depend2): Use &transform.
1848
1849 2001-01-29  Akim Demaille  <akim@epita.fr>
1850
1851         * automake.in (handle_tags): Use &transform.
1852         (am_error, am_line_error, am_conf_error, read_am_file): Use
1853         directly arrays in strings, no need for &join.
1854         Require Perl 5.
1855         * Makefile.am (maintainer-check): Use grep -w when looking for
1856         words.
1857
1858 2001-01-29  Akim Demaille  <akim@epita.fr>
1859
1860         * automake.in (prog_error): New.
1861         Spread its use.
1862
1863 2001-01-29  Akim Demaille  <akim@epita.fr>
1864
1865         * automake.in (handle_single_transform_list): if (@list) { foreach
1866         (@list) ...} can be written as a simple `foreach' loop.
1867
1868 2001-01-29  Akim Demaille  <akim@epita.fr>
1869
1870         * automake.in (define_standard_variables): Use &transform instead
1871         of build_rx.
1872
1873 2001-01-29  Akim Demaille  <akim@epita.fr>
1874
1875         * automake.in (handle_texinfo): Use the new $texinfodir instead of
1876         the removed $texinfo_tex.
1877
1878 2001-01-29  Akim Demaille  <akim@epita.fr>
1879
1880         * automake.in (handle_libraries, handle_ltlibraries): Use
1881         &transform.
1882
1883 2001-01-29  Akim Demaille  <akim@epita.fr>
1884
1885         * automake.in (handle_programs) <xexe>: Remove, replaced by
1886         `exeext'.
1887         Use it, and &transform.
1888
1889 2001-01-29  Akim Demaille  <akim@epita.fr>
1890
1891         * automake.in (get_object_extension) <$default_includes>: New.
1892         Use it and &transform.
1893
1894 2001-01-28  Tom Tromey  <tromey@redhat.com>
1895
1896         * automake.in (variable_value_as_list_worker): Handle entries in
1897         %am_var_defs.  Fixes listval.test.
1898
1899 2001-01-26  Akim Demaille  <akim@epita.fr>
1900
1901         * automake.in (handle_texinfo): Don't use $conf_pat, just
1902         $conf_dir to transform MDDIR since now &transform handles the
1903         escaping of RE special characters by itself.
1904
1905 2001-01-24  Akim Demaille  <akim@epita.fr>
1906
1907         * m4/depend.m4 (AM_DEPENDENCIES): Don't leave `AC_PROG_CC' etc. in
1908         clear.
1909         * m4/init.m4: Likewise.
1910         * m4/sanity.m4: s/conftestfile/conftest.file/.
1911
1912 2001-01-24  Tom Tromey  <tromey@redhat.com>
1913
1914         * automake.in (handle_libraries): Use $configure_ac; typo fix.
1915
1916         * automake.in (transform): Quote substitution.
1917
1918 2001-01-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1919             Tom Tromey  <tromey@redhat.com>
1920
1921         * automake.in (obsolete_rx): Match whole macro names, not
1922         substrings.
1923         * aclocal.in (obsolete_rx): Likewise.
1924
1925 2001-01-21  Tom Tromey  <tromey@redhat.com>
1926
1927         * automake.texi: Changed dir category.
1928
1929 2001-01-18  Akim Demaille  <akim@epita.fr>
1930
1931         * automake.in (handle_texinfo): Use &transform, and transform
1932         CONFIGURE_AC.
1933         Reported by Lars Hecking, and diagnosed by Raja R Harinath.
1934
1935 2001-01-16  Akim Demaille  <akim@epita.fr>
1936
1937         Let Automake support `configure.ac'.
1938
1939         * automake.in: In the comments, prefer `configure.ac' to
1940         `configure.in'.
1941         When using &am_conf_error, don't repeat `in configure.in', since
1942         the function already reports it.
1943         When referring to `configure.in' use `$configure_ac' instead.
1944         (configure_ac): New global variable.
1945         (scan_configure, scan_one_configure_file): Rename as...
1946         (scan_autoconf_files, scan_one_autoconf_file): this.
1947         (scan_autoconf_files): Compute $configure_ac.
1948         (transform): New function.
1949         (handle_configure): Use it to transform CONFIGURE_AC in
1950         `remake.am' and in `remake-hdr.am'.
1951         (common_files): Also consider `configure.ac'.
1952         Use consistently single quotes.
1953         * aclocal.in (configure_ac): New variable.
1954         Use it.
1955         * texi-vers.am: Depend on CONFIGURE_AC not configure.in.
1956         * remake.am: Likewise.
1957         * remake-hdr.am: Likewise.
1958
1959 2001-01-16  Akim Demaille  <akim@epita.fr>
1960
1961         * m4/multi.m4: Remove the hairy useless quotation of `$'.
1962         Simplify `ifelse([$2],,,[$2])' into... `$2'!
1963         * m4/minuso.m4: Don't use changequote!
1964         * m4/cond.m4: Fix quotation.
1965         * m4/sanity.m4: Follow the Autoconf coding style.
1966         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Use a for loop.
1967         * m4/depend.m4 (AM_DEPENDENCIES): Fix quotation issues.
1968         Use AC_CACHE_CHECK.
1969
1970 2001-01-15  Tom Tromey  <tromey@redhat.com>
1971
1972         * automake.in (handle_single_transform_list): Don't print rule
1973         here when source is in subdir and object is not.  Fixes
1974         subobj4.test.
1975
1976         * automake.in (handle_single_transform_list): Correctly compute
1977         $nonansi_obj.  Fixes cxxansi.test.
1978
1979         * automake.texi (Man pages): Updated to account for man1_MANS,
1980         etc.
1981
1982 2001-01-13  Steve Robbins  <smr@debian.org>
1983             Tom Tromey  <tromey@redhat.com>
1984
1985         * aclocal.in (scan_configure): Don't recognize macro assignments
1986         or AC_SUBSTs.
1987         (add_file): Likewise.
1988
1989 2001-01-13  Kevin Ryde <user42@zip.com.au>
1990
1991         * automake.in (handle_ltlibraries): Omit -rpath from
1992         check_LTLIBRARIES, as per noinst_LTLIBRARIES.
1993
1994 2001-01-11  Tom Tromey  <tromey@redhat.com>
1995
1996         * depcomp (case gcc3): Use -MD, not -M.
1997
1998 2001-01-10  Tom Tromey  <tromey@redhat.com>
1999
2000         * depcomp: Handle gcc 3.
2001
2002 2000-12-23  Tom Tromey  <tromey@redhat.com>
2003
2004         * configure.in: Updated to 1.4c for cvs.
2005
2006         * configure.in: Updated to 1.4b and released.
2007
2008         * config.guess, config.sub, texinfo.tex: New versions.
2009
2010         * automake.in (handle_dist_worker): Always define DIST_SUBDIRS.
2011         Re-fixes pr87.test.
2012
2013         * subdirs.am (maintainer-clean-recursive): Use DIST_SUBDIRS for
2014         distclean and maintainer-clean.
2015         * automake.texi (Top level): Document use of DIST_SUBDIRS.
2016
2017         From Rusty Ballinger:
2018         * automake.in (handle_java): Don't skip `noinst' prefix.
2019
2020         * automake.texi (Invoking aclocal): Mention ## comments.
2021
2022 2000-12-22  Tom Tromey  <tromey@redhat.com>
2023
2024         From Raja R Harinath:
2025         * automake.in (libtoolize_sometimes): New global.
2026         (initialize_global_constants): Added libtoolize_sometimes to
2027         common_files.
2028
2029         * m4/depend.m4 (AM_SET_DEPDIR): Ignore errors when running rmdir.
2030
2031         * m4/depend.m4 (AM_SET_DEPDIR): Remove .deps directory when done.
2032
2033 2000-12-21  Tom Tromey  <tromey@redhat.com>
2034
2035         * automake.texi (Tags): Document GTAGS target.
2036         * tags.am (GTAGS): New target.
2037
2038         * automake.in (libtoolize_files): Removed ltconfig.
2039         (initialize_global_constants): Added ltconfig to common_files.
2040
2041 2000-12-21  Kevin Ryde <user42@zip.com.au>
2042
2043         * automake.in (handle_footer): Generate .SUFFIXES target when user
2044         defines suffixes but automake does not.
2045
2046 2000-12-20  Marc Espie <espie@openbsd.org>
2047
2048         * automake.in (handle_texinfo): Make path of $vtexi explicit in
2049         dependency.
2050         * texi-vers.am: Likewise.
2051
2052 2000-12-20  Tom Tromey  <tromey@redhat.com>
2053
2054         From Kevin Ryde:
2055         * automake.in (handle_footer): Always push user suffixes at the
2056         start of .SUFFIXES:.
2057         * automake.texi (Suffixes): Updated to reflect new suffix
2058         handling.
2059
2060 2000-12-18  Tom Tromey  <tromey@redhat.com>
2061
2062         * automake.in (handle_built_sources): Removed.
2063         (handle_merge_targets): Handle BUILT_SOURCES.
2064         * automake.texi (Sources): Updated documentation of
2065         BUILT_SOURCES.
2066
2067 2000-12-17  Tom Tromey  <tromey@redhat.com>
2068
2069         * m4/protos.m4: Always do header checks.
2070
2071         * automake.in (handle_ltlibraries): Check for LDFLAGS variables
2072         before using values.
2073
2074         * automake.in (handle_ltlibraries): Allow _LDFLAGS to be
2075         conditionally defined.  Fixes PR automake/77 and ldflags.test.
2076
2077 2000-11-25  Tom Tromey  <tromey@cygnus.com>
2078
2079         * automake.in (file_contents_with_transform): Added file name and
2080         line number to error report.
2081         (MACRO_PATTERN, BOGUS_MACRO_PATTERN): Leading spaces are ok.
2082
2083 2000-11-23  Pavel Roskin  <proski@gnu.org>
2084
2085         * m4/regex.m4 (AM_WITH_REGEX): This macro was broken because
2086         of M4 underquoting.
2087         * m4/ccstdc.m4 (AC_PROG_CC_STDC): Added some M4 quotes.
2088         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
2089         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
2090         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
2091         * m4/multi.m4 (AM_WITH_DMALLOC): Likewise.
2092         * m4/python.m4 (AM_PATH_PYTHON): Likewise.
2093         * m4/strtod.m4 (AM_FUNC_STRTOD): Likewise.
2094
2095 2000-11-23  Tom Tromey  <tromey@cygnus.com>
2096
2097         * automake.in (require_file_internal): Pass $file as second
2098         argument to maybe_push_required_file.  Fixes PR automake/87.
2099
2100 2000-11-18  Tom Tromey  <tromey@cygnus.com>
2101
2102         * m4/depend.m4 (AM_DEPENDENCIES): Redirect `$am_depcomp' stdout to
2103         /dev/null.  From Paul Martinolich.
2104
2105 2000-11-16  Morten Eriksen  <mortene@sim.no>
2106
2107         * aclocal.in (write_aclocal): Set ``binmode'' after file has been
2108         opened, otherwise it has no effect.
2109
2110 2000-10-23  Morten Eriksen  <mortene@sim.no>
2111
2112         * aclocal.in (write_aclocal): Don't write aclocal.m4 with
2113         CRLFs. This circumvents a bug in Cygwin bash.
2114
2115         * automake.in (generate_makefile): Don't write Makefile.in
2116         files with CRLFs, as it causes problems for the dependency-file
2117         extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.
2118
2119 2000-10-19  Alex Hornby  <alex@anvil.co.uk>
2120
2121         * automake.in (handle_merge_targets): Allow parallel install
2122         with forced relink.
2123
2124 2000-10-19  Akim Demaille  <akim@epita.fr>
2125
2126         * subdir4.test (depcomp): Don't create it, defs does.
2127
2128 2000-10-17  Pavel Roskin  <proski@gnu.org>
2129
2130         * automake.in (handle_aclocal_m4): exclude aclocal.m4 and
2131         acinclude.m4 from the dependencies of aclocal.m4 to avoid
2132         circular and duplicated dependencies. Strip "./" from the
2133         dependencies.
2134
2135 2000-10-17  Lars J. Aas  <larsa@sim.no>
2136
2137         * aclocal.in (write_aclocal): Set up aclocal.m4 header with
2138         normal comments (#) instead of m4 dnl-type comments.
2139
2140 2000-10-17  Alex Hornby <alex@anvil.com>
2141
2142         * depcomp: Altered sed clause to strip of inclusion depth
2143         numbers generated by cpp. Also output in gcc style.
2144
2145 2000-10-16  Morten Eriksen  <mortene@sim.no>
2146
2147         * depcomp (msvisualcpp): New dependency tracking mode, for
2148         Microsoft Visual C++.
2149
2150 2000-10-16  Morten Eriksen  <mortene@sim.no>
2151
2152         * depcomp: Fix a bug in SGI dependency tracking mode with source
2153         files which do not dependend on any other source files.
2154
2155 2000-10-16  Rodney Brown  <RodneyBrown@mynd.com>
2156
2157         * aclocal.in, aclocal.m4: Standardize FSF Copyright statements.
2158         * automake.in, automake.texi: Likewise.
2159         * clean-kr.am, clean.am: Likewise.
2160         * comp-vars.am: Likewise.
2161         * compile, compile.am: Likewise.
2162         * data-clean.am: Likewise.
2163         * data.am: Likewise.
2164         * dejagnu.am: Likewise.
2165         * depcomp: Likewise.
2166         * depend.am, depend2.am: Likewise.
2167         * dist-vars.am, dist.am: Likewise.
2168         * elisp-comp: Likewise.
2169         * footer.am: Likewise.
2170         * header-vars.am, header.am: Likewise.
2171         * java-clean.am java.am: Likewise.
2172         * kr-extra.am: Likewise.
2173         * library.am: Likewise.
2174         * libs-clean.am, libs.am: Likewise.
2175         * libtool.am: Likewise.
2176         * lisp-clean.am lisp.am: Likewise.
2177         * ltlib-clean.am ltlib.am: Likewise.
2178         * ltlibrary.am: Likewise.
2179         * m4/Makefile.in: Likewise.
2180         * m4/strtod.m4: Likewise.
2181         * mans-vars.am, mans.am: Likewise.
2182         * mdate-sh: Likewise.
2183         * missing: Likewise.
2184         * multilib.am: Likewise.
2185         * program.am: Likewise.
2186         * progs-clean.am, progs.am: Likewise.
2187         * python-clean.am, python.am: Likewise.
2188         * remake-hdr.am, remake.am: Likewise.
2189         * scripts.am: Likewise.
2190         * subdirs.am: Likewise.
2191         * tags-clean.am, tags.am: Likewise.
2192         * texi-vers.am: Likewise.
2193         * texinfos.am: Likewise.
2194         * ylwrap: Likewise.
2195
2196 2000-10-09  Pavel Roskin  <proski@gnu.org>
2197
2198         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't rely on variable
2199         assignments changing $? - it's broken in ash-0.2.
2200         * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
2201
2202         * automake.in (handle_aclocal_m4): If ACLOCAL_M4_SOURCES is
2203         defined use it as the list of M4 files aclocal.m4 depends on.
2204
2205 2000-10-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2206
2207         * aclocal.in (add_file): Strip comments while scanning for
2208         macro dependencies.
2209
2210 2000-09-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
2211
2212         * automake.in (initialize_global_constants): End the
2213         result of dist-bzip2 with tar.bz2, not bz2.
2214
2215 2000-08-30  Tom Tromey  <tromey@cygnus.com>
2216
2217         Fix for PR automake/72:
2218         * automake.in (initialize_per_input): Define `need_link'.
2219         (finish_languages): Use need_link.
2220         (handle_source_transform): Set need_link if required.
2221
2222 2000-08-28  Tom Tromey  <tromey@cygnus.com>
2223
2224         * automake.in (yacc, yaccxx, lex, lexxx): Set `derived-autodep'
2225         key.
2226         (register_language): Default the `derived-autodep' option.
2227         (handle_single_transform_list): Add to %dep_files if language has
2228         `derived-autodep' set.  Re-fixes lex4.test.
2229
2230 2000-08-27  Tom Tromey  <tromey@cygnus.com>
2231
2232         * automake.in (handle_single_transform_list): Only add to
2233         %dep_files if language is found and supports automatic dependency
2234         tracking.  Fixes PR automake/75.
2235
2236         * automake.in (am_primary_prefixes): Don't set `valid' for
2237         configure variables that don't satisfy the other constraints.
2238         Fixes PR automake/68.
2239
2240 2000-04-14  Victor V. Vengerov <vvv@oktet.ru>
2241
2242         Fix for PR automake/67.
2243         * automake.in (handle_multilib): remove .am suffix in fragment
2244         name passed to file_contents.
2245         * m4/multi.m4: Add missing ')' in AC_ARG_ENABLE invocation.
2246         Remove external quotes in first arg of AC_OUTPUT_COMMANDS.
2247         Remove unnecessary "rel-to-top-srcdir" before config-ml.in.
2248
2249 2000-08-26  Tom Tromey  <tromey@cygnus.com>
2250
2251         * subdirs.am (maintainer-clean-recursive): Always run clean rules
2252         in `.' after all subdirs.  Fixes PR automake/3 and PR automake/24.
2253
2254         * automake.in (handle_man_pages): Generate install targets for man
2255         even if man_MANS not defined.  From `danpb'.  Fixes PR automake/73.
2256
2257         * m4/depend.m4 (depcpp): Use `-o conftest.o'.
2258         Fix for PR automake/74.  From js pendry.
2259
2260 2000-08-20  Eli Zaretskii  <eliz@is.elta.co.il>
2261
2262         * depcomp (gcc): Support DOS-style absolute file names with drive
2263         letters.
2264
2265 2000-08-06  Jim Meyering  <meyering@lucent.com>
2266
2267         * automake.in (handle_dependencies): Set $require_file_found{'depcomp'}
2268         if the depcomp file exists, before calling require_config_file on
2269         `depcomp'.  This makes require_file_internal skip its buggy existence
2270         test that would make automake fail (with `required file `lib/depcomp'
2271         not found') when AC_CONFIG_AUX_DIR is not set.
2272
2273         This change change does not fix the existing bug where, if `depcomp'
2274         is not present in the build directory (at the top level), automake
2275         still gives the inaccurate diagnostic about *lib*/depcomp rather
2276         than ./depcomp.
2277
2278 2000-08-05  Jim Meyering  <meyering@lucent.com>
2279
2280         * m4/header.m4 (AM_CONFIG_HEADER): Fix typo in last change:
2281         add missing closing bracket and closing parenthesis.
2282         Don't quote the first argument to AC_OUTPUT_COMMANDS.
2283         Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt.
2284
2285 2000-08-04  Tom Tromey  <tromey@cygnus.com>
2286
2287         Idea from Nicolas Thiery:
2288         * automake.texi (Tests): Document DEJATOOL as a list.
2289         * dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL).
2290         (check-DEJAGNU): Run runtest in a loop.
2291
2292 2000-08-02  Akim Demaille  <akim@epita.fr>
2293
2294         * m4: Quote properly the name of the macros being defined.
2295         Use `#' instead of `dnl' where appropriate.
2296         * m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just
2297         quote.
2298         Don't quote passive characters.
2299         Pull the AC_PREREQ outside the macro.
2300         * m4/init.m4: Pull the AC_PREREQ outside the macro.
2301
2302 2000-07-28  Tom Tromey  <tromey@cygnus.com>
2303
2304         * lisp.am (uninstall-@DIR@LISP): Prefix file with $(DESTDIR).
2305         From Bruno Haible.
2306
2307 2000-07-13  Kevin Ryde <user42@zip.com.au>
2308
2309         * automake.in (am_install_var): Apply the $(EXEEXT) hack to
2310         EXTRA_PROGRAMS as well as other _PROGRAMS.
2311
2312 2000-07-02  Jim Meyering  <meyering@lucent.com>
2313
2314         * automake.in (scan_one_configure_file): Recognize AC_LIBOBJ.
2315
2316 2000-06-19  Paolo Bonzini    <bonzini@gnu.org>
2317
2318         * texi-vers.am: define UPDATED-MONTH variable (for an example, see
2319         GNU make's manual)
2320
2321 2000-06-02  Morten Eriksen  <mortene@sim.no>
2322
2323         * depcomp: workaround for problem with SGI IRIX sed (it can only
2324         handle lines of up to 8192 characters, the rest of the line will
2325         be mangled).
2326
2327 2000-05-31  Morten Eriksen  <mortene@sim.no>
2328
2329         * depcomp: tell SGI MIPSpro compilers to generate dependencies
2330         through the pre-processor (only CVS libtool has the -Wc option
2331         yet).
2332
2333 2000-05-15  Brendan O'Dea  <bod@compusol.com.au>
2334
2335         * missing: Add support for `help2man'.
2336
2337 2000-05-11  Tom Tromey  <tromey@cygnus.com>
2338
2339         * automake.in (handle_tests): Work correctly if TESTS is empty;
2340         print nothing if it is.  From Kevin Ryde.
2341
2342 2000-05-08  Tom Tromey  <tromey@cygnus.com>
2343
2344         * automake.texi (Texinfo): Mention vers*.texi.
2345
2346 2000-05-04  Akim Demaille  <akim@epita.fr>
2347
2348         AM_INIT_AUTOMAKE is no longer optional, so don't look for
2349         `VERSION=' and `PACKAGE='.
2350         * automake.in (seen_package, seen_version): Remove initializations of
2351         unnecessary variables.
2352         (scan_one_configure_file): Don't set them.
2353         (scan_configure): Don't use them.
2354
2355 2000-05-01  Akim Demaille  <akim@epita.fr>
2356
2357         * m4/init.m4 (AC_PROVIDE_IFELSE): If it is not defined, do it.
2358         (AM_INIT_AUTOMAKE): Update the writing conventions.
2359         Quote the arguments properly.
2360         Add a few missing `dnl'.
2361         Use AC_PROVIDE_IFELSE.
2362
2363 2000-04-26  Jim Meyering  <meyering@lucent.com>
2364
2365         * automake.in (scan_one_configure_file): Handle the AC_CONFIG_FILES
2366         macro.  Based on a patch from Harlan Stenn.
2367
2368 2000-04-13  Akim Demaille  <akim@epita.fr>
2369
2370         * compile: Remove unnecessary double quotes in assignments.
2371
2372 2000-04-13  Akim Demaille  <demaille@epita.fr>
2373
2374         * automake.in (scan_one_configure_file): Also recognize
2375         AC_CONFIG_HEADERS.
2376         Remove trailing blanks.
2377
2378 2000-04-05  Tom Tromey  <tromey@cygnus.com>
2379
2380         * header-vars.am (DESTDIR): Commented out definition.
2381
2382         * automake.in (require_file_internal): Pass --copy to libtoolize
2383         if automake was run with `--copy'.
2384
2385 2000-03-22  Tom Tromey  <tromey@cygnus.com>
2386
2387         * automake.texi (Uniform): Fix definition of pkglibdir.
2388         From thi <ttn@revel.glug.org>.
2389
2390 2000-03-19  Tom Tromey  <tromey@cygnus.com>
2391
2392         * aclocal.in (parse_arguments): Copyright 2000.
2393         (write_aclocal): Likewise.
2394         * automake.in (parse_arguments): Copyright 2000.
2395         (initialize_global_constants): Likewise.
2396
2397         * automake.in (generate_makefile): Call handle_dist after
2398         handle_dependencies and handle_tests.  Fixes subobj3.test and
2399         pr19.test regressions.
2400
2401 2000-03-19  Gordon Matzigkeit  <gord@fig.org>
2402
2403         * depend2.am (@EXT@.o): Look for the source file in srcdir as well
2404         as the current directory.
2405         (@EXT@.lo): Likewise.
2406
2407 2000-03-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
2408
2409         * automake.in (handle_data): Pass -candist instead of
2410         -defaultdist, for the compatibility.
2411
2412 2000-03-19  Tom Tromey  <tromey@cygnus.com>
2413
2414         Fix for test nodepcomp.test:
2415         * automake.in (require_file_internal): Use readlink on symlinks.
2416         Only unlink file if we are going to try to add it again.
2417         (handle_dependencies): Require `depcomp' here.
2418         (scan_configure): Don't require `depcomp'.
2419
2420 2000-03-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
2421
2422         * automake.in (handle_configure): Remove $(BUILT_SOURCES) from
2423         the rule to remake Makefile, whether $use_dependencies is true
2424         or not. This was a historical one and doesn't make sense any
2425         longer.
2426
2427 2000-03-19  Tom Tromey  <tromey@cygnus.com>
2428
2429         More for PR automake/38:
2430         * automake.texi (Invoking Automake): Document --force-missing.
2431         * automake.in (force_missing): New global.
2432         (parse_arguments): Recognize --force-missing.
2433         (initialize_global_constants): Document --force-missing.
2434         (require_file_internal): Handle --force-missing.
2435
2436         Fix for PR automake/38:
2437         * automake.in (require_file_internal): Check for and handle
2438         dangling symlinks.  Fixes symlink2.test.
2439
2440         Fix for PR automake/45:
2441         * automake.texi (configure): Mention requirement to run
2442         AM_INIT_AUTOMAKE.
2443         (Requirements): Removed most text.
2444         * automake.in (seen_init_automake): New global.
2445         (scan_configure): Error if AM_INIT_AUTOMAKE not seen.
2446         (scan_one_configure_file): Don't support AM_INIT_GUILE_MODULE.
2447         Set seen_init_automake if needed.
2448
2449         Fix for PR automake/41:
2450         * automake.in (require_file_found): New global.
2451         (require_file_internal): Set require_file_found entry.
2452         (handle_texinfo): Require file any number of times.
2453
2454         * automake.in (handle_dist_worker): Exit if `cp' fails.  Fixes
2455         install2.test.
2456
2457         * tags.am: Don't reference $$here.  Report from Sven Verdoolaege.
2458
2459 2000-03-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2460
2461         * m4/missing.m4: Print the backtick in a way that won't cause
2462         autoconf CVS to emit any warnings.
2463
2464 2000-03-01  Jim Meyering  <meyering@lucent.com>
2465
2466         * automake.in (handle_dist_worker) [generating rules for distdir]:
2467         Don't use `ln' (which was just a space optimization anyway) to
2468         populate $(distdir).  Otherwise, the dist rules that change
2469         permissions would end up affecting the master sources.
2470         * texinfos.am (dist-info): Likewise.
2471
2472 2000-02-13  Jim Meyering  <meyering@lucent.com>
2473
2474         * automake.in (generate_makefile): Detect write/close failure.
2475
2476 2000-02-02  Assar Westerlund  <assar@sics.se>
2477
2478         * automake.in (handle_single_transform_list): do not use $< which
2479         is not handled by all non-GNU makes.  Instead do explicit sh code
2480         testing for the file in this directory and srcdir.  Based on a
2481         suggestion by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2482
2483 2000-01-12  Tom Tromey  <tromey@cygnus.com>
2484
2485         * m4/lispdir.m4: Added --with-lispdir argument processing.
2486         From Kevin Dalley.
2487
2488 2000-01-06  Tom Tromey  <tromey@cygnus.com>
2489
2490         * automake.in (handle_configure): Don't check for
2491         AC_PROG_MAKE_SET.
2492         (scan_configure): Check for AC_PROG_MAKE_SET.
2493
2494         * header-vars.am (@SET_MAKE@): Added.
2495         * subdirs.am (@SET_MAKE@): Removed.  Report from Motoyuki
2496         Kasahara.
2497
2498 1999-12-19  Tom Tromey  <tromey@cygnus.com>
2499
2500         * automake.in (handle_dist_worker): Expand DIST_COMMON under all
2501         conditions.
2502         (require_file_internal): Corrected arguments to second invocation
2503         of maybe_push_required_file.
2504
2505         Fix for PR automake/9:
2506         * automake.in (make_dirs, make_dirs_set): New globals.
2507         (is_make_dir): New function.
2508         (handle_configure): Use it.
2509         (require_file_internal): Push file if there is no Makefile in its
2510         directory.
2511         (initialize_per_input): Initialize handle_dist_run.
2512         (push_dist_common): Inspect handle_dist_run.
2513         (handle_dist): Set handle_dist_run.  Push items from
2514         configure_dist_common onto dist_common if appropriate.
2515         (configure_dist_common): New global.
2516         (scan_configure): Set it.
2517         (maybe_push_required_file): New function.
2518         (require_file_internal): Use it.
2519
2520         * automake.in (handle_dist_worker): Scan DIST_COMMON to see if
2521         more subdirs are defined.  From Axel Belinfante.  Fixes
2522         PR automake/2.
2523
2524 1999-12-18  Tom Tromey  <tromey@cygnus.com>
2525
2526         Partial fix for PR automake/40:
2527         * lisp.am (install-@DIR@LISP): Handle nobase_ case.
2528         (uninstall-@DIR@LISP): Likewise.
2529         * header.am (install-@DIR@HEADERS): Handle nobase_ case.
2530         (uninstall-@DIR@HEADERS): Likewise.
2531         * data.am (install-@DIR@DATA): Handle nobase_ case.
2532         (uninstall-@DIR@DATA): Likewise.
2533         * automake.in (am_primary_prefixes): Recognize `nobase_' prefix.
2534         (am_install_var): Recognize and handle `nobase_' prefix.
2535
2536 1999-12-17  Tom Tromey  <tromey@cygnus.com>
2537
2538         * automake.in (get_object_extension): Added space before `-I.'.
2539         Report from Ralf Corsepius.
2540
2541 1999-12-15  Tom Tromey  <tromey@cygnus.com>
2542
2543         * aclocal.in: Don't pass $acdir to scan_m4_files.
2544         (parse_arguments): Push $acdir on end of dirlist.
2545         (scan_file): Don't warn if duplicate macro seen.
2546
2547 1999-12-13  Tom Tromey  <tromey@cygnus.com>
2548
2549         Fix for PR automake/30 and PR automake/23.  Fixes test
2550         suffix3.test.
2551         * automake.in (initialize_per_input): Initialize
2552         source_suffix_pattern.
2553         (derive_suffix): New function.
2554         (handle_single_transform_list): Call it.
2555
2556         * automake.in (add_depend2): Handle the no-dependency-tracking
2557         case.  Fixes test suffix2.test.
2558
2559         * depcomp (tmpdepfile): [case sgi] Added missing `fi'.
2560
2561         * automake.in (get_object_extension): Fixed quoting on
2562         -I$(srcdir).
2563
2564         * depend2.am: Removed erroneous comment.
2565
2566         * automake.texi (Program variables): Document nostdinc.
2567         (Options): Likewise.
2568         * automake.in (get_object_extension): Respect nostdinc option.
2569         (handle_options): Recognize nostdinc.
2570         * comp-vars.am (DEFS): Use @DEFAULT_INCLUDES@ as sole
2571         substitution.
2572
2573         * automake.in (read_am_file): Allow conditional includes.  Fixes
2574         test condincl.test.
2575
2576         * depcomp: Handle case on SGI when libtool is `yes'.
2577         * depend2.am (@EXT@.o): Set libtool.
2578         (@EXT@.lo): Likewise.
2579         (@EXT@.obj): Likewise.
2580
2581         * depcomp: Unify dashmstdout and dashXmstdout cases.  Move hp case
2582         after gcc case.
2583
2584 1999-12-13  Pavel Roskin  <pavel_roskin@geocities.com>
2585
2586         * automake.in (add_depend2): substitute $rule in the rules
2587         for individual files.  Fixes test specflags5.test.
2588
2589 1999-12-12  Tom Tromey  <tromey@cygnus.com>
2590
2591         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run mkinstalldirs
2592         to create directories.  Fixes test subobj3.test.
2593
2594 1999-12-10  Tom Tromey  <tromey@cygnus.com>
2595
2596         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Don't print
2597         message when creating .deps files.
2598
2599         * automake.in (initialize_global_constants): If unreadable by
2600         owner, make it readable by owner regardless of number of links.
2601         Fixes more of install2.test.
2602
2603         * missing: Try to see if gnutar or gtar exist before invoking
2604         them.
2605
2606         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
2607         install_sh value.  Look for install-sh and install.sh in a
2608         somewhat more sensible way.  Fixes test install2.test.  Partially
2609         from Jim Meyering.
2610
2611 1999-12-09  Pavel Roskin  <pavel_roskin@geocities.com>
2612
2613         * m4/missing.m4: remove redundant backquote
2614
2615 1999-11-23  Tom Tromey  <tromey@cygnus.com>
2616
2617         * automake.in (initialize_global_constants): Use `bzip2 -9', not
2618         `bzip --best'  Report from Jim Meyering.
2619
2620 1999-11-22  Tom Tromey  <tromey@cygnus.com>
2621
2622         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Don't take argument.
2623         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't pass argument to
2624         AM_MISSING_INSTALL_SH.
2625         * automake.in (scan_one_configure_file): Reverted previous
2626         change.
2627
2628         * automake.in (scan_one_configure_file): Define `install_sh'
2629         configure variable when AM_INIT_AUTOMAKE seen.  Report from Jim
2630         Meyering.
2631
2632         * automake.in (handle_single_transform_list): Generate explicit
2633         rule for subdir objects.  Fixes new addition to subobj.test.
2634
2635         * automake.in (handle_lib_objects_cond): Allow LIBOBJS to be
2636         defined by AC_SUBST.  Fixes ltlibobjs.test.
2637
2638         Fix for sourcesub.test:
2639         * automake.in (handle_single_transform_list): Added `var'
2640         argument.  If config sub found, give error.
2641         (handle_source_transform): Updated for new
2642         handle_source_transform.
2643
2644         * py-compile: New file.
2645         * m4/Makefile.am (m4data_DATA): Added python.m4.
2646         * m4/python.m4: New file.
2647         * automake.texi (Uniform): Mention PYTHON.
2648         (Python): New node.
2649         * Makefile.am (amfiles): Added python.am, python-clean.am.
2650         (dist_script_DATA): Added py-compile.
2651         * python.am: New file.
2652         * python-clean.am: New file.
2653         * automake.in (seen_pythondir): New global.
2654         (generate_makefile): Call handle_python.
2655         (handle_python): New function.
2656         (scan_one_configure_file): Set seen_pythondir if AM_PATH_PYTHON
2657         seen.
2658         (am_install_var): Special-case PYTHON like JAVA.
2659         (scan_configure): Check for py-compile.
2660         (initialize_global_constants): Added py-compile to @common_files.
2661
2662         * ltlib.am (install-@DIR@LTLIBRARIES): Added missing space.
2663
2664 1999-11-21  Tom Tromey  <tromey@cygnus.com>
2665
2666         * automake.in (finish_languages): Only generate suffix rule when
2667         not doing dependency tracking.
2668
2669         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AM_MISSING_INSTALL_SH.
2670         * m4/missing.m4 (AM_MISSING_INSTALL_SH): New macro.
2671
2672         * depend2.am: Use @SOURCE@, @OBJ@, @LTOBJ@, @OBJOBJ@, and @BASE@.
2673         Always use `-o'.
2674
2675 1999-11-19  Tom Tromey  <tromey@cygnus.com>
2676
2677         * dist.am: Set `CDPATH=:' to avoid problems.  Merged from
2678         Alexandre's change on branch.
2679
2680 1999-10-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2681
2682         * Makefile.am (maintainer-check): Look for occurrences of ``cd'
2683         without `CDPATH'.
2684         * dejagnu.am: Set CDPATH before cd.
2685         * Makefile.in: Rebuilt.
2686
2687         * automake.in (handle_single_transform_list): Change `\1' for `$1'
2688         in `s///' replacement.
2689
2690         * automake.in (handle_dist): Set CDPATH before cd.
2691         * dejagnu.am (check-DEJAGNU): Likewise.
2692         * texinfos.am (install-info-am, dist-info): Likewise.
2693         * m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
2694         * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
2695         * aclocal.m4, configure, Makefile.in: Rebuilt.
2696
2697         * AUTHORS: Added myself.
2698
2699 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2700
2701         * m4/missing.m4: Support relative srcdir and ac_aux_dir.
2702         Reported by Tim Wilkinson <tim@transvirtual.com>
2703         * aclocal.m4, configure: Rebuilt.
2704
2705 1999-08-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
2706
2707         * m4/lex.m4 (AM_PROG_LEX): Require AM_MISSING_HAS_RUN and, if no
2708         LEX program is found, use `${am_missing_run}flex'.
2709
2710 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
2711
2712         * automake.in (handle_single_transform_list): Replace `$(OBJEXT)'
2713         with `o' in depfile.
2714
2715         * automake.in (handle_lib_objects_cond): Remove second dot from
2716         dependency file names.
2717
2718         * depend2.am (OBJEXT@EXT@.obj): Dependency file should be .Po,
2719         regardless of OBJEXT.
2720
2721         * automake.in (handle_dependencies): Add blank line after depend2.
2722         (handle_dependencies): Start DEP_FILES with `@AMDEP@'.  Output
2723         blank line before `include's, not after them.
2724         (scan_one_configure_file): Do not special-case `DEP_' any more.
2725
2726         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run for loop only
2727         if AMDEP is empty.
2728         * aclocal.m4, configure: Rebuilt.
2729
2730         * m4/depend.m4 (AMDEPBACKSLASH): Define.
2731         * depend2.am (@EXT@.o, @EXT@.lo, @EXT@.obj): Use AMDEPBACKSLASH.
2732
2733         * automake.in (handle_dependencies): Generate `include's for
2734         dependency files after `@AMDEP@'.
2735
2736         * m4/missing.m4: Use eval, instead of a sub-shell, to test for
2737         --run support in the missing script, since SHELL is not exported.
2738         Reported by job bogan <job@piquin.uchicago.edu>
2739         * aclocal.m4, configure: Rebuilt.
2740
2741 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
2742
2743         * aclocal.m4, configure: Rebuilt with itself.
2744         * Makefile.in, m4/Makefile.in, tests/Makefile.in: Likewise.
2745
2746         * m4/missing.m4 (AM_MISSING_PROG): Remove DIRECTORY argument.
2747         Require AM_MISSING_HAS_RUN.  Use am_missing_run, defined by...
2748         (AM_MISSING_HAS_RUN): New macro.
2749         * m4/init.m4: Remove missing_dir from calls to AM_MISSING_PROG.
2750         * automake.texi (Requirements): Likewise.
2751         * version.texi, stamp-vti: Rebuilt.
2752
2753 1999-07-28  Tom Tromey  <tromey@cygnus.com>
2754
2755         * depcomp: Handle the `hp' mode.
2756
2757 1999-07-06  Tom Tromey  <tromey@cygnus.com>
2758
2759         * depcomp: Work around HP-UX 10.20 sed bug.
2760
2761 1999-07-05  Tom Tromey  <tromey@cygnus.com>
2762
2763         * automake.in (handle_dependencies): Generate a separate include
2764         for each dep file.  Report from Alexandre Oliva.
2765         * depend.am: Don't include DEP_FILES.
2766
2767 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
2768
2769         * depend.am: Add @AMDEP@ before `include', so that dependency
2770         tracking can be disabled.
2771         * depend2.am: Ditto, before all lines related with dependency
2772         tracking.
2773         * m4/depend.m4 (AM_DEP_TRACK): New macro, that documents
2774         --enable/disable-dependency-tracking and sets AMDEP accordingly.
2775         It is implicitly disabled if depcomp is missing.
2776         (AM_DEPENDENCIES): Disable dependency tracking unless it can be
2777         generated by side-effect.
2778         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_DEP_TRACK.
2779         * automake.in (handle_dependencies): Add @AMDEP@ before the value
2780         of DEP_FILES.
2781         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Handle DEP_FILES
2782         starting with `#'.
2783
2784         * depcomp: Support -xM for dependency generation, for Sun CC.
2785         Reported by Alex Hornby <alex@anvil.co.uk>
2786         * m4/depend.m4: Extract the list of supported dependency-tracking
2787         mechanisms from the depcomp script and use it to test each one.
2788         * THANKS: Added Alex Hornby.
2789
2790         * depend2.am: Move $(depcomp) to the line of $(...DEPMODE), so as
2791         to leave $(...COMPILE) in a line by itself.
2792
2793         * THANKS: Added Miles Bader.
2794
2795 1999-06-01  Miles Bader  <miles@ccs.mt.nec.co.jp>
2796
2797         * m4/depend.m4 (AM_DEPENDENCIES): Add check for `makedepend'.
2798         Fix `dashmstdout' to ignore non-dependency-generating uses of the
2799         -M flag.
2800         * depcomp (makedepend): New dependency-generating method.
2801
2802 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
2803
2804         * missing: If given `--run' as first argument, try to run the
2805         given program before falling back to the ``emulated'' behavior.
2806         Add support for `tar'.
2807         * automake.in: Use new `tar' support for `dist'.
2808         * m4/missing.m4 (AM_MISSING_PROG): Instead of checking for the
2809         program, prepend `missing --run' to the given program name.
2810         * m4/init.m4: Remove AMTAR-related stuff.
2811         * NEWS: Updated.
2812
2813         * m4/depout.m4: Instead of `find'ing Makefiles, just iterate on
2814         CONFIG_FILES.  Do not use temporary variable for list of
2815         dependency files, it breaks Cygwin.
2816
2817 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
2818
2819         * depcomp (gcc): Imported comments removed from depend2.am, so
2820         that we don't lose them.
2821
2822         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Avoid sed s/$U//
2823         when not using ansi2knr.
2824
2825 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
2826
2827         * m4/depend.m4 (AM_DEPENDENCIES): Test for depcc -E support.
2828         * depcomp (cpp): Extract dependencies from `# nnn "..."' lines.
2829
2830 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
2831
2832         * m4/depend.m4 (AM_DEPENDENCIES): Add a definition to conftest.h,
2833         so as not to compile an empty source; some compilers fail on this.
2834         Redirect stderr of depcc to /dev/null.  Test for -M with -o,
2835         because some compilers will output the rules to the output file.
2836         * depcomp (dashmstdout): Add --silent before --mode=compile, so
2837         that we don't get libtool output mixed up with make rules.
2838
2839         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_DEPDIR.
2840         * depend2.am: Set tmpdepfile too, to speed up depcomp.  Always use
2841         -o for libtool, otherwise it may try to deduce the object name
2842         from the dependency-generation flag.
2843         * depcomp: Assume depdir exists.  Preserve depfile on unsuccessful
2844         compilations.
2845
2846         * libtool.am: Do not emit .c.lo here...
2847         * depend2.am: ... emit .*.lo here, only when using libtool.
2848         * automake.in (get_object_extension): No more @MINUSO@ here.
2849         (handle_single_transform_list): Set $depfile from $object.
2850         (handle_dependencies): Emit depend2.am for all used languages,
2851         regardless of $use_dependencies; the setting of depcomp makes the
2852         difference.
2853         (lang_cxx_finish): Do not emit compilation rules.
2854         (lang_objc_finish): Likewise.
2855         (lang_java_finish): Likewise.
2856
2857 1999-04-21  Tom Tromey  <tromey@cygnus.com>
2858
2859         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Correctly
2860         interpolate DEPDIR in DEP_FILES expansion.
2861
2862 1999-04-20  Lee Iverson  <leei@Canada.AI.SRI.COM>
2863
2864         * m4/depend.m4 (AM_DEPENDENCIES): Fix up test for SGI-style
2865         dependency updating.
2866         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Fix sed script to
2867         handle multi-line dependency lists.
2868
2869 1999-11-12  Tom Tromey  <tromey@cygnus.com>
2870
2871         Fix for PR automake/14:
2872         * aclocal.in: Added `ud_GNU_GETTEXT'.  Updated to mention
2873         AC_CYGWIN.
2874         * automake.in: Mention AC_CYGWIN, not AC_CYGWIN32.
2875
2876         * m4/multi.m4: Added missing `]'.  From Akim Demaille.
2877
2878         * Makefile.am (path-check): Make sure distdir is writeable before
2879         removing it.
2880         * automake.in (handle_texinfo): Added `cm' and `ov' extensions.
2881         (handle_dist_worker): Make sure distdir is writeable before
2882         removing it.
2883         (initialize_global_constants [$dist_trailer]): Make sure distdir
2884         is writeable before removing it.
2885         * dist.am (distcheck): Make the new source tree read-only before
2886         compiling.  Idea from Karl Berry.
2887
2888         * automake.texi (Gnits): Allow COPYING.LIB again.
2889         * automake.in (check_gnits_standards): Allow COPYING.LIB again.
2890
2891 1999-11-11  Jim Meyering  <meyering@ascend.com>
2892
2893         * dist.am (distcheck): Remove $(distdir).tar.gz before counting
2894         files.
2895
2896 1999-11-09  Tom Tromey  <tromey@cygnus.com>
2897
2898         * automake.in (handle_dist): Typo fix.  From Jim Meyering.
2899
2900 1999-11-09  Jim Meyering  <meyering@ascend.com>
2901
2902         * automake.in (handle_dist): Remove the DISTHOOK and GETTEXT
2903         markers, no matter what.
2904
2905 1999-11-08  Tom Tromey  <tromey@cygnus.com>
2906
2907         * dist.am (distcheck): Put `&&' at the start of the distcheck-hook
2908         line.
2909
2910         * automake.in (handle_dist_worker): Use `cp -R', not `cp -r'.
2911         From Jim Meyering.  Also, don't mention file name in `cp'
2912         destination.  From Olly Betts.
2913
2914 1999-10-27  Miodrag Vallat  <miodrag@ifrance.com>
2915
2916         * texinfos.am (uninstall-info): Use installed info file, not one
2917         from srcdir or builddir.
2918
2919 1999-11-07  Tom Tromey  <tromey@cygnus.com>
2920
2921         * clean.am (maintainer-clean-generic): Remove Makefile.in.  From
2922         Jeff Bailey
2923
2924         Fix for PR automake/18:
2925         * automake.in (handle_dist): Add contents of dist.am to the output
2926         rules.
2927         * Makefile.am (amfiles): Added dist.am.
2928         * dist.am: New file.
2929         (distcheck): Added uninstall and distclean checks.
2930
2931         * automake.in (PATH_PATTERN): Added `-' as allowable character.
2932         Fixes PR automake/20.  From Matthew D. Langston.
2933
2934         * automake.in (SUFFIX_RULE_PATTERN): Add `0-9' as characters
2935         allowed in suffixes.  Fixes PR 22.  From Matthias Clasen.
2936
2937 1999-10-03  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
2938
2939         * m4/lispdir.m4: -batch must come before -q.
2940         * elisp-comp: Likewise.
2941         Reported by Lars Hecking <lhecking@nmrc.ucc.ie>
2942         * THANKS: Added Lars.
2943
2944 1999-08-15  Tom Tromey  <tromey@cygnus.com>
2945
2946         * automake.in (get_object_extension): Fixed quoting bug.  Fixes
2947         ansi4.test.
2948
2949 1999-07-27  Tom Tromey  <tromey@cygnus.com>
2950
2951         * config.guess, config.sub: New versions from autoconf.
2952
2953 1999-07-13  Tom Tromey  <tromey@cygnus.com>
2954
2955         Work around losing `awk'.  Report from Harlan Stenn.
2956         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK.
2957         * tags.am (ID, TAGS): Use $(AWK), not `awk'.
2958
2959         * automake.in (handle_source_transform): Mark prefix as seen if
2960         corresponding _SOURCES variable exists.  Fixes empty2.test.
2961
2962 1999-06-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
2963
2964         * configure.in (ACLOCAL): Do not prepend the variable SRCDIR to
2965         m4.
2966         (AUTOMAKE): Set --amdir to current directory.
2967
2968 1999-06-20  Tom Tromey  <tromey@cygnus.com>
2969
2970         * Makefile.am (TAGS_FILES): New macro.
2971         (ETAGS_ARGS): Moved files into TAGS_FILES.
2972         (TAGS_DEPENDENCIES): Likewise.
2973         (ETAGS_ARGS): Removed.
2974         (TAGS_DEPENDENCIES): Removed duplicate definition.
2975
2976         * tags.am (ID): Handle VPATH correctly.  Use TAGS_FILES.  Report
2977         from Ganesan Rajagopal.
2978         (TAGS): Likewise.
2979
2980 1999-06-18  Thomas Tanner  <tanner@ffii.org>
2981
2982         * automake.in (handle_ltlibraries): Check for -module in LDFLAGS,
2983         too.
2984
2985 1999-06-20 Mark Elbrecht <snowball3@bigfoot.com>
2986
2987         * ylwrap: Handle filenames output by the DOS version of Bison.
2988
2989 1999-06-20  Tom Tromey  <tromey@cygnus.com>
2990
2991         * ylwrap: Be less strict when recognizing DOS paths.  From Mark
2992         Elbrecht.
2993
2994 1999-06-19  Tom Tromey  <tromey@cygnus.com>
2995
2996         * automake.in (handle_dist_worker): Remove redundant entries from
2997         DIST_SUBDIRS.
2998
2999         * automake.in (handle_lib_objects_cond): Better error message when
3000         unrecognized option passed in LDADD.
3001
3002 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
3003
3004         * configure.in (ACLOCAL, AUTOMAKE): Use our own scripts, with
3005         appropriate --acdir and --amdir arguments.
3006
3007 1999-06-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
3008
3009         * automake.in (dist_header): Avoid changing permissions of files
3010         in the source tree, trying a complex `find/chmod' command before
3011         falling back to plain chmod.
3012         (handle_dist_worker): Do not create directories with mode 777, the
3013         find above will take care of that.
3014         * m4/init.m4: Set install_sh for find/chmod above.
3015
3016         * THANKS: Added Shuhei Amakawa.
3017
3018 1999-06-07  Shuhei Amakawa <sa264@cam.ac.uk>
3019
3020         * mans.am: Strip dirname from given filename.
3021
3022 1999-06-07  Jim Meyering  <meyering@ascend.com>
3023
3024         * automake.in (handle_dist): Change emitted rules so that a failure
3025         in `$(MAKE) distcheck-hook' propagates to the outer make.
3026
3027 1999-05-27  Tom Tromey  <tromey@cygnus.com>
3028
3029         * automake.in (handle_single_transform_list): Replace AM_FLAG and
3030         not FLAG in compilation rule.
3031         (add_depend2): Likewise.
3032
3033         * ltlib.am (install-@DIR@LTLIBRARIES): Pass INSTALL_STRIP_FLAG to
3034         libtool.
3035
3036         * m4/dmalloc.m4: Updated dmalloc site information.
3037
3038 1999-05-19  Tom Tromey  <tromey@cygnus.com>
3039
3040         * automake.in (handle_single_transform_list): Push object name
3041         without extension onto lang_specific_files.  Fixes
3042         specflags4.test.
3043
3044         * automake.in (handle_single_transform_list): Added missing
3045         space.  Fixes specflags.test.
3046
3047 1999-05-05  Tom Tromey  <tromey@cygnus.com>
3048
3049         * automake.in: Disabled dependency tracking for Java.
3050
3051 1999-05-04  Tom Tromey  <tromey@cygnus.com>
3052
3053         * library.am (@LIBRARY@): Use $(@XLIBRARY@_AR).
3054         * automake.in (handle_libraries): Recognize _AR variable.
3055
3056 1999-04-30  Tom Tromey  <tromey@cygnus.com>
3057
3058         * automake.in (finish_languages): Always use `-o $@' with
3059         libtool.  Define ltcompile and ltlink at outermost scope in
3060         function.
3061         * libtool.am (.c.lo): Removed.
3062
3063         * automake.in (finish_languages): Put `.' before extension in
3064         suffix list, `.obj' rule, and `.lo' rule.  Look at `-flags', not
3065         `-flag'.  From Pavel Roskin.
3066
3067 1999-04-28  Tom Tromey  <tromey@cygnus.com>
3068
3069         * automake.in (finish_languages): Fixed scoping of ltcompile and
3070         ltlink.  From Pavel Roskin.
3071
3072 1999-04-27  Tom Tromey  <tromey@cygnus.com>
3073
3074         * automake.in (read_main_am_file): Don't start macro definition
3075         with backslash-newline.  Instead, append newline at the end if
3076         required.
3077
3078         * automake.in (read_am_file): Insert a backslash before a trailing
3079         newline.  Fixes pluseq8.test.
3080
3081         * automake.in (MACRO_PATTERN): Allow digits and `_' to start a
3082         macro name.
3083         (check_canonical_spelling): Don't insert `AM' before macro name
3084         (reverts Alexandre's 1999-04-27 patch).
3085         * automake.texi: Reverted documentation change for `AM' patch.
3086
3087         * automake.in (handle_lib_objects_cond): Prefer `$1' over `\1'.
3088         Minor rewrite for clarity.
3089         (check_canonical_spelling): Prefer `$1' over `\1'.
3090
3091         * depend2.am (@OBJ@): Renamed.  Use @SOURCE@, @COMPILE@.  Always
3092         use `-o $@'.
3093         (@LTOBJ@): Likewise.
3094         * automake.in (handle_single_transform_list): Don't print rule if
3095         doing dependency tracking and the file's language supports it.
3096         (initialize_per_input): Initialize lang_specific_files.
3097         (add_depend2): New function.
3098         (handle_dependencies): Use it.
3099
3100         * automake.in (lang_ppf77_finish): Use lang_f77_finish.
3101         ratfor compiler name is `RCOMPILE'.  ppf77 compiler name changed
3102         to `PPF77COMPILE' to allow use of f77 and ppf77 in the same
3103         directory.
3104         (lang_ratfor_finish): Use lang_f77_finish.
3105
3106         * compile.am (NOTDEPEND.c.o): Removed.
3107         (OBJEXT.c.obj): Likewise.
3108         * automake.in: Added `flags' attribute to all relevant languages.
3109         (handle_single_transform_list): Handle per-derived-object flags.
3110         Changed interface and all callers.
3111         (handle_built_sources): Don't call handle_single_transform_list.
3112         Added `compile' and `compiler-name' attribute to all relevant
3113         languages.
3114         (finish_languages): Define compiler variables here.
3115         (lang_cxx_finish): Don't call define_compiler_variable.  Don't
3116         define flag variable or .o rules.  Don't add to @suffixes.
3117         (lang_f77_finish): Likewise.
3118         (lang_ppf77_finish): Likewise.
3119         (lang_objc_finish): Likewise.
3120         (lang_java_finish): Likewise.
3121         (finish_languages): Define flag variable here.
3122         Added `output-arg' attribute to all relevant languages.
3123         (finish_languages): Define `.o' rules here.
3124         (finish_languages): Put extension on @suffixes.
3125         (get_object_extension): Don't transform NOTDEPEND or MINUSO.
3126
3127 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
3128
3129         * automake.in (initialize_global_constants): Invoke gzip for
3130         dist-shar just like in plain dist, i.e., pass it GZIP_ENV and -c.
3131
3132         * automake.in (initialize_global_constants): Remove zip file
3133         before re-creating it.
3134         Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
3135
3136         * texinfos.am (uninstall-info): Look for info file in srcdir, just
3137         like in install-info-am.
3138         Reported by Tudor Hulubei <tudor@cs.unh.edu>
3139
3140         * automake.in (handle_lib_objects_cond): \Q doesn't work either.
3141         Let's use the good ol' substitution, then.
3142         Reported by Russ Allbery <rra@stanford.edu>
3143
3144         * automake.in (check_canonical_spelling): Insert AM before names
3145         starting with non-letters.
3146
3147         * automake.texi: Document it.
3148
3149 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
3150
3151         * automake.in (handle_lib_objects_cond): Do not use quotemeta, it
3152         doesn't work on perl4.  Maybe \Q and \E do.
3153
3154 1999-04-24  Tom Tromey  <tromey@cygnus.com>
3155
3156         * automake.in: Treat `.zip' and `.jar' files as Java.
3157
3158         * automake.in (generate_makefile): Define `subdir' after reading
3159         .am file.
3160         (read_main_am_file): Give programming error if variable defined
3161         before invocation.
3162
3163 1999-04-22  Tom Tromey  <tromey@cygnus.com>
3164
3165         * automake.in (generate_makefile): Define `subdir' variable.
3166         (handle_dist): Don't define `subdir'.
3167
3168         * automake.in (handle_texinfo): Change numbering scheme for
3169         stamp-vti files, to avoid problems with DOS.
3170         From Michel de Ruiter.
3171
3172         * automake.texi: Don't mention AM_FUNC_MKTIME.
3173         * aclocal.in (obsolete_macros): Mention AM_FUNC_MKTIME.
3174         * automake.in (scan_one_configure_file): Recognize
3175         AC_FUNC_MKTIME, not AM_FUNC_MKTIME.
3176         (obsolete_macros): Mention AM_FUNC_MKTIME.
3177         * m4/Makefile.am (m4data_DATA): Removed mktime.m4.
3178         * m4/mktime.m4: Removed.
3179
3180 1999-04-20  Tom Tromey  <tromey@cygnus.com>
3181
3182         * automake.texi (Top level): Don't recommend substing SUBDIRS.
3183
3184 1999-04-20  Brian Ford <ford@vss.fsi.com>
3185
3186         * scripts.am: Change else if's to elif.
3187
3188 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
3189
3190         * automake.in (handle_lib_objects_cond): Only require the source
3191         of a LIBOBJ if it's not in BUILT_SOURCES.
3192         Reported by Erez Zadok.
3193
3194 1999-04-19  Tom Tromey  <tromey@cygnus.com>
3195
3196         * automake.in: Treat `.class' files as Java source.
3197         (lang_java_finish): Handle `.class' files.
3198
3199 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
3200
3201         * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'.
3202
3203         * m4/lispdir.m4: Do not override lispdir if it's already defined.
3204         Run some emacs-lisp to find out the site-lisp directory, but
3205         relocate it into prefix.
3206
3207 1999-04-17  Paul Eggert  <eggert@twinsun.com>
3208
3209         * m4/mktime.m4 (bigtime_test, main): Move alarm from
3210         bigtime_test to main, since Solaris 7 (64-bit) mktime loops
3211         even outside of bigtime_test.  Use a time limit of 60 seconds
3212         for the whole test, not 10 seconds per iteration.
3213
3214 1999-04-17  Erez Zadok  <ezk@cs.columbia.edu>
3215
3216         * automake.in: Create stamps for headers in appropriate
3217         directories, even if the input file lives in a different place.
3218         * remake-hdr.am: Likewise.
3219
3220 1999-04-16  Tom Tromey  <tromey@cygnus.com>
3221
3222         From Brian Ford:
3223         * progs.am (install-@DIR@PROGRAMS, uninstall-@DIR@PROGRAMS):
3224         Invoke `sed' only once per program.
3225         * scripts.am (install-@DIR@SCRIPTS, uninstall-@DIR@SCRIPTS):
3226         Invoke `sed' only once per program.
3227
3228 1999-04-13  Tom Tromey  <tromey@cygnus.com>
3229
3230         * automake.in (handle_subdirs): Make `install-recursive' phony.
3231         From Michel de Ruiter.
3232
3233         * automake.in (handle_ltlibraries): Added missing `check'.
3234
3235 1999-04-12  Tom Tromey  <tromey@cygnus.com>
3236
3237         * ansi2knr.c: New version from Pavel Roskin (via ansi2knr.c
3238         maintainer).
3239
3240 1999-04-11  Tom Tromey  <tromey@cygnus.com>
3241
3242         * automake.in (handle_dist): Use AMTAR.
3243         (initialize_global_constants): Likewise.
3244         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR.
3245
3246         * automake.in (lang_sub_obj): New function.
3247         (lang_cxx_rewrite): Use it.
3248         (lang_asm_rewrite): Likewise.
3249         (lang_objc_rewrite): Likewise.
3250         (lang_cxx_finish): Add `-o $@' to all C++ rules.
3251         (lang_asm_finish): Add `-o' to suffix rules when appropriate.
3252         (lang_objc_finish): Add `-o $@' to all ObjC rules.
3253         (lang_java_finish): Likewise.
3254
3255         * automake.in: Only register `asm' once.
3256         (lang_asm_finish): Put assembly suffixes on @suffixes.
3257
3258         * libtool.am (.s.lo): Removed.
3259         (.S.lo): Likewise.
3260         * automake.in (lang_asm_finish): Handle libtool.
3261
3262         * libtool.am (.c.o): Always pass -c to libtool.
3263
3264         * automake.in (lang_yacc_rewrite): Handle sources in subdirs.
3265         (lang_yaccxx_rewrite): Likewise.
3266         (lang_lex_rewrite): Likewise.
3267         (lang_lexxx_rewrite): Likewise.
3268
3269         Assembly code no longer included by default:
3270         * compile.am (.s.o): Removed.
3271         (.S.o): Likewise.
3272         * automake.in: Register `asm' language.
3273         (lang_asm_finish): Generate suffix rules for assembly.
3274         (get_object_extension): Don't add `.s' or `.S' to suffix list.
3275
3276         * automake.in (get_object_extension): Substitute @MINUSO@ when
3277         including compile.am.
3278         * compile.am (.c.o): Added @MINUSO@.
3279         (.c.obj): Likewise.
3280
3281         First cut at allowing objects in subdirectories:
3282         * m4/Makefile.am (m4data_DATA): Added minuso.m4.
3283         * Makefile.am (dist_script_DATA): Added compile.
3284         * m4/minuso.m4: New file.
3285         * automake.in (initialize_global_constants): Added compile to
3286         common_files.
3287         (seen_cc_c_o): New global.
3288         (scan_one_configure_file): Set it when AM_PROG_CC_C_O seen.
3289         (handle_options): Recognize `subdir-objects' option.
3290         (lang_c_rewrite): Added directory argument.
3291         (lang_yacc_rewrite): Likewise.
3292         (lang_yaccxx_rewrite): Likewise.
3293         (lang_lex_rewrite): Likewise.
3294         (lang_lexxx_rewrite): Likewise.
3295         (handle_single_transform_list): Pass directory to _rewrite
3296         function.  Generate dependencies for dirstamp files for each .o;
3297         it is just the rules we want to create once.
3298         (lang_c_rewrite): Handle `subdir-objects' option.
3299         (lang_c_rewrite): Require `compile' program.
3300         * compile: New file.
3301
3302         * automake.in (initialize_per_input): Initialize %directory_map.
3303         (handle_single_transform_list): Only create .dirstamp rules once
3304         per directory.
3305
3306         * m4/gcj.m4 (AM_PROG_GCJ): Use AC_CHECK_PROGS, not AC_CHECK_PROG.
3307
3308         Fix for confh.test:
3309         * automake.in (configure_input_files): New global.
3310         (scan_configure): Set it.
3311         (handle_configure): Use configure_input_files when determining
3312         which subdirs have a Makefile.am.  Fixes confh.test.
3313         (handle_configure): Only recognize acconfig.h in top srcdir.
3314
3315 1999-04-10  Tom Tromey  <tromey@cygnus.com>
3316
3317         * depend2.am (%.o): Use `$(*D)/$(*F)', not just `$(*F)'.
3318         (%.lo): Likewise.
3319
3320         * automake.in (am_install_var): Remove redundancies from the
3321         result.  Fixes test cond8.test.
3322
3323         * automake.in (handle_single_transform_list): Handle dependency
3324         tracking when files are created in subdirs.  Error if object in
3325         subdir has `..' component.
3326
3327         * automake.in (initialize_global_constants): Use $(TAR), not tar.
3328
3329         * automake.in (handle_ltlibraries): Allow check_LTLIBRARIES.
3330
3331         * automake.in (lang_yacc_finish): Added missing `&'.
3332
3333 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
3334
3335         * automake.in (handle_configure): Replace multiple occurrences of
3336         @STAMP@ in the same line; completes the patch for remake-hdr.am
3337         below.
3338
3339         * automake.in (handle_dependencies): Fix test for `autodep'
3340         support.
3341
3342         * automake.in (handle_source_transform): Add a pfx to used_pfx
3343         only if it's conditional or non-empty, to reduce the number of
3344         empty variables.  Emit _OBJECS variable based on program name if
3345         no SOURCES were explicitly specified.
3346
3347         * remake-hdr.am: Create the stamp file before the header file,
3348         and just rename it after, so that the timestamps will be correct.
3349         Reported by Marc Horowitz <marc@mit.edu>
3350
3351         * automake.in (lang_yacc_finish): Generate and dist a `.h' for a
3352         `.y' iff YFLAGS or AM_YFLAGS contain `-d'.
3353         Reported by Jim Meyering <meyering@ascend.com>
3354
3355         * automake.in (lang_yacc_finish): $hname must not contain a `.'.
3356
3357 1999-04-10  Tom Tromey  <tromey@cygnus.com>
3358
3359         * Makefile.am (EXTRA_DIST): New macro.
3360         * ChangeLog.1996, ChangeLog.1998: New files.
3361
3362 1999-04-09  Tom Tromey  <tromey@cygnus.com>
3363
3364         * automake.in (handle_source_transform): Handle dist and nodist
3365         prefixes.
3366         (initialize_per_input): Initialize dist_sources.
3367         (check_libobjs_sources): Handle dist and nodist prefixes.
3368         (generate_makefile): Define DIST_SOURCES.
3369         * dist-vars.am (DISTFILES): Reference DIST_SOURCES, not SOURCES.
3370
3371         * automake.texi (Macros): Mention AM_PROG_GCJ.
3372         (Java Support): New node.
3373         (Dist): Documented dist_ and nodist_ prefixes.
3374
3375         * m4/gcj.m4 (AM_PROG_GCJ): Renamed from AC_PROG_GCJ.
3376
3377         * automake.in (lang_java_finish): Generate .lo rule for `.java'
3378         files, not `.gcj' files.
3379
3380         * m4/gcj.m4: New file.
3381         * m4/Makefile.am (m4data_DATA): Added gcj.m4.
3382
3383         * automake.in: Register the `java' language.
3384         (resolve_linker): Handle GCJLINK.
3385         (lang_java_rewrite): New function.
3386         (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR): New constants.
3387         (lang_c_rewrite): Use new constants.
3388         (lang_cxx_rewrite): Likewise.
3389         (lang_header_rewrite): Likewise.
3390         (lang_yacc_rewrite): Likewise.
3391         (lang_yaccxx_rewrite): Likewise.
3392         (lang_lex_rewrite): Likewise.
3393         (lang_lexxx_rewrite): Likewise.
3394         (lang_asm_rewrite): Likewise.
3395         (lang_f77_rewrite): Likewise.
3396         (lang_ppf77_rewrite): Likewise.
3397         (lang_ratfor_rewrite): Likewise.
3398         (lang_objc_rewrite): Likewise.
3399         (handle_single_transform_list): Likewise.  Handle LANG_SUBDIR
3400         return from rewrite function.
3401         (lang_java_finish): New function.
3402         (register_language): Changed interface and all calls.  Added
3403         `autodep' settings to various languages.
3404         (handle_dependencies): Use `autodep' property of language when
3405         including dependency-tracking code.
3406
3407 1999-04-07  Tom Tromey  <tromey@cygnus.com>
3408
3409         * automake.in (handle_texinfo): Indentation fixes.
3410
3411 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
3412
3413         * automake.in (value_to_list): Skip *only* trailing backslashes.
3414
3415 1999-04-07  Pavel Roskin  <pavel_roskin@geocities.com>
3416
3417         * automake.in (value_to_list): Skip trailing backslashes.
3418
3419 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
3420
3421         * automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir
3422         when appropriate.
3423         Reported by Per Cederqvist <ceder@lysator.liu.se>
3424         (handle_texinfo): Do not define texinfo_tex='.', use
3425         '$(srcdir)/texinfo.tex' instead; the directory name will be
3426         properly extracted.
3427         (require_conf_file_with_line): Fixed typo.
3428
3429 1999-04-03  Raja R Harinath  <harinath@cs.umn.edu>
3430
3431         * automake.in (handle_tests): Test `dir=./' before `dir=', so that
3432         we do not depend on PATH starting with `.'.
3433
3434 1999-03-31  Tom Tromey  <tromey@cygnus.com>
3435
3436         * automake.in (quote_cond_val): Quote \n.
3437         (unquote_cond_val): Unquote \n.
3438         (read_am_file): If line ends with `\', preserve it and add a
3439         newline.
3440         (read_main_am_file): In conditional case, put conditional text at
3441         beginning of each generated line.
3442
3443 1999-03-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
3444
3445         * automake.in (handle_tests): support XFAIL_TEST
3446         * automake.texi: document it
3447
3448 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
3449
3450         * End of merge from trunk.
3451
3452 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
3453
3454         * automake.in (cmdline_use_dependencies): Reintroduce it.
3455         (--ignore-deps): Set cmdline_use_dependencies again.
3456         (handle_dependencies): If use_dependencies is not set, define
3457         depcomp as empty.
3458         (handle_configure): Pass --ignore-deps to generated Makefile.ins.
3459         (scan_configure): Do not require depcomp when ignoring
3460         dependencies.
3461         (initialize_global_constants): Reintroduce --ignore-deps.
3462
3463 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
3464
3465         * depcomp: New file.
3466         * Makefile.am (dist_script_DATA): Added depcomp.
3467         * automake.in (cmdline_use_dependencies, omit_dependencies,
3468         dependency_macros): Removed.
3469         (--ignore-deps): Just ignore.
3470         (handle_single_transform_list, dep_files): Named dependency files
3471         as \$(DEPDIR)/$base.P$obj
3472         (handle_lib_objects_cond): Likewise.
3473         (generate_dependency_code): Do not check for AM_*_DEPENDENCIES.
3474         (scan_one_configure_file): Likewise.
3475         (handle_dependencies): Always enable auto-dep.  Define `depcomp'.
3476         Ignore OMIT_DEPENDENCIES.
3477         (handle_configure): Do not pass --ignore-deps.
3478         (scan_configure): Require `depcomp'.
3479         (initialize_global_constants): Make `depcomp' common.  Remove
3480         `--ignore-deps' from usage.
3481         (get_object_extension): No more NOTDEPEND in compile nor libtool.
3482         * compile.am: Remove rules for .c.o and .c.obj
3483         * depend.am (distclean-depend): Wipe out $(DEPDIR)
3484         * depend2.am (@FPFX@DEPMODE): Define from config.status.
3485         Use it and depcomp in suffix rules.
3486         * libtool.m4: Likewise.
3487         * m4/ccdepend.m4, m4/cxxdepend.m4: Removed.
3488         * m4/depvars.m4, m4/objcdepend.m4: Likewise.
3489         * m4/Makefile.am (dist_m4data_DATA): Likewise.
3490         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Extract DEPDIR
3491         from the Makefile and subst it in deps.  Report creation of deps
3492         files (for now).  Replace $U with `_' and the empty string.  Write
3493         a comment to each created file.
3494         * m4/depend.m4 (AM_SET_DEPDIR): Select a valid deps dir name.
3495         (AM_DEPENDENCIES): Accept CC, CXX and OBJC.  Just determine the
3496         dependency mode and AC_SUBST [$1]DEPMODE.
3497         * m4/init.m4 (AM_INIT_AUTOMAKE): Automatically call
3498         AM_DEPENDENCIES for CC and CXX, if the corresponding AC_PROG
3499         appears in configure.in, before or after AM_INIT_AUTOMAKE.
3500
3501 1999-04-02  Raja R Harinath  <harinath@cs.umn.edu>
3502
3503         * depout.m4: Fix sed expression for extracting `dirpart'.
3504
3505 1999-03-29  Tom Tromey  <tromey@cygnus.com>
3506
3507         * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'.
3508
3509         * compile.am (.c.obj): Also disabled when dependency tracking
3510         enabled.
3511         * depend2.am (@EXT@.obj): New target.
3512         * automake.in (get_object_extension): Added explanatory comment.
3513         (generate_dependency_code): Handle $seen_objext.
3514
3515         * depend.am: Removed obsolete comment.
3516         * depend2.am: Minor formatting fix.
3517
3518 1999-03-28  Tom Tromey  <tromey@cygnus.com>
3519
3520         * m4/Makefile.am (dist_m4data_DATA): Renamed, and added new
3521         files.
3522         (EXTRA_DIST): Removed.
3523         * automake.in (dependency_macros): New global.
3524         (scan_one_configure_file): Recognize new dependency tracking
3525         macros, and define new resulting configure variables.
3526         (generate_dependency_code): New sub.
3527         (handle_dependencies): Use it.
3528         * depend2.am (DEP_@FPFX@COMPILE): New macro.
3529         (@EXT@.o): Use it.
3530         (@EXT@.lo): Likewise.
3531         * m4/depvars.m4: New file.
3532         * m4/objcdepend.m4: New file.
3533         * m4/cxxdepend.m4: New file.
3534         * m4/init.m4: Moved dependency handling code into depout.m4.
3535         * m4/depout.m4: New file.
3536         * m4/ccdepend.m4: New file.
3537         * m4/depend.m4: New file.
3538
3539         * depend2.am (@EXT@.o): Renamed to be old-style suffix pattern.
3540         (@EXT@.lo): Likewise.
3541         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't create `.deps/.P'; it is no
3542         longer needed.
3543
3544         * m4/init.m4 (AM_INIT_AUTOMAKE): Add code to config.status which
3545         will create the required .P files for dependency tracking.
3546         * automake.in (scan_dependency_file): Removed.
3547         (handle_dependencies): Never call scan_dependency_file.
3548         (generate_deps): Removed.
3549         (parse_arguments): Don't recognize --generate-deps, --build-dir,
3550         --srcdir-name, or --include-deps.  Do recognize --ignore-deps.
3551         (srcdir_name): Removed.
3552         (build_directory): Removed.
3553         (initialize_global_constants): Changed $USAGE to reflect argument
3554         parsing changes.
3555         (handle_dist_worker): Never run automake in `dist' rule.
3556         (handle_configure): Use --ignore-deps, not --include-deps.
3557         * depend.am (DEPS_MAGIC): Removed.
3558         (DEP_FILES): Unconditionally include.
3559
3560 1999-03-27  Tom Tromey  <tromey@cygnus.com>
3561
3562         * automake.in (saw_sources_p): Correctly count header extensions
3563         seen.
3564         (handle_headers): Fixed order of arguments to am_install_var.
3565
3566         * automake.in (am_install_var): Don't error if EXTRA_foo is
3567         defined uselessly.
3568
3569         * scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate.
3570         (uninstall-@DIR@SCRIPTS): Likewise.
3571         * progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate.
3572         (uninstall-@DIR@PROGRAMS): Likewise.
3573         * ltlib.am (install-@DIR@LTLIBRARIES): Use NDIR when appropriate.
3574         (uninstall-@DIR@LTLIBRARIES): Likewise.
3575         * lisp.am (install-@DIR@LISP): Use NDIR when appropriate.
3576         (uninstall-@DIR@LISP): Likewise.
3577         * libs.am (install-@DIR@LIBRARIES): Use NDIR when appropriate.
3578         (uninstall-@DIR@LIBRARIES): Likewise.
3579         * java.am (install-@DIR@JAVA): Use NDIR when appropriate.
3580         (uninstall-@DIR@JAVA): Likewise.
3581         * header.am (install-@DIR@HEADERS): Use NDIR when appropriate.
3582         (uninstall-@DIR@HEADERS): Likewise.
3583         * data.am (install-@DIR@DATA): Use NDIR when appropriate.
3584         (uninstall-@DIR@DATA): Likewise.
3585         * Makefile.in: Rebuilt.
3586         * Makefile.am (dist_pkgdata_DATA): Renamed.
3587         (EXTRA_DIST): Removed.
3588         (install-data-hook): Added POST_INSTALL; print commands as they
3589         are run; respect DESTDIR.
3590         * dist-vars.am (DISTFILES): Removed $(HEADERS).
3591         * automake.in (am_install_var): Accept `-candist' and
3592         `-defaultdist' options.  Handle `dist_' and `nodist_' prefixes.
3593         (am_primary_prefixes): Added can_dist argument.  Recognize `dist_'
3594         and `nodist_' prefixes.
3595         (handle_scripts): Pass -candist to am_install_var.
3596         (handle_data): Pass -defaultdist to am_install_var.
3597         (handle_headers): Likewise.
3598         (handle_emacs_lisp): Pass -candist to am_install_var.
3599         (handle_java): Pass -candist to am_install_var.
3600
3601 1999-03-26  Tom Tromey  <tromey@cygnus.com>
3602
3603         * m4/init.m4: Fixed typo when invoking SHELL.
3604
3605         * automake.in (lang_yacc_finish): Always use `.h' as suffix for
3606         yacc header file.  From Ralf Corsepius.
3607
3608         * Makefile.in: Rebuilt.
3609         * Makefile.am: Updated to reflect removal of TAR subst.
3610         * automake.texi (Options): Document dist-bzip2.
3611         * automake.in (TAR): Removed global.
3612         (initialize_global_constants): Changed `dist' to use pipe with
3613         gzip; work with non-GNU tar.
3614         (handle_dist): Handle non-GNU tar.  Don't define TAR.
3615         (initialize_global_constants): Added `dist-bzip2' entry.
3616         (handle_options): Recognize dist-bzip2 option.
3617         (handle_dist): Likewise.
3618         * configure: Rebuilt.
3619         * configure.in: Don't check for tar.
3620         * m4/init.m4 (AM_INIT_AUTOMAKE): Check for `tar'.  Substitute
3621         AMTARFLAGS.
3622
3623         * automake.in (am_install_var): Removed obsolete comment.
3624
3625         * texinfos.am (uninstall-info): Don't print loop but instead print
3626         commands.  Simplified pre-uninstall loop.
3627         * scripts.am (uninstall-@DIR@SCRIPTS): Don't print loop but
3628         instead print commands.
3629         * progs.am (uninstall-@DIR@PROGRAMS): Don't print loop but instead
3630         print commands.
3631         * ltlib.am (uninstall-@DIR@LTLIBRARIES): Don't print loop but
3632         instead print commands.
3633         * lisp.am (install-@DIR@LISP): Strip subdir from file name.
3634         (uninstall-@DIR@LISP): Likewise.  Also, don't print loop but
3635         instead print commands.
3636         * libs.am (uninstall-@DIR@LIBRARIES): Don't print loop but instead
3637         print commands.
3638         * java.am (uninstall-@DIR@JAVA): Don't print loop but instead
3639         print commands.
3640         * header.am (install-@DIR@HEADERS): Strip subdir from file name.
3641         (uninstall-@DIR@HEADERS): Likewise.  Also, don't print loop but
3642         instead print commands.
3643         * data.am (install-@DIR@DATA): Strip subdir from file name.
3644         (uninstall-@DIR@DATA): Likewise.  Also, don't print loop but
3645         instead print commands.
3646
3647         * automake.in (handle_merge_targets): `install-strip' is a phony
3648         target.  From Michel de Ruiter.
3649
3650 1999-03-25  Tom Tromey  <tromey@cygnus.com>
3651
3652         * automake.in (define_compiler_variable): Don't define variable
3653         with trailing `_'.
3654
3655 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
3656
3657         * automake.in (LDADD): accept -dlopen and -dlpreopen here
3658         * automake.texi: ditto
3659
3660 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
3661
3662         * automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
3663         is absolute and != objdir.  dir="" or "$(srcdir)/" fixes it
3664
3665 1999-03-24  Tom Tromey  <tromey@cygnus.com>
3666
3667         * automake.in (define_compiler_variable): New sub.
3668         (finish_languages): Use it.
3669         (lang_cxx_finish): Likewise.
3670         (lang_f77_finish): Likewise.
3671         (lang_ppf77_finish): Likewise.
3672         (lang_ratfor_finish): Likewise.
3673         (lang_objc_finish): Likewise.
3674
3675 1999-03-23  Tom Tromey  <tromey@cygnus.com>
3676
3677         * progs.am (install-@DIR@PROGRAMS): Use `-e' instead of multiple
3678         sed invocations.  From Elrond.
3679         (uninstall-@DIR@PROGRAMS): Likewise.
3680
3681         * automake.in (lang_lex_finish): Rewrite `l', not `y', to `c'.
3682         From Ralf Corsepius.
3683
3684 1999-02-01  Thomas Tanner  <tanner@gmx.de>
3685
3686         * automake.in: accept both A(C|M)_PROG_LIBTOOL, print a
3687         warning when AM_PROG_LIBTOOL was found
3688         * automake.texi: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
3689
3690 1999-03-22  Tom Tromey  <tromey@cygnus.com>
3691
3692         Made `+=' more robust.  Fixes pluseq6.test and pluseq7.test.
3693         * automake.in (define_standard_variables): New sub.
3694         (read_main_am_file): Use two passes to scan standard variables.
3695         (read_am_file): Don't special-case configure variables with `+='.
3696         (initialize_per_input): Initialize %var_was_plus_eq.
3697         (read_am_file): Set var_was_plus_eq element correctly.
3698         (define_variable): Give error if variable assigned with `+=' is
3699         internally defined.
3700         (initialize_per_input): Initialize %am_var_defs.
3701         (file_contents_with_transform): Set element in %am_var_defs.
3702         (read_am_file): Use %am_var_defs.
3703
3704 1999-03-21  Tom Tromey  <tromey@cygnus.com>
3705
3706         * automake.in (initialize_per_input): Initialize %object_map.
3707         (handle_single_transform_list): Allow source files in
3708         subdirectories.
3709
3710 1999-03-21  Jim Meyering  <meyering@na-net.ornl.gov>
3711
3712         * automake.in (handle_dist): Add missing newline after the first
3713         semicolon.
3714
3715 1999-03-11  Tom Tromey  <tromey@cygnus.com>
3716
3717         * m4/error.m4, m4/mktime.m4, m4/obstack.m4, m4/regex.m4,
3718         m4/strtod.m4: Use $ac_objext, not `.o'.  From Jim Meyering.
3719
3720         From Jim Meyering:
3721         * automake.in (handle_dist): Add `;\' to end of distcheck-hook
3722         line.
3723         (scan_one_configure_file): In LIBOBJS, recognize `$ac_objext' as
3724         legitimate ending.  Fixes libobj9.test.
3725
3726         From Ralf Corsepius.  Fixes lex3.test.
3727         * automake.in (lang_yacc_finish): Include `.' in name pushed onto
3728         maintainer-clean list.
3729         (lang_lex_finish): Likewise.
3730
3731 1999-03-02  Tom Tromey  <tromey@cygnus.com>
3732
3733         * subdirs.am (maintainer-clean-recursive): Changed "&&" into "if"
3734         construct to work around FreeBSD make/sh problem.  From Rich Wales.
3735
3736 1999-03-01  Tom Tromey  <tromey@cygnus.com>
3737
3738         Fixes from Pavel Roskin:
3739         * automake.in (variable_conditions_sub): Sort list passed to
3740         variable_conditions_permutations.
3741         (variable_conditions): Sort list before returning.
3742
3743 1999-02-27  Tom Tromey  <tromey@cygnus.com>
3744
3745         * automake.in (lang_extensions): New sub.
3746         (handle_dependencies): Use it.
3747         (cxx_extensions): Removed.
3748         (lang_cxx_finish): Use lang_extensions.
3749         (f77_extensions): Removed.
3750         (lang_f77_finish): Use lang_extensions.
3751         (objc_extensions): Removed.
3752         (lang_ppf77_finish): Put `.' before extension.  Fixes ext.test.
3753         Report from Dave Morrison.
3754         (lang_ratfor_finish): Likewise.
3755
3756 1999-02-26  Tom Tromey  <tromey@cygnus.com>
3757
3758         * automake.in (finish_languages): Added AM_LDFLAGS.
3759         (lang_cxx_finish): Likewise.
3760         (lang_f77_finish): Likewise.
3761         (lang_ppf77_finish): Likewise.
3762         (lang_ratfor_finish): Likewise.
3763         (lang_objc_finish): Likewise.
3764
3765 1999-02-11  Tom Tromey  <tromey@cygnus.com>
3766
3767         * aclocal.in (obsolete_macros): Copied from automake.in.
3768         (obsolete_rx): Use only keys of obsolete_macros.
3769         (scan_configure): Report replacement macro for an obsolete macro.
3770         * automake.in (obsolete_macros): Added ud_GNU_GETTEXT.
3771
3772         * automake.in (obsolete_macros): Corrected typo in AM_EXEEXT
3773         entry.  Fixes obsolete2.test.
3774
3775         * automake.in (obsolete_macros): Use empty string to indicate no
3776         substitution.
3777         (scan_one_configure_file): Likewise.
3778
3779 1999-02-07  Paul Eggert  <eggert@twinsun.com>
3780
3781         * m4/ccstdc.m4 (AM_PROG_CC_STDC): Prefer -Ae to -Aa
3782         -D_HPUX_SOURCE, since -Ae allows `long long' and this is
3783         needed by some programs.
3784
3785 1999-02-10  Tom Tromey  <tromey@cygnus.com>
3786
3787         * automake.in (handle_texinfo): Added `pgs' to list of
3788         extensions.  From NISHIDA Keisuke.
3789
3790 1999-02-04  Akim Demaille  <demaille@inf.enst.fr>
3791
3792         * automake.in (handle_texinfo): remove texinfo.tex from
3793         TEXINFODIR.
3794
3795 1999-02-02  Tom Tromey  <tromey@cygnus.com>
3796
3797         * automake.in (handle_merge_targets): Use INSTALL_STRIP_FLAG.
3798         * progs.am (install-@DIR@PROGRAMS): Added INSTALL_STRIP_FLAG.
3799         * header-vars.am (INSTALL_PROGRAM): Removed
3800         AM_INSTALL_PROGRAM_FLAGS.
3801         (INSTALL_STRIP_FLAG): New macro.
3802
3803         * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++
3804         lex source.
3805         (lang_yacc_finish): Likewise.
3806         (lang_lex_finish): Likewise.
3807
3808 1999-02-01  Tom Tromey  <tromey@cygnus.com>
3809
3810         * automake.in (handle_dist_worker): Correctly find find in $$d,
3811         not $$.  From Bill Davidson.
3812
3813         * automake.in (finish_languages): Use "&", not "do".  From Pavel
3814         Roskin.
3815         (handle_single_transform_list): Likewise.
3816
3817 1999-01-29  Tom Tromey  <tromey@cygnus.com>
3818
3819         * automake.in (handle_configure): Removed unused variable.  From
3820         Pavel Roskin.
3821
3822         * ansi2knr.c: New version from L. Peter Deutsch.
3823
3824 1999-01-22  Tom Tromey  <tromey@cygnus.com>
3825
3826         * automake.in (require_file_internal): Correctly examine return
3827         value of `system'.  From Andris Pavenis.  Fixes copy.test.
3828
3829         * m4/init.m4 (AM_INIT_AUTOMAKE): Require autoconf 2.13.
3830
3831         * automake.in (lang_ppf77_rewrite): New function.  From Jochen
3832         Kuepper.  Fixes ppf77.test.
3833         (lang_ratfor_rewrite): New function
3834
3835         * automake.in (handle_configure): Use `&' before sub calls (Perl 4
3836         fix).  From Erez Zadok.
3837
3838 1999-01-15  Tom Tromey  <tromey@cygnus.com>
3839
3840         * configure.in: Version 1.4a (oops).
3841
3842         * configure.in: Updated version to 1.5a.
3843
3844 1999-01-14  Tom Tromey  <tromey@cygnus.com>
3845
3846         * automake.in (handle_configure): Compute $header_dir based on
3847         $one_name, not $one_hdr.  Reported by Erez Zadok.  Fixes
3848         confh2.test.
3849         (handle_configure): Compute relative path to input header
3850         correctly in all cases.
3851
3852         * automake.in (handle_tests): Avoid error messages from dejagnu
3853         test rules.  From Karl Heuer.
3854
3855         * automake.in (handle_texinfo): Add `/' to end of $conf_dir.
3856
3857         * Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'.
3858
3859         * texi-vers.am ($(srcdir)/stamp-@VTI@): Find @TEXI@ in srcdir.
3860         From Alexandre Oliva and Erez Zadok.
3861
3862         * automake.in (create): Renamed from touch.
3863         (handle_configure): Use create, not touch.
3864
3865         * config.sub, config.guess: New versions from autoconf.
3866
3867         * mkinstalldirs: New version from autoconf.
3868
3869 1999-01-12  Tom Tromey  <tromey@cygnus.com>
3870
3871         * config.sub, config.guess, COPYING, texinfo.tex: New versions
3872         from FSF.
3873
3874 1999-01-11  Marcus G. Daniels  <mgd@chama.santafe.edu>
3875
3876         * automake.in (PATH_PATTERN): New variable:
3877         (INCLUDE_PATTERN): Use it.  Ignore all include commands using
3878         symbols besides $(top_srcdir) and $(srcdir).
3879
3880 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
3881
3882         * automake.in (handle_dist_worker): avoid failure in `make dist'
3883         if last file is a builddir-only file
3884
3885 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
3886
3887         * missing (autoheader): `s' was missing from sed script; grr
3888
3889 1999-01-11  Tom Tromey  <tromey@cygnus.com>
3890
3891         * remake-hdr.am (@STAMP@): Reverted timestamp change.
3892         ($(srcdir)/@STAMP@.in): Likewise.
3893
3894 1999-01-10  Tom Tromey  <tromey@cygnus.com>
3895
3896         * Makefile.am (scriptdir): New macro.
3897         (script_DATA): Likewise.
3898         (install-data-hook): Use them.
3899         (EXTRA_DIST): Added script_DATA.
3900         (installcheck-local): Use script_DATA.
3901
3902         * Makefile.am (pkgdata_DATA): Removed duplicate definition.
3903
3904 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
3905
3906         * missing (autoheader): accept multiple header files
3907         (automake): simplify sed processing
3908
3909 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
3910
3911         * automake.in (handle_configure, stamp_dir): create only one stamp
3912         file per header, instead of one in the top-level directory and one
3913         in the directory that contains the header.
3914
3915 1999-01-10  Tom Tromey  <tromey@cygnus.com>
3916
3917         * automake.in (lang_objc_finish): Formatting fix.
3918
3919         * automake.in (objc_extensions): New sub.
3920         (handle_dependencies): Only generate dependency-tracking code for
3921         ObjC when ObjC source seen.