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