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