09f4da339002e865e2053067452c21d118e50e91
[platform/upstream/automake.git] / ChangeLog
1 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2
3         For PR automake/186:
4         * lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
5         * tests/destdir.test: New file.
6         * tests/Makefile.am (TESTS): Add destdir.test.
7
8 2002-05-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
9
10         * automake.in (conditional_true_when): Return false if $WHEN == FALSE.
11         (conditional_is_redundant): Simplify.
12         (conditional_implies_one_of,
13         variable_not_always_defined_in_cond): New functions
14         (macro_define): Reject appends if the variable is not defined in
15         all conditions where `+=' applies.
16         (invert_conditions): Rewrite.  Before this patch,
17         invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
18         would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
19         wrong (these conditions implies "A_FALSE").  Now it outputs (),
20         which just means the input conditions cover all cases.
21         (variable_conditions_permutations): Never output FALSE conditions.
22         * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
23         in the CHECK_FALSE condition to fix the test.
24         * tests/pluseq5.test: Actually check the diagnostic.
25         * tests/pluseq9.test: New file.
26         * tests/Makefile.am (TESTS): Add pluseq9.test.
27
28 2002-05-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
29
30         Fix for PR automake/322:
31         * automake.in (read_am_file): Rename $was_rule as $prev_state, and
32         set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
33         Handle comments continued by backslashes.
34         * tests/comment6.test: New file.
35         * tests/Makefile.am (TESTS): Add comment6.test.
36         Reported by Braden N. McDaniel.
37
38 2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
39             Alexandre Duret-Lutz  <duret_g@epita.fr>
40
41         * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
42         both `program$(EXEEXT)' and `program'; needed under Cygwin.
43         * tests/libtool3.test: New file.
44         * tests/Makefile.am (TESTS): Add libtool3.test.
45
46 2002-05-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
47
48         * TODO: Undust.
49
50 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
51
52         * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
53
54 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
55
56         Erase stamps from the Makefile that generates them.
57
58         * automake.in (handle_configure): Append each used stamp to
59         @distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
60         file is not used anymore.
61         * lib/am/clean.am (distclean-generic): Don't erase stamp-h and
62         stamp-h[0-9]*.
63         * tests/subdir6.test: New file.
64         * tests/Makefile.am (TESTS): Add it.
65
66 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
67
68         Fix for condd.test (conditional `+='):
69         * automake.in (%appendvar): New.
70         (initialize_per_input): Clear it.
71         (macro_define): Handle += for variable defined in another condition.
72         * automake.texi (Conditional Sources): Use conditional += in
73         the example.
74         (General Operation, Conditionals): Remove note about broken +=.
75         * tests/cond21.test: New file.
76         * tests/condd.test: Also test conditional append to a _SOURCE
77         variable.  Create missing directories.
78         * tests/Makefile.am (TESTS): Add cond21.test.
79         (XFAILS): Remove condd.test.
80
81 2002-05-05  Tom Tromey  <tromey@redhat.com>
82
83         * automake.texi (Program and Library Variables): Mention _LFLAGS.
84
85 2002-04-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
86
87         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
88         files.  Fix subobj9.test on OSF and IRIX.
89         Reported by Nelson H. F. Beebe.
90
91 2002-04-26  Tom Tromey  <tromey@redhat.com>
92
93         * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
94         For Debian bug 144221.
95
96 2002-04-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
97
98         * tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.
99
100 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
101
102         * automake.in (subobjname): Use the length of %subobjvar
103         instead of $subobjnamenum.
104         (subobjnamenum): Remove.
105
106 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
107
108         For PR automake/307:
109         * lib/depcomp: Never compute dependencies in the background, this
110         can cause races with libtool.  Compute the dependencies after
111         the actual compilation.  Don't make libtool silent now that
112         it's run in the foreground.
113         * tests/pr307.test: New file.
114         * tests/Makefile.am (TESTS): Add pr307.test.
115         Reported by Laurent Morichetti.
116
117 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
118
119         * lib/am/check.am: Show skipped tests.  Display the
120         $(PACKAGE_BUGREPORT) address on failure.
121
122 2002-04-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
123
124         Fix PR automake/315:
125         * automake.in (subobjname): Rewrite to generate variable name
126         unique for each content.
127         (%substnums): Remove.
128         (%subobjvar): New hash.
129         (initialize_per_input): Clear %subobjvar.
130         (define_objects_from_sources): Return the name of the variable
131         defined, in addition to the linker.  Call subobjname only once
132         the content of the variable to define is known.
133         (handle_source_transform): Adjust call to define_objects_from_sources.
134         * tests/specflags8.test: Mention PR 315.
135         * tests/subobjname.test: New file.
136         * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
137         (TESTS): Add subobjname.test.
138
139 2002-04-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
140
141         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
142         the whole file for 'generated by automake', not only the
143         first line.  This accounts for post-processed Makefile.in's.
144         * tests/postproc.test: New file.
145         * tests/Makefile.am (TESTS): Add postproc.test.
146
147 2002-04-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
148
149         For PR automake/151 and PR automake/314:
150         * automake.texi (A Program): Split into
151         (Program Sources, Linking, Conditional Sources, Conditional
152         Programs): ... these subsections; moving the Linking node
153         before the Conditional discussions.
154         (Conditional Sources): More details.  Notably, mention
155         hello_DEPENDENCIES.
156         (Conditionals): Adjust reference to Conditional Programs.
157
158 2002-04-19  Paul Eggert  <eggert@twinsun.com>
159
160         Fix some bugs when using "$@" when there might be zero positional
161         arguments in cases where this matters.  Zsh doesn't support
162         the workaround ${1+"$@"} that has been used by Automake since
163         the Mon Dec  4 11:55:36 1995 change.
164
165         * aclocal.in: Use 'case' statement to work around problem.
166         * automake.in: Likewise.
167         * lib/ylwrap: Likewise.
168         * lib/missing: No need for workaround, as the command is never
169         invoked with zero arguments.
170         * tests/ccnoco.test: Likewise.
171         * missing: Update from lib/missing.
172
173 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
174
175         * automake.in (initialize_per_input): Clear %require_file_found.
176         (%require_file_found): Group the declaration with the other
177         variables initialized by initialize_per_input.
178         * tests/required.test: New file.
179         * tests/Makefile.am (TESTS): Add it.
180         Reported by Marius Vollmer.
181
182 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
183
184         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function,
185         override AC_CONFIG_HEADERS with AM_CONFIG_HEADER.
186         (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS.
187         * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE.
188         * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config
189         files.
190         * tests/confh5.test: New file.
191         * tests/Makefile.am (TESTS): Add confh5.test.
192         * automake.texi (Optional, Public macros): Update descriptions
193         of AC_CONFIG_HEADERS and AM_CONFIG_HEADER.
194
195 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
196
197         * tests/man2.test: New file.
198         * tests/Makefile.am (TESTS): Add man2.test.
199         * lib/am/mans.am (install-man%SECTION%): Change the extension
200         of the man pages being installed, as documented.
201
202 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
203
204         Enable traces; wipe out the old configure.in parser.
205
206         * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of
207         'autoconf'.  Honnor the $filename argument.
208         (scan_autoconf_files): Don't call scan_one_autoconf_file.
209         Always call scan_autoconf_traces.
210         (scan_one_autoconf_file): Remove, with it associated regexes.
211         (obsolete, obsolete_rx): Remove.
212         (register_language, handle_languages): Remove the 'define_flag'
213         support.  Remove it from the struct and language definitions too.
214         (unquote_m4_arg): Remove.
215         * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove
216         the `FOO = @FOO@' definitions for all AC_SUBST'ed variables.  They
217         are now generated automatically.
218         * aclocal.in (obsolete_macros): Don't mention obsolete_macros in
219         automake.in.
220         * automake.texi (Invoking Automake): Mention the AUTOCONF envvar.
221
222 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
223
224         * tests/version6.test: New file.
225         * tests/Makefile.am (TESTS): Add tests/version6.test.
226         * automake.in (version_check): Return 0 on equality.
227
228 2002-04-13  Andreas Schwab  <schwab@suse.de>
229
230         * THANKS: Update my mail address.
231
232 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
233
234         * tests/discover.test: Use a full configure.in that calls AC_INIT.
235         Use AC_LIBOBJ.  Grep the error message.
236         * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
237         Grep the error message.  Require libtool.
238         * tests/ldflags.test:  Don't use LIBOBJS.
239         * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
240         error messages for CC and CXX.
241
242 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
243
244         * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
245         and AMDEPBACKSLASH.
246         * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
247         * tests/ext.test: Enable dependencies for OBJC.
248         * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
249         Delete.  They tests for different flavors of $LIBOBJS assignments
250         that wont be supported anymore.
251         * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
252         * tests/obsolete.test: Don't test Automake.
253         * tests/suffix5.test: Require libtool.
254         * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
255         libobj9.test.
256
257 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
258
259         * configure.in (APIVERSION): Fix definition.
260
261 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
262
263         * NEWS: Catch up with changes since 1.6.
264
265 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
266
267         * tests/yacc8.test: Don't assume GNU make, run config.status
268         to regenerate the Makefile.
269
270 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
271
272         * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
273         always followed by a SHELL setting.
274         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
275         SHELL when calling `$MAKE -e'.
276
277 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
278
279         * tests/subobj9.test: Use configure.in, not configure.ac,
280         otherwise this fails with old libtool versions.
281
282 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
283
284         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
285         versions.
286
287 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
288
289         * ChangeLog.2001: New file, extracted from ChangeLog.
290         * Makefile.am (EXTRA_DIST): Add it.
291
292 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
293
294         * automake.texi (Canonicalization): The sources for libmumble++.a
295         go into libmumble___a_SOURCES.
296
297 2002-04-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
298
299         * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
300         test suite.  Suggest `sleep 2' instead.
301         * tests/confsub.test: Use `sleep 2'.
302
303 2002-04-04  Paul Eggert  <eggert@twinsun.com>
304
305         * lib/am/subdirs.am:
306         ($(RECURSIVE_TARGETS), maintainer-clean-recursive):
307         $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if
308         MAKEFLAGS contains '$(...)'.
309
310 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
311
312         * tests/specflags8.test: Typo.
313
314 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
315
316         * tests/specflags6.test: Run aclocal.
317         * tests/Makefile.am (TESTS): Add specflags6.test.
318
319 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
320
321         * tests/specflags7.test, tests/specflags8.test: New files.
322         * tests/Makefile.am (TESTS): Add them.
323         (XFAIL_TESTS): Add specflags8.test.
324
325 2002-03-29  Tom Tromey  <tromey@redhat.com>
326
327         * automake.in (check_typos): Examine AM_LDFLAGS.
328         Fixes PR automake/311.
329
330         For PR automake/312:
331         * lib/am/libtool.am (clean-libtool): Use LTRMS.
332         * automake.in (handle_single_transform_list): When processing a
333         libtool object, clean the ordinary object and register the
334         directory.
335         (libtool_clean_directories): New global.
336         (initialize_per_input): Initialize it.
337         (generate_makefile): Call handle_libtool later.
338         (handle_libtool): Handle libtool_clean_directories.
339         * tests/subobj9.test: New file.
340         * tests/Makefile.am (TESTS): Added subobj9.test.
341
342 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
343
344         * tests/extra6.test, tests/subdir5.test: Require GNU make.
345
346 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
347
348         * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/.
349
350 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
351
352         * tests/extra7.test: New file.
353         * tests/Makefile.am: Add it.
354         * lib/am/distdir.an (distdir): When a distribuable directory
355         exists both in `.' and $(srcdir), merge both directories.  This
356         works around a failure of extra6.test on Tru64 reported by
357         Nicolas Joly.
358
359 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
360
361         * tests/pr87.test, tests/yaccvpath.test: Require GNU make.
362
363 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
364
365         * Makefile.am (maintainer-check): Catch occurrences of
366         `$MAKE foo=bar' in the testsuite.  Suggest using
367         `foo=bar $MAKE -e' instead.
368         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test:
369         Use $MAKE -e.  This fixes a ansi5.test failure with Solaris make.
370         * tests/defs: Unset $srcdir, and set $testsrcdir to its old value.
371         * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir.
372
373 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
374
375         Fix for PR automake/310:
376         * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE%
377         so it never appears as a plain word.
378
379 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
380
381         * lib/depcomp (tru64): Correctly compute `base'.
382
383 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
384
385         * tests/pr211.test: s/requires/required/, otherwise the test fails
386         if libtool is not installed.
387
388 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
389
390         * tests/dirname.test: Don't use $SHELL when calling ./configure.
391
392 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
393
394         * tests/dirname.test: Use --quiet to fix failure on installations
395         using a site script.
396         Reported by Nicolas Joly.
397
398 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
399
400         * Makefile.am (maintainer-check): Check for misuses of make,
401         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
402         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
403         * tests/confsub.test: Use $AUTOCONF and $MAKE.
404         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
405         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
406         tests/pr224.test, tests/pr287.test, tests/strip.test,
407         tests/yacc8.test: Use $MAKE.
408
409 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
410
411         Add support for two-dot versions.
412
413         * tests/version5.test: New file.
414         * tests/Makefile.am (TESTS): Add it.
415         * automake.in (version_split, version_compare): New functions.
416         (version_check): Rewrite using version_split and version_compare.
417         (process_option_list): Adjust regex.
418
419 2002-03-18  Richard Boulton <richard@tartarus.org>
420
421         Fix for PR automake/306:
422         * automake.texi (Generalities): Document +=.
423         (Conditionals): Document limitations of += with conditionals.
424
425 2002-03-17  Tom Tromey  <tromey@redhat.com>
426
427         Fix for PR automake/295:
428         * automake.texi (Invoking Automake): Deprecate --output-dir.
429         * automake.in (usage): Don't document --output-dir.
430         (output_directory): Don't initialize.
431         (parse_arguments): Deprecate --output-dir.
432
433         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
434         Fixes PR automake/304.
435
436 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
437
438         * tests/dirforbid.test: Workaround for NetBSD sh bug.
439         Fixes PR automake/305.
440
441 2002-03-11  Richard Boulton <richard@tartarus.org>
442
443         * automake.in (check_typos): Allow variables with reserved
444         suffices (such as _LDFLAGS) and prefixes which aren't
445         recognised if the variable is defined in configure.ac.
446         Fixes acsubst.test.
447
448 2002-03-11  Richard Boulton <richard@tartarus.org>
449
450         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
451         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
452         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
453
454 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
455
456         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
457         causes failures.
458
459 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
460
461         Fix for PR automake/303:
462         * automake.in (version_check): Move the error message ...
463         (process_option_list): ... here, so we can distinguish between
464         global and local options.
465
466 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
467
468         * tests/pr300-lib.test, tests/pr300-ltlib.test,
469         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
470         Autoconf doesn't complain about Makefile being output twice.
471
472 2002-03-06  Tom Tromey  <tromey@redhat.com>
473
474         * configure.in: Upped version to 1.6a.
475
476 2002-03-05  Tom Tromey  <tromey@redhat.com>
477
478         * configure.in: Released 1.6.
479
480 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
481
482         Fix for PR automake/300:
483         * tests/pr300-lib.test, tests/pr300-ltlib.test,
484         tests/pr300-prog.test: New files.
485         * tests/Makefile.am (TESTS): Add them.
486         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
487         compute the directory.
488         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
489         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
490         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
491         (uninstall-%DIR%LIBRARIES): Honor nobase_.
492         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
493         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
494         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
495         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
496         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
497         (uninstall-%DIR%PROGRAMS): Honor nobase_.
498         See also the fix for nobase.test on 2001-11-09.
499
500 2002-03-05  Tom Tromey  <tromey@redhat.com>
501
502         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
503
504 2002-03-05  Pavel Roskin  <proski@gnu.org>
505
506         * tests/yacc8.test: Add a command between "test" and "cd" to
507         work around a bug in bash-2.05.
508
509 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
510
511         Fix for PR automake/294:
512         * tests/dirforbid.test: New file.
513         * tests/Makefile.am (TESTS): Add it.
514         * automake.in (standard_prefix): New hash.
515         (am_primary_prefixes): Forbid standard_prefixes which are not
516         explicitely allowed.
517         * automake.texi (Uniform): Remove FIXME.
518
519 2002-03-05  Jim Meyering  <meyering@lucent.com>
520
521         * automake.in (@common_files): Add config.rpath.
522
523 2002-03-05  Kevin Ryde  <user42@zip.com.au>
524
525         For PR automake/297:
526         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
527         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
528         2.52 at least).
529
530 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
531
532         * automake.in (scan_one_autoconf_file): Declare
533         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
534         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
535         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
536         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
537         of s/// in the sed invocation, to support filenames containing
538         slashes.
539         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
540         * tests/lex5.test, tests/yacc8.test: New files.
541         * tests/Makefile.am (TESTS): Add them.
542
543 2002-02-23  Per Bothner  <per@bothner.com>
544
545         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
546         `.' in else branch.
547
548 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
549
550         * tests/make.test: Revert the grep logic to work around a bug
551         in NetBSD sh (see NetBSD Problem Report #11542).
552         Reported by Patrick Welche.
553
554 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
555
556         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
557         to try and prevent a non-lisp emacs from starting in interactive
558         mode.
559         * automake.texi: Document this change.
560
561 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
562
563         * automake.texi (Macros): Split into ...
564         (Public Macros, Private Macros): ... these.
565
566 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
567
568         * tests/insthook.test: Use sed instead of "tail +X".
569
570 2002-02-18  Paul Eggert  <eggert@twinsun.com>
571
572         * lib/depcomp: Don't use "tail +3"; it's not portable to
573         POSIX 1003.1-2001 hosts.
574
575 2002-02-18  Jim Meyering  <meyering@lucent.com>
576
577         * tests/cond12.test: Use sed 1q, not `head -n 1'.
578         The latter is not portable to some old systems.
579         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
580         Use `sed 1q' instead.
581         * tests/insthook.test: Likewise.
582
583 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
584
585         * automake.in (handle_lib_objects_cond): Tell the user to put
586         global linker flags in AM_LDFLAGS, not LDFLAGS.
587
588         * automake.texi (General Operation): AC_SUBST'ed variables
589         override Automake's variables.
590         (Uniform): More words and @refs.
591         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
592         (etags): More explanations about the first example.
593         (Invoking Automake): Mention autoreconf.  More @refs.
594         (Requirements): Mention AC_CONFIG_FILES.
595         (Optional): AC_CHECK_TOOL will no longer install config.sub and
596         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
597         (Invoking aclocal): aclocal no longer warn about duplicates.
598         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
599         (Extending aclocal): Suggest using the output of
600         `aclocal --print-ac-dir` to install third-party macros.
601         (Alternative): Specify ordering of dist_, nodist_, and nobase_
602         prefixes.
603         (A Program): Mention scripts.  The global LDADD variable is not
604         meant to hold link flags, suggest using AM_LDFLAGS instead.
605         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
606         _LIBADD and _LDADD are subject to the same restriction wrt to
607         link flags.
608         (Program and Library Variables) <maude_DEPENDECIES>: Is also
609         derived from maude_LIBADD.
610         (Program variables): Define AM_LDFLAGS.
611         (Dependencies): Passing the no-dependencies option to
612         AM_INIT_AUTOMAKE is prefered.
613         (Scripts): Explain why automake is magically cleaned.
614         Mention noinst_SCRIPTS and check_SCRIPTS.
615         (Data): Use dist_ in Automake's example.
616         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
617         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
618
619 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
620
621         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
622         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
623         of asking the maintainer to do it manually.
624         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
625         Automake/XFile.pm: New upstream versions.
626
627 2002-02-02  Tom Tromey  <tromey@redhat.com>
628
629         * automake.texi (Macros): Warn about upgrading.
630
631 2002-02-01  Tom Tromey  <tromey@redhat.com>
632
633         Change per GNU coding standards:
634         * aclocal.in (parse_arguments): Only mention most recent year in
635         copyright output.
636         * automake.in (version): Only mention most recent year.
637
638 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
639
640         * automake.texi (API versioning): New Node.
641         (Extending): Use $(DESTDIR) in examples.
642
643 2002-01-28  Akim Demaille  <akim@epita.fr>
644
645         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
646         Respect the --help layout.
647
648 2002-01-27  Tom Tromey  <tromey@redhat.com>
649
650         * configure.in: Bumped to 1.5e.
651
652         * lib/am/yacc.am: Use `rm -f'.
653
654         * configure.in: Released 1.5d.
655
656         * lib/config.guess: New version from FSF.
657
658         * Makefile.am (uninstall-hook): New target.
659
660 2002-01-24  Akim Demaille  <akim@epita.fr>
661
662         * lib/install-sh: Update, from Autoconf.
663
664 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
665
666         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
667         as AC_CANONICAL_HOST (the former does not require the latter since
668         Autoconf 2.50).
669         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
670         * automake.texi (Requirements): Do not require STRIP to be
671         defined by the user.
672
673 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
674
675         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
676         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
677         * tests/pr224.test: Make sure .deps subdirectories are
678         erased by distclean.
679
680 2002-01-22  Tom Tromey  <tromey@redhat.com>
681
682         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
683         no-dependencies option is set.
684         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
685         no-dependencies option is set.  Don't call AM_DEP_TRACK or
686         AM_SET_DEPDIR.
687
688 2002-01-22  Pavel Roskin  <proski@gnu.org>
689
690         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
691         ASFLAGS.
692
693 2002-01-22  Akim Demaille  <akim@epita.fr>
694
695         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
696         (fetch): Adjust.
697
698 2002-01-21  Tom Tromey  <tromey@redhat.com>
699
700         * Makefile.am (fetch): Don't fetch ansi2knr.
701
702         * automake.texi (Macros): Updated for new variable names.
703         (Program and Library Variables): Likewise.
704         (Assembly Support): Likewise.
705         * m4/as.m4: Use CCAS and CCASFLAGS.
706         * automake.in (asm): Use CCAS and CCASFLAGS.
707
708 2002-01-21  Akim Demaille  <akim@epita.fr>
709
710         * automake.in (&parse_arguments): Use a more GNUish error message
711         on wrong options.
712
713 2002-01-20  Tom Tromey  <tromey@redhat.com>
714
715         Fix for PR automake/231:
716         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
717         * m4/depend.m4: Document `GCJ'.
718
719         For PR automake/224:
720         * tests/Makefile.am (TESTS): Added pr224.test.
721         * tests/pr224.test: New file.
722         * lib/depcomp: Fixed computation of depfile.
723         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
724         * automake.in (handle_single_transform_list): Only reject `..'
725         component for Java.  Put dependencies in directory near object.
726         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
727
728 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
729
730         * tests/defs: Export AUTOMAKE and ACLOCAL.
731
732 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
733
734         Fix for PR automake/204:
735         * tests/pr204.test: New file.
736         * tests/Makefile.am (TESTS): Add it.
737         * automake.in (handle_single_transform_list): Don't distribute
738         sources derived from non-distributed sources.
739
740 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
741
742         Fix for PR automake/229:
743         * tests/pr229.test: New file.
744         * tests/Makefile.am (TESTS): Add it.
745         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
746         AC_EMXOS2, and AC_MINGW32.
747
748 2002-01-18  Tom Tromey  <tromey@redhat.com>
749
750         * tests/cond7.test: Fix test bug exposed by copyright update.
751
752         For PR automake/288:
753         * automake.in (lang_c_rewrite): Don't prepend directory to base if
754         directory is `.'.  Also, properly compute de_ansi_files entry in
755         subdir-objects case
756         * tests/Makefile.am (TESTS): Added ansi7.test.
757         * tests/ansi7.test: New file.
758
759         * aclocal.in (parse_arguments): Added 2002.
760         (write_aclocal): Likewise.
761         (parse_arguments): Updated my email address.
762         * automake.in (gen_copyright): Added 2002.
763         (version): Likewise.  Also, changed my email address.
764
765         * configure.in (APIVERSION): Refined definition.
766
767 2002-01-18  Tom Tromey  <tromey@redhat.com>
768
769         * missing: Updated.
770         * lib/missing: Accept versioned aclocal.
771         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
772
773 2002-01-17  Pavel Roskin  <proski@gnu.org>
774
775         * m4/Makefile.am (m4datadir): Use APIVERSION.
776
777 2002-01-16  Tom Tromey  <tromey@redhat.com>
778
779         * Makefile.am (install-exec-hook): Use APIVERSION.
780         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
781         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
782         APIVERSION.
783         * automake.in (perllibdir): Use APIVERSION.
784         (libdir): Likewise.
785         * aclocal.in (perllibdir): Use APIVERSION.
786         (APIVERSION): New global.
787         (parse_arguments): Use APIVERSION.
788         * configure.in (APIVERSION): New subst.
789         (pkgvdatadir): Use APIVERSION.
790
791 2002-01-15  Tom Tromey  <tromey@redhat.com>
792
793         * missing: Updated.
794         * lib/missing: Match against `automake*' to pick up versioned
795         automake.
796         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
797         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
798         variable.
799         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
800         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
801         pkgvdatadir.
802         (scriptdir): Use pkgvdatadir.
803         (installcheck-local): Likewise.
804         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
805         * automake.in (perllibdir): Added VERSION.
806         (libdir): Likewise.
807         * aclocal.in (parse_arguments): Search versioned directory.  Don't
808         push unversioned directory unless it exists.
809         (perllibdir): Added VERSION.
810         (default_acdir): New global.
811         * m4/Makefile.am (m4datadir): Added $(VERSION).
812         * Makefile.am (install-exec-hook): New target.
813         * configure.in (ACLOCAL): Search build directory.
814         (pkgvdatadir): New subst.
815
816 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
817
818         * lib/config.sub, lib/config.guess: New versions from FSF.
819
820 2002-01-13  Tom Tromey  <tromey@redhat.com>
821
822         For PR automake/288:
823         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
824         to directory.
825         (lang_c_finish): Likewise.  Also, use directory information from
826         de_ansi_files.
827
828 2002-01-13  Kevin Ryde  <user42@zip.com.au>
829
830         For PR automake/288:
831         * tests/Makefile.am (TESTS): Added ansi6.test.
832         * tests/ansi6.test: New file.
833
834 2002-01-13  Tom Tromey  <tromey@redhat.com>
835
836         For PR automake/287:
837         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
838         over subdirs.
839         * tests/Makefile.am (TESTS): Added pr287.test.
840         * tests/pr287.test: New file.
841
842 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
843
844         * lib/am/distdir.am (distdir): Handle subdirectories.
845         * tests/extra6.test: New file.
846         * tests/Makefile.am (TESTS): Add it.
847
848 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
849
850         * tests/extra2.test: Run $ACLOCAL.
851
852 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
853
854         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
855         AM_INIT_AUTOMAKE arguments when using the old-style call.
856         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
857         Suggested by Pavel Roskin.
858
859 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
860
861         * test/nodefine.test, test/nodefine2.test: Check that no-define
862         works, not the contrary...
863         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
864         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
865         not the contrary.
866
867 2002-01-12  Jim Meyering  <meyering@lucent.com>
868
869         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
870         * tests/libobj11.test: New file.
871         * tests/Makefile.am (TESTS): Add libobj11.test.
872
873 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
874
875         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
876
877 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
878
879         * automake.in (file_contents_internal): Introduce two variables,
880         $is_rule and $discard_rules to track rules spanning across multiple
881         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
882         where only the first paragraph of such a multi-paragraph rule was
883         discarded; but it leaves many similar latent bugs (see the FIXMEs).
884
885 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
886
887         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
888         * tests/error.test: Use some macro names which are not defined by
889         Automake itself.
890
891 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
892
893         * automake.texi (Complete, Macros, Options): Document the new style
894         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
895         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
896         AC_INIT if they are available there.  Support a new call form
897         where the only argument is an optional space-separated list of
898         Automake options.
899         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
900         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
901         _AM_IF_OPTION): New functions.
902         * automake.in (AC_INIT_PATTERN): New variable.
903         (global_options_line): Remove, use $seen_init_automake instead.
904         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
905         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
906         Remove the AM_AUTOMAKE_OPTIONS handling.
907         * configure.in: Modernize.
908         * tests/defs (configure.in): Modernize.  One third of the tests
909         still overwrite the default configure.in and use an old
910         AM_INIT_AUTOMAKE call,  so that makes testing for both.
911         * tests/nodefine.test, tests/nodefine2.test: New files.
912         * tests/Makefile.am (TESTS): Add them.
913
914 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
915
916         * automake.in (define_configure_variable): Propagate line numbers.
917
918 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
919
920         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
921
922 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
923
924         * configure.in: Run the Autoconf test in a subdirectory, then
925         erase this directory.
926
927 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
928
929         * configure.in (AUTOMAKE): Create m4/amversion.m4.
930         * m4/amversion.in: New file.
931         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
932         (dist_m4data_DATA): ... this.
933         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
934         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
935         AM_SET_CURRENT_AUTOMAKE_VERSION.
936         * automake.in (seen_automake_version): New variable.
937         (scan_autoconf_traces, scan_one_autoconf_file,
938         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
939         when the version used in aclocal.m4 differs from Automake's.
940         * tests/defs (ACLOCAL): Look in ../m4 too.
941         * tests/installsh.test (ACLOCAL): Likewise.
942         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
943
944 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
945
946         * automake.in (handle_languages): Emit an automake
947         internal variable 'am__depfiles_maybe'.
948         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
949
950         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
951         config.status.
952
953 2002-01-06  Tom Tromey  <tromey@redhat.com>
954
955         * automake.texi (Tags): Document new variables.
956         * lib/am/tags.am (ETAGS): New macro.
957         (ETAGSFLAGS): Likewise.
958         (TAGS): Use them.
959
960 2002-01-04  Tom Tromey  <tromey@redhat.com>
961
962         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
963
964 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
965
966         * automake.in (read_am_file): Thinko in "comment following
967         trailing backslash" detection.
968         * tests/comment5.test: Test for this too.
969
970 2002-01-02  Tom Tromey  <tromey@redhat.com>
971
972         * automake.texi (Extending): Added index for uninstall-hook.
973
974 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
975
976         Fix for PR automake/278:
977         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
978         with versions such as '2.2c1'.  Also, use `int' instead of the
979         obsoleted `string.atoi'.
980         Reported by Enrico Scholz.
981
982 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
983
984         Fix for PR automake/280:
985         * automake.in (read_am_file): Warn about trailing backslashes
986         in comments.
987         * tests/comment5.test: New file.
988         * tests/Makefile.am (TESTS): Add comment5.test.
989         Reported by Enrico Scholz.
990
991 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
992
993         * tests/comment4.test: New file.
994         * tests/Makefile.am (TESTS): Add comment4.test.
995
996         Fix for comment4.test:
997         * automake.in (read_am_file): Output leading comments only when
998         encountering white lines.
999
1000 2002-01-01  Tom Tromey  <tromey@redhat.com>
1001
1002         For PR automake/234:
1003         * tests/Makefile.am (TESTS): Added strip.test.
1004         * tests/strip.test: New file.
1005
1006         * automake.texi (Extending): Mention uninstall-hook.
1007         (Install): Likewise.
1008         * automake.in (handle_factored_dependencies): Allow
1009         uninstall-hook.
1010
1011 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1012
1013         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
1014         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
1015         This fixes a bug introduced on 2001-01-28.
1016         Reported by Jared Davis.
1017
1018 -----
1019
1020 Copyright (C) 2002 Free Software Foundation, Inc.
1021
1022 This file is part of GNU Automake.
1023
1024 GNU Automake is free software; you can redistribute it and/or modify
1025 it under the terms of the GNU General Public License as published by
1026 the Free Software Foundation; either version 2, or (at your option)
1027 any later version.
1028
1029 GNU Automake is distributed in the hope that it will be useful,
1030 but WITHOUT ANY WARRANTY; without even the implied warranty of
1031 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1032 GNU General Public License for more details.
1033
1034 You should have received a copy of the GNU General Public License
1035 along with autoconf; see the file COPYING.  If not, write to
1036 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1037 Boston, MA 02111-1307, USA.