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