Richard Boulton [Sat, 4 Aug 2001 13:28:48 +0000 (13:28 +0000)]
* tests/cond17.test: New file: test for being able to define an
object to be generated in different ways according to a
conditional.
* tests/Makefile.am (XFAIL_TESTS): Add cond17.test.
(TESTS): Added cond17.test.
Tom Tromey [Sat, 4 Aug 2001 04:02:40 +0000 (04:02 +0000)]
2001-08-02 Richard Boulton <richard@tartarus.org>
* automake.in (variable_conditions_sub): Handle variable
substitution refs when computing conditions based on subvariable
conditions. Fixes substitution refs of system variables when sub
variable is conditional.
(SUBST_REF_PATTERN): New global.
* tests/cond16.test: New file: regression test for variable
substitution refs.
* test/Makefile.am (TESTS): Added cond16.test.
Richard Boulton [Fri, 3 Aug 2001 11:57:13 +0000 (11:57 +0000)]
2001-08-03 Richard Boulton <richard@tartarus.org>
* automake.in (value_to_list): Check for whether $from is defined,
rather than whether it is true, so that empty $froms are allowed in
substitution reference patterns.
* tests/substref.test: New file: test behavior of substitution
references when the $from side of the substitution is empty.
* tests/Makefile.am (TESTS): Added substref.test.
* m4/install-sh.m4: New file.
* m4/Makefile.am (m4data_DATA): Add install-sh.m4.
* m4/missing.m4 (AM_MISSING_INSTALL_SH): Move ...
* m4/install-sh.m4 (AM_PROG_INSTALL_SH): ... here. Don't check
for install.sh any longer, always use install-sh, don't even
fall back to missing. Use $am_aux_dir, making $install_sh absolute.
* m4/strip.m4 (AM_PROG_INSTALL_STRIP): Simplify, since $install_sh
is absolute.
* m4/init.m4: Adjust call to AM_PROG_INSTALL_SH.
Tom Tromey [Wed, 1 Aug 2001 06:04:15 +0000 (06:04 +0000)]
2001-07-31 Richard Boulton <richard@tartarus.org>
Raja R Harinath <harinath@cs.umn.edu>
* automake.in (variable_conditions_sub): Remove @parent_conds
argument. This was old logic - duplicate or impossible
conditionals are removed later by &variable_conditions_reduce().
Fixes tests/cond13.test.
(conditionals_true_when): Removed.
* tests/Makefile.am (XFAIL_TESTS): Removed cond13.test.
Tom Tromey [Tue, 31 Jul 2001 05:22:13 +0000 (05:22 +0000)]
* automake.texi (A Program): Typo. Added subsections and more
text about conditional compilation.
(A Shared Library): Moved earlier.
(Program variables): Updated LINK text. Added AM_CFLAGS.
(C++ Support): Added AM_CXXFLAGS.
(Fortran 77 Support): Added AM_FFLAGS and AM_RFLAGS.
(EXEEXT): New node.
* automake.in (make_input_list): Removed.
(scan_autoconf_config_files): Don't add to make_input_list.
(scan_one_autoconf_file): Don't use make_input_list.
(scan_autoconf_files): Use make_list, not make_input_list.
(scan_autoconf_files): Likewise.
* automake.in (seen_exeext): Removed.
(generate_makefile): Don't define EXEEXT or OBJEXT.
(scan_one_autoconf_file): Don't check for AC_EXEEXT.
(am_install_var): Don't check $seen_exeext.
(handle_programs): Likewise.
(rule_define): Allow x to override x$(EXEEXT), for now.
(file_contents_internal): Only define rule if rule_define allows
us to.
* m4/init.m4 (AM_INIT_AUTOMAKE): Define EXEEXT and OBJEXT.
Tom Tromey [Sun, 22 Jul 2001 22:16:29 +0000 (22:16 +0000)]
* tests/Makefile.am (XFAIL_TESTS): Removed exeext.test.
* automake.in (am_install_var): Add $(EXEEXT) even if program name
holds `.'. Don't add $(EXEEXT) if program name already has it.
(handle_programs): Don't add $(EXEEXT) if user already did.
(make_paragraphs): Don't compute EXEEXT.
Tim Van Holder [Sun, 22 Jul 2001 00:25:35 +0000 (00:25 +0000)]
* tests/dirname.test: Explicitly use $SHELL to run the
script; this avoids failures on DJGPP.
* tests/install2.test: Skip if 'chmod 000' doesn't make
a file unreadable.
Tom Tromey [Sat, 21 Jul 2001 19:34:32 +0000 (19:34 +0000)]
* automake.in (handle_dist): Handle case where aux dir doesn't
have a Makefile. Fixes depdist.test.
* tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
* tests/depdist.test: Look for config/depcomp.
* tests/Makefile.am (TESTS): Added depdist.test.
(XFAIL_TESTS): Likewise.
* tests/depdist.test: New file. From Eric Magnien.
Tom Tromey [Sat, 21 Jul 2001 18:45:47 +0000 (18:45 +0000)]
From Erik Lindahl:
* lib/depcomp (tru64): Some Tru64 compilers use `foo.d' and not
`foo.o.d'.
* m4/depend.m4 (_AM_DEPENDENCIES): Check to make sure compilation
output is suitable for make.
Tom Tromey [Fri, 20 Jul 2001 01:25:12 +0000 (01:25 +0000)]
2001-07-19 Tom Tromey <tromey@redhat.com>
Alexandre Duret-Lutz <duret_g@epita.fr>
Fix for ccnoco.test, subobj8.test:
* m4/Makefile.am (m4data_DATA): Added auxdir.m4.
* tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test,
subobj8.test.
* m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile.
Use AM_AUX_DIR_EXPAND.
* lib/compile: Handle case where `-o' argument is the name of an
executable, not an object file.
* m4/auxdir.m4: New file, from...
* m4/missing.m4: ... here. Moved AM_AUX_DIR_EXPAND.
* automake.in (handle_single_transform_list, lang_c_rewrite):
Require compile using `require_config_file'.
* automake.in (require_build_directory): New function, extracted
from ...
(handle_single_transform_list): ... here.
(require_build_directory_maybe): New function.
(handle_prograns, handle_libraries, handle_ltlibraries): Call
require_build_directory_maybe() to ensure the subdirectory
in which a target may lie will exist when the target is created.
(handle_libraries, handle_ltlibraries): Use basename before
checking library name.
* lib/am/library.am (%LIBRARY%): Depend on %DIRSTAMP%.
* lib/am/ltlibrary.am (%LTLIBRARY%): Likewise.
* lib/am/program.am (%PROGRAM%): Likewise.
Tom Tromey [Tue, 17 Jul 2001 05:53:47 +0000 (05:53 +0000)]
Report from Motoyuki Kasahara:
* tests/make.test: Use am__include.
* tests/exsource.test: Use am__include.
* m4/make.m4 (AM_MAKE_INCLUDE): Use am__include and am__quote.
* automake.in (handle_languages): Use am__include and am__quote.
Tom Tromey [Tue, 17 Jul 2001 05:36:23 +0000 (05:36 +0000)]
2001-06-10 Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
* aclocal.in (parse_arguments, write_aclocal): Update Copyrights.
* aclocal.in (scan_configure, add_file): Handle the full macro
name even if it contains numbers, such as I18N.
* m4/depend.m4 (AM_DEPENDENCIES): Don't define `depcpp' which is
not used.
Do not require the corresponding AC_PROG_CC as AC_PROG_CC is
actually modified to require AM_DEPENDENCIES.
Rename `confdir' as `conftest.dir' so that the configure trap
remove it.
Tom Tromey [Wed, 4 Jul 2001 18:58:33 +0000 (18:58 +0000)]
2001-07-04 OKUJI Yoshinori <okuji@gnu.org>
* automake.in (scan_texinfo_file): Add the second argument to
`@syncodeindex' into @CLEAN_SUFFIXES, because the combined index
itself may not be used directly.
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.