* automake.in (handle_source_transform): Add a pfx to used_pfx
only if it's conditional or non-empty, to reduce the number of
empty variables. Emit _OBJECS variable based on program name if
no SOURCES were explicitly specified.
* remake-hdr.am: Create the stamp file before the header file,
and just rename it after, so that the timestamps will be correct.
Reported by Marc Horowitz <marc@mit.edu>
* automake.in (lang_yacc_finish): Generate and dist a `.h' for a
`.y' iff YFLAGS or AM_YFLAGS contain `-d'.
Reported by Jim Meyering <meyering@ascend.com>
Tom Tromey [Fri, 9 Apr 1999 12:01:27 +0000 (12:01 +0000)]
* automake.in: Register the `java' language.
(resolve_linker): Handle GCJLINK.
(lang_java_rewrite): New function.
(LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR): New constants.
(lang_c_rewrite): Use new constants.
(lang_cxx_rewrite): Likewise.
(lang_header_rewrite): Likewise.
(lang_yacc_rewrite): Likewise.
(lang_yaccxx_rewrite): Likewise.
(lang_lex_rewrite): Likewise.
(lang_lexxx_rewrite): Likewise.
(lang_asm_rewrite): Likewise.
(lang_f77_rewrite): Likewise.
(lang_ppf77_rewrite): Likewise.
(lang_ratfor_rewrite): Likewise.
(lang_objc_rewrite): Likewise.
(handle_single_transform_list): Likewise. Handle LANG_SUBDIR
return from rewrite function.
(lang_java_finish): New function.
(register_language): Changed interface and all calls. Added
`autodep' settings to various languages.
(handle_dependencies): Use `autodep' property of language when
including dependency-tracking code.
* automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir
when appropriate.
Reported by Per Cederqvist <ceder@lysator.liu.se>
(handle_texinfo): Do not define texinfo_tex='.', use
'$(srcdir)/texinfo.tex' instead; the directory name will be
properly extracted.
(require_conf_file_with_line): Fixed typo.
Tom Tromey [Wed, 31 Mar 1999 13:54:10 +0000 (13:54 +0000)]
* automake.in (quote_cond_val): Quote \n.
(unquote_cond_val): Unquote \n.
(read_am_file): If line ends with `\', preserve it and add a
newline.
(read_main_am_file): In conditional case, put conditional text at
beginning of each generated line.
Tom Tromey [Sat, 27 Mar 1999 12:23:47 +0000 (12:23 +0000)]
* automake.in (saw_sources_p): Correctly count header extensions
seen.
(handle_headers): Fixed order of arguments to am_install_var.
* automake.in (am_install_var): Don't error if EXTRA_foo is
defined uselessly.
Tom Tromey [Fri, 26 Mar 1999 22:33:45 +0000 (22:33 +0000)]
* Makefile.in: Rebuilt.
* Makefile.am: Updated to reflect removal of TAR subst.
* automake.texi (Options): Document dist-bzip2.
* automake.in (TAR): Removed global.
(initialize_global_constants): Changed `dist' to use pipe with
gzip; work with non-GNU tar.
(handle_dist): Handle non-GNU tar. Don't define TAR.
(initialize_global_constants): Added `dist-bzip2' entry.
(handle_options): Recognize dist-bzip2 option.
(handle_dist): Likewise.
* configure: Rebuilt.
* configure.in: Don't check for tar.
* m4/init.m4 (AM_INIT_AUTOMAKE): Check for `tar'. Substitute
AMTARFLAGS.
Tom Tromey [Thu, 25 Mar 1999 17:38:27 +0000 (17:38 +0000)]
1999-03-25 Alexandre Oliva <oliva@dcc.unicamp.br>
* automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
is absolute and != objdir. dir="" or "$(srcdir)/" fixes it
Tom Tromey [Mon, 22 Mar 1999 11:49:42 +0000 (11:49 +0000)]
1999-02-01 Thomas Tanner <tanner@gmx.de>
* automake.in: accept both A(C|M)_PROG_LIBTOOL, print a
warning when AM_PROG_LIBTOOL was found
* automake.texi: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
Tom Tromey [Sun, 21 Mar 1999 23:27:58 +0000 (23:27 +0000)]
Made `+=' more robust. Fixes pluseq6.test and pluseq7.test.
* automake.in (define_standard_variables): New sub.
(read_main_am_file): Use two passes to scan standard variables.
(read_am_file): Don't special-case configure variables with `+='.
(initialize_per_input): Initialize %var_was_plus_eq.
(read_am_file): Set var_was_plus_eq element correctly.
(define_variable): Give error if variable assigned with `+=' is
internally defined.
(initialize_per_input): Initialize %am_var_defs.
(file_contents_with_transform): Set element in %am_var_defs.
(read_am_file): Use %am_var_defs.
Tom Tromey [Sun, 21 Mar 1999 21:08:17 +0000 (21:08 +0000)]
* subdir3.test: New file.
* Makefile.am (TESTS): Added subdir3.test.
* xsource.test: Changed to check whether multiple source files
with same object name cause failure.
Tom Tromey [Thu, 11 Mar 1999 22:52:32 +0000 (22:52 +0000)]
From Jim Meyering:
* automake.in (handle_dist): Add `;\' to end of distcheck-hook
line.
(scan_one_configure_file): In LIBOBJS, recognize `$ac_objext' as
legitimate ending. Fixes libobj9.test.
Tom Tromey [Thu, 11 Mar 1999 22:31:02 +0000 (22:31 +0000)]
From Ralf Corsepius. Fixes lex3.test.
* automake.in (lang_yacc_finish): Include `.' in name pushed onto
maintainer-clean list.
(lang_lex_finish): Likewise.
Tom Tromey [Mon, 1 Mar 1999 20:46:49 +0000 (20:46 +0000)]
Fixes from Pavel Roskin:
* automake.in (variable_conditions_sub): Sort list passed to
variable_conditions_permutations.
(variable_conditions): Sort list before returning.
Tom Tromey [Sat, 27 Feb 1999 12:22:45 +0000 (12:22 +0000)]
* automake.in (lang_extensions): New sub.
(handle_dependencies): Use it.
(cxx_extensions): Removed.
(lang_cxx_finish): Use lang_extensions.
(f77_extensions): Removed.
(lang_f77_finish): Use lang_extensions.
(objc_extensions): Removed.
(lang_ppf77_finish): Put `.' before extension. Fixes ext.test.
Report from Dave Morrison.
(lang_ratfor_finish): Likewise.
Tom Tromey [Thu, 11 Feb 1999 21:35:16 +0000 (21:35 +0000)]
* aclocal.in (obsolete_macros): Copied from automake.in.
(obsolete_rx): Use only keys of obsolete_macros.
(scan_configure): Report replacement macro for an obsolete macro.
* automake.in (obsolete_macros): Added ud_GNU_GETTEXT.
Tom Tromey [Tue, 9 Feb 1999 23:58:00 +0000 (23:58 +0000)]
1999-02-07 Paul Eggert <eggert@twinsun.com>
* m4/ccstdc.m4 (AM_PROG_CC_STDC): Prefer -Ae to -Aa
-D_HPUX_SOURCE, since -Ae allows `long long' and this is
needed by some programs.
Tom Tromey [Fri, 22 Jan 1999 14:18:09 +0000 (14:18 +0000)]
* automake.in (require_file_internal): Correctly examine return
value of `system'. From Andris Pavenis. Fixes copy.test.
* m4/init.m4 (AM_INIT_AUTOMAKE): Require autoconf 2.13.
Tom Tromey [Thu, 14 Jan 1999 22:45:40 +0000 (22:45 +0000)]
* automake.in (handle_configure): Compute $header_dir based on
$one_name, not $one_hdr. Reported by Erez Zadok. Fixes
confh2.test.
(handle_configure): Compute relative path to input header
correctly in all cases.