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