Tom Tromey [Sun, 1 Jul 2001 22:51:38 +0000 (22:51 +0000)]
2001-06-29 Tom Tromey <tromey@redhat.com>
* tests/cond11.test: Use `=', not `=='.
* tests/cond12.test: Look for automake in build directory, not
source directory.
2001-06-29 Richard Boulton <richard@tartarus.org>
* automake.in (conditionals_true_when): Pass first parameters by
reference, avoiding bug which put all parameters in @CONDS instead
of @WHENS. Report by Kalle Olavi Niemitalo.
Take a single WHEN instead of an array of WHENS.
Remove FIXME; can't now have an empty @WHENS.
(conditional_is_redundant): New sub.
(variable_conditions_reduce): Check whether each condition is
implied by any of the other conditions (other those already
discarded), rather than checking only against those already
considered (and kept). Also, fix sense of check: was keeping
tautologous terms instead of discarding them. Use
conditional_is_redundant instead of conditionals_true_when.
* tests/Makefile.am (TESTS): Added cond11.test and cond12.test.
* tests/cond11.test: New file.
* tests/cond12.test: New file.
Tom Tromey [Fri, 29 Jun 2001 06:55:24 +0000 (06:55 +0000)]
2001-06-29 Raja R Harinath <harinath@cs.umn.edu>
* automake.in (saw_sources_p): Work even if there are more
than one header files, and more than of one type of header.
* tests/Makefile.am (TESTS): Added new file.
* tests/depend4.test: New file.
Tom Tromey [Sun, 24 Jun 2001 03:38:24 +0000 (03:38 +0000)]
Fix for yacc5.test:
* lib/ylwrap: Changed usage.
* lib/am/yacc.am: Rewrote to use new substitutions.
* lib/am/lex.am: Likewise.
* automake.in (handle_languages): Skip files whose language
doesn't have a compiler. Handle `define_flag' attribute.
Changed '$' to "\$" to aid Emacs fontification.
(struct): Added `rule_file'. Removed `derived_autodep'. Added
`_target_hook' and `define_flag'.
(yacc, yaccxx, lex, lexxx): Set `rule_file', `flags', `compile',
and `compiler' attributes. Removed `linker', `derived_autodep',
and `ansi' attributes. Added `define_flag'.
(yacc, yaccxx): Added `_target_hook'.
(saw_extension): Count number of times extension seen.
(count_files_for_language): New sub.
(saw_sources_p): Use it.
(handle_single_transform_list): Allow language rewrite function
to return a new source extension. Call target_hook.
(yacc_sources, lex_sources): Removed.
(initialize_per_input): Don't initialize yacc_sources or
lex_sources.
(lang_yacc_rewrite): Rewrote.
(lang_yaccxx_rewrite): Likewise.
(lang_lex_rewrite): Likewise.
(lang_lexxx_rewrite): Likewise.
(output_yacc_build_rule): Removed.
(output_lex_build_rule): Removed.
(lang_yacc_finish): Removed build rule generation.
(lang_lex_finish): Likewise.
(DASH_D_PATTERN): New global.
(lang_yacc_target_hook): New function.
(_target_hook): New function.
(register_language): Default `define_flag'.
* tests/yacc5.test: Updated test.
* tests/yacc4.test: Exit with status 77 if bison doesn't work.
* tests/yacc3.test: Remove bogus `make' invocation. Added test
for all YFLAGS variables.
Tom Tromey [Mon, 18 Jun 2001 01:08:34 +0000 (01:08 +0000)]
* automake.in (require_file_internal): Check for already-required
file after searching for it, and only if it is not found. Don't
use `readlink' when checking for dangling symlink. Work if
--force-missing specified.
* tests/acoutput2.test: Also test --force-missing.
Tom Tromey [Fri, 15 Jun 2001 01:37:37 +0000 (01:37 +0000)]
Fix some lisp bugs reported by Bruno Haible:
* lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
echo.
(install-%DIR%LISP): Handle case where lispdir is not defined.
(uninstall-%DIR%LISP): Likewise.
(.el.elc): Added `else' clause.
Tom Tromey [Fri, 15 Jun 2001 01:25:11 +0000 (01:25 +0000)]
Fix for bug reported by Steve M. Robbins:
* automake.in (handle_single_transform_list): When building a file
from a subdirectory, continue to use `AM_' prefix.
* tests/Makefile.am (TESTS): Added subobj7.test.
* tests/subobj7.test: New file.
Tom Tromey [Fri, 15 Jun 2001 01:14:01 +0000 (01:14 +0000)]
* lib/am/configure.am ($(top_builddir)/config.status): Added
$(top_builddir) prefix to work around problems with some vendor
makes. From Nicholas Joly.
Tom Tromey [Fri, 15 Jun 2001 01:10:24 +0000 (01:10 +0000)]
* automake.in (yacc_lex_finish_helper): Find ylwrap in
top_srcdir. From Tim Van Holder.
* tests/Makefile.am (TESTS): Added yacc6.test.
* tests/yacc6.test: New file.
* aclocal.in (scan_m4_files): Tweak the building of &search so
that multiple macro names can be found on the same line. Ensure
we match whole macro name, not only substrings.
Tom Tromey [Tue, 12 Jun 2001 03:47:27 +0000 (03:47 +0000)]
* automake.texi (Program variables): Document AM_CPPFLAGS.
Deprecate INCLUDES.
(Java Support): Document AM_GCJFLAGS.
(Support for Other Languages): Removed `fixme'; added link to
suffix rule handling.
Tom Tromey [Sun, 3 Jun 2001 17:16:39 +0000 (17:16 +0000)]
* automake.in (variable_conditions_sub): Move parent-only code
from here...
(variable_conditions): ... to here.
(variable_conditions_sub): Include this variable's conditions in
the resulting condition list.
* tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
Tom Tromey [Fri, 1 Jun 2001 05:19:01 +0000 (05:19 +0000)]
* automake.texi (Alternative): New node.
(Macros): Use new name for gcc.
(Java Support): Likewise.
(Dependencies): Rewrote.
(Invoking Automake): (Re-)document -i, --ignore-deps, and
--include-deps.
Tom Tromey [Sun, 27 May 2001 17:06:30 +0000 (17:06 +0000)]
* automake.in (handle_multilib): Only add multilib support code at
top level.
* lib/am/multilib.am: Handle invocation of *-multi targets
differently for SUBDIRS and non-SUBDIRS Makefiles.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
Only add multilib code when the Makefile in question is actually
rebuilt.
* automake.in (handle_languages, handle_single_transform_list): Use
language '' for unknown extensions.
(derive_suffix): Check whether $extension_map{$source_ext}
is undefined, not empty.
* lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
STRIP is not empty.
* m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
to install-sh unconditionally. Don't set INSTALL_STRIP_PROGRAM_ENV.
* automake.texi (Requirements): Document the use of the STRIP
variable in cross-compilation environments.
Tom Tromey [Fri, 18 May 2001 00:00:31 +0000 (00:00 +0000)]
* m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
to no dependency tracking.
* tests/Makefile.am (TESTS): Added depcomp2.test.
* tests/depcomp2.test: New file. From Pavel Roskin.
Tom Tromey [Tue, 15 May 2001 02:21:52 +0000 (02:21 +0000)]
Fix for yaccvpath.test:
* tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
* lib/am/distdir.am (distdir): Always look for file in build
directory first.
* lib/ylwrap: Quote the `#line' regular expression.
* lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
change; don't run sed on the generated file.
* tests/yaccvpath.test: Create new parser in srcdir. Added test
to make sure parser will be rebuilt at dist time.
Tom Tromey [Mon, 14 May 2001 00:01:08 +0000 (00:01 +0000)]
* m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
not AMDEP.
* m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
Correctly look at AMDEP_TRUE, not AMDEP.
Tom Tromey [Sun, 13 May 2001 23:31:05 +0000 (23:31 +0000)]
2001-05-13 James Henstridge <james@daa.com.au>
* m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
Point pythondir at site-packages directory. Rename
PYTHON_SITE_PACKAGE to pkgpythondir. Rename PYTHON_SITE_EXEC to
pyexecdir. Removed package/module argument. Removed
PYTHON_SITE_INSTALL. Added version checking.