1 2003-02-25 Alexandre Duret-Lutz <adl@gnu.org>
3 * automake.in (read_am_file): Catch trailing backslashes on last line.
4 * tests/backsl3.test: New file.
5 * tests/Makefile.am (TESTS): Add backsl3.test.
6 Reported by Akim Demaille.
8 2003-02-24 Alexandre Duret-Lutz <adl@gnu.org>
10 * ChangeLog: Move 2002's entries to ...
11 * ChangeLog.02: ... this new file.
12 * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
14 2003-02-24 Richard Dawe <rich@phekda.freeserve.co.uk>
16 * tests/version7.test: Use $sleep to sleep before updating
17 the version, to work around timestamp inconsistencies in Windows.
19 2003-02-24 Bruno Haible <bruno@clisp.org>
20 Alexandre Duret-Lutz <adl@gnu.org>
22 * lib/am/texibuild.am: Don't remove the target info files. Instead,
23 back up and restore them if makeinfo fails.
24 * tests/txinfo20.test: New file.
25 * tests/Makefile.am (TESTS): Add txinfo20.test.
27 2003-02-23 Alexandre Duret-Lutz <adl@gnu.org>
29 * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
30 (distcleancheck): Fix typos and other errors reported by Karl
33 2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
35 * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
38 * tests/defs.in: Handle required=ro-dir.
39 * tests/destdir.test: Use this.
41 2003-02-19 Richard Dawe <rich@phekda.freeserve.co.uk>
43 * lib/am/distdir.am (distcheck): Strip any leading DOS drive
46 2003-02-19 Alexandre Duret-Lutz <adl@gnu.org>
48 * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
49 DJGPP-style *.iNN info files.
50 (maintainer-clean-aminfo): Rewrite using the same pattern
51 as in uninstall-info-am.
52 * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
53 DJGPP-style *.iNN info files before running $(MAKEINFO).
54 * tests/txinfo19.test: New file.
55 * tests/Makefile.am (TESTS): Add txinfo19.test.
57 2003-02-18 Richard Dawe <rich@phekda.freeserve.co.uk>
59 * lib/depcomp (dashmstdout): Cope with DOS filenames in
62 2003-02-17 Alexandre Duret-Lutz <adl@gnu.org>
64 * lib/depcomp (makedepend): Don't pass $object to makedepend.
65 Reported by Stepan Kasal.
67 2003-02-12 Alexandre Duret-Lutz <adl@gnu.org>
69 * tests/defs.in: Handle required=makedepend.
71 * Makefile.am (maintainer-check): Update the diff check
72 to account for the recent @SHELL@ substitution.
74 2003-02-11 Alexandre Duret-Lutz <adl@gnu.org>
76 * lib/depcomp: Do not put comments on the `icc)' line.
78 * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
81 Fix for PR automake/381:
82 * automake.in (handle_gettext): Do not print diagnostics
83 about po/ and intl/ missing from SUBDIRS if po/ does not
84 exist. Warn if `SUBDIRS = intl' is used although libintl
86 * tests/gettext.test: Make sure diagnostics are not output
87 when po/ does not exist.
88 * tests/gettext2.test: Test for unwanted intl/.
89 PR from Alexander Turbov, fix suggested by Bruno Haible.
91 * m4/depend.m4: Grep depcomp's stderr for icc warnings about
93 * lib/depcomp (icc): New mode.
94 * tests/depcomp5.test: New file.
95 * tests/defs.in: Handle required=icc.
96 * tests/Makefile.am (TESTS): Add it.
98 Temporary hack for PR automake/381:
99 * automake.in (handle_gettext): Turn missing po/ and intl/ errors
100 into -Wsyntax warnings.
102 2003-02-10 Richard Dawe <rich@phekda.freeserve.co.uk>
104 * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
105 This makes the setting of SHELL work for DJGPP.
107 2003-02-10 Alexandre Duret-Lutz <adl@gnu.org>
110 * lib/depcomp (makedepend): Strip any libtool call, before
112 * tests/depcomp4.test: New file.
113 * tests/Makefile.am (TESTS): Add it.
114 Reported by Jeff Squyres.
116 Related to PR automake/385:
117 * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
118 write dependencies to /dev/null. `-o /dev/null' was added
119 on 2002-06-13 just because I tried to replace `-o foo.o' by something
120 else and didn't thought about removing it entirely.
121 * tests/depcomp3.test: New file.
122 * tests/Makefile.am (TESTS): Add it.
124 * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
126 Suggested by Richard Dawe.
128 2003-02-09 Alexandre Duret-Lutz <adl@gnu.org>
130 * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
131 (distcleancheck): New nodes.
133 2003-02-06 Alexandre Duret-Lutz <adl@gnu.org>
135 * automake.in (scan_autoconf_files): Don't complain that
136 AM_INIT_AUTOMAKE comes from an old version if it was not found.
138 2003-02-05 Alexandre Duret-Lutz <adl@gnu.org>
140 * automake.in (am_install_var): Simplify filtering of
141 variable_loc_and_value_as_list_recursive's output.
143 2003-02-04 Alexandre Duret-Lutz <adl@gnu.org>
145 * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
146 indexes of header files so we create stamp files with
147 the right numbers when config.status is run on some headers.
148 * tests/stamph2.test: Check for this.
149 Reported by Sander Niemeijer.
151 2003-02-02 Alexandre Duret-Lutz <adl@gnu.org>
153 * automake.in (vars_scanned): Move near traverse_variable_recursively.
154 (traverse_variable_recursively,
155 traverse_variable_recursively_worker): Accept a $COND_FILTER argument
156 to filter out conditions during recursion. Don't recurse into
157 undefined variables. Don't pass empty results to &FUN_COLLECT.
158 (value_to_list): Remove, was used by
159 variable_value_as_list_recursive_worker only.
160 (variable_value_as_list_recursive_worker): Rewrite using
161 traverse_variable_recursively. Remove the $parent argument.
162 (variable_value_as_list_recursive,
163 variable_loc_and_value_as_list_recursive): Adjust calls
164 to variable_value_as_list_recursive_worker. Don't reset
166 * tests/cond3.test: Don't expect empty helper variables,
167 we don't output them anymore.
168 * tests/cond30.test: Use an undefined variable.
170 * automake.in (handle_programs): Strip $(EXEEXT) before
171 calling &check_canonical_spelling.
172 * tests/exeext.test: Make sure we don't use a
173 maude3__EXEEXT__OBJECTS variable.
175 2003-02-02 Jeremy Nimmer <jwnimmer@alum.mit.edu> (tiny change)
177 For Debian Bug #39542:
178 * automake.texi (Invoking Automake, Optional): Document how
179 AC_CONFIG_AUX_DIR interacts with missing files.
181 2003-02-02 Alexandre Duret-Lutz <adl@gnu.org>
183 * lib/Automake/DisjConditions.pm (_permutations_worker)
184 (permutations): Remove, so that people aren't tempted to use it.
185 * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
187 * automake.in (variable_conditions_recursive): Remove.
188 (variable_conditionally_defined): Rewrite using
189 traverse_variable_recursively.
191 * automake.in (traverse_variable_recursively,
192 traverse_variable_recursively_worker): Pass one merged Condition
193 instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
194 (transform_variable_recursively, define_objects_from_sources)
195 (handle_lib_objects, variable_conditions_recursive): Adjust usage.
197 2003-02-01 Alexandre Duret-Lutz <adl@gnu.org>
199 * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
200 using transform_variable_recursively instead of
201 variable_conditions_recursive and variable_value_as_list_recursive
202 to avoid combinatorial explosion.
203 (handle_lib_objects_cond): Merge into handle_lib_objects.
204 * tests/cond11.test: Don't grep internal details in Makefile.in,
205 run $MAKE to make sure the resulting Makefile runs as expected.
206 * tests/cond29.test: Also exercise conditional _LDADD.
207 * tests/cond31.test, tests/cond32.test: New files.
208 * tests/Makefile.am (TESTS): Add tests/cond31.test and
211 2003-01-31 Alexandre Duret-Lutz <adl@gnu.org>
213 * automake.in (handle_lib_objects_cond): Ignore -dlopen and
214 -dlpreopen in _LIBADD variables too.
215 (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
216 handle_lib_objects_cond.
217 * tests/libtool7.test: New file.
218 * tests/Makefile.am (TESTS): Add libtool7.test.
220 * automake.texi (Program and Library Variables): Clarify that
221 _LIBADD is for libraries and _LDADD for programs.
223 * automake.in (handle_source_transform): Correct typo from 2003-01-23.
225 2003-01-28 Alexandre Duret-Lutz <adl@gnu.org>
227 Fix for PR automake/352:
228 * automake.in (transform_variable_recursively): If the destination
229 and the source variables are the same, delete the source variable
230 before defining the destination variable.
231 (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
232 or this will confuse handle_source_transform.
233 (append_exeext): Rewrite using transform_variable_recursively.
234 * tests/cond29.test, tests/cond30.test: New files.
235 * tests/exeext.test: Run ./configure and make, this uncovered
236 the above handle_programs issue.
237 * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
239 * automake.in (%subobjvar): Replace by ...
240 (%gen_varname): ... this.
241 (subobjname): Replace by ...
242 (gen_varname): ... this.
243 (initialize_per_input): Clean gen_varname instead of subobjname.
244 (transform_variable_recursively): New function, extracted
245 from define_objects_from_sources.
246 (define_objects_from_sources): Use transform_variable_recursively.
247 Remove the unused $parent argument.
248 (handle_source_transform): Adjust call to define_objects_from_sources.
250 2003-01-23 Alexandre Duret-Lutz <adl@gnu.org>
252 * automake.in (@substfroms, @substtos): Move near
253 traverse_variable_recursively.
254 (traverse_variable_recursively, traverse_variable_recursively_worker):
255 New functions, extracted from define_objects_from_sources.
256 (define_objects_from_sources): Rewrite using
257 traverse_variable_recursively.
258 (handle_source_transform): Use variables_conditionally_defined
259 instead of calling variable_conditions_recursive directly.
260 Adjust the call to define_objects_from_sources; there is no need
261 to reset @substtos, @substfroms, and %vars_scanned now.
262 (variable_conditions_recursive): Rewrite using
263 traverse_variable_recursively.
264 (variable_conditions_recursive_sub): Remove.
265 (variable_conditionally_defined): Fix condition comparison (the
266 consequence was that DIST_SUBDIRS was always output).
267 * lib/Automake/Condition.pm (merge): Allow merging several
270 2003-01-22 Alexandre Duret-Lutz <adl@gnu.org>
272 * automake.texi (Python): Explain that directory variables start
273 with either ${prefix} or ${exec_prefix}, and point to the
274 `Installation Directory Variables' section of the Autoconf manual.
276 2003-01-21 Alexandre Duret-Lutz <adl@gnu.org>
278 * lib/am/distdir.am (top_distdir, distdir): Define these
279 variables only in top level Makefile. Redefine $(top_distdir)
281 (distdir): Fix passing of $(top_distdir) to sub-makes.
282 * automake.in (handle_dist): Do not define the DISTDIR and
283 TOP_DISTDIR transformations. We don't need them anymore.
284 * automake.texi (Dist): Reorder the dist-hook section, and move
285 the DIST_SUBDIRS paragraph earlier. Document distdir and
287 * tests/subpkg.test: Update to check for $(distdir) and
290 2003-01-19 Alexandre Duret-Lutz <adl@gnu.org>
292 Rename more files to accomodate 8+3 file systems, and adjust the
293 vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
294 and we call "condition" a conjunction of "conditionals".
295 * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
296 * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
297 * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
298 * lib/am/tests/ConditionalSet.pl: Rename to
299 lib/am/tests/DisjConditions.pl
300 * lib/am/Conditional.pm (condition_negate): Rename to ...
301 * lib/am/Condition.pm (conditional_negate): ... this.
302 * automake.in: Adjust references to Condition and DisjConditions.
303 (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
304 (check_ambiguous_condition, condition_ambiguous_p): ... these.
306 * tests/README: New file.
308 * automake.texi (Conditional Programs): Show a sample Makefile.am.
309 Remind $(EXEEXT) must be appended to configure substitutions.
310 Show how Automake conditionals can be used instead.
311 * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
312 appended to conditionally defined programs.
314 2003-01-16 Jim Meyering <jim@meyering.net>
316 Accept --help and --version, and lots of syntactic clean-up.
317 * lib/install-sh: Use consistent indentation, two spaces per level.
318 (scriptversion): New variable.
319 Change initializations like `variable=""' to `variable='.
320 (usage): New variable.
322 Use `test -z "$var"', not `[ x"$var" = x ]'.
323 Use `test -n "$var"', not `[ x"$var" != x ]'.
324 Alphabetize case entries.
325 Accept --help and --version options.
326 Remove unnecessary `else :' clauses.
327 Add a `Local variables' eval block to help emacs users update
328 the time-stamp variable added above.
329 Mostly from Karl Berry.
331 2003-01-16 Alexandre Duret-Lutz <adl@gnu.org>
333 * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
336 * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
337 or `pyexecdir', for the sake of 64-bit distributions that usually
338 use lib64/ instead of lib/. Fall back to the default directory
340 Suggested by Gwenole Beauchesne.
342 2003-01-14 Alexandre Duret-Lutz <adl@gnu.org>
345 * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
346 Explain BUILT_SOURCES is usually needed in this case.
347 Reported by William S Fulton.
349 2003-01-13 Alexandre Duret-Lutz <adl@gnu.org>
351 Rename some files for the sake of 8+3 file systems.
352 * tests/aclocali.test: Rename to tests/aclocal.test.
353 * tests/aclocali1.test: Rename to tests/aclocal2.test.
354 * tests/aclocalii.test: Rename to tests/aclocal3.test.
355 * tests/acoutput.test: Rename to tests/acoutpt.test.
356 * tests/acoutput2.test: Rename to tests/acoutpt2.test.
357 * tests/acouttbs.test: Rename to tests/acoutbs.test.
358 * tests/acouttbs2.test: Rename to tests/acoutbs2.test.
359 * tests/autoheader.test: Rename to tests/autohdr.test.
360 * tests/autoheader2.test: Rename to tests/autohdr2.test.
361 * tests/condincl.test: Rename to tests/condinc.test.
362 * tests/condincl2.test: Rename to tests/condinc2.test.
363 * tests/distcommon.test: Rename to tests/distcom.test.
364 * tests/distcommon2.test: Rename to tests/distcom2.test.
365 * tests/distcommon3.test: Rename to tests/distcom3.test.
366 * tests/installsh.test: Rename to tests/instsh.test.
367 * tests/installsh2.test: Rename to tests/instsh2.test.
368 * tests/instdata.test: Rename to tests/instdat.test.
369 * tests/instdata2.test: Rename to tests/instdat2.test.
370 * tests/libobj12b.test: Rename to tests/libobj13.test.
371 * tests/link_f_c.test: Rename to tests/link_fc.test.
372 * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
373 * tests/link_f_cxx.test: Rename to tests/link_fcxx.test.
374 * tests/nodefine.test: Rename to tests/nodef.test.
375 * tests/nodefine2.test: Rename to tests/nodef2.test.
376 * tests/required.test: Rename to tests/reqd.test.
377 * tests/required2.test: Rename to tests/reqd2.test.
378 * tests/sourcesub.test: Rename to tests/srcsub.test.
379 * tests/sourcesub2.test: Rename to tests/srcsub2.test.
380 * tests/specflags.test: Rename to tests/specflg.test.
381 * tests/specflags2.test: Rename to tests/specflg2.test.
382 * tests/specflags3.test: Rename to tests/specflg3.test.
383 * tests/specflags6.test: Rename to tests/specflg6.test.
384 * tests/specflags7.test: Rename to tests/specflg7.test.
385 * tests/specflags8.test: Rename to tests/specflg8.test.
386 * tests/specflags9.test: Rename to tests/specflg9.test.
387 * tests/subdircond.test: Rename to tests/subcond.test.
388 * tests/subdircond2.test: Rename to tests/subcond2.test.
389 * tests/subdircond3.test: Rename to tests/subcond3.test.
390 * tests/texinfo.test: Rename to tests/txinfo.test.
391 * tests/texinfo2.test: Rename to tests/txinfo2.test.
392 * tests/texinfo3.test: Rename to tests/txinfo3.test.
393 * tests/texinfo4.test: Rename to tests/txinfo4.test.
394 * tests/texinfo5.test: Rename to tests/txinfo5.test.
395 * tests/texinfo6.test: Rename to tests/txinfo6.test.
396 * tests/texinfo7.test: Rename to tests/txinfo7.test.
397 * tests/texinfo8.test: Rename to tests/txinfo8.test.
398 * tests/texinfo9.test: Rename to tests/txinfo9.test.
399 * tests/texinfo10.test: Rename to tests/txinfo10.test.
400 * tests/texinfo13.test: Rename to tests/txinfo13.test.
401 * tests/texinfo16.test: Rename to tests/txinfo16.test.
402 * tests/texinfo17.test: Rename to tests/txinfo17.test.
403 * tests/texinfo18.test: Rename to tests/txinfo18.test.
404 * tests/Makefile.am (TESTS): Adjust.
405 * ChangeLog.1996: Rename to ChangeLog.96.
406 * ChangeLog.1998: Rename to ChangeLog.98.
407 * ChangeLog.2000: Rename to ChangeLog.00.
408 * ChangeLog.2001: Rename to ChangeLog.01.
409 * Makefile.am (EXTRA_DIST): Adjust.
410 Reported by Richard Dawe.
412 2003-01-13 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
414 * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
415 Use '_build' and '_inst' instead of '=build' and '=inst'.
416 * tests/man2.test: Reflect change automake: check for files in
417 '_build' and '_inst' directories instead of '=build' and '=inst'.
419 2003-01-13 Alexandre Duret-Lutz <adl@gnu.org>
421 Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
422 * m4/lead-dot.m4: New file.
423 * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
424 * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
425 * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
426 DEPDIR using am__leading_dot.
427 * automake.in (require_build_directory): Define am__dirstamp, a new
428 variable for the dirstamp basename, based on am__leading_dot.
429 * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
431 Reported by Richard Dawe.
433 * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
434 Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
435 testing for programs.
436 Reported by Richard Dawe.
438 2003-01-10 Alexandre Duret-Lutz <adl@gnu.org>
440 * Makefile.am (maintainer-check): Suggest using $sleep instead of
442 * tests/defs.in (sleep): New variable.
443 * tests/asm.test, tests/confsub.test, tests/lisp3.test,
444 tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
445 Use $sleep instead of sleep 2, to work around timestamp
446 inconsistencies in Windows.
447 Reported by Richard Dawe.
449 * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
451 * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
452 tests/man2.test, tests/subobj3.test, tests/suffix8.test,
453 tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
454 $SHELL is overridden by tests/defs, so it won't hurt even
455 if $MAKE -e uses the $SHELL envvar.
456 * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
457 tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
458 Reported by Richard Dawe.
460 Build elisp files all at once instead of one by one.
461 * automake.in (handle_emacs_lisp): Define am__ELFILES. Add
462 elc-stamp to all's dependencies.
463 * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
464 (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
465 (clean-lisp): Clean elc-stamp.
466 * lib/elisp-comp: Reindent. Erase the temporatry directory
467 from a trap. Propagate Emacs's exit status.
468 * tests/lisp3.test: New file.
469 * tests/Makefile.am (TESTS): Add lisp3.test.
470 Reported by Ryan T. Sammartino.
472 2003-01-09 Akim Demaille <akim@epita.fr>
474 * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
476 2003-01-08 Alexandre Duret-Lutz <adl@gnu.org>
478 * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
479 variables. Suggested by Ryan T. Sammartino.
481 2003-01-05 Alexandre Duret-Lutz <adl@gnu.org>
483 * automake.in (macro_define): Add missing `{$cond}' (typo from
485 ($gen_copyright): Append year 2003.
486 (version): Increase year.
488 * tests/defs.in: Substitute aclocaldir instead of running
489 the installed aclocal. Otherwise Libtool and Gettext
490 tests get skipped when aclocal doesn't preexist.
492 * tests/listval.test, tests/suffix2.test: Remove pointless -I
497 Copyright (C) 2003 Free Software Foundation, Inc.
499 This file is part of GNU Automake.
501 GNU Automake is free software; you can redistribute it and/or modify
502 it under the terms of the GNU General Public License as published by
503 the Free Software Foundation; either version 2, or (at your option)
506 GNU Automake is distributed in the hope that it will be useful,
507 but WITHOUT ANY WARRANTY; without even the implied warranty of
508 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
509 GNU General Public License for more details.
511 You should have received a copy of the GNU General Public License
512 along with autoconf; see the file COPYING. If not, write to
513 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
514 Boston, MA 02111-1307, USA.