2001-05-06 Tom Tromey For PR automake/46: * tests/Makefile.am (TESTS): Added subdir5.test. (XFAIL_TESTS): Likewise. * tests/subdir5.test: New file. * tests/subobj6.test (wish_SOURCES): Use $MAKE. * tests/subobj5.test (wish_SOURCES): Use $MAKE. * automake.in (GNITS_VERSION_PATTERN): Document. Added `fork identifier'. (handle_options): Handle fork identifier in version number. * automake.texi (Dist): Document distcheck-hook. * tests/confh4.test: Updated to reflect DEFS change. For PR automake/132. Fix for PR automake/132: * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to compilation. (java): Remove INCLUDES and DEFS from compilation. (lang_c_finish): Add DEFAULT_INCLUDES to compilation. * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%. (DEFAULT_INCLUDES): New macro. * automake.in (usage): Re-align explanatory text. Fixes PR automake/148. * automake.texi (Uniform): Don't use @PROGRAMS@. Fixes PR automake/154. For PR automake/160: * tests/Makefile.am (TESTS): Added subobj5.test and subobj6.test. (XFAIL_TESTS): Added subobj6.test. * tests/subobj6.test: New file. * automake.texi (Uniform): Mention dist_, nodist_, and nobase_. (Top level): Don't mention `flat'. (Extending): Likewise. (User Variables): New node. * distdir.am (distdir): Make subdirectory for each file. Fixes test subobj5.test. * tests/Makefile.am (TESTS): Added new file. (XFAIL_TESTS): Likewise. * tests/texinfo10.test: New file. 2001-05-05 Pavel Roskin * automake.in (scan_texinfo_file): Treat @defindex and @synindex in the same way as @defcodeindex and @syncodeindex respectively. 2001-05-05 Tom Tromey * mans.am (install-man%SECTION%): Minor cleanup. (uninstall-man%SECTION%): Likewise. * tests/Makefile.am (XFAIL_TESTS): Removed man.test. * mans.am (install-man%SECTION%): Handle dist_ and nodist_ prefixes. (uninstall-man%SECTION%): Likewise. * automake.in (handle_man_pages): Handle dist_ and nodist_ prefixes. * automake.texi (Future): Removed. (Depth): Removed. (Hello): Don't mention `deep'. (Top level): Likewise. * automake.in (conditional_true_when): Use a hash, not index(). Also, a TRUE component always results in a true return. Fixes test cond10.test. For PR automake/164. * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test. 2001-05-05 Raja R Harinath For PR automake/164: * tests/Makefile.am (TESTS): Added new file. (XFAIL_TESTS): Likewise. * tests/cond10.test: New file. 2001-05-05 Tom Tromey * texinfos.am (uninstall-info-am): Debian install-info v1.8.3 prints to stderr. (install-info-am): Likewise. 2001-05-05 Pavel Roskin * automake.in (scan_texinfo_file): Don't push undefined values to @clean_suffixes. 2001-05-05 Richard Boulton * automake.in (handle_dist): Check for existence of DIST_SUBDIRS first. 2001-05-05 Robert Collins * automake.in (required_targets): Added uninstall-am. 2001-05-05 Tom Tromey Fix bug reported by Robert Boehne: * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be substituted. (handle_dependencies): Likewise. * Makefile.am (maintainer-check): Look for AMDEP_TRUE substitution. Correct diff now has 30 lines. Look for space after losing `undef'. 2001-05-04 Peter Eisentraut * m4/sanity.m4: Remove the temp file before possible error exits. 2001-05-04 Akim Demaille * configure.in: Set perllibdir. From Dave Morrison. 2001-05-04 Ralf Corsepius * automake.in ($pkgdata_dir): New. (&require_file_internal): Use it. 2001-05-03 Akim Demaille Case insensitive FS choke on Automake/ vs automake. Reported by Tim Van Holder. * Automake/: Move into... * lib/: this new directory. 2001-05-03 Raja R Harinath * data.am (install-%DIR%%PRIMARY%): Execute the same command as echoed. 2001-04-30 Jim Meyering * automake.in: Remove `/lib' from include directory. 2001-04-27 Akim Demaille AM_INIT_AUTOMAKE is no longer optional. * automake.in ($seen_make_set, $seen_prog_install) ($seen_arg_prog): Remove. (&handle_programs, &handle_scripts, &scan_one_autoconf_file): Remove related code. 2001-04-27 Akim Demaille * tests/specflags4.test, tests/specflags5.test: Remove, merged into... * tests/specflags3.test: here. 2001-04-27 Akim Demaille * automake.in ($seen_path_xtra): Remove. (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables. (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra. 2001-04-27 Akim Demaille * automake.in (&file_contents_internal): Declare it. 2001-04-27 Akim Demaille * automake.in (&read_am_file, &file_contents_internal): Don't define macros when `FALSE', to avoid errors on doubly defined variables but under condition `FALSE'. In order to allow... (&am_install_var): When reading the associated file for the first time, enable `%?FIRST%'. (&handle_libraries): Let libs.am define $(AR) and $(RANLIB). * libs.am: Do it when `%?FIRST%'. 2001-04-27 Akim Demaille * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR). * ansi2knr.am: Do it. Prefer `if %?FOO%' to `if %!FOO%'. 2001-04-27 Akim Demaille * automake.in (®ister_language, &finish_languages): Use `pure' as a Boolean. (®ister_language): Use %done properly with objects, not names. (&finish_languages): Replace `$non_c' with `$needs_c'. 2001-04-27 Akim Demaille Unify LISP, PYTHON and JAVA primaries. * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e., return if there are no files, hook elisp-comp on the Autoconf macro, rely on lisp.am to define variables. (&handle_python, &handle_java): Likewise. (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and `PYTHON' must be handled here, not in `&handle_python'. * java.am: Define needed variables and rules. 2001-04-27 Akim Demaille * automake.in (&am_install_var): Transform `ONE_PRIMARY'. * data.am: Use it. * header.am: Include data.am. 2001-04-27 Akim Demaille * automake.in (&am_install_var): Transform `PRIMARY'. * data.am: Equip with %PRIMARY%. 2001-04-27 Akim Demaille * automake.in (@conditional_stack): Rename as... (@cond_stack): this. (&file_contents_internal): Support inclusion of files. 2001-04-27 Akim Demaille * automake.in (&lang_extensions): Remove. (&add_depend2, &saw_sources_p): Adjust. * depend2.am: `%EXT%' no longer includes the dot. 2001-04-27 Akim Demaille * automake.in (&finish_languages, &handle_single_transform_list) (&add_depend2, &handle_dependencies): No longer use the language name in `$lang'. Rename `$lang_obj' as `$lang'. 2001-04-27 Akim Demaille * automake.in (®ister_language): Use `new Language' with a hash. 2001-04-27 Akim Demaille * automake.in (®ister_language): Rename `output-arg' and `derived-autodep' as `output_arg' and `derived_autodep' to match the Language attribute. Set the defaults in %option instead of $lang. 2001-04-27 Akim Demaille * Automake/: New directory. * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct. * automake.in (Language): Use Automake::Struct. * tests/defs: Adjust to find Struct. 2001-04-23 Pavel Roskin * automake.in: Add forward declaration for register_language(). * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it passes now. 2001-04-20 Akim Demaille * automake.in (%required_targets): Add `uninstall'. From Robert Collins. 2001-04-12 Akim Demaille * automake.in (Language): Add attribute `name'. (®ister_language): The name of the language is now given in the hash. No longer use `$lang' as the name of the language. Rename `$lang_obj' as `$lang'. 2001-04-12 Akim Demaille * automake.in (Language): Add attribute `_finish'. (&finish): New. (Automake): Adjust. (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish) (&lang_asm_finish): Remove. 2001-04-12 Akim Demaille * automake.in (Language): Add attribute `extensions'. (Automake): Pass a hash to `®ister_language' instead of a list of pseudo assignments. (®ister_language): Adjust. (&finish_languages): Initialize `$ltoutarg'. 2001-04-12 Akim Demaille * automake.in (Language): Add attribute `output_arg'. (%language_map): Remove. (®ister_language): Build only the object, and store in %languages only. (&finish_languages, &handle_single_transform_list): Adjust. 2001-04-12 Akim Demaille * automake.in (Language): Add attributes `flags', `compile' and `compiler'. (&finish_languages, &handle_single_transform_list, &handle_dist) (&add_depend2, ®ister_language): Use them and the `linker' and `pure' attributes. 2001-04-12 Akim Demaille * automake.in (&handle_single_transform_list, &finish_languages) (&handle_dist, &handle_dependencies): Use the language object for autodep and derived-autodep too. 2001-04-12 Akim Demaille * automake.in (¯o_define): Ignore Automake definition for ($var, $cond) if there is already a user definition for ($var, $cond). 2001-04-12 Akim Demaille * automake.in (&scan_texinfo_file): Catch @cindex and the like, but also @deffn and so on which push data in indexes. Reported by Derek R. Price. 2001-04-12 Akim Demaille * automake.in (Language): New package, temporarily in this file. Use Class::Struct. (Automake): New package. (%languages): New. (&handle_single_transform_list): Use the language object's `ansi' attribute instead of `$language_map{"$lang-ansi-p"}'. (®ister_language): Build and register the language too. 2001-04-11 Tom Tromey Fixes report from Larry Jones: * automake.in (handle_dependencies): Add `@_am_quote@' where appropriate. * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make. 2001-04-11 Akim Demaille * depend2.am: Fix the `if' condition for Libtool. Reported by Robert Boehne. 2001-04-10 Robert Collins * tests/subobj5.test: New file. 2001-04-10 Ralf Corsepius * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make. * tests/Makefile.am (TESTS): Added make.test. * tests/make.test: New file. 2001-04-10 Tom Tromey * tests/defs: Changed how ACLOCAL and AUTOMAKE are set. 2001-04-10 Derek R. Price * tests/defs: Allow user to override AUTOMAKE and ACLOCAL. 2001-04-10 Akim Demaille * distdir.am: Add a missing backslash. 2001-04-10 Akim Demaille * automake.in (&scan_aclocal_m4): Handle $relative_dir and special variables. Specify to the caller whether $regen_aclocal_m4. (&handle_configure): Adjust. Transform `REGEN-ACLOCAL-M4'. Reported by Tom. * configure.am: Use it. * tests/defs (me): New. * tests/confdeps.test: New. 2001-04-09 Tom Tromey * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'. Fixes report from Jim Meyering. 2001-04-09 Akim Demaille * automake.in (&handle_configure): Don't bother with optimizing macro uses. 2001-04-09 Akim Demaille * tests/cond3.test (expected): Adjust. 2001-04-09 Akim Demaille * automake.in (&handle_single_transform_list): Remove $xbase, unused. (&handle_source_transform): All the variables have conditions now, simplify. (&variable_delete): Admit an argument @conds. 2001-04-09 Akim Demaille * automake.in ($source_suffix_pattern): Remove, unused. %extension_map seems to have replaced it. 2001-04-09 Akim Demaille * ext-compile.am: New file. * automake.in (&finish_languages): Output it. Require a C linker if there are several registered source suffixes. (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo' extensions, which are discovered in ext-compile.am. With the help from Robert Boehne. 2001-04-09 Akim Demaille * automake.in (&handle_compile): Extract from... (&get_object_extension): here. (&read_am_file): Call it. ($included_generic_compile, $included_knr_compile) ($included_libtool_compile): Remove. ($get_object_extension_was_run): New. 2001-04-09 Akim Demaille Use AM_CONDITIONAL and if/endif for AMDEP. * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP. * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading to a configure time if/endif), or to `FALSE' (static removal of the code). (&handle_dependencies): Adjust to use `AMDEP_TRUE'. * depend2.am: Use if/endif. Adjust the 101 tests that use dependencies so that they properly invoke aclocal before automake. They need to `see' `AM_CONDITIONAL([AMDEP], ...)'. 2001-04-09 Akim Demaille * tags.am: Fix missing leading tabs. 2001-04-09 Akim Demaille * automake.in: Use simple quotes to define the _PATTERN variables to unobfuscate the regexps. ($AM_CONDITIONAL_PATTERN): Let the user quote the variable. 2001-04-09 Akim Demaille * automake.in (&rule_define): When you discover a suffix rules, register the extensions for .SUFFIXES. (&handle_texinfo): Don't register the suffixes. (&get_object_extension): Don't register suffixes, let them be discovered in depend2.am. (&handle_emacs_lisp): Depend on your lisp.am. * lisp.am: Include the rule &handle_emacs_lisp used to output. 2001-04-09 Akim Demaille * subdirs.am: Don't define info related recursive targets. * texinfos.am: Do. 2001-04-09 Akim Demaille * subdirs.am (RECURSIVE_TARGETS): New variable. Use it. * automake.in (&handle_subdirs): Output it. (&file_contents_internal): Support value spread on several lines. 2001-04-09 Akim Demaille * automake.in (&handle_man_pages): Rely on mans.am to define man%SECTION%dir and MANS. * mans.am: Do it. 2001-04-09 Akim Demaille * automake.in (&variable_dump): Use %var_type properly. (¯o_define): Enforce better overriding rules. Handle the special case that used to handle... (&define_pretty_variable): this. Hence, don't. The variables you define are owned by Automake. (&generate_makefile): PRE_INSTALL and co must not be defined *by the user*. (&variable_defined): Now independent from the owner. (&variable_output, &variable_pretty_output): Adjust to %var_type. 2001-04-09 Akim Demaille * automake.in (%var_was_plus_eq): Rename as... (%var_type): this. (%def_type): Remove. (¯o_define): %var_type may now hold `', `+', or `:'. (%conditional, %am_vars, %content_lines): Rename as... (%var_value, %var_comment, %var_line): these. 2001-04-09 Akim Demaille * automake.in (&variable_output): Admit a list of @CONDS. (&variable_pretty_output): New. (&define_pretty_variable): Use it. (&read_am_file, &file_contents_internal): Prepend a separator to $am_vars only if there is none yet. (&file_contents_internal): Rename $separator as $spacing to harmonize with &read_am_file. 2001-04-09 Akim Demaille * automake.in (&am_install_var): Transform DIST, and let the *.am files handle DIST_COMMON. * data.am, header.am, java.am, list.am, python.am, script.am: Set DIST_COMMON. 2001-04-09 Akim Demaille * automake.in (%dist_common): Remove. (%configure_dist_common): Replace with... ($configure_dist_common): this. (&generate_makefile): Read the user file before using push_dist_common, as it sets DIST_COMMON, and read_am_file checks that no variable is defined before it is run. (&handle_texinfo): Don't handle DIST_COMMON, let your file do it. (&dist_cmp): Rename as... (&for_dist_common): this. (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do it. Adjust to $configure_dist_common. * configure.am, texi-vers.am: Set DIST_COMMON. 2001-04-09 Akim Demaille * automake.in (&handle_aclocal_m4): Rename as... (&scan_aclocal_m4): this. Return the list of aclocal.m4 dependencies. (&handle_configure): Invoke it, and use it when loading... * configure.am: Template the rules to recreate aclocal.m4. 2001-04-09 Akim Demaille * automake.in (&get_object_extension): Use ansi2knr.am. * clean-kr.am, kr-extra.am: Remove, merged into... * ansi2knr.am: this new file. 2001-04-09 Akim Demaille * automake.in (&transform): Fix an incredible bug which was breaking the if/endif system. ($ELSE_PATTERN): Admit an optional argument. 2001-04-09 Akim Demaille * comp-vars.am: Remove, merged into... * compile.am: here. * automake.in (&get_object_extension): Adjust. 2001-04-09 Akim Demaille * remake.am: Merge into... * configure.am: ... here. * automake.in (&handle_configure): Adjust. 2001-04-09 Akim Demaille * automake.in (&output_lex_build_rule): Output this... * lex.am: New file. 2001-04-09 Akim Demaille * automake.in (&condition_negate): New. (&variable_conditions_permutations): Use it. (&read_am_file, &file_contents): Use it on `else' clauses to support `if FALSE'. (&output_yacc_build_rule): Output this... * yacc.am: New file. 2001-04-09 Akim Demaille * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR. (&handle_dist): Don't. (&handle_clean): Don't handle config.status here, let... * clean.am: ... do it. * distdir.am: Adjust. 2001-04-09 Akim Demaille * automake.in: Use strict vars and subs. Declare `%require_file_found'. (&handle_source_transform, &make_paragraphs): Declare my variables. 2001-04-09 Akim Demaille * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am, * progs.am, python.am: Use if/endif instead of ?INSTALL?. * java.am (_am_installdirs): Be sure to set it. 2001-04-09 Akim Demaille * automake.in (&make_condition): Return '#' when FALSE. (&conditional_string): Return FALSE, not '#' in the corresponding cases. (&file_contents_internal): Adjust. (&check_variable_defined_unconditional): Dump the guilty variable. 2001-04-09 Akim Demaille * distdir.am: Use and abuse of if/endif. * scripts.am: Using if/endif with variables is fine. 2001-04-09 Akim Demaille * automake.in (&make_paragraphs): Extract from &file_contents. Make it more robust than the previous RE based scheme. (&file_contents): Use it. 2001-04-09 Akim Demaille * automake.in (&make_paragraphs): Extract from &file_contents. Make it more robust than the previous RE based scheme. (&file_contents): Use it. 2001-04-09 Akim Demaille * tests/yacc2.test: Don't define several times a variable, as automake complains. 2001-04-09 Akim Demaille * automake.in (&handle_source_transform): Fix pr72: don't define $linker if there are no @files. 2001-04-09 Akim Demaille Avoid reading twice header-vars.am as now macro_define complains. * automake.in (&define_standard_variables): Don't output the variables. (&read_main_am_file): Output first user variables, then Automake variables. Don't call twice &define_standard_variables. Save variable comments in $am_vars. (&variable_output): New. (&file_contents_internal): New. Save variable comments in $am_vars. (&file_contents): Use it. 2001-04-09 Akim Demaille * automake.in (¯o_define): The user is allowed to override a value if it was set by Automake, or if it was found in AC_SUBST. 2001-04-09 Akim Demaille * automake.in (&handle_source_transform): Better locality of the variables. Use `next' to skip nonexistent variables. 2001-04-09 Akim Demaille * automake.in (&variable_dump): If a variable is undefined, say it. (&check_ambiguous_conditional): Give finer error messages. (¯o_define): Check that a `+=' variable is not set with `='. Check for ambiguous definitions each time you _set_ (even with `+=') a variable. (&read_main_am_file): Perform a deep copy of %conditional. 2001-04-09 Akim Demaille * automake.in (&variable_defined): Some callers, e.g., &am_primary_prefixes, really want to know if the variable is defined for any condition, not `TRUE' by default. (&am_primary_prefixes): Give a more precise error message. 2001-04-09 Akim Demaille (&variable_conditions): Don't include `FALSE' in the result. 2001-04-09 Akim Demaille * automake.in (&variable_conditions_reduce): FALSE is absorbent. (&variable_conditions): Don't include `FALSE' in the result. 2001-04-09 Akim Demaille * tests/defs, tests/depend3.test: Remove useless code. 2001-04-09 Akim Demaille * automake.in (&handle_source_transform): Use &variable_conditions, don't read $conditional{$var}. (&variable_conditions_sub): When the call is the top level call, generate all the permutations of the conditions. 2001-04-09 Akim Demaille * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so that it does not get noticed twice by automake, which now complains for multiple definitions. * tests/vartar.test: s/INSTALL/install/g, automake now complains because we defined INSTALL. 2001-04-09 Akim Demaille * automake.in (&generate_makefile) Use macro_define to define SOURCES and OBJECTS. (&variable_defined): Don't check for $conditional{VAR}{COND} as this would make perl create $condition{VAR}, which we don't want. 2001-04-09 Akim Demaille * automake.in (&variable_defined, &define_pretty_variable): Simplify code which used to handle the cases where not all variables were in %conditional. (&define_variable): Use &define_pretty_variable. (&variable_conditions_sub, &variable_value_as_list_worker) (&variable_value_as_list, &rule_define): Simplify syntax. (&read_main_am_file): Dump the guilty predefined variables. 2001-04-09 Akim Demaille * automake.in (&variable_conditions_sub) (&variable_value_as_list_worker): Remove dead code which used to handle the cases where not all variables were in %conditional. 2001-04-09 Akim Demaille * automake.in (&handle_source_transform, &read_main_am_file): Simplify loops which were split in two parts, conditional vs unconditional variables. 2001-04-09 Akim Demaille Handle unconditional values of variables as conditioned by `TRUE'. * automake.in (%contents): Remove. (&generate_makefile, &handle_ltlibraries, ¯o_define) (&read_am_file, &variable_defined, &variable_conditions_sub) (&variable_value, &variable_value_as_list_worker) (&variable_value_as_list, &define_pretty_variable) (&read_main_am_file): Use $conditional, not %contents. (&variable_conditions_permutations): Don't return TRUE and FALSE. (&variable_conditionally_defined): New. (&handle_dist): Use it. (&check_ambiguous_conditional): When multiply defined, specify under which condition. (¯o_define): Use it. (&variable_delete): New. (&read_am_file): Use it. (&am_install_var): Simplify, as all the variables are in %conditional now. 2001-04-07 Tom Tromey * tests/Makefile.am (XFAIL_TESTS): Added man.test. (TESTS): Likewise. * tests/man.test: New file. 2001-04-07 Raja R Harinath * depcomp (gcc3): Invert test condition. 2001-04-07 Tom Tromey * depcomp (gcc3, gcc): Don't assume $? will be set in `if' statement. Report from Larry Jones. 2001-04-07 Raja R Harinath * depcomp (sgi): Fix sed expression. Report from Robert Boehne. 2001-04-01 Tom Tromey * java.am (.PHONY clean-am): Removed trailing ":". From Per Bothner. Fixes PR automake/139. 2001-03-28 Akim Demaille * program.am: Fix a stupid typo: now *all* (not none) the programs use `$(EXEEXT)'. Reported by Robert Boehne. 2001-03-23 Akim Demaille * automake.in (&read_am_file, &file_contents): Avoid name clashes on $cond. 2001-03-23 Akim Demaille * automake.in (&variable_conditionally_defined): Rename as... (&check_variable_unconditionally_defined): this. (&variable_dump): Fix the output. (&variable_defined, ¯o_define): Since conditions are canonicalized, don't use a loop to look for a condition: read the hash. (¯o_define, &rule_define, &read_am_file, &file_contents): Rename $cond_string as $cond. * distdir.am (PACKAGE, VERSION): Remove; since they are already discovered via AC_SUBST, they now trigger a `defined twice' error. 2001-03-23 Akim Demaille * automake.in (&handle_footer, &handle_installdirs) (&read_main_am_file): Don't read %contents directly, use &variable_value. 2001-03-23 Akim Demaille * automake.in (&read_am_file): Define the variables in a single shot. Factor the $saw_bk code. 2001-03-23 Akim Demaille * automake.in (&read_am_file): Keep $cond_string up to date. 2001-03-23 Akim Demaille * automake.in (&define_variable): Use ¯o_define. 2001-03-23 Akim Demaille * automake.in (¯o_define): Don't lose the location if we redefine a variable. Don't push all the variables in @var_list, let... (&read_am_file, &file_contents): ... do it. (&define_pretty_variable): Use macro_define. (&am_install_var): Delete the value of variables being redefined to pacify ¯o_define which checks that variables are not doubly defined. 2001-03-23 Akim Demaille * automake.in (&conditional_dump): Rename as... (&variables_dump): this. Use... (&variable_dump): this new sub. 2001-03-23 Akim Demaille * automake.in (&file_contents): Maintain $cond_string sync with @cond_stack. Output rules only if not under `FALSE'. Define variables under $cond_string. * scripts.am: For the time being if/endif does not work properly with macros. 2001-03-23 Akim Demaille * automake.in (IF_PATTERN): Unobfuscate the parens. (ENDIF_PATTERN): Allow a condition to be specified. (&file_contents): Use a @cond_stack. (&transform): At least for an easy transition, also transform %?FOO% and %!FOO%, as suggested by Lars. * scripts.am: First test bed for static if/endif use. 2001-03-23 Akim Demaille * automake.in (&file_contents): Use rule_define. 2001-03-23 Akim Demaille * automake.in (¯o_define): Don't rely on $1. Initialize the variable. Set its Automakism only if not defined or if given to the user. When concatenating values, insert a separator only if the value was not empty. (&read_am_file): When dumping the @var_list, skip Automake variables. (&file_contents): Use macro_define. 2001-03-23 Akim Demaille * automake.in (&rule_define): Extract from... (&read_am_file): here. 2001-03-23 Akim Demaille * automake.in (¯o_define, &read_am_file): More work for the former from the latter. Reorganize the latter. 2001-03-23 Akim Demaille * automake.in (¯o_define): Extract from... (&read_am_file): here. 2001-03-23 Akim Demaille * automake.in (%am_var_defs): Replace with... (%var_is_am): this. (&handle_installdirs, &variable_value_as_list_worker, &read_am_file) (&file_contents, am_primary_&prefixes): Adjust. (&variable_defined, &define_variable): The actual semantics is `user defined'. (&read_main_am_file): Assert the var is user defined when outputting @var_list. 2001-03-23 Akim Demaille * automake.in (read_am_file): TRUE and FALSE are predefined conditionals. (&by_condition): Adjust. (&conditional_string): Recognize `TRUE' and `FALSE'. (&make_condition): Use it. * m4/cond.m4: Reject TRUE and FALSE as conditionals. * automake.texi (Conditionals): Adjust. * tests/cond9.test: s/FALSE/WRONG/. 2001-03-12 Pavel Roskin * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes now. 2001-03-12 Akim Demaille * automake.in (&variable_conditions_permutations): Separate the conditions. * tests/cond3.test: Improve the sed expression. 2001-03-09 Pavel Roskin * Makefile.am (maintainer-check): Scan all *.am files and tests for invocations of `rm' without `-f'. * tests/mclean.test: Adjusted to prevent triggering the above test. 2001-03-09 Tom Tromey * automake.in (scan_one_autoconf_file): Fixed comment to avoid maintainer-check failure. 2001-03-09 Akim Demaille * tests/cond3.test: Strengthen. 2001-03-09 Akim Demaille * automake.in (&conditional_string): Produce a unique string characterizing a condition stack. (&conditional_same): Remove, comparing two strings is now enough. (&variable_defined): Adjust. (&read_am_file): Use conditional_string. 2001-03-08 Akim Demaille * automake.in: Use -w. Normalize all use of `$lang . '-foo'' into `"$lang-foo"'. (&parse_arguments): Support --Werror and --Wno-error as a temporary hack until --warning/-W is properly implemented. (&handle_single_transform_list): Prototype. Be sure to define $directory. Use `exists' instead of testing the value of a maybe undefined hash value. (&add_depend2, &handle_configure, &handle_footer, &file_contents) (&handle_factored_dependencies): Use defined values. (&scan_one_autoconf_file): Save $_. * tests/lex2.test, tests/sinclude.test, tests/suffix3.test: Run automake with --Wno-error. 2001-03-07 Akim Demaille * automake.in (&handle_all): Use an array instead of a scalar for local_headers. Get rid of all-redirect: let `all' be that target. 2001-03-07 Akim Demaille * automake.in (&handle_merge_targets): Ventilate its non `all' related content into... (&generate_makefile): here. (&handle_merge_targets): Rename as... (&handle_all): this. Remove a useless `if': `@all' is obviously not empty, since it contains at least the `basename ($makefile)' which has just been unshifted. 2001-03-07 Akim Demaille * automake.in, aclocal.in: Backquote is inert in double quotes. 2001-03-06 Akim Demaille * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .' into `grep -v ...'. 2001-03-06 Pavel Roskin * java.am: Use `rm -f' instead of `rm'. 2001-03-06 Akim Demaille * automake.in (&push_dist_common): Simplify. 2001-03-06 Jens Krüger * ltlib.am: Replaced spaces with tab. 2001-03-06 Pavel Roskin * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's fixed now. 2001-03-05 Pavel Roskin * header.am, scripts.am: Use ?INSTALL? in the install and uninstall rules. 2001-03-05 Pavel Roskin * tests/copy.test: Never use `rm' without `-f' - it may ask questions, notably for read-only files during `make distcheck'. * tests/insh.test: Likewise. * tests/installsh.test: Likewise. * tests/symlink.test: Likewise. * tests/symlink2.test: Likewise. * tests/symlink3.test: Likewise. 2001-03-05 Pavel Roskin * noinstdir.test: New test. * tests/Makefile.am (TESTS): Add noinstdir.test. (XFAIL_TESTS): Likewise. 2001-03-05 Akim Demaille * automake.in (&handle_options): Change the RE so that the third part of the versions always exist. (&file_contents): Don't pass uninitialized values to &transform. 2001-03-05 Akim Demaille * automake.in (&file_contents): Require a hash as second argument. Adjust callers. 2001-03-05 Akim Demaille Always use hashes with &file_contents. * automake.in (&handle_texinfo): texibuild.am does not need TEXINFODIR. texinfos.am wants only TEXICLEANS. (&handle_dist, &add_depend2, &handle_clean): Replace $xform with %transform. * texinfos.am: Adjust. 2001-03-05 Akim Demaille * automake.in (&handle_programs, &handle_libraries, &handle_tags) (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust. (&am_install_var): Forget about `-clean'. Transform ?INSTALL?. Always output the *.am file. * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am, * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am: Remove, merged into the corresponding *.am file. * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with ?INSTALL?. 2001-03-05 Pavel Roskin * Makefile.am (amfiles): Add configure.am. Sort alphabetically. 2001-03-05 Akim Demaille If OBJEXT and EXEEXT are not set, provide a default value, and use them unconditionally. * automake.in (&generate_makefile): Provide default values for EXEEXT and OBJEXT. (&get_object_extension, &finish_languages) (&handle_single_transform_list, &handle_programs, &add_depend2) (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with them, they are defined. * compile.am, depend2.am, program.am, progs.am: Likewise. * remake-hdr.am: Fix a typo. * tests/cxxo.test, tests/fo.test, tests/implicit.test, * tests/interp.test, tests/subobj.test, tests/subobj2.test, * tests/suffix2.test: Adjust. 2001-03-05 Akim Demaille * automake.in (&file_contents): Map MAINTAINER-MODE to @MAINTAINER_MODE_TRUE@ or nothing. * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust. Suggested by Tom. 2001-03-05 Akim Demaille * automake.in (&do_one_merge_target): Remove, was only called from... (&handle_merge_targets): here for `all'. Adjust. 2001-03-05 Akim Demaille Make the installation/uninstallation of Info pages follow the regular am/recursive scheme. * automake.in (%required_targets, %dependencies): Add install-info. (%dependencies): Add install-info, install-info-am, and unstall-info. (&handle_subdirs): Don't transform INSTALLINFO, which mapping was reversed BTW. Does anybody use the option `no-installinfo'? (&handle_merge_targets): Let the handling of info related targets to... (&handle_factored_dependencies): this. * subdirs.am: Use ?INSTALL-INFO?. * texinfos.am: Define the install-info, uninstall-info and uninstall-info-am targets. 2001-03-05 Akim Demaille * automake.in (%required_targets, %dependencies): Add dvi, info, dvi-am, info-am. (@info, @dvi): Remove. (&handle_texinfo, &handle_merge_targets): Adjust. (&handle_factored_dependencies): Required targets are phony. * texinfos.am: Build info, dvi, and the corresponding -am or -recursive targets. 2001-03-05 Akim Demaille * automake.in (&am_install_var): Remove $cygxform, unused. 2001-03-05 Akim Demaille * automake.in (&file_contents): Transform LIBTOOL. (&am_install_var): Remove $ltxform. * ltlib.am, progs.am: Adjust. 2001-03-05 Akim Demaille * automake.in: Require AC_PROG_INSTALL in... (&scan_autoconf_files): here. 2001-03-05 Akim Demaille * configure.am: New file. * automake.in (&file_contents): Transform CONFIGURE-AC. (&handle_texinfo, &handle_configure): Don't transform CONFIGURE_AM. (&handle_configure): Use `configure.am'. * remake-hdr.am, remake.am, texi-vers.am: Adjust to MAINTAINER-MODE and CONFIGURE-AC. 2001-03-05 Akim Demaille * automake.in (&pretty_print_internal): Don't output useless spaces. (define_pretty_variable): Don't issue the space after the `=' sign to avoid trailing spaces in Makefile.ins. 2001-03-05 Akim Demaille * automake.in (&generate_makefile): Invoke &initialize_per_input *before* setting $am_file_name and $in_file_name. 2001-03-05 Akim Demaille * automake.in ($in_file_name, $am_file_name, $relative_dirs): Globals, initialized... (&initialize_per_input): here. 2001-03-05 Akim Demaille * automake.in ($am_relative_dir): Global. (&initialize_per_input): Init it. (%make_list, @make_input_list): My them from (&scan_autoconf_files): here. (&require_file_internal): Mying changes. 2001-03-05 Akim Demaille * automake.in (%am_vars, @var_list, %def_type): Globals. (&initialize_per_input): Initialize them. (&read_main_am_file): Don't local them. (&get_object_extension): $objext is private. (&handle_single_transform_list): $lang is. (&handle_ltlibraries): $libname_rx is. (&scan_autoconf_config_files): How about actually paying attention to your arguments, instead of working on $_? (this is no Perl variable, it's a Perl variable followed by a question mark). (&file_contents): $contents and $separator are private. (&am_install_var): Declare @condvals, not $condvals. (%make_dirs): My. 2001-03-05 Akim Demaille * automake.in (&initialize_per_input): Move to the top. Precede with the `my' list of its variables. 2001-03-05 Akim Demaille * automake.in ($am_file): Use vars. ($am_file_name, $in_file_name): Private to &generate_makefile. 2001-03-05 Akim Demaille * automake.in: Preparation for `use strict': Move the initialization of the constants to the top, from... (&initialize_global_constants): here. 2001-03-05 Akim Demaille * automake.in (&handle_single_transform_list, &add_depend2): Let $lang_specific_files{$lang} be a list instead of a string. 2001-03-05 Akim Demaille Let's make it run ten times faster... * automake.in (&transform): Be sure to remove the `\n' with ?FOO? transformations. (&file_contents): Let `$command' remove the Automake commands, and normalize the series of `\n'. Slurp the file and apply $command in a single step. No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which is already normalized to be handled by &transform. 2001-03-05 Tom Tromey * automake.in (register_language): Add entry for `-pure'. Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java. (finish_languages): Use `-pure' field of language map. 2001-03-03 Tom Tromey * tests/yaccvpath.test: No need to remove dummy files. * tests/subobj3.test: No need to remove dummy files. * tests/pr9.test: No need to remove dummy files. * tests/pr87.test: No need to remove dummy files. * tests/pr19.test: No need to remove dummy files. * tests/install2.test: No need to remove dummy files. * tests/defs: Actually copy in install-sh, mkinstalldirs, missing, and depcomp. 2001-02-27 Pavel Roskin * tests/yaccvpath.test: Add a delay to make parse.c really out of date. Detect the problem earlier, after `make distdir'. Drop dependency on flex. Always use the `-y' flag for bison. Comment changes. * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS. 2001-03-02 Jens Krüger * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo. 2001-02-28 Akim Demaille * automake.in (&add_depend2): Transform `GENERIC'. Get rid of the ad hoc transformation of `@EXT@.o:' which in addition was broken by the `@ -> %' patch. * depend2.am: Adjust to use ?GENERIC?. 2001-02-28 Akim Demaille * Makefile.am (maintainer-check): `undef $/' is OK. 2001-02-28 Akim Demaille * automake.in (&handle_configure): Fortunately, $top_reldir, the definition of which was highly suspicious, was unused. 2001-02-27 Akim Demaille * automake.in (%exec_dir_p): Move to the top so that it is visible to all routines. 2001-02-27 Pavel Roskin * tests/yaccvpath.test: Prevent automake from looking into .. and ../.. by using AC_CONFIG_AUX_DIR in configure.in. 2001-02-27 Akim Demaille * automake.in (%exec_dir_p): Pulled out from... (&am_primary_prefixes): here. 2001-02-27 Akim Demaille * automake.in (&usage): Display $0, not $me. 2001-02-27 Akim Demaille * mans.am: s/INSTALL_MAN/INSTALL-MAN/. * automake.in (&handle_clean): Don't escape what's given to &transform. 2001-02-27 Akim Demaille Distinguish automake substitutions from config.status substitutions. * automake.in (&add_depend2): Transform AMDEP. (&handle_clean): Transform MCFILES and MFILES. (&file_contents): Transform MAINTAINER_MODE. (&transform, &am_install_var): Use `%', not `@'. Adjust all the *.am files. * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN. * depend2.am: Display the double dependency on both ?AMDEP? and @AMDEP@. 2001-02-27 Tom Tromey * distdir.am (distcheck): Fixed new code. * tests/yaccvpath.test: Fail gracefully if bison/flex not found. Only configure once. * distdir.am (distcheck): Print error message if distclean failed to fully clean. 2001-02-27 Pavel Roskin * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/. 2001-02-25 Alexandre Duret-Lutz * tests/Makefile.am (TESTS): Added yaccvpath.test. * tests/yaccvpath.test: New file. 2001-02-26 Akim Demaille * automake.in (&am_install_var): Recognize whether predefined directories are `data' or `exec'. * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install ?EXEC?. * tests/instdata2.test: Update. 2001-02-26 Akim Demaille * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is necessarily in infodir. 2001-02-26 Akim Demaille * automake.in ($am_file): Be `local', as my'd variables used in `foreach' loops are always private to the loop. 2001-02-26 Pavel Roskin * Makefile.am: Add install.am. 2001-02-26 Akim Demaille * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing routines, otherwise the elements to compare are passed in @_ instead of $a and $b. 2001-02-26 Akim Demaille * automake.in (%required_targets): `installcheck-am' is needed. 2001-02-26 Akim Demaille * automake.in (&transform_cond): Merge into... (&transform): this. Adjust all uses. 2001-02-26 Akim Demaille * automake.in (&handle_dist): Use &transform instead of dedicated magic for DISTDIRS. But be sure to always do it. * distdir.am: Adjust. 2001-02-26 Akim Demaille * automake.in: Use File::Basename. (&dirname, &basename): Remove. 2001-02-26 Akim Demaille * automake.in ($me): New. Use it. (&usage): Display your full name. 2001-02-26 Akim Demaille * automake.texi (Invoking Automake): Remove dead options. 2001-02-26 Akim Demaille * automake.in (&scan_texinfo_file): Also compute the list of files to clean. Handle local errors. (&handle_texinfo): Use it. 2001-02-26 Akim Demaille * automake.in: Don't pass arguments to... (&parse_arguments): Work on @ARGV. Use Getopt. Add support for `-f'. (&version): New. (&usage): Update. 2001-02-26 Akim Demaille * automake.in (&handle_merge_targets, &do_one_merge_target): Don't handle installcheck and installcheck-am. * install.am: Do it. 2001-02-26 Akim Demaille * automake.in (&handle_merge_targets, &do_one_merge_target): Don't handle install and install-am. * install.am: Do it. 2001-02-26 Akim Demaille * automake.in (&handle_merge_targets, &do_one_merge_target): Don't work on targets handled by %dependencies. (&handle_factored_dependencies): Do it. * install.am: Install install-exec, install-data and uninstall's suites. 2001-02-26 Akim Demaille * automake.in (&handle_merge_targets): Move `install-strip' from here... * install.am: to here. 2001-02-26 Akim Demaille * automake.in (@installdirs): Remove. (&file_contents): Be able to grow Automake macros with `+='. (&handle_texinfo, &handle_man_pages, &am_install_var): Let your files define _am_installdirs. (&handle_installdirs): Remove the code, just output `install.am'. * install.am: New. * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am, * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs). 2001-02-26 Akim Demaille * tests/instdata2.test (libexec_DATA): Exercise more possibilities. 2001-02-25 Alexandre Duret-Lutz * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete). 2001-02-25 Tom Tromey * tests/instdata2.test: Added `sbin_DATA' check. * tests/Makefile.am (TESTS): Added subdircond.test. * tests/subdircond.test: New file. * automake.in (handle_gettext): Don't fail if SUBDIRS conditionally defined. * automake.in: Use IO::File. (generate_makefile): Use IO::File. (scan_texinfo_file): Likewise. (handle_aclocal_m4): Likewise. (scan_autoconf_traces): Likewise. (scan_one_autoconf_file): Likewise. (read_am_file): Likewise. (file_contents): Likewise. (create): Likewise. 2001-02-25 Akim Demaille * automake.in (handle_texinfo): Remove code handled by texinfos.am. 2001-02-25 Akim Demaille * automake.in (&transform): Also call &transform_cond on your arguments. (&handle_dist): Adjust. (&handle_factored_dependencies): Uniq dependencies. 2001-02-25 Akim Demaille * automake.in (&handle_gettext): Simplify redundant `if'. Used &variable_value, don't read %contents directly. 2001-02-25 Akim Demaille * automake.in ($install_recursive): Remove, replaced with calls to `&variable_defined ('SUBDIRS')'. (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since... (&file_contents): now does. 2001-02-25 Akim Demaille * automake.in (&handle_man_pages): $found is dead. 2001-02-25 Akim Demaille Internally just store the conditionals as space separated lists of CONDITIONS (instead of @CONDITIONS@). * automake.in (&conditional_true_when, &variable_conditions_sub): Split conditions at spaces. (&handle_dependencies, &variable_conditions_permutations): Don't put @ around conditions. (&variable_conditions_cmp): There are no @ to strip. (&make_condition): New. (&define_pretty_variable, &read_main_am_file, &read_am_file): Use it. (&read_main_am_file, &read_am_file): Stop playing with @ by hand. Join @conditional_stack with spaces. (&read_main_am_file): Adjust the output of variables. Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE = true' and no longer `@TEST@TRUE = @TEST@true'. (&variable_conditions_cmp): Rename as... (&by_condition): this. Sort in a human pleasant order. Use it everywhere a human can see conditions. (&variable_conditions_reduce): Don't sort conditions, that's pointless. * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen. 2001-02-25 Akim Demaille * automake.in: `my' the globals. 2001-02-25 Akim Demaille * automake.in (&initialize_per_input): %targets_conditionals is new. (&read_am_file): When slurping a rule, set the target related variable, and no variable related variable. (&file_contents): Likewise. * tests/vartar.test, tests/ctarget1.test: New. 2001-02-25 Akim Demaille * automake.in (&variable_defined, &variable_value_as_list_worker): If $VAR is effectively a variable, don't die if it's also a target. Plus some formatting changes. 2001-02-25 Akim Demaille * automake.in: Mying changes. * Makefile.am (maintainer-check): Check the stability of the number of uses of `local'. 2001-02-25 Akim Demaille * automake.in: Mying changes. 2001-02-25 Akim Demaille * automake.in: Mying changes. 2001-02-25 Akim Demaille * automake.in: Mying changes. (&handle_tags): Fix a bug uncovered by the previous mying changes: transform CONFIG into $config, not $xform. 2001-02-25 Akim Demaille * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var): Don't deal with install-data-am, install-exec-am and unstall-am. (&initialize_per_input): Add them to %dependencies. Remove %exec_dir_p since the *.am files are now in charge of it. Remove @uninstall, @install_data, @install_exec. (&handle_merge_targets): Adjust to these removals. (&file_contents): Also &transform_cond for --no-installman and --no-installinfo. (&do_one_merge_target): Add some magic to install hooks on %dependencies' targets. (%required_targets): New. (&handle_factored_dependencies): Output required targets. * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am, * mans-vars.am, mans.am, progs.am, python.am, scripts.am, * texinfos.am: Declare your dependencies on install-data-am, install-exec-am and uninstall-am. * tests/instdata2.test (incldata_HEADERS): New test. 2001-02-24 Tom Tromey * Makefile.am (amfiles): Added texibuild.am. * texibuild.am: New file. * tests/Makefile.am (TESTS): Added texinfo9.test. * tests/texinfo9.test: New file. * automake.in (handle_texinfo): Keep track of suffixes used. Give error if suffix unrecognized. Removed extraneous newline. 2001-02-23 Akim Demaille * automake.in (&am_install_var): Don't hook on the clean targets and .PHONY. * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am, * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am: Do it. 2001-02-23 Akim Demaille * automake.in: Promote local `my' over `local'. 2001-02-23 Akim Demaille * automake.in: Formatting and mying changes. 2001-02-23 Akim Demaille * automake.in: Formatting and mying changes. 2001-02-23 Akim Demaille * automake.in (&handle_man_pages): Let install-man and uninstall-man be handled by the dependency tracker. (&initialize_per_input): Let %dependencies track them. * mans.am: Add the needed hooks with the proper dependencies. 2001-02-22 Pavel Roskin * tests/target-cflags.test: Don't use subshell to configure in subdirectory. Typo fix - run `./foo', not `/foo'. 2001-02-22 Akim Demaille * automake.in: Formatting and mying changes. 2001-02-21 Tom Tromey * automake.in (handle_dist): Introduce new variable to avoid extra keys in %dist_dirs. Fixes distdir.test. * automake.in (handle_texinfo): Only remove suffixes we can handle. * tests/distdir.test: Check to make sure directory isn't made in build directory. * automake.in (handle_dist): Do nothing in Cygnus mode. 2001-02-21 Pavel Roskin * header-vars.am: Remove tabs before variable definitions. 2001-02-21 Akim Demaille * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid false diagnostics. 2001-02-21 Akim Demaille * automake.in (&dist_cmp, &target_cmp): Be sure to return a numeric value as required by Perl 5.6. 2001-02-21 Akim Demaille * dist-vars.am: Remove, merge into... * distdir.am: this. * automake.in (dirname, basename, backname): Move to the top of the file so that prototypes are checked, Use them without `&'. (&handle_dist): Adjust. 2001-02-21 Akim Demaille * automake.in (&check_ambiguous_conditional, &read_main_am_file): Use a uniform naming scheme. ("e_cond_val, &unquote_cond_val): Delete, dead code. (&read_am_file): Fix conditional definition of backslash continued items. 2001-02-21 Akim Demaille Change the handling of conditionals: instead of using an ad-hoc encoding to store a hash in a string, use hashes. * automake.in (&conditional_dump): New. (&check_ambiguous_conditional, &variable_defined) (&variable_conditions_sub, &variable_value_as_list_worker) (&define_variable, read_am_file, &read_main_am_file): Be sure to handle `$conditional{$vars}' as a hash instead of a plain string. 2001-02-21 Akim Demaille * automake.in (&conditional_true_when): Modernize, simplify. Warning: `$comp' is now private (my), while it used to be `inherited' from a `local' elsewhere in the code. AFAICT it was wrong, but some dirty side effect might show up. (&conditionals_true_when): New. (&variable_conditions_sub, &variable_conditions_reduce): Use it. 2001-02-21 Akim Demaille * automake.in ($top_builddir): Remove, used in one place. (&define_standard_variables): Adjust. Move the definition of triplet variables into... * header-vars.am: here. 2001-02-21 Akim Demaille * automake.in (&initialize_global_constants): Don't define $USAGE. (&usage): Handle the former content of $USAGE. Don't pretend autoconf cares about Makefile.in. Classify the options. (&handle_tests): Formatting and mying changes. 2001-02-21 Akim Demaille * automake.in (&handle_tests_dejagnu): Move the definition of a default `site.exp' into... * dejagnu.am (site.exp): here. Use DOS compliant file names. 2001-02-21 Akim Demaille * automake.in (&dist_cmp): New. (&handle_dist): Use it. Promote `my' over `local'. 2001-02-21 Akim Demaille * dist.am: Remove, merge into... * distdir.am: here. Use the neat sed snippet for banners. BTW, distcheck is phony. * automake.in (&handle_dist_worker): Remove, merge into... (&handle_dist): this. (&file_contents): Strip leading new lines. Be sure to end comments with new lines. 2001-02-21 Akim Demaille * distdir.am (GZIP_ENV): Define. * automake.in (&handle_dist): Don't. (&uniq): New. (&handle_dist_worker, &am_install_var): Use it. 2001-02-21 Akim Demaille * distdir.am (distdir): Handle the DIST-TARGETS. * automake.in (&handle_dist_worker): Don't. 2001-02-21 Akim Demaille * automake.in (&file_contents): Transform the global options (such as CYGNUS). (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't. 2001-02-21 Akim Demaille * distdir.am (distdir): Be sure to have permissive rights on its contents. (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional targets. And BTW, all these guys are phony. * automake.in (&handle_dist_worker): As its name doesn't indicate, output distributions. (&handle_dist): As its name doesn't indicate, don't. (&initialize_global_constants): Don't define variables which content is now handled by distdir.am. But register `dist-all' as a factored target. (&handle_factored_dependencies): Don't output empty targets. 2001-02-20 Tom Tromey * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow invocation. 2001-02-18 Tom Tromey * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP. Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'. (AM_PROG_STRIP): Commented out. 2001-02-17 Raja R Harinath * depcomp (gcc3): Protect against the compiler deleting the dependency output file. 2001-02-17 Tom Tromey * automake.in (handle_merge_targets): Use double quotes around setting of INSTALL_STRIP_PROGRAM. * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM to absolute path at runtime. (AM_PROG_STRIP): Don't explicitly test $STRIP. 2001-01-28 Alexandre Duret-Lutz * m4/strip.m4: New file. * m4/Makefile.am (m4data_DATA): Add strip.m4. * m4/init.m4: Call AM_PROG_INSTALL_STRIP. * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function. * automake.in (handle_merge_targets): In the install-strip rule, set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG. * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV, don't use INSTALL_STRIP_FLAG any longer. 2001-02-16 Alexandre Duret-Lutz * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's argument. 2001-02-16 Alexandre Duret-Lutz * automake.in (unquote_m4_arg): New function. (scan_one_configure_file): Call unquote_m4_arg on AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h]) works. 2001-02-15 Tom Tromey * config.guess, config.sub: New versions from FSF. * Makefile.am (WGET): New macro. (FETCHFILES): New macro. (fetch): New target. * tests/subobj3.test: Exit with status 77 if gcc not found. * tests/pr9.test: Exit with status 77 if gzip not found. * tests/pr87.test: Exit with status 77 if gcc not found. * tests/pr19.test: Exit with status 77 if gzip or gcc not found. * tests/install2.test: Exit with status 77 if gzip not found. * tests/exsource.test: Exit with status 77 if GNU make not found. * tests/ansi3.test: Exit with status 77 if gcc not found. * tests/target-cflags.test: Require GNU make. Exit with status 77 if gcc or make not found. Fixes PR automake/121. * configure.in: Require Perl 5.005. * automake.in: Require 5.005. * automake.texi (Top): Conditionalize on `nottex', not `info'. Fixes PR automake/122. 2001-02-14 Tom Tromey * automake.in (add_depend2): Only emit a given object rule once. Fixes specflags6.test. 2001-02-14 Richard Boulton * tests/specflags6.test: New file. 2001-02-14 Tom Tromey * automake.texi (A Shared Library): Mention -module. 2001-02-13 Tom Tromey * automake.in (do_one_merge_target): Always register $name and $name-am as phony. * automake.in (do_one_merge_target): Register `all' as phony target. * configure.in: Updated to 1.4e for cvs. 2001-02-12 Tom Tromey * configure.in: Updated to 1.4d and released. * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_* names through autoconf. Fix for subdirbuiltsources.test: * automake.in (initialize_per_input): [all_target] Initialize to empty string. (handle_merge_targets): Use all-redirect target to handle built sources. (do_one_merge_target): Don't generate all-redirect rule. 2001-02-11 Peter Muir * tests/subdirbuiltsources.test: New file. * tests/Makefile.am (TESTS): Added new file. 2001-02-10 Tom Tromey * tests/condlib.test: New file. * tests/Makefile.am (TESTS): Added new file. 2001-02-10 Lars J. Aas * automake.in ($MACRO_PATTERN): Include '@' in name regex. (&canonicalize): New. Includes '@' in canonical range. (&check_canonical_spelling, &handle_programs, &handle_libraries, &handle_ltlibraries, &handle_texinfo): Use &canonicalize. 2001-02-10 Raja R Harinath * automake.in (handle_configure): Revert part of '2001-02-04 Kevin Ryde '. Don't set CONFIG_COMMANDS explicitly. 2001-02-09 Raja R Harinath * depcomp (gcc3): Propagate exit code. 2001-02-09 Lars J. Aas * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo) 2001-02-09 Tom Tromey Clean up maintainer-check warnings: * Makefile.am (maintainer-check): Ignore comment lines in CDPATH check. * automake.in (handle_dist_worker): Removed redundant `my $xform'. 2001-02-09 Akim Demaille * automake.in (&file_contents): Remove a dead branch. 2001-02-09 Akim Demaille * automake.in (&transform): Use `my', not `local'. (&transform_cond): New. (&get_object_extension, &handle_texinfo, &handle_tags) (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean) (&handle_tests_dejagnu): Use it. * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am * dejagnu.am, data.am, clean.am: Adjust to the new syntax. 2001-02-09 Akim Demaille * automake.in: Various formatting changes, and modernization of Perl constructs. (&backname): New. (&handle_configure, define_standard_variables): Use it. 2001-02-08 Tom Tromey * automake.in (file_contents): Only add $actions if any are found. Fixes new failure in pr87.test. 2001-02-08 Pavel Roskin * tests/pr87.test: Check foo/Makfile.in after it is created. 2001-02-08 Tom Tromey * tests/pr87.test: Added check for blank line after `.c.o' rule. Report from Lars J. Aas. 2001-02-07 Lars J. Aas * lisp.am (install-@DIR@LISP): Removed extra space. * header.am (install-@DIR@HEADERS): Removed extra space. * data.am (install-@DIR@DATA): Removed extra space. 2001-02-07 Tom Tromey * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ". * automake.in (handle_dependencies): Use _am_include, not AMINCLUDE. * tests/exsource.test: Use _am_include, not AMINCLUDE. * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE. * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test. * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old. * automake.in (handle_configure): Handle case where output file is in subdir with no Makefile of its own. Fixes remake3.test, distcommon.test. 2001-02-06 Pavel Roskin * automake.in (handle_dependencies): Rename AM_INCLUDE to AMINCLUDE. * m4/make.m4 (AM_MAKE_INCLUDE): Likewise. * tests/exsource.test: Likewise. 2001-02-06 Derek Price * automake.in (handle_configure): Fix syntax error. 2001-02-06 Akim Demaille * subdirs.am: This file is the exception: clean recursive targets are called by the clean targets, not the clean-am targets. Otherwise we have a circular dependency: clean -> clean-am -> clean-recursive -> clean. * automake.in (handle_clean): Bind `-local' targets to `-am' targets, not top targets. Don't declare -recursive dependencies of the clean targets: `subdirs.am' did it. Less hard coded knowledge, transfered into... * clean.am: here. 2001-02-06 Akim Demaille Monstro unsplitable patch. The aim is to remove hard coded knowledge about clean targets from automake.in, leaving them in the *.am files. In addition to the mechanic needed to factor some dependencies, it appears some rules (most notably distclean and maintainer-clean) need factored actions. So first, be ready to catch factored rules. * automake.in (&file_contents): For the time being, use an extended $RULE_PATTERN which is able to match any kind of rules, with or without dependency, with or without actions. Handle all the rules uniformly, storing in %actions the factored actions. (&flatten, &target_cmp): New. (&handle_factored_dependencies): Output the %actions. No longer special case `clean'. Output the rules in alphabetical order, but keeping `.PHONY' last. Now we must not use &push_phony_cleaners, which is doing all sort of magic to push a bit of everything in all the clean targets. The biggest problem being that, making a Cartesian product, it requires many useless targets. The `*.am' file know better. But first, register the new factored rules. * automake.in (&initialize_per_input): Include clean, mostlyclean, maintainer-clean, distclean and their `*-am' counterpart in %dependencies. Initialize %actions. (get_object_extension, handle_texinfo, handle_tags, handle_multilib) handle_dependencies, handle_subdirs, handle_configure, handle_clean) (handle_emacs_lisp, handle_python): Don't play with &push_phony_cleaners nor &depend and `clean'. * texinfos.am, texi-vers.am, tags-clean.am: * subdirs.am,python-clean.am, multilib.am, lisp-clean.am: * libtool.am, kr-extra.am, depend.am, compile.am, clean.am: * clean-kr.am, clean-hdr.am: Do it. Whenever a target is empty, just remove it, it will no longer be called. There is still some magic about clean to hard code. But really, that's the end of &do_one_clean_target. * automake.in (&do_one_clean_target): Kaboom out. (&handle_clean): Rewrite the magic code. (&am_install_var): No longer use &push_phony_cleaners, nor depend on `clean'. (&push_phony_cleaners): Kaboom too. 2001-02-06 Akim Demaille * automake.in (do_one_clean_target): Don't hard code knowledge about libtool, and maintainer-clean. * clean.am, libtool.am: Handle these. 2001-02-05 Akim Demaille * automake.in (handle_texinfo): No longer hard code the clean targets. (texinfos.am): Include them. 2001-02-05 Akim Demaille * Makefile.am (perl4-check): Remove, we now require Perl 5. (maintainer-check): Don't be silent when you find a problem, and actually, even specify the locations. Also check that @_ is assigned to arrays. 2001-02-05 Akim Demaille * m4/regex.m4: Use AC_LIBSOURCES. * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not _AC_LIBOBJ_DECL. 2001-02-04 Tom Tromey * m4/Makefile.am (m4data_DATA): Added make.m4. * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include dependency files. * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE. Copy depcomp to subdir. * m4/make.m4: New file. 2001-02-04 Pavel Roskin * automake.in (handle_dist_worker): Remove a line that is now in distdir.am. 2001-02-04 Kevin Ryde * automake.in (handle_configure): Call config.status with empty CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file. 2001-02-04 Tom Tromey * depcomp (ddashmd): Removed case. (sgi): Handle failure exit correctly (aix): Likewise. Also, add dummy `.h' targets. 2001-02-04 Akim Demaille * distdir.am (distdir): New file, extracted from... * automake.in (handle_dist_worker): here. Adjust. 2001-02-04 Akim Demaille * automake.in (@clean): Remove, replaced by... ($dependencies{'clean'}): this. Use `&depend' instead of push'ing into @clean. (handle_factored_dependencies): For the time being, skip 'clean'. (do_one_clean_target): Don't ask for argument 1 and 4 as they are always `clean', and `@clean'. 2001-02-04 Akim Demaille * automake.in (%dependencies): Don't be initialize globally for all the files, but in... (&initialize_per_input): here. (&depend): New. (@phony): Replace all occurrences with the corresponding &depend invocation. 2001-02-03 Tom Tromey * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER. * header-vars.am (INSTALL_HEADER): New macro. * automake.texi (Rebuilding): New node. 2000-12-29 Derek Price * automake.in (handle_dependencies): Switched the DEP_FILES definition to be conditional on @AMDEP@. 2001-02-03 Ville Laurikari * depcomp (aix): New side-effect dependency tracking mode, for the C for AIX compiler. * m4/depend.m4 (AM_DEPENDENCIES): Recreate `conftest.c' and `conftest.h' for each test. 2001-02-03 Tom Tromey * automake.texi (Dist): Updated to mention caveat of putting directory in EXTRA_DIST and also providing a nice example of removing the CVS dir. From Ganesan Rajagopal. * m4/depend.m4 (depcpp): Run tests in a subdir. Fixes report from Bob Proulx. * automake.in (scan_one_autoconf_file): Disable warning about AM_PROG_LIBTOOL. * automake.in (handle_configure): Don't modify variable which aliases list element. Don't push @inputs onto the dist list. Fixes colon7.test. (initialize_per_input) [dist_dirs]: New variable. (handle_dist_worker): Use global dist_dirs. (handle_configure): Set dist_dirs entries at toplevel. 2001-02-02 Gordon Sadler * automake.texi (Java Support): Added index, @section. 2001-02-02 Pavel Roskin * automake.in (scan_autoconf_traces): Restore trace messages. * automake.in (handle_aclocal_m4): Fix stripping of the initial "./" from the dependencies of aclocal.m4. Reported by Ralf Corsepius. 2001-02-01 Pavel Roskin * aclocal.in: Rename "verbosity" to "verbose". Always prepend "aclocal: " to the verbose output. * automake.in: Remove all debugging messages. 2001-01-31 Akim Demaille * automake.in (add_depend2): Quote properly $obj and $source. 2001-01-31 Akim Demaille * depend2.am: Instead of replacing @PFX@ in $(@PFX@COMPILE), and then replacing `$(@PFX@COMPILE)' for the files that need some special flags, use only @COMPILE@. Similarly for @LTCOMPILE@. Try to document this file. * automake.in (add_depend2): Adjust to these changes. 2001-01-31 Akim Demaille * automake.in (%factored_dependencies): New. (file_contents): Use it. (handle_phony): Rename as... (handle_factored_dependencies): this. * subdirs.am: No need for convolved syntax to declare .PHONY. 2001-01-31 Akim Demaille * automake.in: maintainer-check fixes. 2001-01-31 Akim Demaille * automake.in (file_contents): Rewrite: instead of trying to parse it line by line, first swallow it completely into $CONTENTS, *then*, parse it *paragraph* by paragraph. 2001-01-30 Akim Demaille * automake.in (file_contents): Remove. (file_contents_with_transform): Swap the order of the arguments, and rename as... (file_contents): this. Adjust all uses. 2001-01-30 Tom Tromey * automake.in (scan_one_autoconf_file): Don't mention omit_dependencies. 2001-01-29 Akim Demaille * automake.in (&scan_autoconf_config_files): Extract from &scan_one_autoconf_file. (&scan_one_autoconf_file): Use it. (&scan_autoconf_traces): New. ($scan_autoconf_files): Use it. 2001-01-29 Akim Demaille * texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a .PHONY target. * automake.in (handle_texinfo, handle_man_pages, handle_multilib) (handle_etags, handle_subdirs): Don't push into @phony. 2001-01-29 Akim Demaille * automake.in (scan_one_autoconf_file): Correctly recognize configure.ac. 2001-01-29 Akim Demaille * automake.in (handle_tests_dejagnu): New, extracted from... (handle_tests): here. Use `.PHONY:'. 2001-01-29 Akim Demaille * automake.in (handle_phony): Sort. (file_contents_with_transform): Catch `.PHONY:'. (handle_tests): Instead dumping the hard coded target check-TESTS and registering its .PHONYsm, get them from... * check.am: here, new file. 2001-01-29 Akim Demaille * automake.in (add_depend2): Use &transform. 2001-01-29 Akim Demaille * automake.in (handle_tags): Use &transform. (am_error, am_line_error, am_conf_error, read_am_file): Use directly arrays in strings, no need for &join. Require Perl 5. * Makefile.am (maintainer-check): Use grep -w when looking for words. 2001-01-29 Akim Demaille * automake.in (prog_error): New. Spread its use. 2001-01-29 Akim Demaille * automake.in (handle_single_transform_list): if (@list) { foreach (@list) ...} can be written as a simple `foreach' loop. 2001-01-29 Akim Demaille * automake.in (define_standard_variables): Use &transform instead of build_rx. 2001-01-29 Akim Demaille * automake.in (handle_texinfo): Use the new $texinfodir instead of the removed $texinfo_tex. 2001-01-29 Akim Demaille * automake.in (handle_libraries, handle_ltlibraries): Use &transform. 2001-01-29 Akim Demaille * automake.in (handle_programs) : Remove, replaced by `exeext'. Use it, and &transform. 2001-01-29 Akim Demaille * automake.in (get_object_extension) <$default_includes>: New. Use it and &transform. 2001-01-28 Tom Tromey * automake.in (variable_value_as_list_worker): Handle entries in %am_var_defs. Fixes listval.test. 2001-01-26 Akim Demaille * automake.in (handle_texinfo): Don't use $conf_pat, just $conf_dir to transform MDDIR since now &transform handles the escaping of RE special characters by itself. 2001-01-24 Akim Demaille * m4/depend.m4 (AM_DEPENDENCIES): Don't leave `AC_PROG_CC' etc. in clear. * m4/init.m4: Likewise. * m4/sanity.m4: s/conftestfile/conftest.file/. 2001-01-24 Tom Tromey * automake.in (handle_libraries): Use $configure_ac; typo fix. * automake.in (transform): Quote substitution. 2001-01-21 Alexandre Duret-Lutz Tom Tromey * automake.in (obsolete_rx): Match whole macro names, not substrings. * aclocal.in (obsolete_rx): Likewise. 2001-01-21 Tom Tromey * automake.texi: Changed dir category. 2001-01-18 Akim Demaille * automake.in (handle_texinfo): Use &transform, and transform CONFIGURE_AC. Reported by Lars Hecking, and diagnosed by Raja R Harinath. 2001-01-16 Akim Demaille Let Automake support `configure.ac'. * automake.in: In the comments, prefer `configure.ac' to `configure.in'. When using &am_conf_error, don't repeat `in configure.in', since the function already reports it. When referring to `configure.in' use `$configure_ac' instead. (configure_ac): New global variable. (scan_configure, scan_one_configure_file): Rename as... (scan_autoconf_files, scan_one_autoconf_file): this. (scan_autoconf_files): Compute $configure_ac. (transform): New function. (handle_configure): Use it to transform CONFIGURE_AC in `remake.am' and in `remake-hdr.am'. (common_files): Also consider `configure.ac'. Use consistently single quotes. * aclocal.in (configure_ac): New variable. Use it. * texi-vers.am: Depend on CONFIGURE_AC not configure.in. * remake.am: Likewise. * remake-hdr.am: Likewise. 2001-01-16 Akim Demaille * m4/multi.m4: Remove the hairy useless quotation of `$'. Simplify `ifelse([$2],,,[$2])' into... `$2'! * m4/minuso.m4: Don't use changequote! * m4/cond.m4: Fix quotation. * m4/sanity.m4: Follow the Autoconf coding style. * m4/missing.m4 (AM_MISSING_INSTALL_SH): Use a for loop. * m4/depend.m4 (AM_DEPENDENCIES): Fix quotation issues. Use AC_CACHE_CHECK. 2001-01-15 Tom Tromey * automake.in (handle_single_transform_list): Don't print rule here when source is in subdir and object is not. Fixes subobj4.test. * automake.in (handle_single_transform_list): Correctly compute $nonansi_obj. Fixes cxxansi.test. * automake.texi (Man pages): Updated to account for man1_MANS, etc. 2001-01-13 Steve Robbins Tom Tromey * aclocal.in (scan_configure): Don't recognize macro assignments or AC_SUBSTs. (add_file): Likewise. 2001-01-13 Kevin Ryde * automake.in (handle_ltlibraries): Omit -rpath from check_LTLIBRARIES, as per noinst_LTLIBRARIES. 2001-01-11 Tom Tromey * depcomp (case gcc3): Use -MD, not -M. 2001-01-10 Tom Tromey * depcomp: Handle gcc 3. 2000-12-23 Tom Tromey * configure.in: Updated to 1.4c for cvs. * configure.in: Updated to 1.4b and released. * config.guess, config.sub, texinfo.tex: New versions. * automake.in (handle_dist_worker): Always define DIST_SUBDIRS. Re-fixes pr87.test. * subdirs.am (maintainer-clean-recursive): Use DIST_SUBDIRS for distclean and maintainer-clean. * automake.texi (Top level): Document use of DIST_SUBDIRS. From Rusty Ballinger: * automake.in (handle_java): Don't skip `noinst' prefix. * automake.texi (Invoking aclocal): Mention ## comments. 2000-12-22 Tom Tromey From Raja R Harinath: * automake.in (libtoolize_sometimes): New global. (initialize_global_constants): Added libtoolize_sometimes to common_files. * m4/depend.m4 (AM_SET_DEPDIR): Ignore errors when running rmdir. * m4/depend.m4 (AM_SET_DEPDIR): Remove .deps directory when done. 2000-12-21 Tom Tromey * automake.texi (Tags): Document GTAGS target. * tags.am (GTAGS): New target. * automake.in (libtoolize_files): Removed ltconfig. (initialize_global_constants): Added ltconfig to common_files. 2000-12-21 Kevin Ryde * automake.in (handle_footer): Generate .SUFFIXES target when user defines suffixes but automake does not. 2000-12-20 Marc Espie * automake.in (handle_texinfo): Make path of $vtexi explicit in dependency. * texi-vers.am: Likewise. 2000-12-20 Tom Tromey From Kevin Ryde: * automake.in (handle_footer): Always push user suffixes at the start of .SUFFIXES:. * automake.texi (Suffixes): Updated to reflect new suffix handling. 2000-12-18 Tom Tromey * automake.in (handle_built_sources): Removed. (handle_merge_targets): Handle BUILT_SOURCES. * automake.texi (Sources): Updated documentation of BUILT_SOURCES. 2000-12-17 Tom Tromey * m4/protos.m4: Always do header checks. * automake.in (handle_ltlibraries): Check for LDFLAGS variables before using values. * automake.in (handle_ltlibraries): Allow _LDFLAGS to be conditionally defined. Fixes PR automake/77 and ldflags.test. 2000-11-25 Tom Tromey * automake.in (file_contents_with_transform): Added file name and line number to error report. (MACRO_PATTERN, BOGUS_MACRO_PATTERN): Leading spaces are ok. 2000-11-23 Pavel Roskin * m4/regex.m4 (AM_WITH_REGEX): This macro was broken because of M4 underquoting. * m4/ccstdc.m4 (AC_PROG_CC_STDC): Added some M4 quotes. * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise. * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise. * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise. * m4/multi.m4 (AM_WITH_DMALLOC): Likewise. * m4/python.m4 (AM_PATH_PYTHON): Likewise. * m4/strtod.m4 (AM_FUNC_STRTOD): Likewise. 2000-11-23 Tom Tromey * automake.in (require_file_internal): Pass $file as second argument to maybe_push_required_file. Fixes PR automake/87. 2000-11-18 Tom Tromey * m4/depend.m4 (AM_DEPENDENCIES): Redirect `$am_depcomp' stdout to /dev/null. From Paul Martinolich. 2000-11-16 Morten Eriksen * aclocal.in (write_aclocal): Set ``binmode'' after file has been opened, otherwise it has no effect. 2000-10-23 Morten Eriksen * aclocal.in (write_aclocal): Don't write aclocal.m4 with CRLFs. This circumvents a bug in Cygwin bash. * automake.in (generate_makefile): Don't write Makefile.in files with CRLFs, as it causes problems for the dependency-file extraction in AM_OUTPUT_DEPENDENCY_COMMANDS. 2000-10-19 Alex Hornby * automake.in (handle_merge_targets): Allow parallel install with forced relink. 2000-10-19 Akim Demaille * subdir4.test (depcomp): Don't create it, defs does. 2000-10-17 Pavel Roskin * automake.in (handle_aclocal_m4): exclude aclocal.m4 and acinclude.m4 from the dependencies of aclocal.m4 to avoid circular and duplicated dependencies. Strip "./" from the dependencies. 2000-10-17 Lars J. Aas * aclocal.in (write_aclocal): Set up aclocal.m4 header with normal comments (#) instead of m4 dnl-type comments. 2000-10-17 Alex Hornby * depcomp: Altered sed clause to strip of inclusion depth numbers generated by cpp. Also output in gcc style. 2000-10-16 Morten Eriksen * depcomp (msvisualcpp): New dependency tracking mode, for Microsoft Visual C++. 2000-10-16 Morten Eriksen * depcomp: Fix a bug in SGI dependency tracking mode with source files which do not dependend on any other source files. 2000-10-16 Rodney Brown * aclocal.in, aclocal.m4: Standardize FSF Copyright statements. * automake.in, automake.texi: Likewise. * clean-kr.am, clean.am: Likewise. * comp-vars.am: Likewise. * compile, compile.am: Likewise. * data-clean.am: Likewise. * data.am: Likewise. * dejagnu.am: Likewise. * depcomp: Likewise. * depend.am, depend2.am: Likewise. * dist-vars.am, dist.am: Likewise. * elisp-comp: Likewise. * footer.am: Likewise. * header-vars.am, header.am: Likewise. * java-clean.am java.am: Likewise. * kr-extra.am: Likewise. * library.am: Likewise. * libs-clean.am, libs.am: Likewise. * libtool.am: Likewise. * lisp-clean.am lisp.am: Likewise. * ltlib-clean.am ltlib.am: Likewise. * ltlibrary.am: Likewise. * m4/Makefile.in: Likewise. * m4/strtod.m4: Likewise. * mans-vars.am, mans.am: Likewise. * mdate-sh: Likewise. * missing: Likewise. * multilib.am: Likewise. * program.am: Likewise. * progs-clean.am, progs.am: Likewise. * python-clean.am, python.am: Likewise. * remake-hdr.am, remake.am: Likewise. * scripts.am: Likewise. * subdirs.am: Likewise. * tags-clean.am, tags.am: Likewise. * texi-vers.am: Likewise. * texinfos.am: Likewise. * ylwrap: Likewise. 2000-10-09 Pavel Roskin * m4/init.m4 (AM_INIT_AUTOMAKE): Don't rely on variable assignments changing $? - it's broken in ash-0.2. * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise. * automake.in (handle_aclocal_m4): If ACLOCAL_M4_SOURCES is defined use it as the list of M4 files aclocal.m4 depends on. 2000-10-06 Alexandre Duret-Lutz * aclocal.in (add_file): Strip comments while scanning for macro dependencies. 2000-09-15 Alexandre Duret-Lutz * automake.in (initialize_global_constants): End the result of dist-bzip2 with tar.bz2, not bz2. 2000-08-30 Tom Tromey Fix for PR automake/72: * automake.in (initialize_per_input): Define `need_link'. (finish_languages): Use need_link. (handle_source_transform): Set need_link if required. 2000-08-28 Tom Tromey * automake.in (yacc, yaccxx, lex, lexxx): Set `derived-autodep' key. (register_language): Default the `derived-autodep' option. (handle_single_transform_list): Add to %dep_files if language has `derived-autodep' set. Re-fixes lex4.test. 2000-08-27 Tom Tromey * automake.in (handle_single_transform_list): Only add to %dep_files if language is found and supports automatic dependency tracking. Fixes PR automake/75. * automake.in (am_primary_prefixes): Don't set `valid' for configure variables that don't satisfy the other constraints. Fixes PR automake/68. 2000-04-14 Victor V. Vengerov Fix for PR automake/67. * automake.in (handle_multilib): remove .am suffix in fragment name passed to file_contents. * m4/multi.m4: Add missing ')' in AC_ARG_ENABLE invocation. Remove external quotes in first arg of AC_OUTPUT_COMMANDS. Remove unnecessary "rel-to-top-srcdir" before config-ml.in. 2000-08-26 Tom Tromey * subdirs.am (maintainer-clean-recursive): Always run clean rules in `.' after all subdirs. Fixes PR automake/3 and PR automake/24. * automake.in (handle_man_pages): Generate install targets for man even if man_MANS not defined. From `danpb'. Fixes PR automake/73. * m4/depend.m4 (depcpp): Use `-o conftest.o'. Fix for PR automake/74. From js pendry. 2000-08-20 Eli Zaretskii * depcomp (gcc): Support DOS-style absolute file names with drive letters. 2000-08-06 Jim Meyering * automake.in (handle_dependencies): Set $require_file_found{'depcomp'} if the depcomp file exists, before calling require_config_file on `depcomp'. This makes require_file_internal skip its buggy existence test that would make automake fail (with `required file `lib/depcomp' not found') when AC_CONFIG_AUX_DIR is not set. This change change does not fix the existing bug where, if `depcomp' is not present in the build directory (at the top level), automake still gives the inaccurate diagnostic about *lib*/depcomp rather than ./depcomp. 2000-08-05 Jim Meyering * m4/header.m4 (AM_CONFIG_HEADER): Fix typo in last change: add missing closing bracket and closing parenthesis. Don't quote the first argument to AC_OUTPUT_COMMANDS. Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt. 2000-08-04 Tom Tromey Idea from Nicolas Thiery: * automake.texi (Tests): Document DEJATOOL as a list. * dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL). (check-DEJAGNU): Run runtest in a loop. 2000-08-02 Akim Demaille * m4: Quote properly the name of the macros being defined. Use `#' instead of `dnl' where appropriate. * m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just quote. Don't quote passive characters. Pull the AC_PREREQ outside the macro. * m4/init.m4: Pull the AC_PREREQ outside the macro. 2000-07-28 Tom Tromey * lisp.am (uninstall-@DIR@LISP): Prefix file with $(DESTDIR). From Bruno Haible. 2000-07-13 Kevin Ryde * automake.in (am_install_var): Apply the $(EXEEXT) hack to EXTRA_PROGRAMS as well as other _PROGRAMS. 2000-07-02 Jim Meyering * automake.in (scan_one_configure_file): Recognize AC_LIBOBJ. 2000-06-19 Paolo Bonzini * texi-vers.am: define UPDATED-MONTH variable (for an example, see GNU make's manual) 2000-06-02 Morten Eriksen * depcomp: workaround for problem with SGI IRIX sed (it can only handle lines of up to 8192 characters, the rest of the line will be mangled). 2000-05-31 Morten Eriksen * depcomp: tell SGI MIPSpro compilers to generate dependencies through the pre-processor (only CVS libtool has the -Wc option yet). 2000-05-15 Brendan O'Dea * missing: Add support for `help2man'. 2000-05-11 Tom Tromey * automake.in (handle_tests): Work correctly if TESTS is empty; print nothing if it is. From Kevin Ryde. 2000-05-08 Tom Tromey * automake.texi (Texinfo): Mention vers*.texi. 2000-05-04 Akim Demaille AM_INIT_AUTOMAKE is no longer optional, so don't look for `VERSION=' and `PACKAGE='. * automake.in (seen_package, seen_version): Remove initializations of unnecessary variables. (scan_one_configure_file): Don't set them. (scan_configure): Don't use them. 2000-05-01 Akim Demaille * m4/init.m4 (AC_PROVIDE_IFELSE): If it is not defined, do it. (AM_INIT_AUTOMAKE): Update the writing conventions. Quote the arguments properly. Add a few missing `dnl'. Use AC_PROVIDE_IFELSE. 2000-04-26 Jim Meyering * automake.in (scan_one_configure_file): Handle the AC_CONFIG_FILES macro. Based on a patch from Harlan Stenn. 2000-04-13 Akim Demaille * compile: Remove unnecessary double quotes in assignments. 2000-04-13 Akim Demaille * automake.in (scan_one_configure_file): Also recognize AC_CONFIG_HEADERS. Remove trailing blanks. 2000-04-05 Tom Tromey * header-vars.am (DESTDIR): Commented out definition. * automake.in (require_file_internal): Pass --copy to libtoolize if automake was run with `--copy'. 2000-03-22 Tom Tromey * automake.texi (Uniform): Fix definition of pkglibdir. From thi . 2000-03-19 Tom Tromey * aclocal.in (parse_arguments): Copyright 2000. (write_aclocal): Likewise. * automake.in (parse_arguments): Copyright 2000. (initialize_global_constants): Likewise. * automake.in (generate_makefile): Call handle_dist after handle_dependencies and handle_tests. Fixes subobj3.test and pr19.test regressions. 2000-03-19 Gordon Matzigkeit * depend2.am (@EXT@.o): Look for the source file in srcdir as well as the current directory. (@EXT@.lo): Likewise. 2000-03-19 OKUJI Yoshinori * automake.in (handle_data): Pass -candist instead of -defaultdist, for the compatibility. 2000-03-19 Tom Tromey Fix for test nodepcomp.test: * automake.in (require_file_internal): Use readlink on symlinks. Only unlink file if we are going to try to add it again. (handle_dependencies): Require `depcomp' here. (scan_configure): Don't require `depcomp'. 2000-03-16 OKUJI Yoshinori * automake.in (handle_configure): Remove $(BUILT_SOURCES) from the rule to remake Makefile, whether $use_dependencies is true or not. This was a historical one and doesn't make sense any longer. 2000-03-19 Tom Tromey More for PR automake/38: * automake.texi (Invoking Automake): Document --force-missing. * automake.in (force_missing): New global. (parse_arguments): Recognize --force-missing. (initialize_global_constants): Document --force-missing. (require_file_internal): Handle --force-missing. Fix for PR automake/38: * automake.in (require_file_internal): Check for and handle dangling symlinks. Fixes symlink2.test. Fix for PR automake/45: * automake.texi (configure): Mention requirement to run AM_INIT_AUTOMAKE. (Requirements): Removed most text. * automake.in (seen_init_automake): New global. (scan_configure): Error if AM_INIT_AUTOMAKE not seen. (scan_one_configure_file): Don't support AM_INIT_GUILE_MODULE. Set seen_init_automake if needed. Fix for PR automake/41: * automake.in (require_file_found): New global. (require_file_internal): Set require_file_found entry. (handle_texinfo): Require file any number of times. * automake.in (handle_dist_worker): Exit if `cp' fails. Fixes install2.test. * tags.am: Don't reference $$here. Report from Sven Verdoolaege. 2000-03-13 Alexandre Oliva * m4/missing.m4: Print the backtick in a way that won't cause autoconf CVS to emit any warnings. 2000-03-01 Jim Meyering * automake.in (handle_dist_worker) [generating rules for distdir]: Don't use `ln' (which was just a space optimization anyway) to populate $(distdir). Otherwise, the dist rules that change permissions would end up affecting the master sources. * texinfos.am (dist-info): Likewise. 2000-02-13 Jim Meyering * automake.in (generate_makefile): Detect write/close failure. 2000-02-02 Assar Westerlund * automake.in (handle_single_transform_list): do not use $< which is not handled by all non-GNU makes. Instead do explicit sh code testing for the file in this directory and srcdir. Based on a suggestion by Alexandre Oliva 2000-01-12 Tom Tromey * m4/lispdir.m4: Added --with-lispdir argument processing. From Kevin Dalley. 2000-01-06 Tom Tromey * automake.in (handle_configure): Don't check for AC_PROG_MAKE_SET. (scan_configure): Check for AC_PROG_MAKE_SET. * header-vars.am (@SET_MAKE@): Added. * subdirs.am (@SET_MAKE@): Removed. Report from Motoyuki Kasahara. 1999-12-19 Tom Tromey * automake.in (handle_dist_worker): Expand DIST_COMMON under all conditions. (require_file_internal): Corrected arguments to second invocation of maybe_push_required_file. Fix for PR automake/9: * automake.in (make_dirs, make_dirs_set): New globals. (is_make_dir): New function. (handle_configure): Use it. (require_file_internal): Push file if there is no Makefile in its directory. (initialize_per_input): Initialize handle_dist_run. (push_dist_common): Inspect handle_dist_run. (handle_dist): Set handle_dist_run. Push items from configure_dist_common onto dist_common if appropriate. (configure_dist_common): New global. (scan_configure): Set it. (maybe_push_required_file): New function. (require_file_internal): Use it. * automake.in (handle_dist_worker): Scan DIST_COMMON to see if more subdirs are defined. From Axel Belinfante. Fixes PR automake/2. 1999-12-18 Tom Tromey Partial fix for PR automake/40: * lisp.am (install-@DIR@LISP): Handle nobase_ case. (uninstall-@DIR@LISP): Likewise. * header.am (install-@DIR@HEADERS): Handle nobase_ case. (uninstall-@DIR@HEADERS): Likewise. * data.am (install-@DIR@DATA): Handle nobase_ case. (uninstall-@DIR@DATA): Likewise. * automake.in (am_primary_prefixes): Recognize `nobase_' prefix. (am_install_var): Recognize and handle `nobase_' prefix. 1999-12-17 Tom Tromey * automake.in (get_object_extension): Added space before `-I.'. Report from Ralf Corsepius. 1999-12-15 Tom Tromey * aclocal.in: Don't pass $acdir to scan_m4_files. (parse_arguments): Push $acdir on end of dirlist. (scan_file): Don't warn if duplicate macro seen. 1999-12-13 Tom Tromey Fix for PR automake/30 and PR automake/23. Fixes test suffix3.test. * automake.in (initialize_per_input): Initialize source_suffix_pattern. (derive_suffix): New function. (handle_single_transform_list): Call it. * automake.in (add_depend2): Handle the no-dependency-tracking case. Fixes test suffix2.test. * depcomp (tmpdepfile): [case sgi] Added missing `fi'. * automake.in (get_object_extension): Fixed quoting on -I$(srcdir). * depend2.am: Removed erroneous comment. * automake.texi (Program variables): Document nostdinc. (Options): Likewise. * automake.in (get_object_extension): Respect nostdinc option. (handle_options): Recognize nostdinc. * comp-vars.am (DEFS): Use @DEFAULT_INCLUDES@ as sole substitution. * automake.in (read_am_file): Allow conditional includes. Fixes test condincl.test. * depcomp: Handle case on SGI when libtool is `yes'. * depend2.am (@EXT@.o): Set libtool. (@EXT@.lo): Likewise. (@EXT@.obj): Likewise. * depcomp: Unify dashmstdout and dashXmstdout cases. Move hp case after gcc case. 1999-12-13 Pavel Roskin * automake.in (add_depend2): substitute $rule in the rules for individual files. Fixes test specflags5.test. 1999-12-12 Tom Tromey * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run mkinstalldirs to create directories. Fixes test subobj3.test. 1999-12-10 Tom Tromey * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Don't print message when creating .deps files. * automake.in (initialize_global_constants): If unreadable by owner, make it readable by owner regardless of number of links. Fixes more of install2.test. * missing: Try to see if gnutar or gtar exist before invoking them. * m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from install_sh value. Look for install-sh and install.sh in a somewhat more sensible way. Fixes test install2.test. Partially from Jim Meyering. 1999-12-09 Pavel Roskin * m4/missing.m4: remove redundant backquote 1999-11-23 Tom Tromey * automake.in (initialize_global_constants): Use `bzip2 -9', not `bzip --best' Report from Jim Meyering. 1999-11-22 Tom Tromey * m4/missing.m4 (AM_MISSING_INSTALL_SH): Don't take argument. * m4/init.m4 (AM_INIT_AUTOMAKE): Don't pass argument to AM_MISSING_INSTALL_SH. * automake.in (scan_one_configure_file): Reverted previous change. * automake.in (scan_one_configure_file): Define `install_sh' configure variable when AM_INIT_AUTOMAKE seen. Report from Jim Meyering. * automake.in (handle_single_transform_list): Generate explicit rule for subdir objects. Fixes new addition to subobj.test. * automake.in (handle_lib_objects_cond): Allow LIBOBJS to be defined by AC_SUBST. Fixes ltlibobjs.test. Fix for sourcesub.test: * automake.in (handle_single_transform_list): Added `var' argument. If config sub found, give error. (handle_source_transform): Updated for new handle_source_transform. * py-compile: New file. * m4/Makefile.am (m4data_DATA): Added python.m4. * m4/python.m4: New file. * automake.texi (Uniform): Mention PYTHON. (Python): New node. * Makefile.am (amfiles): Added python.am, python-clean.am. (dist_script_DATA): Added py-compile. * python.am: New file. * python-clean.am: New file. * automake.in (seen_pythondir): New global. (generate_makefile): Call handle_python. (handle_python): New function. (scan_one_configure_file): Set seen_pythondir if AM_PATH_PYTHON seen. (am_install_var): Special-case PYTHON like JAVA. (scan_configure): Check for py-compile. (initialize_global_constants): Added py-compile to @common_files. * ltlib.am (install-@DIR@LTLIBRARIES): Added missing space. 1999-11-21 Tom Tromey * automake.in (finish_languages): Only generate suffix rule when not doing dependency tracking. * m4/init.m4 (AM_INIT_AUTOMAKE): Use AM_MISSING_INSTALL_SH. * m4/missing.m4 (AM_MISSING_INSTALL_SH): New macro. * depend2.am: Use @SOURCE@, @OBJ@, @LTOBJ@, @OBJOBJ@, and @BASE@. Always use `-o'. 1999-11-19 Tom Tromey * dist.am: Set `CDPATH=:' to avoid problems. Merged from Alexandre's change on branch. 1999-10-02 Alexandre Oliva * Makefile.am (maintainer-check): Look for occurrences of ``cd' without `CDPATH'. * dejagnu.am: Set CDPATH before cd. * Makefile.in: Rebuilt. * automake.in (handle_single_transform_list): Change `\1' for `$1' in `s///' replacement. * automake.in (handle_dist): Set CDPATH before cd. * dejagnu.am (check-DEJAGNU): Likewise. * texinfos.am (install-info-am, dist-info): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Likewise. * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise. * aclocal.m4, configure, Makefile.in: Rebuilt. * AUTHORS: Added myself. 1999-09-14 Alexandre Oliva * m4/missing.m4: Support relative srcdir and ac_aux_dir. Reported by Tim Wilkinson * aclocal.m4, configure: Rebuilt. 1999-08-17 Alexandre Oliva * m4/lex.m4 (AM_PROG_LEX): Require AM_MISSING_HAS_RUN and, if no LEX program is found, use `${am_missing_run}flex'. 1999-08-16 Alexandre Oliva * automake.in (handle_single_transform_list): Replace `$(OBJEXT)' with `o' in depfile. * automake.in (handle_lib_objects_cond): Remove second dot from dependency file names. * depend2.am (OBJEXT@EXT@.obj): Dependency file should be .Po, regardless of OBJEXT. * automake.in (handle_dependencies): Add blank line after depend2. (handle_dependencies): Start DEP_FILES with `@AMDEP@'. Output blank line before `include's, not after them. (scan_one_configure_file): Do not special-case `DEP_' any more. * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run for loop only if AMDEP is empty. * aclocal.m4, configure: Rebuilt. * m4/depend.m4 (AMDEPBACKSLASH): Define. * depend2.am (@EXT@.o, @EXT@.lo, @EXT@.obj): Use AMDEPBACKSLASH. * automake.in (handle_dependencies): Generate `include's for dependency files after `@AMDEP@'. * m4/missing.m4: Use eval, instead of a sub-shell, to test for --run support in the missing script, since SHELL is not exported. Reported by job bogan * aclocal.m4, configure: Rebuilt. 1999-08-15 Alexandre Oliva * aclocal.m4, configure: Rebuilt with itself. * Makefile.in, m4/Makefile.in, tests/Makefile.in: Likewise. * m4/missing.m4 (AM_MISSING_PROG): Remove DIRECTORY argument. Require AM_MISSING_HAS_RUN. Use am_missing_run, defined by... (AM_MISSING_HAS_RUN): New macro. * m4/init.m4: Remove missing_dir from calls to AM_MISSING_PROG. * automake.texi (Requirements): Likewise. * version.texi, stamp-vti: Rebuilt. 1999-07-28 Tom Tromey * depcomp: Handle the `hp' mode. 1999-07-06 Tom Tromey * depcomp: Work around HP-UX 10.20 sed bug. 1999-07-05 Tom Tromey * automake.in (handle_dependencies): Generate a separate include for each dep file. Report from Alexandre Oliva. * depend.am: Don't include DEP_FILES. 1999-06-01 Alexandre Oliva * depend.am: Add @AMDEP@ before `include', so that dependency tracking can be disabled. * depend2.am: Ditto, before all lines related with dependency tracking. * m4/depend.m4 (AM_DEP_TRACK): New macro, that documents --enable/disable-dependency-tracking and sets AMDEP accordingly. It is implicitly disabled if depcomp is missing. (AM_DEPENDENCIES): Disable dependency tracking unless it can be generated by side-effect. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_DEP_TRACK. * automake.in (handle_dependencies): Add @AMDEP@ before the value of DEP_FILES. * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Handle DEP_FILES starting with `#'. * depcomp: Support -xM for dependency generation, for Sun CC. Reported by Alex Hornby * m4/depend.m4: Extract the list of supported dependency-tracking mechanisms from the depcomp script and use it to test each one. * THANKS: Added Alex Hornby. * depend2.am: Move $(depcomp) to the line of $(...DEPMODE), so as to leave $(...COMPILE) in a line by itself. * THANKS: Added Miles Bader. 1999-06-01 Miles Bader * m4/depend.m4 (AM_DEPENDENCIES): Add check for `makedepend'. Fix `dashmstdout' to ignore non-dependency-generating uses of the -M flag. * depcomp (makedepend): New dependency-generating method. 1999-06-01 Alexandre Oliva * missing: If given `--run' as first argument, try to run the given program before falling back to the ``emulated'' behavior. Add support for `tar'. * automake.in: Use new `tar' support for `dist'. * m4/missing.m4 (AM_MISSING_PROG): Instead of checking for the program, prepend `missing --run' to the given program name. * m4/init.m4: Remove AMTAR-related stuff. * NEWS: Updated. * m4/depout.m4: Instead of `find'ing Makefiles, just iterate on CONFIG_FILES. Do not use temporary variable for list of dependency files, it breaks Cygwin. 1999-04-27 Alexandre Oliva * depcomp (gcc): Imported comments removed from depend2.am, so that we don't lose them. * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Avoid sed s/$U// when not using ansi2knr. 1999-04-26 Alexandre Oliva * m4/depend.m4 (AM_DEPENDENCIES): Test for depcc -E support. * depcomp (cpp): Extract dependencies from `# nnn "..."' lines. 1999-04-25 Alexandre Oliva * m4/depend.m4 (AM_DEPENDENCIES): Add a definition to conftest.h, so as not to compile an empty source; some compilers fail on this. Redirect stderr of depcc to /dev/null. Test for -M with -o, because some compilers will output the rules to the output file. * depcomp (dashmstdout): Add --silent before --mode=compile, so that we don't get libtool output mixed up with make rules. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_DEPDIR. * depend2.am: Set tmpdepfile too, to speed up depcomp. Always use -o for libtool, otherwise it may try to deduce the object name from the dependency-generation flag. * depcomp: Assume depdir exists. Preserve depfile on unsuccessful compilations. * libtool.am: Do not emit .c.lo here... * depend2.am: ... emit .*.lo here, only when using libtool. * automake.in (get_object_extension): No more @MINUSO@ here. (handle_single_transform_list): Set $depfile from $object. (handle_dependencies): Emit depend2.am for all used languages, regardless of $use_dependencies; the setting of depcomp makes the difference. (lang_cxx_finish): Do not emit compilation rules. (lang_objc_finish): Likewise. (lang_java_finish): Likewise. 1999-04-21 Tom Tromey * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Correctly interpolate DEPDIR in DEP_FILES expansion. 1999-04-20 Lee Iverson * m4/depend.m4 (AM_DEPENDENCIES): Fix up test for SGI-style dependency updating. * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Fix sed script to handle multi-line dependency lists. 1999-11-12 Tom Tromey Fix for PR automake/14: * aclocal.in: Added `ud_GNU_GETTEXT'. Updated to mention AC_CYGWIN. * automake.in: Mention AC_CYGWIN, not AC_CYGWIN32. * m4/multi.m4: Added missing `]'. From Akim Demaille. * Makefile.am (path-check): Make sure distdir is writeable before removing it. * automake.in (handle_texinfo): Added `cm' and `ov' extensions. (handle_dist_worker): Make sure distdir is writeable before removing it. (initialize_global_constants [$dist_trailer]): Make sure distdir is writeable before removing it. * dist.am (distcheck): Make the new source tree read-only before compiling. Idea from Karl Berry. * automake.texi (Gnits): Allow COPYING.LIB again. * automake.in (check_gnits_standards): Allow COPYING.LIB again. 1999-11-11 Jim Meyering * dist.am (distcheck): Remove $(distdir).tar.gz before counting files. 1999-11-09 Tom Tromey * automake.in (handle_dist): Typo fix. From Jim Meyering. 1999-11-09 Jim Meyering * automake.in (handle_dist): Remove the DISTHOOK and GETTEXT markers, no matter what. 1999-11-08 Tom Tromey * dist.am (distcheck): Put `&&' at the start of the distcheck-hook line. * automake.in (handle_dist_worker): Use `cp -R', not `cp -r'. From Jim Meyering. Also, don't mention file name in `cp' destination. From Olly Betts. 1999-10-27 Miodrag Vallat * texinfos.am (uninstall-info): Use installed info file, not one from srcdir or builddir. 1999-11-07 Tom Tromey * clean.am (maintainer-clean-generic): Remove Makefile.in. From Jeff Bailey Fix for PR automake/18: * automake.in (handle_dist): Add contents of dist.am to the output rules. * Makefile.am (amfiles): Added dist.am. * dist.am: New file. (distcheck): Added uninstall and distclean checks. * automake.in (PATH_PATTERN): Added `-' as allowable character. Fixes PR automake/20. From Matthew D. Langston. * automake.in (SUFFIX_RULE_PATTERN): Add `0-9' as characters allowed in suffixes. Fixes PR 22. From Matthias Clasen. 1999-10-03 Alexandre Oliva * m4/lispdir.m4: -batch must come before -q. * elisp-comp: Likewise. Reported by Lars Hecking * THANKS: Added Lars. 1999-08-15 Tom Tromey * automake.in (get_object_extension): Fixed quoting bug. Fixes ansi4.test. 1999-07-27 Tom Tromey * config.guess, config.sub: New versions from autoconf. 1999-07-13 Tom Tromey Work around losing `awk'. Report from Harlan Stenn. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK. * tags.am (ID, TAGS): Use $(AWK), not `awk'. * automake.in (handle_source_transform): Mark prefix as seen if corresponding _SOURCES variable exists. Fixes empty2.test. 1999-06-25 OKUJI Yoshinori * configure.in (ACLOCAL): Do not prepend the variable SRCDIR to m4. (AUTOMAKE): Set --amdir to current directory. 1999-06-20 Tom Tromey * Makefile.am (TAGS_FILES): New macro. (ETAGS_ARGS): Moved files into TAGS_FILES. (TAGS_DEPENDENCIES): Likewise. (ETAGS_ARGS): Removed. (TAGS_DEPENDENCIES): Removed duplicate definition. * tags.am (ID): Handle VPATH correctly. Use TAGS_FILES. Report from Ganesan Rajagopal. (TAGS): Likewise. 1999-06-18 Thomas Tanner * automake.in (handle_ltlibraries): Check for -module in LDFLAGS, too. 1999-06-20 Mark Elbrecht * ylwrap: Handle filenames output by the DOS version of Bison. 1999-06-20 Tom Tromey * ylwrap: Be less strict when recognizing DOS paths. From Mark Elbrecht. 1999-06-19 Tom Tromey * automake.in (handle_dist_worker): Remove redundant entries from DIST_SUBDIRS. * automake.in (handle_lib_objects_cond): Better error message when unrecognized option passed in LDADD. 1999-06-08 Alexandre Oliva * configure.in (ACLOCAL, AUTOMAKE): Use our own scripts, with appropriate --acdir and --amdir arguments. 1999-06-07 Alexandre Oliva * automake.in (dist_header): Avoid changing permissions of files in the source tree, trying a complex `find/chmod' command before falling back to plain chmod. (handle_dist_worker): Do not create directories with mode 777, the find above will take care of that. * m4/init.m4: Set install_sh for find/chmod above. * THANKS: Added Shuhei Amakawa. 1999-06-07 Shuhei Amakawa * mans.am: Strip dirname from given filename. 1999-06-07 Jim Meyering * automake.in (handle_dist): Change emitted rules so that a failure in `$(MAKE) distcheck-hook' propagates to the outer make. 1999-05-27 Tom Tromey * automake.in (handle_single_transform_list): Replace AM_FLAG and not FLAG in compilation rule. (add_depend2): Likewise. * ltlib.am (install-@DIR@LTLIBRARIES): Pass INSTALL_STRIP_FLAG to libtool. * m4/dmalloc.m4: Updated dmalloc site information. 1999-05-19 Tom Tromey * automake.in (handle_single_transform_list): Push object name without extension onto lang_specific_files. Fixes specflags4.test. * automake.in (handle_single_transform_list): Added missing space. Fixes specflags.test. 1999-05-05 Tom Tromey * automake.in: Disabled dependency tracking for Java. 1999-05-04 Tom Tromey * library.am (@LIBRARY@): Use $(@XLIBRARY@_AR). * automake.in (handle_libraries): Recognize _AR variable. 1999-04-30 Tom Tromey * automake.in (finish_languages): Always use `-o $@' with libtool. Define ltcompile and ltlink at outermost scope in function. * libtool.am (.c.lo): Removed. * automake.in (finish_languages): Put `.' before extension in suffix list, `.obj' rule, and `.lo' rule. Look at `-flags', not `-flag'. From Pavel Roskin. 1999-04-28 Tom Tromey * automake.in (finish_languages): Fixed scoping of ltcompile and ltlink. From Pavel Roskin. 1999-04-27 Tom Tromey * automake.in (read_main_am_file): Don't start macro definition with backslash-newline. Instead, append newline at the end if required. * automake.in (read_am_file): Insert a backslash before a trailing newline. Fixes pluseq8.test. * automake.in (MACRO_PATTERN): Allow digits and `_' to start a macro name. (check_canonical_spelling): Don't insert `AM' before macro name (reverts Alexandre's 1999-04-27 patch). * automake.texi: Reverted documentation change for `AM' patch. * automake.in (handle_lib_objects_cond): Prefer `$1' over `\1'. Minor rewrite for clarity. (check_canonical_spelling): Prefer `$1' over `\1'. * depend2.am (@OBJ@): Renamed. Use @SOURCE@, @COMPILE@. Always use `-o $@'. (@LTOBJ@): Likewise. * automake.in (handle_single_transform_list): Don't print rule if doing dependency tracking and the file's language supports it. (initialize_per_input): Initialize lang_specific_files. (add_depend2): New function. (handle_dependencies): Use it. * automake.in (lang_ppf77_finish): Use lang_f77_finish. ratfor compiler name is `RCOMPILE'. ppf77 compiler name changed to `PPF77COMPILE' to allow use of f77 and ppf77 in the same directory. (lang_ratfor_finish): Use lang_f77_finish. * compile.am (NOTDEPEND.c.o): Removed. (OBJEXT.c.obj): Likewise. * automake.in: Added `flags' attribute to all relevant languages. (handle_single_transform_list): Handle per-derived-object flags. Changed interface and all callers. (handle_built_sources): Don't call handle_single_transform_list. Added `compile' and `compiler-name' attribute to all relevant languages. (finish_languages): Define compiler variables here. (lang_cxx_finish): Don't call define_compiler_variable. Don't define flag variable or .o rules. Don't add to @suffixes. (lang_f77_finish): Likewise. (lang_ppf77_finish): Likewise. (lang_objc_finish): Likewise. (lang_java_finish): Likewise. (finish_languages): Define flag variable here. Added `output-arg' attribute to all relevant languages. (finish_languages): Define `.o' rules here. (finish_languages): Put extension on @suffixes. (get_object_extension): Don't transform NOTDEPEND or MINUSO. 1999-04-27 Alexandre Oliva * automake.in (initialize_global_constants): Invoke gzip for dist-shar just like in plain dist, i.e., pass it GZIP_ENV and -c. * automake.in (initialize_global_constants): Remove zip file before re-creating it. Reported by Bob Friesenhahn * texinfos.am (uninstall-info): Look for info file in srcdir, just like in install-info-am. Reported by Tudor Hulubei * automake.in (handle_lib_objects_cond): \Q doesn't work either. Let's use the good ol' substitution, then. Reported by Russ Allbery * automake.in (check_canonical_spelling): Insert AM before names starting with non-letters. * automake.texi: Document it. 1999-04-26 Alexandre Oliva * automake.in (handle_lib_objects_cond): Do not use quotemeta, it doesn't work on perl4. Maybe \Q and \E do. 1999-04-24 Tom Tromey * automake.in: Treat `.zip' and `.jar' files as Java. * automake.in (generate_makefile): Define `subdir' after reading .am file. (read_main_am_file): Give programming error if variable defined before invocation. 1999-04-22 Tom Tromey * automake.in (generate_makefile): Define `subdir' variable. (handle_dist): Don't define `subdir'. * automake.in (handle_texinfo): Change numbering scheme for stamp-vti files, to avoid problems with DOS. From Michel de Ruiter. * automake.texi: Don't mention AM_FUNC_MKTIME. * aclocal.in (obsolete_macros): Mention AM_FUNC_MKTIME. * automake.in (scan_one_configure_file): Recognize AC_FUNC_MKTIME, not AM_FUNC_MKTIME. (obsolete_macros): Mention AM_FUNC_MKTIME. * m4/Makefile.am (m4data_DATA): Removed mktime.m4. * m4/mktime.m4: Removed. 1999-04-20 Tom Tromey * automake.texi (Top level): Don't recommend substing SUBDIRS. 1999-04-20 Brian Ford * scripts.am: Change else if's to elif. 1999-04-20 Alexandre Oliva * automake.in (handle_lib_objects_cond): Only require the source of a LIBOBJ if it's not in BUILT_SOURCES. Reported by Erez Zadok. 1999-04-19 Tom Tromey * automake.in: Treat `.class' files as Java source. (lang_java_finish): Handle `.class' files. 1999-04-18 Alexandre Oliva * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'. * m4/lispdir.m4: Do not override lispdir if it's already defined. Run some emacs-lisp to find out the site-lisp directory, but relocate it into prefix. 1999-04-17 Paul Eggert * m4/mktime.m4 (bigtime_test, main): Move alarm from bigtime_test to main, since Solaris 7 (64-bit) mktime loops even outside of bigtime_test. Use a time limit of 60 seconds for the whole test, not 10 seconds per iteration. 1999-04-17 Erez Zadok * automake.in: Create stamps for headers in appropriate directories, even if the input file lives in a different place. * remake-hdr.am: Likewise. 1999-04-16 Tom Tromey From Brian Ford: * progs.am (install-@DIR@PROGRAMS, uninstall-@DIR@PROGRAMS): Invoke `sed' only once per program. * scripts.am (install-@DIR@SCRIPTS, uninstall-@DIR@SCRIPTS): Invoke `sed' only once per program. 1999-04-13 Tom Tromey * automake.in (handle_subdirs): Make `install-recursive' phony. From Michel de Ruiter. * automake.in (handle_ltlibraries): Added missing `check'. 1999-04-12 Tom Tromey * ansi2knr.c: New version from Pavel Roskin (via ansi2knr.c maintainer). 1999-04-11 Tom Tromey * automake.in (handle_dist): Use AMTAR. (initialize_global_constants): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR. * automake.in (lang_sub_obj): New function. (lang_cxx_rewrite): Use it. (lang_asm_rewrite): Likewise. (lang_objc_rewrite): Likewise. (lang_cxx_finish): Add `-o $@' to all C++ rules. (lang_asm_finish): Add `-o' to suffix rules when appropriate. (lang_objc_finish): Add `-o $@' to all ObjC rules. (lang_java_finish): Likewise. * automake.in: Only register `asm' once. (lang_asm_finish): Put assembly suffixes on @suffixes. * libtool.am (.s.lo): Removed. (.S.lo): Likewise. * automake.in (lang_asm_finish): Handle libtool. * libtool.am (.c.o): Always pass -c to libtool. * automake.in (lang_yacc_rewrite): Handle sources in subdirs. (lang_yaccxx_rewrite): Likewise. (lang_lex_rewrite): Likewise. (lang_lexxx_rewrite): Likewise. Assembly code no longer included by default: * compile.am (.s.o): Removed. (.S.o): Likewise. * automake.in: Register `asm' language. (lang_asm_finish): Generate suffix rules for assembly. (get_object_extension): Don't add `.s' or `.S' to suffix list. * automake.in (get_object_extension): Substitute @MINUSO@ when including compile.am. * compile.am (.c.o): Added @MINUSO@. (.c.obj): Likewise. First cut at allowing objects in subdirectories: * m4/Makefile.am (m4data_DATA): Added minuso.m4. * Makefile.am (dist_script_DATA): Added compile. * m4/minuso.m4: New file. * automake.in (initialize_global_constants): Added compile to common_files. (seen_cc_c_o): New global. (scan_one_configure_file): Set it when AM_PROG_CC_C_O seen. (handle_options): Recognize `subdir-objects' option. (lang_c_rewrite): Added directory argument. (lang_yacc_rewrite): Likewise. (lang_yaccxx_rewrite): Likewise. (lang_lex_rewrite): Likewise. (lang_lexxx_rewrite): Likewise. (handle_single_transform_list): Pass directory to _rewrite function. Generate dependencies for dirstamp files for each .o; it is just the rules we want to create once. (lang_c_rewrite): Handle `subdir-objects' option. (lang_c_rewrite): Require `compile' program. * compile: New file. * automake.in (initialize_per_input): Initialize %directory_map. (handle_single_transform_list): Only create .dirstamp rules once per directory. * m4/gcj.m4 (AM_PROG_GCJ): Use AC_CHECK_PROGS, not AC_CHECK_PROG. Fix for confh.test: * automake.in (configure_input_files): New global. (scan_configure): Set it. (handle_configure): Use configure_input_files when determining which subdirs have a Makefile.am. Fixes confh.test. (handle_configure): Only recognize acconfig.h in top srcdir. 1999-04-10 Tom Tromey * depend2.am (%.o): Use `$(*D)/$(*F)', not just `$(*F)'. (%.lo): Likewise. * automake.in (am_install_var): Remove redundancies from the result. Fixes test cond8.test. * automake.in (handle_single_transform_list): Handle dependency tracking when files are created in subdirs. Error if object in subdir has `..' component. * automake.in (initialize_global_constants): Use $(TAR), not tar. * automake.in (handle_ltlibraries): Allow check_LTLIBRARIES. * automake.in (lang_yacc_finish): Added missing `&'. 1999-04-10 Alexandre Oliva * automake.in (handle_configure): Replace multiple occurrences of @STAMP@ in the same line; completes the patch for remake-hdr.am below. * automake.in (handle_dependencies): Fix test for `autodep' support. * 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 * automake.in (lang_yacc_finish): Generate and dist a `.h' for a `.y' iff YFLAGS or AM_YFLAGS contain `-d'. Reported by Jim Meyering * automake.in (lang_yacc_finish): $hname must not contain a `.'. 1999-04-10 Tom Tromey * Makefile.am (EXTRA_DIST): New macro. * ChangeLog.1996, ChangeLog.1998: New files. 1999-04-09 Tom Tromey * automake.in (handle_source_transform): Handle dist and nodist prefixes. (initialize_per_input): Initialize dist_sources. (check_libobjs_sources): Handle dist and nodist prefixes. (generate_makefile): Define DIST_SOURCES. * dist-vars.am (DISTFILES): Reference DIST_SOURCES, not SOURCES. * automake.texi (Macros): Mention AM_PROG_GCJ. (Java Support): New node. (Dist): Documented dist_ and nodist_ prefixes. * m4/gcj.m4 (AM_PROG_GCJ): Renamed from AC_PROG_GCJ. * automake.in (lang_java_finish): Generate .lo rule for `.java' files, not `.gcj' files. * m4/gcj.m4: New file. * m4/Makefile.am (m4data_DATA): Added gcj.m4. * 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. 1999-04-07 Tom Tromey * automake.in (handle_texinfo): Indentation fixes. 1999-04-07 Alexandre Oliva * automake.in (value_to_list): Skip *only* trailing backslashes. 1999-04-07 Pavel Roskin * automake.in (value_to_list): Skip trailing backslashes. 1999-04-07 Alexandre Oliva * automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir when appropriate. Reported by Per Cederqvist (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. 1999-04-03 Raja R Harinath * automake.in (handle_tests): Test `dir=./' before `dir=', so that we do not depend on PATH starting with `.'. 1999-03-31 Tom Tromey * 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. 1999-03-31 Alexandre Oliva * automake.in (handle_tests): support XFAIL_TEST * automake.texi: document it 1999-04-12 Alexandre Oliva * End of merge from trunk. 1999-04-12 Alexandre Oliva * automake.in (cmdline_use_dependencies): Reintroduce it. (--ignore-deps): Set cmdline_use_dependencies again. (handle_dependencies): If use_dependencies is not set, define depcomp as empty. (handle_configure): Pass --ignore-deps to generated Makefile.ins. (scan_configure): Do not require depcomp when ignoring dependencies. (initialize_global_constants): Reintroduce --ignore-deps. 1999-04-10 Alexandre Oliva * depcomp: New file. * Makefile.am (dist_script_DATA): Added depcomp. * automake.in (cmdline_use_dependencies, omit_dependencies, dependency_macros): Removed. (--ignore-deps): Just ignore. (handle_single_transform_list, dep_files): Named dependency files as \$(DEPDIR)/$base.P$obj (handle_lib_objects_cond): Likewise. (generate_dependency_code): Do not check for AM_*_DEPENDENCIES. (scan_one_configure_file): Likewise. (handle_dependencies): Always enable auto-dep. Define `depcomp'. Ignore OMIT_DEPENDENCIES. (handle_configure): Do not pass --ignore-deps. (scan_configure): Require `depcomp'. (initialize_global_constants): Make `depcomp' common. Remove `--ignore-deps' from usage. (get_object_extension): No more NOTDEPEND in compile nor libtool. * compile.am: Remove rules for .c.o and .c.obj * depend.am (distclean-depend): Wipe out $(DEPDIR) * depend2.am (@FPFX@DEPMODE): Define from config.status. Use it and depcomp in suffix rules. * libtool.m4: Likewise. * m4/ccdepend.m4, m4/cxxdepend.m4: Removed. * m4/depvars.m4, m4/objcdepend.m4: Likewise. * m4/Makefile.am (dist_m4data_DATA): Likewise. * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Extract DEPDIR from the Makefile and subst it in deps. Report creation of deps files (for now). Replace $U with `_' and the empty string. Write a comment to each created file. * m4/depend.m4 (AM_SET_DEPDIR): Select a valid deps dir name. (AM_DEPENDENCIES): Accept CC, CXX and OBJC. Just determine the dependency mode and AC_SUBST [$1]DEPMODE. * m4/init.m4 (AM_INIT_AUTOMAKE): Automatically call AM_DEPENDENCIES for CC and CXX, if the corresponding AC_PROG appears in configure.in, before or after AM_INIT_AUTOMAKE. 1999-04-02 Raja R Harinath * depout.m4: Fix sed expression for extracting `dirpart'. 1999-03-29 Tom Tromey * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'. * compile.am (.c.obj): Also disabled when dependency tracking enabled. * depend2.am (@EXT@.obj): New target. * automake.in (get_object_extension): Added explanatory comment. (generate_dependency_code): Handle $seen_objext. * depend.am: Removed obsolete comment. * depend2.am: Minor formatting fix. 1999-03-28 Tom Tromey * m4/Makefile.am (dist_m4data_DATA): Renamed, and added new files. (EXTRA_DIST): Removed. * automake.in (dependency_macros): New global. (scan_one_configure_file): Recognize new dependency tracking macros, and define new resulting configure variables. (generate_dependency_code): New sub. (handle_dependencies): Use it. * depend2.am (DEP_@FPFX@COMPILE): New macro. (@EXT@.o): Use it. (@EXT@.lo): Likewise. * m4/depvars.m4: New file. * m4/objcdepend.m4: New file. * m4/cxxdepend.m4: New file. * m4/init.m4: Moved dependency handling code into depout.m4. * m4/depout.m4: New file. * m4/ccdepend.m4: New file. * m4/depend.m4: New file. * depend2.am (@EXT@.o): Renamed to be old-style suffix pattern. (@EXT@.lo): Likewise. * m4/init.m4 (AM_INIT_AUTOMAKE): Don't create `.deps/.P'; it is no longer needed. * m4/init.m4 (AM_INIT_AUTOMAKE): Add code to config.status which will create the required .P files for dependency tracking. * automake.in (scan_dependency_file): Removed. (handle_dependencies): Never call scan_dependency_file. (generate_deps): Removed. (parse_arguments): Don't recognize --generate-deps, --build-dir, --srcdir-name, or --include-deps. Do recognize --ignore-deps. (srcdir_name): Removed. (build_directory): Removed. (initialize_global_constants): Changed $USAGE to reflect argument parsing changes. (handle_dist_worker): Never run automake in `dist' rule. (handle_configure): Use --ignore-deps, not --include-deps. * depend.am (DEPS_MAGIC): Removed. (DEP_FILES): Unconditionally include. 1999-03-27 Tom Tromey * 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. * scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate. (uninstall-@DIR@SCRIPTS): Likewise. * progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate. (uninstall-@DIR@PROGRAMS): Likewise. * ltlib.am (install-@DIR@LTLIBRARIES): Use NDIR when appropriate. (uninstall-@DIR@LTLIBRARIES): Likewise. * lisp.am (install-@DIR@LISP): Use NDIR when appropriate. (uninstall-@DIR@LISP): Likewise. * libs.am (install-@DIR@LIBRARIES): Use NDIR when appropriate. (uninstall-@DIR@LIBRARIES): Likewise. * java.am (install-@DIR@JAVA): Use NDIR when appropriate. (uninstall-@DIR@JAVA): Likewise. * header.am (install-@DIR@HEADERS): Use NDIR when appropriate. (uninstall-@DIR@HEADERS): Likewise. * data.am (install-@DIR@DATA): Use NDIR when appropriate. (uninstall-@DIR@DATA): Likewise. * Makefile.in: Rebuilt. * Makefile.am (dist_pkgdata_DATA): Renamed. (EXTRA_DIST): Removed. (install-data-hook): Added POST_INSTALL; print commands as they are run; respect DESTDIR. * dist-vars.am (DISTFILES): Removed $(HEADERS). * automake.in (am_install_var): Accept `-candist' and `-defaultdist' options. Handle `dist_' and `nodist_' prefixes. (am_primary_prefixes): Added can_dist argument. Recognize `dist_' and `nodist_' prefixes. (handle_scripts): Pass -candist to am_install_var. (handle_data): Pass -defaultdist to am_install_var. (handle_headers): Likewise. (handle_emacs_lisp): Pass -candist to am_install_var. (handle_java): Pass -candist to am_install_var. 1999-03-26 Tom Tromey * m4/init.m4: Fixed typo when invoking SHELL. * automake.in (lang_yacc_finish): Always use `.h' as suffix for yacc header file. From Ralf Corsepius. * 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. * automake.in (am_install_var): Removed obsolete comment. * texinfos.am (uninstall-info): Don't print loop but instead print commands. Simplified pre-uninstall loop. * scripts.am (uninstall-@DIR@SCRIPTS): Don't print loop but instead print commands. * progs.am (uninstall-@DIR@PROGRAMS): Don't print loop but instead print commands. * ltlib.am (uninstall-@DIR@LTLIBRARIES): Don't print loop but instead print commands. * lisp.am (install-@DIR@LISP): Strip subdir from file name. (uninstall-@DIR@LISP): Likewise. Also, don't print loop but instead print commands. * libs.am (uninstall-@DIR@LIBRARIES): Don't print loop but instead print commands. * java.am (uninstall-@DIR@JAVA): Don't print loop but instead print commands. * header.am (install-@DIR@HEADERS): Strip subdir from file name. (uninstall-@DIR@HEADERS): Likewise. Also, don't print loop but instead print commands. * data.am (install-@DIR@DATA): Strip subdir from file name. (uninstall-@DIR@DATA): Likewise. Also, don't print loop but instead print commands. * automake.in (handle_merge_targets): `install-strip' is a phony target. From Michel de Ruiter. 1999-03-25 Tom Tromey * automake.in (define_compiler_variable): Don't define variable with trailing `_'. 1999-03-25 Alexandre Oliva * automake.in (LDADD): accept -dlopen and -dlpreopen here * automake.texi: ditto 1999-03-25 Alexandre Oliva * automake.in (TESTS): make from Solaris 7/x86 loses if srcdir is absolute and != objdir. dir="" or "$(srcdir)/" fixes it 1999-03-24 Tom Tromey * automake.in (define_compiler_variable): New sub. (finish_languages): Use it. (lang_cxx_finish): Likewise. (lang_f77_finish): Likewise. (lang_ppf77_finish): Likewise. (lang_ratfor_finish): Likewise. (lang_objc_finish): Likewise. 1999-03-23 Tom Tromey * progs.am (install-@DIR@PROGRAMS): Use `-e' instead of multiple sed invocations. From Elrond. (uninstall-@DIR@PROGRAMS): Likewise. * automake.in (lang_lex_finish): Rewrite `l', not `y', to `c'. From Ralf Corsepius. 1999-02-01 Thomas Tanner * 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 1999-03-22 Tom Tromey 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. 1999-03-21 Tom Tromey * automake.in (initialize_per_input): Initialize %object_map. (handle_single_transform_list): Allow source files in subdirectories. 1999-03-21 Jim Meyering * automake.in (handle_dist): Add missing newline after the first semicolon. 1999-03-11 Tom Tromey * m4/error.m4, m4/mktime.m4, m4/obstack.m4, m4/regex.m4, m4/strtod.m4: Use $ac_objext, not `.o'. From Jim Meyering. 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. From Ralf Corsepius. Fixes lex3.test. * automake.in (lang_yacc_finish): Include `.' in name pushed onto maintainer-clean list. (lang_lex_finish): Likewise. 1999-03-02 Tom Tromey * subdirs.am (maintainer-clean-recursive): Changed "&&" into "if" construct to work around FreeBSD make/sh problem. From Rich Wales. 1999-03-01 Tom Tromey Fixes from Pavel Roskin: * automake.in (variable_conditions_sub): Sort list passed to variable_conditions_permutations. (variable_conditions): Sort list before returning. 1999-02-27 Tom Tromey * 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. 1999-02-26 Tom Tromey * automake.in (finish_languages): Added AM_LDFLAGS. (lang_cxx_finish): Likewise. (lang_f77_finish): Likewise. (lang_ppf77_finish): Likewise. (lang_ratfor_finish): Likewise. (lang_objc_finish): Likewise. 1999-02-11 Tom Tromey * 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. * automake.in (obsolete_macros): Corrected typo in AM_EXEEXT entry. Fixes obsolete2.test. * automake.in (obsolete_macros): Use empty string to indicate no substitution. (scan_one_configure_file): Likewise. 1999-02-07 Paul Eggert * 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. 1999-02-10 Tom Tromey * automake.in (handle_texinfo): Added `pgs' to list of extensions. From NISHIDA Keisuke. 1999-02-04 Akim Demaille * automake.in (handle_texinfo): remove texinfo.tex from TEXINFODIR. 1999-02-02 Tom Tromey * automake.in (handle_merge_targets): Use INSTALL_STRIP_FLAG. * progs.am (install-@DIR@PROGRAMS): Added INSTALL_STRIP_FLAG. * header-vars.am (INSTALL_PROGRAM): Removed AM_INSTALL_PROGRAM_FLAGS. (INSTALL_STRIP_FLAG): New macro. * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++ lex source. (lang_yacc_finish): Likewise. (lang_lex_finish): Likewise. 1999-02-01 Tom Tromey * automake.in (handle_dist_worker): Correctly find find in $$d, not $$. From Bill Davidson. * automake.in (finish_languages): Use "&", not "do". From Pavel Roskin. (handle_single_transform_list): Likewise. 1999-01-29 Tom Tromey * automake.in (handle_configure): Removed unused variable. From Pavel Roskin. * ansi2knr.c: New version from L. Peter Deutsch. 1999-01-22 Tom Tromey * 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. * automake.in (lang_ppf77_rewrite): New function. From Jochen Kuepper. Fixes ppf77.test. (lang_ratfor_rewrite): New function * automake.in (handle_configure): Use `&' before sub calls (Perl 4 fix). From Erez Zadok. 1999-01-15 Tom Tromey * configure.in: Version 1.4a (oops). * configure.in: Updated version to 1.5a. 1999-01-14 Tom Tromey * 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. * automake.in (handle_tests): Avoid error messages from dejagnu test rules. From Karl Heuer. * automake.in (handle_texinfo): Add `/' to end of $conf_dir. * Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'. * texi-vers.am ($(srcdir)/stamp-@VTI@): Find @TEXI@ in srcdir. From Alexandre Oliva and Erez Zadok. * automake.in (create): Renamed from touch. (handle_configure): Use create, not touch. * config.sub, config.guess: New versions from autoconf. * mkinstalldirs: New version from autoconf. 1999-01-12 Tom Tromey * config.sub, config.guess, COPYING, texinfo.tex: New versions from FSF. 1999-01-11 Marcus G. Daniels * automake.in (PATH_PATTERN): New variable: (INCLUDE_PATTERN): Use it. Ignore all include commands using symbols besides $(top_srcdir) and $(srcdir). 1999-01-11 Alexandre Oliva * automake.in (handle_dist_worker): avoid failure in `make dist' if last file is a builddir-only file 1999-01-11 Alexandre Oliva * missing (autoheader): `s' was missing from sed script; grr 1999-01-11 Tom Tromey * remake-hdr.am (@STAMP@): Reverted timestamp change. ($(srcdir)/@STAMP@.in): Likewise. 1999-01-10 Tom Tromey * Makefile.am (scriptdir): New macro. (script_DATA): Likewise. (install-data-hook): Use them. (EXTRA_DIST): Added script_DATA. (installcheck-local): Use script_DATA. * Makefile.am (pkgdata_DATA): Removed duplicate definition. 1999-01-10 Alexandre Oliva * missing (autoheader): accept multiple header files (automake): simplify sed processing 1999-01-10 Alexandre Oliva * automake.in (handle_configure, stamp_dir): create only one stamp file per header, instead of one in the top-level directory and one in the directory that contains the header. 1999-01-10 Tom Tromey * automake.in (lang_objc_finish): Formatting fix. * automake.in (objc_extensions): New sub. (handle_dependencies): Only generate dependency-tracking code for ObjC when ObjC source seen.