1 2001-06-28 Tom Tromey <tromey@redhat.com>
3 * lib/am/libs.am (RANLIB): Don't define.
5 2001-06-28 Alexandre Duret-Lutz <duret_g@epita.fr>
7 * automake.in (am_install_var): Assign 1 to $first on
10 2001-06-23 Tom Tromey <tromey@redhat.com>
13 * lib/ylwrap: Changed usage.
14 * lib/am/yacc.am: Rewrote to use new substitutions.
15 * lib/am/lex.am: Likewise.
16 * automake.in (handle_languages): Skip files whose language
17 doesn't have a compiler. Handle `define_flag' attribute.
18 Changed '$' to "\$" to aid Emacs fontification.
19 (struct): Added `rule_file'. Removed `derived_autodep'. Added
20 `_target_hook' and `define_flag'.
21 (yacc, yaccxx, lex, lexxx): Set `rule_file', `flags', `compile',
22 and `compiler' attributes. Removed `linker', `derived_autodep',
23 and `ansi' attributes. Added `define_flag'.
24 (yacc, yaccxx): Added `_target_hook'.
25 (saw_extension): Count number of times extension seen.
26 (count_files_for_language): New sub.
27 (saw_sources_p): Use it.
28 (handle_single_transform_list): Allow language rewrite function
29 to return a new source extension. Call target_hook.
30 (yacc_sources, lex_sources): Removed.
31 (initialize_per_input): Don't initialize yacc_sources or
33 (lang_yacc_rewrite): Rewrote.
34 (lang_yaccxx_rewrite): Likewise.
35 (lang_lex_rewrite): Likewise.
36 (lang_lexxx_rewrite): Likewise.
37 (output_yacc_build_rule): Removed.
38 (output_lex_build_rule): Removed.
39 (lang_yacc_finish): Removed build rule generation.
40 (lang_lex_finish): Likewise.
41 (DASH_D_PATTERN): New global.
42 (lang_yacc_target_hook): New function.
43 (_target_hook): New function.
44 (register_language): Default `define_flag'.
45 * tests/yacc5.test: Updated test.
46 * tests/yacc4.test: Exit with status 77 if bison doesn't work.
47 * tests/yacc3.test: Remove bogus `make' invocation. Added test
48 for all YFLAGS variables.
50 2001-06-20 Tom Tromey <tromey@redhat.com>
52 * tests/yacc5.test: Check for per-executable YFLAGS.
54 2001-06-19 Tom Tromey <tromey@redhat.com>
56 * tests/Makefile.am (TESTS): Added yacc5.test.
57 * tests/yacc5.test: New file.
59 2001-06-17 Tom Tromey <tromey@redhat.com>
61 * automake.in (require_file_internal): Check for already-required
62 file after searching for it, and only if it is not found. Don't
63 use `readlink' when checking for dangling symlink. Work if
64 --force-missing specified.
65 * tests/acoutput2.test: Also test --force-missing.
68 * automake.in (generate_makefile): Call handle_libtool.
69 (handle_libtool): New sub.
70 (handle_compile): Don't read `libtool' file.
72 * tests/acoutput2.test: New file.
73 * tests/Makefile.am (TESTS): Added acoutput2.test.
75 2001-06-15 Tom Tromey <tromey@redhat.com>
77 * tests/Makefile.am (TESTS): Added libtool.test.
78 * tests/libtool.test: New file.
80 2001-06-14 Tom Tromey <tromey@redhat.com>
82 Fix some lisp bugs reported by Bruno Haible:
83 * lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
85 (install-%DIR%LISP): Handle case where lispdir is not defined.
86 (uninstall-%DIR%LISP): Likewise.
87 (.el.elc): Added `else' clause.
89 Fix for bug reported by Steve M. Robbins:
90 * automake.in (handle_single_transform_list): When building a file
91 from a subdirectory, continue to use `AM_' prefix.
92 * tests/Makefile.am (TESTS): Added subobj7.test.
93 * tests/subobj7.test: New file.
95 * lib/am/configure.am ($(top_builddir)/config.status): Added
96 $(top_builddir) prefix to work around problems with some vendor
97 makes. From Nicholas Joly.
99 * automake.in (yacc_lex_finish_helper): Find ylwrap in
100 top_srcdir. From Tim Van Holder.
101 * tests/Makefile.am (TESTS): Added yacc6.test.
102 * tests/yacc6.test: New file.
104 2001-06-14 Tim Van Holder <tim.van.holder@pandora.be>
106 * tests/defs, tests/installsh.test: Properly support
109 2001-06-14 Tom Tromey <tromey@redhat.com>
111 * tests/Makefile.am (TESTS): Added mdate4.test.
112 * tests/mdate4.test: New file.
114 * aclocal.in (scan_m4_files): Removed unused variable.
116 2001-06-14 Alexandre Duret-Lutz <duret_g@epita.fr>
118 * aclocal.in (scan_m4_files): Tweak the building of &search so
119 that multiple macro names can be found on the same line. Ensure
120 we match whole macro name, not only substrings.
122 2001-06-12 Tom Tromey <tromey@redhat.com>
124 * automake.texi (ANSI): Minor clarification.
125 (Other GNU Tools): Don't mention Guile.
127 (Java Support): Mention file extensions.
128 (Man pages): Mention dist_. Don't mention info pages.
130 2001-06-11 Tom Tromey <tromey@redhat.com>
132 * automake.texi (Program variables): Document AM_CPPFLAGS.
134 (Java Support): Document AM_GCJFLAGS.
135 (Support for Other Languages): Removed `fixme'; added link to
136 suffix rule handling.
138 * automake.texi (Program and Library Variables): Document _LIBADD,
139 _LDADD, _LDFLAGS, _AR, and _DEPENDENCIES.
141 2001-06-11 Kevin Dalley <kevind@rahul.net>
143 * missing: Support configure.ac.
145 2001-06-08 Tom Tromey <tromey@redhat.com>
147 * tests/version4.test: New file.
148 * automake.in (version_check): New sub.
149 (handle_options): Use it.
150 * tests/Makefile.am (AUTOMAKE_OPTIONS): Removed.
151 (TESTS): Added version4.test.
152 * m4/Makefile.am (AUTOMAKE_OPTIONS): Removed.
153 * Makefile.am (AUTOMAKE_OPTIONS): Remove `gnits'.
155 2001-06-04 Kevin Dalley <kevind@rahul.net>
157 * lib/am/dejagnu.am (site.exp): Fix typo.
159 2001-06-02 Tom Tromey <tromey@redhat.com>
161 * automake.in (variable_conditions_sub): Move parent-only code
163 (variable_conditions): ... to here.
164 (variable_conditions_sub): Include this variable's conditions in
165 the resulting condition list.
166 * tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
168 2001-06-01 Tom Tromey <tromey@redhat.com>
170 * tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
172 * tests/ltdeps.test: New file. Report from Lars J. Aas.
174 2001-05-31 Tom Tromey <tromey@redhat.com>
176 * automake.texi (Alternative): New node.
177 (Macros): Use new name for gcc.
178 (Java Support): Likewise.
179 (Dependencies): Rewrote.
180 (Invoking Automake): (Re-)document -i, --ignore-deps, and
183 * automake.texi (Top level): Removed erroneous spaces. Documented
186 2001-05-29 Tom Tromey <tromey@redhat.com>
188 * m4/init.m4 (AM_INIT_AUTOMAKE): Allow any AM_*FLAGS variable.
190 * automake.texi (Include): Rewrote.
191 (Suffixes): Remove Java example.
192 (Java): Added more explanation. Document variables.
193 (Uniform): Mention JAVA as a primary.
194 (Python): Updated for new Python support.
195 (Sources): Added a weak example.
197 * lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
199 * automake.texi (A Program): Mention `check' prefix.
200 (Program and Library Variables): New node.
201 (Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
203 (etags): Mention per-program flags.
204 (Tests): Document AM_RUNTESTFLAGS; added sectioning; more
207 * lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
210 2001-05-28 Tom Tromey <tromey@redhat.com>
212 * m4/Makefile.am (MAINT_CHARSET): Removed.
213 * Makefile.am (MAINT_CHARSET): Removed.
214 * automake.in (maint_charset, dist_charset): Removed.
215 (local_maint_charset): Removed.
216 (initialize_per_input): Don't use maint_charset.
217 (handle_dist): Don't compute maint_charset or check DIST_CHARSET.
219 * lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
221 (.%SUFFIX%.dvi): Likewise.
222 (.%SUFFIX%): Likewise.
224 2001-05-27 Tom Tromey <tromey@redhat.com>
226 * automake.in (handle_multilib): Only add multilib support code at
228 * lib/am/multilib.am: Handle invocation of *-multi targets
229 differently for SUBDIRS and non-SUBDIRS Makefiles.
230 * m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
231 Only add multilib code when the Makefile in question is actually
234 * lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
236 2001-05-25 Alexandre Duret-Lutz <duret_g@epita.fr>
238 * automake.in (handle_single_transform_list): Skip unknown
241 2001-05-25 Tom Tromey <tromey@redhat.com>
243 * m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
245 2001-05-24 Tom Tromey <tromey@redhat.com>
247 * automake.in (handle_texinfo_helper): Find mdate-sh in current
248 directory in some situations.
250 * automake.in (generate_makefile): Better explanation for ansi2knr
253 2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
255 * automake.in (handle_languages): Skip unknown extensions.
256 (derive_suffix): Check whether $extension_map{$source_ext}
257 is undefined, not empty.
259 2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
261 * automake.in (read_am_file): Ignore trailing backslash on
264 2001-05-22 Alexandre Duret-Lutz <duret_g@epita.fr>
266 * automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
268 2001-05-21 Akim Demaille <akim@epita.fr>
270 * automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
271 multiple times'' warning.
273 2001-05-20 Tom Tromey <tromey@redhat.com>
275 * configure.in: Updated to 1.4g.
277 * configure.in: Updated to 1.4f.
279 * Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
281 * lib/ansi2knr.c: New version.
283 * Makefile.am (FETCHFILES): Added ansi2knr.c.
286 2001-05-19 Tom Tromey <tromey@redhat.com>
288 * config.guess, config.sub: New versions from FSF.
290 * Makefile.am (fetch): Compare against files in srcdir.
292 For for ansi2knr report from Harlan Stenn:
293 * automake.in (generate_makefile): Run handle_compile before
296 2001-05-18 Tom Tromey <tromey@redhat.com>
298 * automake.in: Reverted erroneous checkin.
300 2001-05-18 Akim Demaille <akim@epita.fr>
302 * lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
303 to missing `install-info'.
305 2001-05-17 Tom Tromey <tromey@redhat.com>
307 * automake.in (lang_c_finish): Use `rm -f'.
309 * automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
310 * tests/Makefile.am (TESTS): Added new file.
311 * tests/ansi5.test: New file.
313 2001-05-17 Alexandre Duret-Lutz <duret_g@epita.fr>
315 * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
317 * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
318 to install-sh unconditionally. Don't set INSTALL_STRIP_PROGRAM_ENV.
319 * automake.texi (Requirements): Document the use of the STRIP
320 variable in cross-compilation environments.
322 2001-05-17 Tom Tromey <tromey@redhat.com>
324 * m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
325 to no dependency tracking.
326 * tests/Makefile.am (TESTS): Added depcomp2.test.
327 * tests/depcomp2.test: New file. From Pavel Roskin.
329 * lib/depcomp (aix): Bug fix and simplification from Larry Jones.
331 * lib/depcomp (tru64): New dependency tracking mode.
333 Fix for PR automake/159:
334 * lib/depcomp (aix): Rewrote.
337 Fix for PR automake/174:
338 * tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
339 * automake.in (read_am_file): Warn if `#' is at start of rule.
341 2001-05-16 Tom Tromey <tromey@redhat.com>
344 * tests/Makefile.am (TESTS): Added comment3.test.
345 (XFAIL_TESTS): Likewise.
346 * tests/comment3.test: New file.
348 Fix for PR automake/175:
349 * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
350 * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
351 `Leaving directory' messages.
354 * tests/Makefile.am (XFAIL_TESTS): Added make.test.
355 * tests/make.test: Run test with `make -w'.
357 * tests/Makefile.am (TESTS): Removed maintclean.test.
358 * lib/am/clean.am (maintainer-clean-generic): Don't remove
360 * lib/am/configure.am (maintainer-clean-am): Removed.
361 (maintainer-clean-conf): Removed.
362 * tests/maintclean.test: Removed.
364 2001-05-15 Tom Tromey <tromey@redhat.com>
366 Fix for PR automake/177:
367 * Makefile.am (maintainer-clean): Set perllibdir before invoking
370 Fix for maintclean.test:
371 * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
372 * lib/am/clean.am (distclean-generic): Don't remove config.cache
374 (distclean, maintainer-clean): Moved to...
375 * lib/am/configure.am: ... here.
376 (distclean): Remove config.cache and config.log.
377 (maintainer-clean): Removed.
378 (maintainer-clean-conf): New target.
379 (maintainer-clean-am): New target.
381 * tests/Makefile.am (TESTS): Added maintclean.test.
382 (XFAIL_TESTS): Likewise.
383 * tests/maintclean.test: New file.
385 Fixes PR automake/175:
386 * tests/target-cflags.test: Use $needs_gnu_make.
387 * tests/exsource.test: Use $needs_gnu_make.
388 * tests/make.test: Require GNU make.
389 * tests/defs (needs_gnu_make): Compute.
391 2001-05-14 Tom Tromey <tromey@redhat.com>
393 * lib/ylwrap: Fixed quoting on regular expression. Fixes
396 Fix for texinfo10.test.
397 * tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
398 * lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
399 * automake.in (handle_texinfo_helper): New sub.
400 (handle_texinfo): Rewrote. Now defines LOCAL-TEXIS.
401 * tests/texinfo10.test: Added more cases.
403 Fix for yaccvpath.test:
404 * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
405 * lib/am/distdir.am (distdir): Always look for file in build
407 * lib/ylwrap: Quote the `#line' regular expression.
408 * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
409 change; don't run sed on the generated file.
410 * tests/yaccvpath.test: Create new parser in srcdir. Added test
411 to make sure parser will be rebuilt at dist time.
413 2001-05-13 Pavel Roskin <proski@gnu.org>
415 * automake.in ($IGNORE_PATTERN): Allow spaces before comments
417 * automake.texi (General Operation): Document it.
419 2001-05-13 Tom Tromey <tromey@redhat.com>
421 Reported by Rainer Orth:
422 * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
424 * tests/Makefile.am (TESTS): Added distname.test.
425 * tests/distname.test: New file.
427 * Makefile.am (dist_pkgdata_DATA): Removed.
429 * tests/defs: Find files to copy in lib/.
430 * automake.in (perllibdir): Set to Automake directory.
431 * ansi2knr.c, ansi2knr.1: Removed.
432 * Makefile.am (dist_am_DATA): Removed.
434 (maintainer-check): Look for lib/am/*.am. Expect 28 lines of
436 (scriptdir): Removed.
437 (dist_script_DATA): Likewise.
438 (install-data-hook): Likewise.
439 (installcheck-local): Likewise.
440 (TAGS_FILES): Removed amfiles.
441 (dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
442 * tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
443 point it to the right directory.
444 * ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
445 compile.am, configure.am, data.am, dejagnu.am, depend.am,
446 depend2.am, distdir.am, footer.am, header-vars.am, header.am,
447 install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
448 libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
449 mans.am, multilib.am, program.am, progs.am, python.am,
450 remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
451 texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
452 * configure.in (AC_OUTPUT): Added lib/am/Makefile.
453 (AUTOMAKE): Use --libdir, not --amdir.
454 Ues AC_CONFIG_AUX_DIR.
455 * lib/Makefile.am (SUBDIRS): Added `am'.
456 (scriptdir): New macro.
457 (dist_script_DATA): Likewise.
458 (dist_pkgdata_DATA): Likewise.
459 (install-data-hook): New target.
460 (installcheck-local): Likewise.
461 * lib/am/Makefile.in: New file.
462 * lib/am/Makefile.am: Removed everything except amdir and
465 2001-05-13 Akim Demaille <akim@epita.fr>
467 * automake.in ($pkgdata_dir): Rename as...
469 ($am_dir): Remove, replace its uses with $libdir.
470 (&parse_arguments): Replace --amdir with --libdir.
471 * automake.texi (Invoking Automake): Document --libdir, not
473 * tests/defs (AUTOMAKE): Use --libdir, not --amdir.
475 2001-05-13 Tom Tromey <tromey@redhat.com>
477 * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
479 * m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
480 Correctly look at AMDEP_TRUE, not AMDEP.
482 Report from Robert Boehne:
483 * tests/Makefile.am (TESTS): Added depend2.test.
484 * tests/depend2.test: New file.
486 2001-05-13 James Henstridge <james@daa.com.au>
488 * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
489 Point pythondir at site-packages directory. Rename
490 PYTHON_SITE_PACKAGE to pkgpythondir. Rename PYTHON_SITE_EXEC to
491 pyexecdir. Removed package/module argument. Removed
492 PYTHON_SITE_INSTALL. Added version checking.
494 2001-05-14 Jim Meyering <meyering@lucent.com>
496 * automake.in (macro_define): Change one remaining use of
497 `variable_dump' to `macro_dump'.
499 2001-05-13 Tom Tromey <tromey@redhat.com>
501 * m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
504 2001-05-13 Akim Demaille <akim@epita.fr>
506 * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
507 (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
508 (&am_primary_prefixes): Use `map' rather than `grep'.
510 2001-05-13 Akim Demaille <akim@epita.fr>
512 * automake.in (Language): Set config_vars for yacc, yaccxx, lex,
514 (&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
515 (&lang_asm_finish): Remove, set asm's finisher to C's one.
517 2001-05-13 Akim Demaille <akim@epita.fr>
519 * lang-compile.am: New file, loaded once per language.
520 * depend2.am: Move definitions loaded once per language in the
522 * automake.in (&handle_languages): Load it.
523 (&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
524 handled by lang-compile.am.
526 2001-05-13 Tom Tromey <tromey@redhat.com>
528 * tests/Makefile.am (TESTS): Added python.test.
529 * tests/python.test: New file.
530 * automake.in (handle_languages): Use
531 config_aux_dir_set_in_configure_in.
532 (handle_python): Correctly mention AM_PATH_PYTHON. Use
533 py-compile, not py_comp. Define py_compile macro.
535 2001-05-13 Derek Price <dprice@openavenue.com>
537 * automake.in (require_file_with_conf_line,
538 require_file_with_line, require_file): Pass a @require_file_path
539 of $relative_dir instead of '.' to require_file_internal so that
540 all the special casing of '.' can be removed elsewhere.
541 (require_config_file, require_conf_file_with_line,
542 require_conf_file_with_conf_line): Remove special casing for '.'
543 and make sure $config_aux_dir is maintained properly.
544 (require_file_internal): Remove special casing of '.' and set
545 @require_file_path when missing files are added.
546 (maybe_push_required_file): Remove special casing of '.'
547 (handle_dependencies): Remove a workaround for a bug now fixed
548 and remove $config_aux_dir special casing.
549 (handle_configure): Remove special casing for $config_aux_dir
550 (handle_python): Ditto.
551 (yacc_lex_finish_helper): Change $config_aux_dir switch to
552 switch on the value of $config_aux_dir_set_in_configure_in.
553 (handle_texinfo): Ditto.
554 (scan_one_configure_file): Set $config_aux_dir and
555 $config_aux_dir_set_in_configure_in properly so special casing
556 on the value of $config_aux_dir can be removed elsewhere.
557 * tests/depcomp.test: New file.
558 * tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
559 first subdir containing a C file.
560 * tests/libobj2.test: Ditto.
561 * tests/Makefile.am (TESTS): Added 'depcomp.test'.
563 2001-05-12 Tom Tromey <tromey@redhat.com>
565 * tests/gcj.test: Updated for gcj dependency tracking.
566 * tests/gcj2.test: Likewise.
568 Fixes PR automake/169.
569 * m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ. Don't assume gcc
571 * automake.in (java): Added autodep entry.
572 * tests/Makefile.am (TESTS): Added gcj3.test.
573 * tests/gcj3.test: New file.
575 2001-05-12 Raja R Harinath <harinath@cs.umn.edu>
577 * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
578 stop at the first '='.
579 * tests/Makefile.am (TESTS): Added vars.test.
580 * tests/vars.test: New file.
582 2001-05-12 Akim Demaille <akim@epita.fr>
584 * automake.in (&handle_single_transform_list): Simplify
585 computation of $object and $this_obj_ext.
586 * tests/lex3.test: Merge into...
587 * tests/lex.test: here.
588 * tests/pr19.test: Improve and rename as...
589 * tests/lex3.test: this.
591 2001-05-09 Tom Tromey <tromey@redhat.com>
593 * automake.in (read_am_file): Correctly compute $saw_bk.
594 (scan_autoconf_files): Ensure configure_dist_common is always
596 * tests/defs (AUTOMAKE): Added --Werror.
598 2001-05-09 Pavel Roskin <proski@gnu.org>
600 * automake.in (define_compiler_variable): Escape $(LIBTOOL) in
603 2001-05-09 Tom Tromey <tromey@redhat.com>
605 * tests/werror.test: Use `rm -f'.
607 2001-05-09 Akim Demaille <akim@epita.fr>
609 * automake.in (&am_line_warning): Invoke `am_line_error', not itself.
611 2001-05-09 Akim Demaille <akim@epita.fr>
613 * automake.in: Remove some code left from bad patches.
614 (&handle_dependency): Remove, for the same reason.
616 2001-05-09 Akim Demaille <akim@epita.fr>
618 * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
619 (&handle_tests_dejagnu, &define_standard_variables): Don't.
620 (&define_standard_variables): Don't transform %top_builddir% since...
621 * header-vars.am: Use %TOPDIR% instead.
623 2001-05-09 Akim Demaille <akim@epita.fr>
625 * automake.in (@objects): Remove, unused.
626 Remove all the code related to it, and to former `$(OBJECTS)'.
628 2001-05-08 Tom Tromey <tromey@redhat.com>
631 * ylwrap: Handle arguments to program. Remove old code that tried
632 to avoid absolute paths and add new code to do it in all cases.
633 Removed ancient logic that tried to deal with relative path.
634 * tests/Makefile.am (TESTS): Added yacc4.test.
635 * tests/yacc4.test: New file.
637 Fix for PR automake/149 and werror.test:
638 * automake.in (require_file_internal): Use am_line_warning or
639 am_conf_line_warning when suppressing error.
640 (am_line_warning): New sub.
641 (am_conf_line_warning): Save and restore warning signal.
642 * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
644 Fix for PR automake/36:
645 * tests/Makefile.am (TESTS): Added asm.test.
646 * tests/asm.test: New file.
647 * automake.in (asm): Use ASFLAGS and AS.
648 (lang_asm_finish): New sub.
650 * automake.in (read_am_file): Removed debugging code.
653 * tests/Makefile.am (TESTS): Added werror.test.
654 (XFAIL_TESTS): Likewise.
655 * tests/werror.test: New file.
657 * automake.in (conditional_true_when): Don't return if we see
660 * tests/objc.test: Removed.
661 * tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
664 * automake.in (subst): New sub.
665 (handle_languages): Use it.
666 (output_lex_build_rule): Likewise; also use _am_quote.
667 (check_libobjs_sources): Likewise.
668 (make_paragraphs): Use subst.
670 * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
673 * automake.in (file_contents_internal): Prototype now `$$%'.
674 (register_language): Prototype now `%'.
676 Fixes test subobj6.test and PR automake/160:
677 * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
678 * compile.am (mostlyclean-compile): Added MOSTLYRMS.
679 (distclean-compile): Added DISTRMS.
680 * tests/subobj6.test (wish_SOURCES): Updated to reflect
681 `mostlyclean' use; added test for non-subdir case.
682 * automake.in (compile_clean_files): New global.
683 (MOSTLY_CLEAN, DIST_CLEAN): New constants.
684 (initialize_per_input): Initialize compile_clean_files.
685 (handle_single_transform_list): Set compile_clean_files entries.
686 (handle_compile): Handle compilation cleanups.
688 2001-05-08 Lars J. Aas <larsa@sim.no>
690 * automake.texi (Canonicalizing Automake macros): Document not
691 canonicalizing strudels (@) anymore.
693 2001-05-08 Akim Demaille <akim@epita.fr>
695 * distdir.am (dist-all): Build all the flavors using a single
698 2001-05-08 Akim Demaille <akim@epita.fr>
700 * automake.in (&file_contents_internal): Apply the @cond_stack to
701 the rules and assignments.
702 Don't rely on `$.' as it's biased by &make_paragraphs.
703 Don't remove backslashes in variable values.
705 2001-05-08 Akim Demaille <akim@epita.fr>
707 * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
708 ($RULE_PATTERN): Use that from `&make_paragraphs'.
709 ($MACRO_PATTERN): Just catch the name of a macro.
710 ($BOGUS_MACRO_PATTERN): Remove.
711 ($ASSIGNMENT_PATTERN): New.
712 (&file_contents_internal, &make_paragraphs): Adjust.
713 (¯o_define): Catch bad macro names.
714 (&cond_stack_endif): Better error message.
715 (&file_contents_internal): Don't remove backslashes in variable
717 (¯o_define): Do it for `+=' user variables.
718 (&define_standard_variables): Use `undef' instead of a dummy
720 (&make_paragraph): Be sure not to chop the trail of hash only
721 lines: adjust the `##' regexp.
722 (&rule_define): Fix a bug: don't read $1 but $target.
723 * tests/condincl.test: Strengthen.
725 2001-05-08 Akim Demaille <akim@epita.fr>
727 * automake.in (Language): Add attributes `Name' and `config_vars'.
728 (&finish): Work properly if there is no _finish.
729 (Automake): Register language Names and AC_SUBST dependencies.
730 Register Fortran 77 variables upon which ratfor and ppf77 depend.
731 (&handle_languages): Once per language, invoke
732 `define_linker_variables', and check its config_vars.
733 (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
734 (&lang_java_finish): Remove.
735 (&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
737 2001-05-08 Akim Demaille <akim@epita.fr>
739 * automake.in (&file_contents_internal): Accept $IS_AM.
740 (&handle_compile, &define_standard_variables, &file_contents): Adjust.
742 2001-05-08 Akim Demaille <akim@epita.fr>
744 * automake.in (am_install_var): Use `next' instead of `if' on the
747 2001-05-08 Akim Demaille <akim@epita.fr>
749 * automake.in (Language): Add attributes `lder' and `ld'.
750 (®ister_language): Specify for cxx, objc, f77, gcj.
751 (&define_linker_variable): New.
752 (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
753 (&lang_java_finish): Adjust.
754 (&libtool_compiler): Remove.
756 2001-05-08 Akim Demaille <akim@epita.fr>
758 * automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
759 argument, as you don't use it.
761 (&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
764 (&handle_programs): Don't mess with %lex_sources, as you don't use
767 2001-05-08 Akim Demaille <akim@epita.fr>
769 * automake.in (Language): Add attribute `link'.
770 (®ister_language): Specify for cxx, objc, f77, gcj.
771 (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
772 (&lang_java_finish): Adjust.
774 2001-05-08 Akim Demaille <akim@epita.fr>
776 * automake.in (&define_compiler_variables): Use only $LANG as
778 (&handle_languages): Adjust.
780 2001-05-08 Akim Demaille <akim@epita.fr>
782 * automake.in (&define_program_variable): Remove.
783 (&scan_one_autoconf_file): Skip MAKEINFO when found in an
785 (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
786 * texinfos.am: Do it.
788 2001-05-08 Akim Demaille <akim@epita.fr>
790 * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
793 (site.exp): Use `if'.
795 2001-05-08 Akim Demaille <akim@epita.fr>
797 * automake.in: Formatting changes.
798 (variable_dump, variables_dump): Rename as...
799 (macro_dump, macros_dump): these.
801 2001-05-08 Akim Demaille <akim@epita.fr>
803 Support `if !COND', `else COND', `end COND'.
805 * automake.texi (Conditionals): Document it.
806 * automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
807 ($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
808 ($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
809 a leading `!' before the condition.
810 (&handle_options): Use `\d'.
811 (&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
812 (&read_am_file, &file_contents_internal): Use them.
813 (&transform): No longer substitute `%!COND%', forcing the use of
815 * ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
817 2001-05-08 Akim Demaille <akim@epita.fr>
819 Uniform handling of per-object compilation rules.
820 Note: Automake is repaired.
822 * automake.in (&handle_languages): Output per object rules for all
823 the objects, not only for those which language supports dependency
825 Fix Automake: when outputting per-object rules, use `-o' if the
826 language has no `output_flag', as it's really needed.
827 (&handle_single_transform_list): Instead of special casing files
828 which need per object rules but which language don't support
829 dependency tracking, keep them in the queue for processing by
832 2001-05-08 Akim Demaille <akim@epita.fr>
834 * automake.in (&handle_languages): `ext-compile.am' and
835 `depend2.am' are now equivalent for generic rules: output only the
837 * ext-compile.am: Remove.
839 2001-05-08 Akim Demaille <akim@epita.fr>
841 Note: This patch breaks Automake. Repaired within two patches.
843 * automake.in (Language): Replace the attribute `output_arg' with
844 `compile_flag' and `output_flag'.
845 (Automake): Adjust language registrations.
846 (&handle_languages): Transform `-c' and `-o' for both suffix and
847 per object rules, instead of `OUTARG' and `LTOUTARG' only for
849 (&handle_single_transform_list): Adjust to `compile_flag' and
851 * depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
853 2001-05-08 Akim Demaille <akim@epita.fr>
855 * automake.in (&handle_languages): Don't transform %COMPILER%.
856 Use `$lang->compiler' instead of `$pfx' to transform generic
857 %COMPILE% and %LTCOMPILE%.
858 * ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
859 of %COMPILER% and $<.
861 2001-05-07 Akim Demaille <akim@epita.fr>
863 * automake.in (&handle_languages): Use the same `%transform' for
864 both `depend2.am' and `ext-compile.am'.
865 Delay the definition of `$flag' so it is right before the first use,
866 and rename as `$flags'.
868 2001-05-07 Akim Demaille <akim@epita.fr>
870 * automake.in (&handle_languages): Compute `$ltoutarg' and
871 `$outarg' independently of dependency code.
872 There is no use looping on a language's possible extensions since
873 we loop over used extensions.
874 Therefore, there is no use for a local `%transform'.
876 2001-05-07 Akim Demaille <akim@epita.fr>
878 * automake.in (&handle_languages): Don't use $comp.
880 2001-05-07 Akim Demaille <akim@epita.fr>
882 * automake.in (&handle_languages): Merge the two loops over
883 %extension_seen/%languages into one and group code to be run once
884 per language together.
886 2001-05-07 Akim Demaille <akim@epita.fr>
888 * automake.in (&handle_languages): Move the `if
889 ($use_dependencies)' block so that loops over extensions and
890 languages are next to each other.
892 2001-05-07 Akim Demaille <akim@epita.fr>
894 * automake.in (&depend2): Remove, merged into...
895 (&handle_languages): here.
897 2001-05-07 Akim Demaille <akim@epita.fr>
899 * automake.in (&finish_languages): Rename as...
900 (&handle_languages): this.
901 Include the body of...
902 (&handle_dependency): this.
905 2001-05-06 Tom Tromey <tromey@redhat.com>
908 * tests/Makefile.am (TESTS): Add subdir5.test.
909 (XFAIL_TESTS): Likewise.
910 * tests/subdir5.test: New file.
912 * tests/subobj6.test (wish_SOURCES): Use $MAKE.
913 * tests/subobj5.test (wish_SOURCES): Use $MAKE.
915 * automake.in (GNITS_VERSION_PATTERN): Document. Add `fork
917 (handle_options): Handle fork identifier in version number.
919 * automake.texi (Dist): Document distcheck-hook.
921 * tests/confh4.test: Update to reflect DEFS change.
924 Fix for PR automake/132:
925 * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
927 (java): Remove INCLUDES and DEFS from compilation.
928 (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
929 * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
930 (DEFAULT_INCLUDES): New macro.
932 * automake.in (usage): Re-align explanatory text.
933 Fixes PR automake/148.
935 * automake.texi (Uniform): Don't use @PROGRAMS@.
936 Fixes PR automake/154.
939 * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
940 (XFAIL_TESTS): Add subobj6.test.
941 * tests/subobj6.test: New file.
943 * automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
944 (Top level): Don't mention `flat'.
945 (Extending): Likewise.
946 (User Variables): New node.
948 * distdir.am (distdir): Make subdirectory for each file.
949 Fixes test subobj5.test.
951 * tests/Makefile.am (TESTS): Add new file.
952 (XFAIL_TESTS): Likewise.
953 * tests/texinfo10.test: New file.
955 2001-05-05 Pavel Roskin <proski@gnu.org>
957 * automake.in (scan_texinfo_file): Treat @defindex and @synindex
958 in the same way as @defcodeindex and @syncodeindex respectively.
960 2001-05-05 Tom Tromey <tromey@redhat.com>
962 * mans.am (install-man%SECTION%): Minor cleanup.
963 (uninstall-man%SECTION%): Likewise.
965 * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
966 * mans.am (install-man%SECTION%): Handle dist_ and nodist_
968 (uninstall-man%SECTION%): Likewise.
969 * automake.in (handle_man_pages): Handle dist_ and nodist_
972 * automake.texi (Future): Removed.
974 (Hello): Don't mention `deep'.
975 (Top level): Likewise.
977 * automake.in (conditional_true_when): Use a hash, not index().
978 Also, a TRUE component always results in a true return.
979 Fixes test cond10.test. For PR automake/164.
980 * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test.
982 2001-05-05 Raja R Harinath <harinath@cs.umn.edu>
985 * tests/Makefile.am (TESTS): Added new file.
986 (XFAIL_TESTS): Likewise.
987 * tests/cond10.test: New file.
989 2001-05-05 Tom Tromey <tromey@redhat.com>
991 * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
993 (install-info-am): Likewise.
995 2001-05-05 Pavel Roskin <proski@gnu.org>
997 * automake.in (scan_texinfo_file): Don't push undefined values
1000 2001-05-05 Richard Boulton <richard@tartarus.org>
1002 * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
1005 2001-05-05 Robert Collins <robert.collins@itdomain.com.au>
1007 * automake.in (required_targets): Added uninstall-am.
1009 2001-05-05 Tom Tromey <tromey@redhat.com>
1011 Fix bug reported by Robert Boehne:
1012 * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
1014 (handle_dependencies): Likewise.
1015 * Makefile.am (maintainer-check): Look for AMDEP_TRUE
1016 substitution. Correct diff now has 30 lines. Look for space
1017 after losing `undef'.
1019 2001-05-04 Peter Eisentraut <peter_e@gmx.net>
1021 * m4/sanity.m4: Remove the temp file before possible error exits.
1023 2001-05-04 Akim Demaille <akim@epita.fr>
1025 * configure.in: Set perllibdir.
1028 2001-05-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1030 * automake.in ($pkgdata_dir): New.
1031 (&require_file_internal): Use it.
1033 2001-05-03 Akim Demaille <akim@epita.fr>
1035 Case insensitive FS choke on Automake/ vs automake.
1036 Reported by Tim Van Holder.
1038 * Automake/: Move into...
1039 * lib/: this new directory.
1041 2001-05-03 Raja R Harinath <harinath@cs.umn.edu>
1043 * data.am (install-%DIR%%PRIMARY%): Execute the same command as
1046 2001-04-30 Jim Meyering <meyering@lucent.com>
1048 * automake.in: Remove `/lib' from include directory.
1050 2001-04-27 Akim Demaille <akim@epita.fr>
1052 AM_INIT_AUTOMAKE is no longer optional.
1054 * automake.in ($seen_make_set, $seen_prog_install)
1055 ($seen_arg_prog): Remove.
1056 (&handle_programs, &handle_scripts, &scan_one_autoconf_file):
1057 Remove related code.
1059 2001-04-27 Akim Demaille <akim@epita.fr>
1061 * tests/specflags4.test, tests/specflags5.test: Remove, merged
1063 * tests/specflags3.test: here.
1065 2001-04-27 Akim Demaille <akim@epita.fr>
1067 * automake.in ($seen_path_xtra): Remove.
1068 (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
1069 (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
1071 2001-04-27 Akim Demaille <akim@epita.fr>
1073 * automake.in (&file_contents_internal): Declare it.
1075 2001-04-27 Akim Demaille <akim@epita.fr>
1077 * automake.in (&read_am_file, &file_contents_internal): Don't
1078 define macros when `FALSE', to avoid errors on doubly defined
1079 variables but under condition `FALSE'. In order to allow...
1080 (&am_install_var): When reading the associated file for the first
1081 time, enable `%?FIRST%'.
1082 (&handle_libraries): Let libs.am define $(AR) and $(RANLIB).
1083 * libs.am: Do it when `%?FIRST%'.
1085 2001-04-27 Akim Demaille <akim@epita.fr>
1087 * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
1088 * ansi2knr.am: Do it.
1089 Prefer `if %?FOO%' to `if %!FOO%'.
1091 2001-04-27 Akim Demaille <akim@epita.fr>
1093 * automake.in (®ister_language, &finish_languages): Use `pure'
1095 (®ister_language): Use %done properly with objects, not names.
1096 (&finish_languages): Replace `$non_c' with `$needs_c'.
1098 2001-04-27 Akim Demaille <akim@epita.fr>
1100 Unify LISP, PYTHON and JAVA primaries.
1102 * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e.,
1103 return if there are no files, hook elisp-comp on the Autoconf
1104 macro, rely on lisp.am to define variables.
1105 (&handle_python, &handle_java): Likewise.
1106 (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and
1107 `PYTHON' must be handled here, not in `&handle_python'.
1108 * java.am: Define needed variables and rules.
1110 2001-04-27 Akim Demaille <akim@epita.fr>
1112 * automake.in (&am_install_var): Transform `ONE_PRIMARY'.
1114 * header.am: Include data.am.
1116 2001-04-27 Akim Demaille <akim@epita.fr>
1118 * automake.in (&am_install_var): Transform `PRIMARY'.
1119 * data.am: Equip with %PRIMARY%.
1121 2001-04-27 Akim Demaille <akim@epita.fr>
1123 * automake.in (@conditional_stack): Rename as...
1124 (@cond_stack): this.
1125 (&file_contents_internal): Support inclusion of files.
1127 2001-04-27 Akim Demaille <akim@epita.fr>
1129 * automake.in (&lang_extensions): Remove.
1130 (&add_depend2, &saw_sources_p): Adjust.
1131 * depend2.am: `%EXT%' no longer includes the dot.
1133 2001-04-27 Akim Demaille <akim@epita.fr>
1135 * automake.in (&finish_languages, &handle_single_transform_list)
1136 (&add_depend2, &handle_dependencies): No longer use the language
1137 name in `$lang'. Rename `$lang_obj' as `$lang'.
1139 2001-04-27 Akim Demaille <akim@epita.fr>
1141 * automake.in (®ister_language): Use `new Language' with a hash.
1143 2001-04-27 Akim Demaille <akim@epita.fr>
1145 * automake.in (®ister_language): Rename `output-arg' and
1146 `derived-autodep' as `output_arg' and `derived_autodep' to match
1147 the Language attribute.
1148 Set the defaults in %option instead of $lang.
1150 2001-04-27 Akim Demaille <akim@epita.fr>
1152 * Automake/: New directory.
1153 * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct.
1154 * automake.in (Language): Use Automake::Struct.
1155 * tests/defs: Adjust to find Struct.
1157 2001-04-23 Pavel Roskin <proski@gnu.org>
1159 * automake.in: Add forward declaration for register_language().
1160 * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
1163 2001-04-20 Akim Demaille <akim@epita.fr>
1165 * automake.in (%required_targets): Add `uninstall'.
1166 From Robert Collins.
1168 2001-04-12 Akim Demaille <akim@epita.fr>
1170 * automake.in (Language): Add attribute `name'.
1171 (®ister_language): The name of the language is now given in the
1173 No longer use `$lang' as the name of the language.
1174 Rename `$lang_obj' as `$lang'.
1176 2001-04-12 Akim Demaille <akim@epita.fr>
1178 * automake.in (Language): Add attribute `_finish'.
1181 (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish)
1182 (&lang_asm_finish): Remove.
1184 2001-04-12 Akim Demaille <akim@epita.fr>
1186 * automake.in (Language): Add attribute `extensions'.
1187 (Automake): Pass a hash to `®ister_language' instead of a
1188 list of pseudo assignments.
1189 (®ister_language): Adjust.
1190 (&finish_languages): Initialize `$ltoutarg'.
1192 2001-04-12 Akim Demaille <akim@epita.fr>
1194 * automake.in (Language): Add attribute `output_arg'.
1195 (%language_map): Remove.
1196 (®ister_language): Build only the object, and store in
1198 (&finish_languages, &handle_single_transform_list): Adjust.
1200 2001-04-12 Akim Demaille <akim@epita.fr>
1202 * automake.in (Language): Add attributes `flags', `compile' and
1204 (&finish_languages, &handle_single_transform_list, &handle_dist)
1205 (&add_depend2, ®ister_language): Use them and the `linker' and
1208 2001-04-12 Akim Demaille <akim@epita.fr>
1210 * automake.in (&handle_single_transform_list, &finish_languages)
1211 (&handle_dist, &handle_dependencies): Use the language object for
1212 autodep and derived-autodep too.
1214 2001-04-12 Akim Demaille <akim@epita.fr>
1216 * automake.in (¯o_define): Ignore Automake definition for
1217 ($var, $cond) if there is already a user definition for ($var, $cond).
1219 2001-04-12 Akim Demaille <akim@epita.fr>
1221 * automake.in (&scan_texinfo_file): Catch @cindex and the like,
1222 but also @deffn and so on which push data in indexes.
1223 Reported by Derek R. Price.
1225 2001-04-12 Akim Demaille <akim@epita.fr>
1227 * automake.in (Language): New package, temporarily in this file.
1229 (Automake): New package.
1231 (&handle_single_transform_list): Use the language object's `ansi'
1232 attribute instead of `$language_map{"$lang-ansi-p"}'.
1233 (®ister_language): Build and register the language too.
1235 2001-04-11 Tom Tromey <tromey@redhat.com>
1237 Fixes report from Larry Jones:
1238 * automake.in (handle_dependencies): Add `@_am_quote@' where
1240 * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make.
1242 2001-04-11 Akim Demaille <akim@epita.fr>
1244 * depend2.am: Fix the `if' condition for Libtool.
1245 Reported by Robert Boehne.
1247 2001-04-10 Robert Collins <robert.collins@itdomain.com.au>
1249 * tests/subobj5.test: New file.
1251 2001-04-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1253 * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make.
1254 * tests/Makefile.am (TESTS): Added make.test.
1255 * tests/make.test: New file.
1257 2001-04-10 Tom Tromey <tromey@redhat.com>
1259 * tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
1261 2001-04-10 Derek R. Price <dprice@collab.net>
1263 * tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
1265 2001-04-10 Akim Demaille <akim@epita.fr>
1267 * distdir.am: Add a missing backslash.
1269 2001-04-10 Akim Demaille <akim@epita.fr>
1271 * automake.in (&scan_aclocal_m4): Handle $relative_dir and special
1273 Specify to the caller whether $regen_aclocal_m4.
1274 (&handle_configure): Adjust.
1275 Transform `REGEN-ACLOCAL-M4'.
1277 * configure.am: Use it.
1278 * tests/defs (me): New.
1279 * tests/confdeps.test: New.
1281 2001-04-09 Tom Tromey <tromey@redhat.com>
1283 * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
1284 Fixes report from Jim Meyering.
1286 2001-04-09 Akim Demaille <akim@epita.fr>
1288 * automake.in (&handle_configure): Don't bother with optimizing
1291 2001-04-09 Akim Demaille <akim@epita.fr>
1293 * tests/cond3.test (expected): Adjust.
1295 2001-04-09 Akim Demaille <akim@epita.fr>
1297 * automake.in (&handle_single_transform_list): Remove $xbase,
1299 (&handle_source_transform): All the variables have conditions now,
1301 (&variable_delete): Admit an argument @conds.
1303 2001-04-09 Akim Demaille <akim@epita.fr>
1305 * automake.in ($source_suffix_pattern): Remove, unused.
1306 %extension_map seems to have replaced it.
1308 2001-04-09 Akim Demaille <akim@epita.fr>
1310 * ext-compile.am: New file.
1311 * automake.in (&finish_languages): Output it.
1312 Require a C linker if there are several registered source suffixes.
1313 (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
1314 extensions, which are discovered in ext-compile.am.
1315 With the help from Robert Boehne.
1317 2001-04-09 Akim Demaille <akim@epita.fr>
1319 * automake.in (&handle_compile): Extract from...
1320 (&get_object_extension): here.
1321 (&read_am_file): Call it.
1322 ($included_generic_compile, $included_knr_compile)
1323 ($included_libtool_compile): Remove.
1324 ($get_object_extension_was_run): New.
1326 2001-04-09 Akim Demaille <akim@epita.fr>
1328 Use AM_CONDITIONAL and if/endif for AMDEP.
1330 * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
1331 * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
1332 to a configure time if/endif), or to `FALSE' (static removal of
1334 (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
1335 * depend2.am: Use if/endif.
1337 Adjust the 101 tests that use dependencies so that they
1338 properly invoke aclocal before automake. They need to `see'
1339 `AM_CONDITIONAL([AMDEP], ...)'.
1341 2001-04-09 Akim Demaille <akim@epita.fr>
1343 * tags.am: Fix missing leading tabs.
1345 2001-04-09 Akim Demaille <akim@epita.fr>
1347 * automake.in: Use simple quotes to define the _PATTERN variables
1348 to unobfuscate the regexps.
1349 ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
1351 2001-04-09 Akim Demaille <akim@epita.fr>
1353 * automake.in (&rule_define): When you discover a suffix rules,
1354 register the extensions for .SUFFIXES.
1355 (&handle_texinfo): Don't register the suffixes.
1356 (&get_object_extension): Don't register suffixes, let them be
1357 discovered in depend2.am.
1358 (&handle_emacs_lisp): Depend on your lisp.am.
1359 * lisp.am: Include the rule &handle_emacs_lisp used to output.
1361 2001-04-09 Akim Demaille <akim@epita.fr>
1363 * subdirs.am: Don't define info related recursive targets.
1366 2001-04-09 Akim Demaille <akim@epita.fr>
1368 * subdirs.am (RECURSIVE_TARGETS): New variable.
1370 * automake.in (&handle_subdirs): Output it.
1371 (&file_contents_internal): Support value spread on several lines.
1373 2001-04-09 Akim Demaille <akim@epita.fr>
1375 * automake.in (&handle_man_pages): Rely on mans.am to define
1376 man%SECTION%dir and MANS.
1379 2001-04-09 Akim Demaille <akim@epita.fr>
1381 * automake.in (&variable_dump): Use %var_type properly.
1382 (¯o_define): Enforce better overriding rules.
1383 Handle the special case that used to handle...
1384 (&define_pretty_variable): this.
1386 The variables you define are owned by Automake.
1387 (&generate_makefile): PRE_INSTALL and co must not be defined *by
1389 (&variable_defined): Now independent of the owner.
1390 (&variable_output, &variable_pretty_output): Adjust to %var_type.
1392 2001-04-09 Akim Demaille <akim@epita.fr>
1394 * automake.in (%var_was_plus_eq): Rename as...
1396 (%def_type): Remove.
1397 (¯o_define): %var_type may now hold `', `+', or `:'.
1398 (%conditional, %am_vars, %content_lines): Rename as...
1399 (%var_value, %var_comment, %var_line): these.
1401 2001-04-09 Akim Demaille <akim@epita.fr>
1403 * automake.in (&variable_output): Admit a list of @CONDS.
1404 (&variable_pretty_output): New.
1405 (&define_pretty_variable): Use it.
1406 (&read_am_file, &file_contents_internal): Prepend a separator to
1407 $am_vars only if there is none yet.
1408 (&file_contents_internal): Rename $separator as $spacing to
1409 harmonize with &read_am_file.
1411 2001-04-09 Akim Demaille <akim@epita.fr>
1413 * automake.in (&am_install_var): Transform DIST, and let the *.am
1414 files handle DIST_COMMON.
1415 * data.am, header.am, java.am, list.am, python.am, script.am: Set
1418 2001-04-09 Akim Demaille <akim@epita.fr>
1420 * automake.in (%dist_common): Remove.
1421 (%configure_dist_common): Replace with...
1422 ($configure_dist_common): this.
1423 (&generate_makefile): Read the user file before using
1424 push_dist_common, as it sets DIST_COMMON, and read_am_file checks
1425 that no variable is defined before it is run.
1426 (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
1427 (&dist_cmp): Rename as...
1428 (&for_dist_common): this.
1429 (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
1431 Adjust to $configure_dist_common.
1432 * configure.am, texi-vers.am: Set DIST_COMMON.
1434 2001-04-09 Akim Demaille <akim@epita.fr>
1436 * automake.in (&handle_aclocal_m4): Rename as...
1437 (&scan_aclocal_m4): this.
1438 Return the list of aclocal.m4 dependencies.
1439 (&handle_configure): Invoke it, and use it when loading...
1440 * configure.am: Template the rules to recreate aclocal.m4.
1442 2001-04-09 Akim Demaille <akim@epita.fr>
1444 * automake.in (&get_object_extension): Use ansi2knr.am.
1445 * clean-kr.am, kr-extra.am: Remove, merged into...
1446 * ansi2knr.am: this new file.
1448 2001-04-09 Akim Demaille <akim@epita.fr>
1450 * automake.in (&transform): Fix an incredible bug which was
1451 breaking the if/endif system.
1452 ($ELSE_PATTERN): Admit an optional argument.
1454 2001-04-09 Akim Demaille <akim@epita.fr>
1456 * comp-vars.am: Remove, merged into...
1458 * automake.in (&get_object_extension): Adjust.
1460 2001-04-09 Akim Demaille <akim@epita.fr>
1462 * remake.am: Merge into...
1463 * configure.am: ... here.
1464 * automake.in (&handle_configure): Adjust.
1466 2001-04-09 Akim Demaille <akim@epita.fr>
1468 * automake.in (&output_lex_build_rule): Output this...
1471 2001-04-09 Akim Demaille <akim@epita.fr>
1473 * automake.in (&condition_negate): New.
1474 (&variable_conditions_permutations): Use it.
1475 (&read_am_file, &file_contents): Use it on `else' clauses to
1477 (&output_yacc_build_rule): Output this...
1478 * yacc.am: New file.
1480 2001-04-09 Akim Demaille <akim@epita.fr>
1482 * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
1483 (&handle_dist): Don't.
1484 (&handle_clean): Don't handle config.status here, let...
1485 * clean.am: ... do it.
1486 * distdir.am: Adjust.
1488 2001-04-09 Akim Demaille <akim@epita.fr>
1490 * automake.in: Use strict vars and subs.
1491 Declare `%require_file_found'.
1492 (&handle_source_transform, &make_paragraphs): Declare my variables.
1494 2001-04-09 Akim Demaille <akim@epita.fr>
1496 * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
1497 * progs.am, python.am: Use if/endif instead of ?INSTALL?.
1498 * java.am (_am_installdirs): Be sure to set it.
1500 2001-04-09 Akim Demaille <akim@epita.fr>
1502 * automake.in (&make_condition): Return '#' when FALSE.
1503 (&conditional_string): Return FALSE, not '#' in the corresponding
1505 (&file_contents_internal): Adjust.
1506 (&check_variable_defined_unconditional): Dump the guilty variable.
1508 2001-04-09 Akim Demaille <akim@epita.fr>
1510 * distdir.am: Use and abuse of if/endif.
1511 * scripts.am: Using if/endif with variables is fine.
1513 2001-04-09 Akim Demaille <akim@epita.fr>
1515 * automake.in (&make_paragraphs): Extract from &file_contents.
1516 Make it more robust than the previous RE based scheme.
1517 (&file_contents): Use it.
1519 2001-04-09 Akim Demaille <akim@epita.fr>
1521 * automake.in (&make_paragraphs): Extract from &file_contents.
1522 Make it more robust than the previous RE based scheme.
1523 (&file_contents): Use it.
1525 2001-04-09 Akim Demaille <akim@epita.fr>
1527 * tests/yacc2.test: Don't define several times a variable, as
1530 2001-04-09 Akim Demaille <akim@epita.fr>
1532 * automake.in (&handle_source_transform): Fix pr72: don't define
1533 $linker if there are no @files.
1535 2001-04-09 Akim Demaille <akim@epita.fr>
1537 Avoid reading twice header-vars.am as now macro_define
1540 * automake.in (&define_standard_variables): Don't output the
1542 (&read_main_am_file): Output first user variables, then Automake
1544 Don't call twice &define_standard_variables.
1545 Save variable comments in $am_vars.
1546 (&variable_output): New.
1547 (&file_contents_internal): New.
1548 Save variable comments in $am_vars.
1549 (&file_contents): Use it.
1551 2001-04-09 Akim Demaille <akim@epita.fr>
1553 * automake.in (¯o_define): The user is allowed to override
1554 a value if it was set by Automake, or if it was found in AC_SUBST.
1556 2001-04-09 Akim Demaille <akim@epita.fr>
1558 * automake.in (&handle_source_transform): Better locality of the
1560 Use `next' to skip nonexistent variables.
1562 2001-04-09 Akim Demaille <akim@epita.fr>
1564 * automake.in (&variable_dump): If a variable is undefined, say
1566 (&check_ambiguous_conditional): Give finer error messages.
1567 (¯o_define): Check that a `+=' variable is not set with `='.
1568 Check for ambiguous definitions each time you _set_ (even with `+=')
1570 (&read_main_am_file): Perform a deep copy of %conditional.
1572 2001-04-09 Akim Demaille <akim@epita.fr>
1574 * automake.in (&variable_defined): Some callers, e.g.,
1575 &am_primary_prefixes, really want to know if the variable is
1576 defined for any condition, not `TRUE' by default.
1577 (&am_primary_prefixes): Give a more precise error message.
1579 2001-04-09 Akim Demaille <akim@epita.fr>
1581 (&variable_conditions): Don't include `FALSE' in the result.
1583 2001-04-09 Akim Demaille <akim@epita.fr>
1585 * automake.in (&variable_conditions_reduce): FALSE is absorbent.
1586 (&variable_conditions): Don't include `FALSE' in the result.
1588 2001-04-09 Akim Demaille <akim@epita.fr>
1590 * tests/defs, tests/depend3.test: Remove useless code.
1592 2001-04-09 Akim Demaille <akim@epita.fr>
1594 * automake.in (&handle_source_transform): Use
1595 &variable_conditions, don't read $conditional{$var}.
1596 (&variable_conditions_sub): When the call is the top level call,
1597 generate all the permutations of the conditions.
1599 2001-04-09 Akim Demaille <akim@epita.fr>
1601 * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
1602 that it does not get noticed twice by automake, which now
1603 complains for multiple definitions.
1604 * tests/vartar.test: s/INSTALL/install/g, automake now complains
1605 because we defined INSTALL.
1607 2001-04-09 Akim Demaille <akim@epita.fr>
1609 * automake.in (&generate_makefile) Use macro_define to define
1610 SOURCES and OBJECTS.
1611 (&variable_defined): Don't check for $conditional{VAR}{COND} as
1612 this would make perl create $condition{VAR}, which we don't want.
1614 2001-04-09 Akim Demaille <akim@epita.fr>
1616 * automake.in (&variable_defined, &define_pretty_variable):
1617 Simplify code which used to handle the cases where not all
1618 variables were in %conditional.
1619 (&define_variable): Use &define_pretty_variable.
1620 (&variable_conditions_sub, &variable_value_as_list_worker)
1621 (&variable_value_as_list, &rule_define): Simplify syntax.
1622 (&read_main_am_file): Dump the guilty predefined variables.
1624 2001-04-09 Akim Demaille <akim@epita.fr>
1626 * automake.in (&variable_conditions_sub)
1627 (&variable_value_as_list_worker): Remove dead code which used to
1628 handle the cases where not all variables were in %conditional.
1630 2001-04-09 Akim Demaille <akim@epita.fr>
1632 * automake.in (&handle_source_transform, &read_main_am_file):
1633 Simplify loops which were split in two parts, conditional vs
1634 unconditional variables.
1636 2001-04-09 Akim Demaille <akim@epita.fr>
1638 Handle unconditional values of variables as conditioned by
1641 * automake.in (%contents): Remove.
1642 (&generate_makefile, &handle_ltlibraries, ¯o_define)
1643 (&read_am_file, &variable_defined, &variable_conditions_sub)
1644 (&variable_value, &variable_value_as_list_worker)
1645 (&variable_value_as_list, &define_pretty_variable)
1646 (&read_main_am_file): Use
1647 $conditional, not %contents.
1648 (&variable_conditions_permutations): Don't return TRUE and FALSE.
1649 (&variable_conditionally_defined): New.
1650 (&handle_dist): Use it.
1651 (&check_ambiguous_conditional): When multiply defined, specify
1652 under which condition.
1653 (¯o_define): Use it.
1654 (&variable_delete): New.
1655 (&read_am_file): Use it.
1656 (&am_install_var): Simplify, as all the variables are in
1659 2001-04-07 Tom Tromey <tromey@redhat.com>
1661 * tests/Makefile.am (XFAIL_TESTS): Added man.test.
1663 * tests/man.test: New file.
1665 2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
1667 * depcomp (gcc3): Invert test condition.
1669 2001-04-07 Tom Tromey <tromey@redhat.com>
1671 * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
1672 statement. Report from Larry Jones.
1674 2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
1676 * depcomp (sgi): Fix sed expression. Report from Robert Boehne.
1678 2001-04-01 Tom Tromey <tromey@redhat.com>
1680 * java.am (.PHONY clean-am): Removed trailing ":".
1681 From Per Bothner. Fixes PR automake/139.
1683 2001-03-28 Akim Demaille <akim@epita.fr>
1685 * program.am: Fix a stupid typo: now *all* (not none) the programs
1687 Reported by Robert Boehne.
1689 2001-03-23 Akim Demaille <akim@epita.fr>
1691 * automake.in (&read_am_file, &file_contents): Avoid name clashes
1694 2001-03-23 Akim Demaille <akim@epita.fr>
1696 * automake.in (&variable_conditionally_defined): Rename as...
1697 (&check_variable_unconditionally_defined): this.
1698 (&variable_dump): Fix the output.
1699 (&variable_defined, ¯o_define): Since conditions are
1700 canonicalized, don't use a loop to look for a condition: read the
1702 (¯o_define, &rule_define, &read_am_file, &file_contents):
1703 Rename $cond_string as $cond.
1704 * distdir.am (PACKAGE, VERSION): Remove; since they are already
1705 discovered via AC_SUBST, they now trigger a `defined twice' error.
1707 2001-03-23 Akim Demaille <akim@epita.fr>
1709 * automake.in (&handle_footer, &handle_installdirs)
1710 (&read_main_am_file): Don't read %contents directly, use
1713 2001-03-23 Akim Demaille <akim@epita.fr>
1715 * automake.in (&read_am_file): Define the variables in a single
1717 Factor the $saw_bk code.
1719 2001-03-23 Akim Demaille <akim@epita.fr>
1721 * automake.in (&read_am_file): Keep $cond_string up to date.
1723 2001-03-23 Akim Demaille <akim@epita.fr>
1725 * automake.in (&define_variable): Use ¯o_define.
1727 2001-03-23 Akim Demaille <akim@epita.fr>
1729 * automake.in (¯o_define): Don't lose the location if we
1730 redefine a variable.
1731 Don't push all the variables in @var_list, let...
1732 (&read_am_file, &file_contents): ... do it.
1733 (&define_pretty_variable): Use macro_define.
1734 (&am_install_var): Delete the value of variables being redefined
1735 to pacify ¯o_define which checks that variables are not
1738 2001-03-23 Akim Demaille <akim@epita.fr>
1740 * automake.in (&conditional_dump): Rename as...
1741 (&variables_dump): this. Use...
1742 (&variable_dump): this new sub.
1744 2001-03-23 Akim Demaille <akim@epita.fr>
1746 * automake.in (&file_contents): Maintain $cond_string sync with
1748 Output rules only if not under `FALSE'.
1749 Define variables under $cond_string.
1750 * scripts.am: For the time being if/endif does not work properly
1753 2001-03-23 Akim Demaille <akim@epita.fr>
1755 * automake.in (IF_PATTERN): Unobfuscate the parens.
1756 (ENDIF_PATTERN): Allow a condition to be specified.
1757 (&file_contents): Use a @cond_stack.
1758 (&transform): At least for an easy transition, also transform
1759 %?FOO% and %!FOO%, as suggested by Lars.
1760 * scripts.am: First test bed for static if/endif use.
1762 2001-03-23 Akim Demaille <akim@epita.fr>
1764 * automake.in (&file_contents): Use rule_define.
1766 2001-03-23 Akim Demaille <akim@epita.fr>
1768 * automake.in (¯o_define): Don't rely on $1.
1769 Initialize the variable.
1770 Set its Automakism only if not defined or if given to the user.
1771 When concatenating values, insert a separator only if the value
1773 (&read_am_file): When dumping the @var_list, skip Automake
1775 (&file_contents): Use macro_define.
1777 2001-03-23 Akim Demaille <akim@epita.fr>
1779 * automake.in (&rule_define): Extract from...
1780 (&read_am_file): here.
1782 2001-03-23 Akim Demaille <akim@epita.fr>
1784 * automake.in (¯o_define, &read_am_file): More work for the
1785 former from the latter. Reorganize the latter.
1787 2001-03-23 Akim Demaille <akim@epita.fr>
1789 * automake.in (¯o_define): Extract from...
1790 (&read_am_file): here.
1792 2001-03-23 Akim Demaille <akim@epita.fr>
1794 * automake.in (%am_var_defs): Replace with...
1796 (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
1797 (&file_contents, am_primary_&prefixes): Adjust.
1798 (&variable_defined, &define_variable): The actual semantics is
1800 (&read_main_am_file): Assert the var is user defined when
1801 outputting @var_list.
1803 2001-03-23 Akim Demaille <akim@epita.fr>
1805 * automake.in (read_am_file): TRUE and FALSE are predefined
1807 (&by_condition): Adjust.
1808 (&conditional_string): Recognize `TRUE' and `FALSE'.
1809 (&make_condition): Use it.
1810 * m4/cond.m4: Reject TRUE and FALSE as conditionals.
1811 * automake.texi (Conditionals): Adjust.
1812 * tests/cond9.test: s/FALSE/WRONG/.
1814 2001-03-12 Pavel Roskin <proski@gnu.org>
1816 * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
1819 2001-03-12 Akim Demaille <akim@epita.fr>
1821 * automake.in (&variable_conditions_permutations): Separate the
1823 * tests/cond3.test: Improve the sed expression.
1825 2001-03-09 Pavel Roskin <proski@gnu.org>
1827 * Makefile.am (maintainer-check): Scan all *.am files and tests
1828 for invocations of `rm' without `-f'.
1829 * tests/mclean.test: Adjusted to prevent triggering the above
1832 2001-03-09 Tom Tromey <tromey@redhat.com>
1834 * automake.in (scan_one_autoconf_file): Fixed comment to avoid
1835 maintainer-check failure.
1837 2001-03-09 Akim Demaille <akim@epita.fr>
1839 * tests/cond3.test: Strengthen.
1841 2001-03-09 Akim Demaille <akim@epita.fr>
1843 * automake.in (&conditional_string): Produce a unique string
1844 characterizing a condition stack.
1845 (&conditional_same): Remove, comparing two strings is now enough.
1846 (&variable_defined): Adjust.
1847 (&read_am_file): Use conditional_string.
1849 2001-03-08 Akim Demaille <akim@epita.fr>
1851 * automake.in: Use -w.
1852 Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
1853 (&parse_arguments): Support --Werror and --Wno-error as a
1854 temporary hack until --warning/-W is properly implemented.
1855 (&handle_single_transform_list): Prototype.
1856 Be sure to define $directory.
1857 Use `exists' instead of testing the value of a maybe undefined
1859 (&add_depend2, &handle_configure, &handle_footer, &file_contents)
1860 (&handle_factored_dependencies): Use defined values.
1861 (&scan_one_autoconf_file): Save $_.
1862 * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
1863 Run automake with --Wno-error.
1865 2001-03-07 Akim Demaille <akim@epita.fr>
1867 * automake.in (&handle_all): Use an array instead of a scalar for
1869 Get rid of all-redirect: let `all' be that target.
1871 2001-03-07 Akim Demaille <akim@epita.fr>
1873 * automake.in (&handle_merge_targets): Ventilate its non `all'
1874 related content into...
1875 (&generate_makefile): here.
1876 (&handle_merge_targets): Rename as...
1877 (&handle_all): this.
1878 Remove a useless `if': `@all' is obviously not empty, since it
1879 contains at least the `basename ($makefile)' which has just been
1882 2001-03-07 Akim Demaille <akim@epita.fr>
1884 * automake.in, aclocal.in: Backquote is inert in double quotes.
1886 2001-03-06 Akim Demaille <akim@epita.fr>
1888 * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
1891 2001-03-06 Pavel Roskin <proski@gnu.org>
1893 * java.am: Use `rm -f' instead of `rm'.
1895 2001-03-06 Akim Demaille <akim@epita.fr>
1897 * automake.in (&push_dist_common): Simplify.
1899 2001-03-06 Jens Krüger <jens_krueger@physik.tu-muenchen.de>
1901 * ltlib.am: Replaced spaces with tab.
1903 2001-03-06 Pavel Roskin <proski@gnu.org>
1905 * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
1908 2001-03-05 Pavel Roskin <proski@gnu.org>
1910 * header.am, scripts.am: Use ?INSTALL? in the install and
1913 2001-03-05 Pavel Roskin <proski@gnu.org>
1915 * tests/copy.test: Never use `rm' without `-f' - it may ask
1916 questions, notably for read-only files during `make distcheck'.
1917 * tests/insh.test: Likewise.
1918 * tests/installsh.test: Likewise.
1919 * tests/symlink.test: Likewise.
1920 * tests/symlink2.test: Likewise.
1921 * tests/symlink3.test: Likewise.
1923 2001-03-05 Pavel Roskin <proski@gnu.org>
1925 * noinstdir.test: New test.
1926 * tests/Makefile.am (TESTS): Add noinstdir.test.
1927 (XFAIL_TESTS): Likewise.
1929 2001-03-05 Akim Demaille <akim@epita.fr>
1931 * automake.in (&handle_options): Change the RE so that the third
1932 part of the versions always exist.
1933 (&file_contents): Don't pass uninitialized values to &transform.
1935 2001-03-05 Akim Demaille <akim@epita.fr>
1937 * automake.in (&file_contents): Require a hash as second argument.
1940 2001-03-05 Akim Demaille <akim@epita.fr>
1942 Always use hashes with &file_contents.
1944 * automake.in (&handle_texinfo): texibuild.am does not need
1946 texinfos.am wants only TEXICLEANS.
1947 (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
1949 * texinfos.am: Adjust.
1951 2001-03-05 Akim Demaille <akim@epita.fr>
1953 * automake.in (&handle_programs, &handle_libraries, &handle_tags)
1954 (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
1955 (&am_install_var): Forget about `-clean'.
1956 Transform ?INSTALL?.
1957 Always output the *.am file.
1958 * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
1959 * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
1960 Remove, merged into the corresponding *.am file.
1961 * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
1964 2001-03-05 Pavel Roskin <proski@gnu.org>
1966 * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
1968 2001-03-05 Akim Demaille <akim@epita.fr>
1970 If OBJEXT and EXEEXT are not set, provide a default value, and use
1971 them unconditionally.
1973 * automake.in (&generate_makefile): Provide default values for
1975 (&get_object_extension, &finish_languages)
1976 (&handle_single_transform_list, &handle_programs, &add_depend2)
1977 (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
1978 them, they are defined.
1979 * compile.am, depend2.am, program.am, progs.am: Likewise.
1980 * remake-hdr.am: Fix a typo.
1981 * tests/cxxo.test, tests/fo.test, tests/implicit.test,
1982 * tests/interp.test, tests/subobj.test, tests/subobj2.test,
1983 * tests/suffix2.test: Adjust.
1985 2001-03-05 Akim Demaille <akim@epita.fr>
1987 * automake.in (&file_contents): Map MAINTAINER-MODE to
1988 @MAINTAINER_MODE_TRUE@ or nothing.
1989 * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
1992 2001-03-05 Akim Demaille <akim@epita.fr>
1994 * automake.in (&do_one_merge_target): Remove, was only called from...
1995 (&handle_merge_targets): here for `all'.
1998 2001-03-05 Akim Demaille <akim@epita.fr>
2000 Make the installation/uninstallation of Info pages follow the
2001 regular am/recursive scheme.
2003 * automake.in (%required_targets, %dependencies): Add
2005 (%dependencies): Add install-info, install-info-am, and
2007 (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
2008 reversed BTW. Does anybody use the option `no-installinfo'?
2009 (&handle_merge_targets): Let the handling of info related targets
2011 (&handle_factored_dependencies): this.
2012 * subdirs.am: Use ?INSTALL-INFO?.
2013 * texinfos.am: Define the install-info, uninstall-info and
2014 uninstall-info-am targets.
2016 2001-03-05 Akim Demaille <akim@epita.fr>
2018 * automake.in (%required_targets, %dependencies): Add dvi, info,
2020 (@info, @dvi): Remove.
2021 (&handle_texinfo, &handle_merge_targets): Adjust.
2022 (&handle_factored_dependencies): Required targets are phony.
2023 * texinfos.am: Build info, dvi, and the corresponding -am or
2026 2001-03-05 Akim Demaille <akim@epita.fr>
2028 * automake.in (&am_install_var): Remove $cygxform, unused.
2030 2001-03-05 Akim Demaille <akim@epita.fr>
2032 * automake.in (&file_contents): Transform LIBTOOL.
2033 (&am_install_var): Remove $ltxform.
2034 * ltlib.am, progs.am: Adjust.
2036 2001-03-05 Akim Demaille <akim@epita.fr>
2038 * automake.in: Require AC_PROG_INSTALL in...
2039 (&scan_autoconf_files): here.
2041 2001-03-05 Akim Demaille <akim@epita.fr>
2043 * configure.am: New file.
2044 * automake.in (&file_contents): Transform CONFIGURE-AC.
2045 (&handle_texinfo, &handle_configure): Don't transform
2047 (&handle_configure): Use `configure.am'.
2048 * remake-hdr.am, remake.am, texi-vers.am: Adjust to
2049 MAINTAINER-MODE and CONFIGURE-AC.
2051 2001-03-05 Akim Demaille <akim@epita.fr>
2053 * automake.in (&pretty_print_internal): Don't output useless
2055 (define_pretty_variable): Don't issue the space after the `=' sign
2056 to avoid trailing spaces in Makefile.ins.
2058 2001-03-05 Akim Demaille <akim@epita.fr>
2060 * automake.in (&generate_makefile): Invoke &initialize_per_input
2061 *before* setting $am_file_name and $in_file_name.
2063 2001-03-05 Akim Demaille <akim@epita.fr>
2065 * automake.in ($in_file_name, $am_file_name, $relative_dirs):
2066 Globals, initialized...
2067 (&initialize_per_input): here.
2069 2001-03-05 Akim Demaille <akim@epita.fr>
2071 * automake.in ($am_relative_dir): Global.
2072 (&initialize_per_input): Init it.
2073 (%make_list, @make_input_list): My them from
2074 (&scan_autoconf_files): here.
2075 (&require_file_internal): Mying changes.
2077 2001-03-05 Akim Demaille <akim@epita.fr>
2079 * automake.in (%am_vars, @var_list, %def_type): Globals.
2080 (&initialize_per_input): Initialize them.
2081 (&read_main_am_file): Don't local them.
2082 (&get_object_extension): $objext is private.
2083 (&handle_single_transform_list): $lang is.
2084 (&handle_ltlibraries): $libname_rx is.
2085 (&scan_autoconf_config_files): How about actually paying attention
2086 to your arguments, instead of working on $_? (this is no Perl
2087 variable, it's a Perl variable followed by a question mark).
2088 (&file_contents): $contents and $separator are private.
2089 (&am_install_var): Declare @condvals, not $condvals.
2092 2001-03-05 Akim Demaille <akim@epita.fr>
2094 * automake.in (&initialize_per_input): Move to the top.
2095 Precede with the `my' list of its variables.
2097 2001-03-05 Akim Demaille <akim@epita.fr>
2099 * automake.in ($am_file): Use vars.
2100 ($am_file_name, $in_file_name): Private to &generate_makefile.
2102 2001-03-05 Akim Demaille <akim@epita.fr>
2104 * automake.in: Preparation for `use strict': Move the
2105 initialization of the constants to the top, from...
2106 (&initialize_global_constants): here.
2108 2001-03-05 Akim Demaille <akim@epita.fr>
2110 * automake.in (&handle_single_transform_list, &add_depend2): Let
2111 $lang_specific_files{$lang} be a list instead of a string.
2113 2001-03-05 Akim Demaille <akim@epita.fr>
2115 Let's make it run ten times faster...
2117 * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
2119 (&file_contents): Let `$command' remove the Automake commands, and
2120 normalize the series of `\n'.
2121 Slurp the file and apply $command in a single step.
2122 No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
2123 is already normalized to be handled by &transform.
2125 2001-03-05 Tom Tromey <tromey@redhat.com>
2127 * automake.in (register_language): Add entry for `-pure'.
2128 Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
2129 (finish_languages): Use `-pure' field of language map.
2131 2001-03-03 Tom Tromey <tromey@redhat.com>
2133 * tests/yaccvpath.test: No need to remove dummy files.
2134 * tests/subobj3.test: No need to remove dummy files.
2135 * tests/pr9.test: No need to remove dummy files.
2136 * tests/pr87.test: No need to remove dummy files.
2137 * tests/pr19.test: No need to remove dummy files.
2138 * tests/install2.test: No need to remove dummy files.
2139 * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
2142 2001-02-27 Pavel Roskin <proski@gnu.org>
2144 * tests/yaccvpath.test: Add a delay to make parse.c really out
2145 of date. Detect the problem earlier, after `make distdir'. Drop
2146 dependency on flex. Always use the `-y' flag for bison. Comment
2148 * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
2150 2001-03-02 Jens Krüger <jens_krueger@physik.tu-muenchen.de>
2152 * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
2154 2001-02-28 Akim Demaille <akim@epita.fr>
2156 * automake.in (&add_depend2): Transform `GENERIC'.
2157 Get rid of the ad hoc transformation of `@EXT@.o:' which in
2158 addition was broken by the `@ -> %' patch.
2159 * depend2.am: Adjust to use ?GENERIC?.
2161 2001-02-28 Akim Demaille <akim@epita.fr>
2163 * Makefile.am (maintainer-check): `undef $/' is OK.
2165 2001-02-28 Akim Demaille <akim@epita.fr>
2167 * automake.in (&handle_configure): Fortunately, $top_reldir,
2168 the definition of which was highly suspicious, was unused.
2170 2001-02-27 Akim Demaille <akim@epita.fr>
2172 * automake.in (%exec_dir_p): Move to the top so that it is visible
2175 2001-02-27 Pavel Roskin <proski@gnu.org>
2177 * tests/yaccvpath.test: Prevent automake from looking into ..
2178 and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
2180 2001-02-27 Akim Demaille <akim@epita.fr>
2182 * automake.in (%exec_dir_p): Pulled out from...
2183 (&am_primary_prefixes): here.
2185 2001-02-27 Akim Demaille <akim@epita.fr>
2187 * automake.in (&usage): Display $0, not $me.
2189 2001-02-27 Akim Demaille <akim@epita.fr>
2191 * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
2192 * automake.in (&handle_clean): Don't escape what's given to
2195 2001-02-27 Akim Demaille <akim@epita.fr>
2197 Distinguish automake substitutions from config.status
2200 * automake.in (&add_depend2): Transform AMDEP.
2201 (&handle_clean): Transform MCFILES and MFILES.
2202 (&file_contents): Transform MAINTAINER_MODE.
2203 (&transform, &am_install_var): Use `%', not `@'.
2204 Adjust all the *.am files.
2205 * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
2206 * depend2.am: Display the double dependency on both ?AMDEP? and
2209 2001-02-27 Tom Tromey <tromey@redhat.com>
2211 * distdir.am (distcheck): Fixed new code.
2213 * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
2214 Only configure once.
2216 * distdir.am (distcheck): Print error message if distclean failed
2219 2001-02-27 Pavel Roskin <proski@gnu.org>
2221 * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
2223 2001-02-25 Alexandre Duret-Lutz <duret_g@epita.fr>
2225 * tests/Makefile.am (TESTS): Added yaccvpath.test.
2226 * tests/yaccvpath.test: New file.
2228 2001-02-26 Akim Demaille <akim@epita.fr>
2230 * automake.in (&am_install_var): Recognize whether predefined
2231 directories are `data' or `exec'.
2232 * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
2234 * tests/instdata2.test: Update.
2236 2001-02-26 Akim Demaille <akim@epita.fr>
2238 * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
2239 necessarily in infodir.
2241 2001-02-26 Akim Demaille <akim@epita.fr>
2243 * automake.in ($am_file): Be `local', as my'd variables used in
2244 `foreach' loops are always private to the loop.
2246 2001-02-26 Pavel Roskin <proski@gnu.org>
2248 * Makefile.am: Add install.am.
2250 2001-02-26 Akim Demaille <akim@epita.fr>
2252 * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
2253 routines, otherwise the elements to compare are passed in @_
2254 instead of $a and $b.
2256 2001-02-26 Akim Demaille <akim@epita.fr>
2258 * automake.in (%required_targets): `installcheck-am' is needed.
2260 2001-02-26 Akim Demaille <akim@epita.fr>
2262 * automake.in (&transform_cond): Merge into...
2266 2001-02-26 Akim Demaille <akim@epita.fr>
2268 * automake.in (&handle_dist): Use &transform instead of dedicated
2270 But be sure to always do it.
2271 * distdir.am: Adjust.
2273 2001-02-26 Akim Demaille <akim@epita.fr>
2275 * automake.in: Use File::Basename.
2276 (&dirname, &basename): Remove.
2278 2001-02-26 Akim Demaille <akim@epita.fr>
2280 * automake.in ($me): New.
2282 (&usage): Display your full name.
2284 2001-02-26 Akim Demaille <akim@epita.fr>
2286 * automake.texi (Invoking Automake): Remove dead options.
2288 2001-02-26 Akim Demaille <akim@epita.fr>
2290 * automake.in (&scan_texinfo_file): Also compute the list of files
2292 Handle local errors.
2293 (&handle_texinfo): Use it.
2295 2001-02-26 Akim Demaille <akim@epita.fr>
2297 * automake.in: Don't pass arguments to...
2298 (&parse_arguments): Work on @ARGV.
2300 Add support for `-f'.
2304 2001-02-26 Akim Demaille <akim@epita.fr>
2306 * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2307 handle installcheck and installcheck-am.
2308 * install.am: Do it.
2310 2001-02-26 Akim Demaille <akim@epita.fr>
2312 * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2313 handle install and install-am.
2314 * install.am: Do it.
2316 2001-02-26 Akim Demaille <akim@epita.fr>
2318 * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2319 work on targets handled by %dependencies.
2320 (&handle_factored_dependencies): Do it.
2321 * install.am: Install install-exec, install-data and uninstall's
2324 2001-02-26 Akim Demaille <akim@epita.fr>
2326 * automake.in (&handle_merge_targets): Move `install-strip' from
2328 * install.am: to here.
2330 2001-02-26 Akim Demaille <akim@epita.fr>
2332 * automake.in (@installdirs): Remove.
2333 (&file_contents): Be able to grow Automake macros with `+='.
2334 (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
2335 files define _am_installdirs.
2336 (&handle_installdirs): Remove the code, just output `install.am'.
2338 * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
2339 * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
2341 2001-02-26 Akim Demaille <akim@epita.fr>
2343 * tests/instdata2.test (libexec_DATA): Exercise more
2346 2001-02-25 Alexandre Duret-Lutz <duret_g@epita.fr>
2348 * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
2350 2001-02-25 Tom Tromey <tromey@redhat.com>
2352 * tests/instdata2.test: Added `sbin_DATA' check.
2354 * tests/Makefile.am (TESTS): Added subdircond.test.
2355 * tests/subdircond.test: New file.
2356 * automake.in (handle_gettext): Don't fail if SUBDIRS
2357 conditionally defined.
2359 * automake.in: Use IO::File.
2360 (generate_makefile): Use IO::File.
2361 (scan_texinfo_file): Likewise.
2362 (handle_aclocal_m4): Likewise.
2363 (scan_autoconf_traces): Likewise.
2364 (scan_one_autoconf_file): Likewise.
2365 (read_am_file): Likewise.
2366 (file_contents): Likewise.
2369 2001-02-25 Akim Demaille <akim@epita.fr>
2371 * automake.in (handle_texinfo): Remove code handled by texinfos.am.
2373 2001-02-25 Akim Demaille <akim@epita.fr>
2375 * automake.in (&transform): Also call &transform_cond on your
2377 (&handle_dist): Adjust.
2378 (&handle_factored_dependencies): Uniq dependencies.
2380 2001-02-25 Akim Demaille <akim@epita.fr>
2382 * automake.in (&handle_gettext): Simplify redundant `if'.
2383 Used &variable_value, don't read %contents directly.
2385 2001-02-25 Akim Demaille <akim@epita.fr>
2387 * automake.in ($install_recursive): Remove, replaced with calls to
2388 `&variable_defined ('SUBDIRS')'.
2389 (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
2390 (&file_contents): now does.
2392 2001-02-25 Akim Demaille <akim@epita.fr>
2394 * automake.in (&handle_man_pages): $found is dead.
2396 2001-02-25 Akim Demaille <akim@epita.fr>
2398 Internally just store the conditionals as space separated lists of
2399 CONDITIONS (instead of @CONDITIONS@).
2401 * automake.in (&conditional_true_when, &variable_conditions_sub):
2402 Split conditions at spaces.
2403 (&handle_dependencies, &variable_conditions_permutations): Don't
2404 put @ around conditions.
2405 (&variable_conditions_cmp): There are no @ to strip.
2406 (&make_condition): New.
2407 (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
2409 (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
2410 Join @conditional_stack with spaces.
2411 (&read_main_am_file): Adjust the output of variables.
2412 Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
2413 true' and no longer `@TEST@TRUE = @TEST@true'.
2414 (&variable_conditions_cmp): Rename as...
2415 (&by_condition): this.
2416 Sort in a human pleasant order.
2417 Use it everywhere a human can see conditions.
2418 (&variable_conditions_reduce): Don't sort conditions, that's
2420 * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
2422 2001-02-25 Akim Demaille <akim@epita.fr>
2424 * automake.in: `my' the globals.
2426 2001-02-25 Akim Demaille <akim@epita.fr>
2428 * automake.in (&initialize_per_input): %targets_conditionals is
2430 (&read_am_file): When slurping a rule, set the target related
2431 variable, and no variable related variable.
2432 (&file_contents): Likewise.
2433 * tests/vartar.test, tests/ctarget1.test: New.
2435 2001-02-25 Akim Demaille <akim@epita.fr>
2437 * automake.in (&variable_defined, &variable_value_as_list_worker):
2438 If $VAR is effectively a variable, don't die if it's also a
2440 Plus some formatting changes.
2442 2001-02-25 Akim Demaille <akim@epita.fr>
2444 * automake.in: Mying changes.
2445 * Makefile.am (maintainer-check): Check the stability of the
2446 number of uses of `local'.
2448 2001-02-25 Akim Demaille <akim@epita.fr>
2450 * automake.in: Mying changes.
2452 2001-02-25 Akim Demaille <akim@epita.fr>
2454 * automake.in: Mying changes.
2456 2001-02-25 Akim Demaille <akim@epita.fr>
2458 * automake.in: Mying changes.
2459 (&handle_tags): Fix a bug uncovered by the previous mying changes:
2460 transform CONFIG into $config, not $xform.
2462 2001-02-25 Akim Demaille <akim@epita.fr>
2464 * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
2465 Don't deal with install-data-am, install-exec-am and unstall-am.
2466 (&initialize_per_input): Add them to %dependencies.
2467 Remove %exec_dir_p since the *.am files are now in charge of it.
2468 Remove @uninstall, @install_data, @install_exec.
2469 (&handle_merge_targets): Adjust to these removals.
2470 (&file_contents): Also &transform_cond for --no-installman and
2472 (&do_one_merge_target): Add some magic to install hooks on
2473 %dependencies' targets.
2474 (%required_targets): New.
2475 (&handle_factored_dependencies): Output required targets.
2476 * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
2477 * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
2478 * texinfos.am: Declare your dependencies on install-data-am,
2479 install-exec-am and uninstall-am.
2480 * tests/instdata2.test (incldata_HEADERS): New test.
2482 2001-02-24 Tom Tromey <tromey@redhat.com>
2484 * Makefile.am (amfiles): Added texibuild.am.
2485 * texibuild.am: New file.
2486 * tests/Makefile.am (TESTS): Added texinfo9.test.
2487 * tests/texinfo9.test: New file.
2488 * automake.in (handle_texinfo): Keep track of suffixes used. Give
2489 error if suffix unrecognized. Removed extraneous newline.
2491 2001-02-23 Akim Demaille <akim@epita.fr>
2493 * automake.in (&am_install_var): Don't hook on the clean targets
2495 * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
2496 * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
2499 2001-02-23 Akim Demaille <akim@epita.fr>
2501 * automake.in: Promote local `my' over `local'.
2503 2001-02-23 Akim Demaille <akim@epita.fr>
2505 * automake.in: Formatting and mying changes.
2507 2001-02-23 Akim Demaille <akim@epita.fr>
2509 * automake.in: Formatting and mying changes.
2511 2001-02-23 Akim Demaille <akim@epita.fr>
2513 * automake.in (&handle_man_pages): Let install-man and
2514 uninstall-man be handled by the dependency tracker.
2515 (&initialize_per_input): Let %dependencies track them.
2516 * mans.am: Add the needed hooks with the proper dependencies.
2518 2001-02-22 Pavel Roskin <proski@gnu.org>
2520 * tests/target-cflags.test: Don't use subshell to configure in
2521 subdirectory. Typo fix - run `./foo', not `/foo'.
2523 2001-02-22 Akim Demaille <akim@epita.fr>
2525 * automake.in: Formatting and mying changes.
2527 2001-02-21 Tom Tromey <tromey@redhat.com>
2529 * automake.in (handle_dist): Introduce new variable to avoid extra
2530 keys in %dist_dirs. Fixes distdir.test.
2532 * automake.in (handle_texinfo): Only remove suffixes we can
2535 * tests/distdir.test: Check to make sure directory isn't made in
2538 * automake.in (handle_dist): Do nothing in Cygnus mode.
2540 2001-02-21 Pavel Roskin <proski@gnu.org>
2542 * header-vars.am: Remove tabs before variable definitions.
2544 2001-02-21 Akim Demaille <akim@epita.fr>
2546 * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
2549 2001-02-21 Akim Demaille <akim@epita.fr>
2551 * automake.in (&dist_cmp, &target_cmp): Be sure to return a
2552 numeric value as required by Perl 5.6.
2554 2001-02-21 Akim Demaille <akim@epita.fr>
2556 * dist-vars.am: Remove, merge into...
2558 * automake.in (dirname, basename, backname): Move to the top of
2559 the file so that prototypes are checked,
2560 Use them without `&'.
2561 (&handle_dist): Adjust.
2563 2001-02-21 Akim Demaille <akim@epita.fr>
2565 * automake.in (&check_ambiguous_conditional, &read_main_am_file):
2566 Use a uniform naming scheme.
2567 ("e_cond_val, &unquote_cond_val): Delete, dead code.
2568 (&read_am_file): Fix conditional definition of backslash continued
2571 2001-02-21 Akim Demaille <akim@epita.fr>
2573 Change the handling of conditionals: instead of using an ad-hoc
2574 encoding to store a hash in a string, use hashes.
2576 * automake.in (&conditional_dump): New.
2577 (&check_ambiguous_conditional, &variable_defined)
2578 (&variable_conditions_sub, &variable_value_as_list_worker)
2579 (&define_variable, read_am_file, &read_main_am_file): Be sure to
2580 handle `$conditional{$vars}' as a hash instead of a plain string.
2582 2001-02-21 Akim Demaille <akim@epita.fr>
2584 * automake.in (&conditional_true_when): Modernize, simplify.
2585 Warning: `$comp' is now private (my), while it used to be
2586 `inherited' from a `local' elsewhere in the code. AFAICT it was
2587 wrong, but some dirty side effect might show up.
2588 (&conditionals_true_when): New.
2589 (&variable_conditions_sub, &variable_conditions_reduce): Use it.
2591 2001-02-21 Akim Demaille <akim@epita.fr>
2593 * automake.in ($top_builddir): Remove, used in one place.
2594 (&define_standard_variables): Adjust.
2595 Move the definition of triplet variables into...
2596 * header-vars.am: here.
2598 2001-02-21 Akim Demaille <akim@epita.fr>
2600 * automake.in (&initialize_global_constants): Don't define $USAGE.
2601 (&usage): Handle the former content of $USAGE.
2602 Don't pretend autoconf cares about Makefile.in.
2603 Classify the options.
2604 (&handle_tests): Formatting and mying changes.
2606 2001-02-21 Akim Demaille <akim@epita.fr>
2608 * automake.in (&handle_tests_dejagnu): Move the definition of a
2609 default `site.exp' into...
2610 * dejagnu.am (site.exp): here.
2611 Use DOS compliant file names.
2613 2001-02-21 Akim Demaille <akim@epita.fr>
2615 * automake.in (&dist_cmp): New.
2616 (&handle_dist): Use it.
2617 Promote `my' over `local'.
2619 2001-02-21 Akim Demaille <akim@epita.fr>
2621 * dist.am: Remove, merge into...
2622 * distdir.am: here. Use the neat sed snippet for banners.
2623 BTW, distcheck is phony.
2624 * automake.in (&handle_dist_worker): Remove, merge into...
2625 (&handle_dist): this.
2626 (&file_contents): Strip leading new lines.
2627 Be sure to end comments with new lines.
2629 2001-02-21 Akim Demaille <akim@epita.fr>
2631 * distdir.am (GZIP_ENV): Define.
2632 * automake.in (&handle_dist): Don't.
2634 (&handle_dist_worker, &am_install_var): Use it.
2636 2001-02-21 Akim Demaille <akim@epita.fr>
2638 * distdir.am (distdir): Handle the DIST-TARGETS.
2639 * automake.in (&handle_dist_worker): Don't.
2641 2001-02-21 Akim Demaille <akim@epita.fr>
2643 * automake.in (&file_contents): Transform the global options (such
2645 (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
2647 2001-02-21 Akim Demaille <akim@epita.fr>
2649 * distdir.am (distdir): Be sure to have permissive rights on its
2651 (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
2653 And BTW, all these guys are phony.
2654 * automake.in (&handle_dist_worker): As its name doesn't indicate,
2655 output distributions.
2656 (&handle_dist): As its name doesn't indicate, don't.
2657 (&initialize_global_constants): Don't define variables which
2658 content is now handled by distdir.am.
2659 But register `dist-all' as a factored target.
2660 (&handle_factored_dependencies): Don't output empty targets.
2662 2001-02-20 Tom Tromey <tromey@redhat.com>
2664 * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
2667 2001-02-18 Tom Tromey <tromey@redhat.com>
2669 * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
2670 Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
2671 (AM_PROG_STRIP): Commented out.
2673 2001-02-17 Raja R Harinath <harinath@cs.umn.edu>
2675 * depcomp (gcc3): Protect against the compiler deleting
2676 the dependency output file.
2678 2001-02-17 Tom Tromey <tromey@redhat.com>
2680 * automake.in (handle_merge_targets): Use double quotes around
2681 setting of INSTALL_STRIP_PROGRAM.
2682 * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
2683 to absolute path at runtime.
2684 (AM_PROG_STRIP): Don't explicitly test $STRIP.
2686 2001-01-28 Alexandre Duret-Lutz <duret_g@epita.fr>
2688 * m4/strip.m4: New file.
2689 * m4/Makefile.am (m4data_DATA): Add strip.m4.
2690 * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
2691 * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
2692 * automake.in (handle_merge_targets): In the install-strip rule,
2693 set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
2694 to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
2695 * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
2696 don't use INSTALL_STRIP_FLAG any longer.
2698 2001-02-16 Alexandre Duret-Lutz <duret_g@epita.fr>
2700 * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
2703 2001-02-16 Alexandre Duret-Lutz <duret_g@epita.fr>
2705 * automake.in (unquote_m4_arg): New function.
2706 (scan_one_configure_file): Call unquote_m4_arg on
2707 AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
2710 2001-02-15 Tom Tromey <tromey@redhat.com>
2712 * config.guess, config.sub: New versions from FSF.
2714 * Makefile.am (WGET): New macro.
2715 (FETCHFILES): New macro.
2716 (fetch): New target.
2718 * tests/subobj3.test: Exit with status 77 if gcc not found.
2719 * tests/pr9.test: Exit with status 77 if gzip not found.
2720 * tests/pr87.test: Exit with status 77 if gcc not found.
2721 * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
2722 * tests/install2.test: Exit with status 77 if gzip not found.
2723 * tests/exsource.test: Exit with status 77 if GNU make not found.
2724 * tests/ansi3.test: Exit with status 77 if gcc not found.
2726 * tests/target-cflags.test: Require GNU make. Exit with status 77
2727 if gcc or make not found. Fixes PR automake/121.
2729 * configure.in: Require Perl 5.005.
2730 * automake.in: Require 5.005.
2732 * automake.texi (Top): Conditionalize on `nottex', not `info'.
2733 Fixes PR automake/122.
2735 2001-02-14 Tom Tromey <tromey@redhat.com>
2737 * automake.in (add_depend2): Only emit a given object rule once.
2738 Fixes specflags6.test.
2740 2001-02-14 Richard Boulton <richard@tartarus.org>
2742 * tests/specflags6.test: New file.
2744 2001-02-14 Tom Tromey <tromey@redhat.com>
2746 * automake.texi (A Shared Library): Mention -module.
2748 2001-02-13 Tom Tromey <tromey@redhat.com>
2750 * automake.in (do_one_merge_target): Always register $name and
2753 * automake.in (do_one_merge_target): Register `all' as phony
2756 * configure.in: Updated to 1.4e for cvs.
2758 2001-02-12 Tom Tromey <tromey@redhat.com>
2760 * configure.in: Updated to 1.4d and released.
2762 * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
2763 names through autoconf.
2765 Fix for subdirbuiltsources.test:
2766 * automake.in (initialize_per_input): [all_target] Initialize to
2768 (handle_merge_targets): Use all-redirect target to handle built
2770 (do_one_merge_target): Don't generate all-redirect rule.
2772 2001-02-11 Peter Muir <iyhi@yahoo.com>
2774 * tests/subdirbuiltsources.test: New file.
2775 * tests/Makefile.am (TESTS): Added new file.
2777 2001-02-10 Tom Tromey <tromey@redhat.com>
2779 * tests/condlib.test: New file.
2780 * tests/Makefile.am (TESTS): Added new file.
2782 2001-02-10 Lars J. Aas <larsa@sim.no>
2784 * automake.in ($MACRO_PATTERN): Include '@' in name regex.
2785 (&canonicalize): New. Includes '@' in canonical range.
2786 (&check_canonical_spelling, &handle_programs, &handle_libraries,
2787 &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
2789 2001-02-10 Raja R Harinath <harinath@cs.umn.edu>
2791 * automake.in (handle_configure): Revert part of
2792 '2001-02-04 Kevin Ryde <user42@zip.com.au>'. Don't
2793 set CONFIG_COMMANDS explicitly.
2795 2001-02-09 Raja R Harinath <harinath@cs.umn.edu>
2797 * depcomp (gcc3): Propagate exit code.
2799 2001-02-09 Lars J. Aas <larsa@sim.no>
2801 * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
2803 2001-02-09 Tom Tromey <tromey@redhat.com>
2805 Clean up maintainer-check warnings:
2806 * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
2808 * automake.in (handle_dist_worker): Removed redundant `my $xform'.
2810 2001-02-09 Akim Demaille <akim@epita.fr>
2812 * automake.in (&file_contents): Remove a dead branch.
2814 2001-02-09 Akim Demaille <akim@epita.fr>
2816 * automake.in (&transform): Use `my', not `local'.
2817 (&transform_cond): New.
2818 (&get_object_extension, &handle_texinfo, &handle_tags)
2819 (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
2820 (&handle_tests_dejagnu): Use it.
2821 * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
2822 * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
2824 2001-02-09 Akim Demaille <akim@epita.fr>
2826 * automake.in: Various formatting changes, and modernization of
2829 (&handle_configure, define_standard_variables): Use it.
2831 2001-02-08 Tom Tromey <tromey@redhat.com>
2833 * automake.in (file_contents): Only add $actions if any are
2834 found. Fixes new failure in pr87.test.
2836 2001-02-08 Pavel Roskin <proski@gnu.org>
2838 * tests/pr87.test: Check foo/Makfile.in after it is created.
2840 2001-02-08 Tom Tromey <tromey@redhat.com>
2842 * tests/pr87.test: Added check for blank line after `.c.o' rule.
2843 Report from Lars J. Aas.
2845 2001-02-07 Lars J. Aas <larsa@sim.no>
2847 * lisp.am (install-@DIR@LISP): Removed extra space.
2848 * header.am (install-@DIR@HEADERS): Removed extra space.
2849 * data.am (install-@DIR@DATA): Removed extra space.
2851 2001-02-07 Tom Tromey <tromey@redhat.com>
2853 * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
2855 * automake.in (handle_dependencies): Use _am_include, not
2857 * tests/exsource.test: Use _am_include, not AMINCLUDE.
2858 * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
2860 * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
2862 * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
2864 * automake.in (handle_configure): Handle case where output file is
2865 in subdir with no Makefile of its own. Fixes remake3.test,
2868 2001-02-06 Pavel Roskin <proski@gnu.org>
2870 * automake.in (handle_dependencies): Rename AM_INCLUDE to
2872 * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
2873 * tests/exsource.test: Likewise.
2875 2001-02-06 Derek Price <derek.price@openavenue.com>
2877 * automake.in (handle_configure): Fix syntax error.
2879 2001-02-06 Akim Demaille <akim@epita.fr>
2881 * subdirs.am: This file is the exception: clean recursive targets
2882 are called by the clean targets, not the clean-am targets.
2883 Otherwise we have a circular dependency: clean -> clean-am ->
2884 clean-recursive -> clean.
2885 * automake.in (handle_clean): Bind `-local' targets to `-am'
2886 targets, not top targets.
2887 Don't declare -recursive dependencies of the clean targets:
2888 `subdirs.am' did it. Less hard coded knowledge, transfered
2892 2001-02-06 Akim Demaille <akim@epita.fr>
2894 Monstro unsplitable patch.
2896 The aim is to remove hard coded knowledge about clean targets from
2897 automake.in, leaving them in the *.am files.
2898 In addition to the mechanic needed to factor some dependencies, it
2899 appears some rules (most notably distclean and maintainer-clean)
2900 need factored actions. So first, be ready to catch factored
2903 * automake.in (&file_contents): For the time being, use an extended
2904 $RULE_PATTERN which is able to match any kind of rules, with or
2905 without dependency, with or without actions.
2906 Handle all the rules uniformly, storing in %actions the factored
2908 (&flatten, &target_cmp): New.
2909 (&handle_factored_dependencies): Output the %actions.
2910 No longer special case `clean'.
2911 Output the rules in alphabetical order, but keeping `.PHONY' last.
2913 Now we must not use &push_phony_cleaners, which is doing all sort
2914 of magic to push a bit of everything in all the clean targets.
2915 The biggest problem being that, making a Cartesian product, it
2916 requires many useless targets. The `*.am' file know better.
2917 But first, register the new factored rules.
2919 * automake.in (&initialize_per_input): Include clean, mostlyclean,
2920 maintainer-clean, distclean and their `*-am' counterpart in
2922 Initialize %actions.
2923 (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
2924 handle_dependencies, handle_subdirs, handle_configure, handle_clean)
2925 (handle_emacs_lisp, handle_python): Don't play with
2926 &push_phony_cleaners nor &depend and `clean'.
2927 * texinfos.am, texi-vers.am, tags-clean.am:
2928 * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
2929 * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
2930 * clean-kr.am, clean-hdr.am: Do it.
2931 Whenever a target is empty, just remove it, it will no longer be
2934 There is still some magic about clean to hard code. But really,
2935 that's the end of &do_one_clean_target.
2937 * automake.in (&do_one_clean_target): Kaboom out.
2938 (&handle_clean): Rewrite the magic code.
2939 (&am_install_var): No longer use &push_phony_cleaners, nor depend
2941 (&push_phony_cleaners): Kaboom too.
2943 2001-02-06 Akim Demaille <akim@epita.fr>
2945 * automake.in (do_one_clean_target): Don't hard code knowledge
2946 about libtool, and maintainer-clean.
2947 * clean.am, libtool.am: Handle these.
2949 2001-02-05 Akim Demaille <akim@epita.fr>
2951 * automake.in (handle_texinfo): No longer hard code the clean
2953 (texinfos.am): Include them.
2955 2001-02-05 Akim Demaille <akim@epita.fr>
2957 * Makefile.am (perl4-check): Remove, we now require Perl 5.
2958 (maintainer-check): Don't be silent when you find a problem, and
2959 actually, even specify the locations.
2960 Also check that @_ is assigned to arrays.
2962 2001-02-05 Akim Demaille <akim@epita.fr>
2964 * m4/regex.m4: Use AC_LIBSOURCES.
2965 * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
2968 2001-02-04 Tom Tromey <tromey@redhat.com>
2970 * m4/Makefile.am (m4data_DATA): Added make.m4.
2971 * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
2973 * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
2974 Copy depcomp to subdir.
2975 * m4/make.m4: New file.
2977 2001-02-04 Pavel Roskin <proski@gnu.org>
2979 * automake.in (handle_dist_worker): Remove a line that is now
2982 2001-02-04 Kevin Ryde <user42@zip.com.au>
2984 * automake.in (handle_configure): Call config.status with empty
2985 CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
2987 2001-02-04 Tom Tromey <tromey@redhat.com>
2989 * depcomp (ddashmd): Removed case.
2990 (sgi): Handle failure exit correctly
2991 (aix): Likewise. Also, add dummy `.h' targets.
2993 2001-02-04 Akim Demaille <akim@epita.fr>
2995 * distdir.am (distdir): New file, extracted from...
2996 * automake.in (handle_dist_worker): here.
2999 2001-02-04 Akim Demaille <akim@epita.fr>
3001 * automake.in (@clean): Remove, replaced by...
3002 ($dependencies{'clean'}): this.
3003 Use `&depend' instead of push'ing into @clean.
3004 (handle_factored_dependencies): For the time being, skip 'clean'.
3005 (do_one_clean_target): Don't ask for argument 1 and 4 as they are
3006 always `clean', and `@clean'.
3008 2001-02-04 Akim Demaille <akim@epita.fr>
3010 * automake.in (%dependencies): Don't be initialize globally for
3011 all the files, but in...
3012 (&initialize_per_input): here.
3014 (@phony): Replace all occurrences with the corresponding &depend
3017 2001-02-03 Tom Tromey <tromey@redhat.com>
3019 * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
3020 * header-vars.am (INSTALL_HEADER): New macro.
3022 * automake.texi (Rebuilding): New node.