2002-08-17 Tom Tromey For PR automake/347: * automake.in (rule_define): Given portability warning if "%" seen in target name. (TARGET_PATTERN): Added `%'. * tests/Makefile.am (TESTS): Added percent.test. * tests/percent.test: New file. 2002-08-15 Art Haas * lib/am/depend2.am: Use correct name for dependency file in libtool fastdep case. 2002-08-14 Art Haas * lib/am/depend2.am: Added missing `;'. 2002-08-02 Alexandre Duret-Lutz * automake.texi (Python): Fix wording. * tests/ext2.test: New file. This bug is present in Automake 1.6.3 and was fixed by the change on variable_conditions_permutations and invert_conditions on 2002-05-16. * tests/Makefile.am (TESTS): Add ext2.test. Reported by Ladislav Strojil. 2002-08-01 Alexandre Duret-Lutz * aclocal.in (parse_arguments): Add `dirlist' paths add the very end of the search path, after aclocal-APIVERSION/ and aclocal/. * automake.texi (Macro search path): Adjust to reflect the new ordering. * tests/dirlist.test: Check for this. 2002-07-31 Charles Wilson * aclocal.in (parse_arguments): Add support for extending default macro search path, using a `dirlist' file within the aclocal directory. * automake.texi (Invoking aclocal): Move option descriptions into ... (aclocal options): ... this new node. (Macro search path): New node. * tests/dirlist.test: New file. * tests/Makefile.am (TESTS): Add dirlist.test. * m4/dirlist: New file. * m4/Makefile.am (EXTRA_DIST): Add dirlist. * tests/defs: Honor any installed dirlist when searching for libtool.m4 and gettext.m4. 2002-07-30 Alexandre Duret-Lutz Build info files in builddir instead of srcdir (for PR automake/168), and prepare support for info files in subdirecties. * automake.in (output_texinfo_build_rules): New function. (handle_texinfo_helper): Use output_texinfo_build_rules, and prepare to support subdir texinfos. Define am__TEXINFO_TEX_DIR. * lib/am/texi-vers.am: Build version.texi and stamp-vti in the current directory, not $(srcdir). Use %STAMPVTI% to name the stamp file. * lib/am/texibuild.am: Rewrite to output files in the current directory, not $(srcdir). Also, support both generic and non-generic output. Pass `-o $@' to makeinfo, texinfo, and texi2dvi (for PR automake/339). * tests/texinfo3.test: Make sure the `.texi:' rule is output. * tests/texinfo10.test: Use set -e, so the checks are not ignored. * tests/texinfo16.test: New file. * tests/Makefile.am (TESTS): Add texinfo16.test. 2002-07-29 Alexandre Duret-Lutz * aclocal.in (write_aclocal): Don't write the filename ($output_file) in the aclocal.m4 header. * configure.in: Require Autoconf 2.53b. 2002-07-28 Alexandre Duret-Lutz * configure.in: Bump version to 1.6c. * configure.in: Bump version to 1.6b. * lib/config.guess, lib/config.sub, lib/Automake/XFile.pm: New upstream versions. * automake.in: Don't write @ALLOCA@ and @LIBOBJS@ in clear text, since this file is processed by config.status. 2002-07-25 Alexandre Duret-Lutz * automake.in (read_am_file): Escaped newlines in comments are not portable. If a comment line doesn't start with a `#', add it. * tests/comment6.test: Ensure this is done. 2002-07-24 Alexandre Duret-Lutz Fix failures reported by Patrick Welche on NetBSD. * tests/gnits2.test, tests/gnits3.test: Don't trust the exit status of `make -k'. * tests/obsolete.test: Source obs.1 and obs.2 from current directory. 2002-07-23 Patrick Welche * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add configure.lineno. 2002-07-23 Alexandre Duret-Lutz * tests/required2.test: New file. * tests/Makefile.am (TESTS): Add required2.test. * automake.in (initialize_per_input): Remove %require_file_found setting. This reverts my change of 2002-04-19. (require_file_internal): Use the full name of a file as a key in %require_file_found, not only the basename. Reported by Andrew Suffield. 2002-07-22 Alexandre Duret-Lutz * automake.in (handle_subdirs): Warn if `obj' appears in SUBDIRS. * tests/subdir7.test: New file. * tests/Makefile.am (TESTS): Add subdir7.test. * lib/mkinstalldirs: Remove Id keyword. * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor AM_INSTALLCHECK_STD_OPTIONS_EXEMPT. * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise. * automake.texi (Options) : Document AM_INSTALLCHECK_STD_OPTIONS_EXEMPT. (Gnits): Reference std-options. * tests/gnits3.test: New file. * tests/Makefile.am (TESTS): Add gnits3.test. Suggested by Jim Meyering. 2002-07-20 Alexandre Duret-Lutz * tests/gnits2.test: Use --program-prefix. Test for scripts too. Replace the sed script by calls to grep, easier to debug. * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor nobase and $(transform). * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise. * lib/am/progs.am (install-%DIR%PROGRAMS, uninstall-%DIR%PROGRAMS): Always strip the directory part before applying $(transform), even for nobase_ targets. * lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS): Likewise. * tests/nobase.test: Use --program-prefix while testing nobase support. 2002-07-19 Alexandre Duret-Lutz * tests/dirname.test: Delete. We don't define _AM_DIRNAME anymore. * tests/Makefile.am (TESTS): Remove dirname.test. * m4/init.m4: Require Autoconf 2.53b. * m4/header.m4 (AM_CONFIG_HEADER): Redefine using AU_DEFUN. * m4/ccstdc.m4 (fp_PROG_CC_STDC): New AU_DEFUN. * m4/dmalloc.m4 (fp_WITH_DMALLOC): Likewise. * m4/lispdir.m4 (ud_PATH_LISPDIR): Likewise. * m4/maintainer.m4 (jm_MAINTAINER_MODE): Likewise. * m4/protos.m4 (fp_C_PROTOTYPES): Likewise. * m4/regex.m4 (fp_WITH_REGEX): Likewise. * m4/termios.m4: Delete. AM_SYS_POSIX_TERMIOS is now AU_DEFUNed in m4/obsolete.m4. * m4/winsz.m4: Delete. AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL is now AU_DEFUNed in m4/obsolete.m4. * m4/obsol-gt.m4, m4/obsol-lt.m4, m4/obsolete.m4 : New files. * m4/Makefile.am (dist_m4data_DATA): Add obsol-gt.m4, obsol-lt.m4, and obsolete.m4. Remove termios.m4 and winsz.m4. * aclocal.in (obsolete, obsolete_rx): Remove. (scan_configure): Don't grep for obsolete macros. * tests/defs (AUTOUPDATE): Define. * Makefile.am (maintainer-check): Check for misuses of autoupdate. * tests/obsolete.test: Rewrite. Exercize the AU_DEFUN macros from m4/obsolete.m4. Fix for PR automake/338: * automake.in (seen_gettext_external): New variable. (handle_gettext): Conditionalize the intl/ check on $seen_gettext_external. Fix grep usage. (scan_autoconf_traces): Set $seen_gettext_external if `external' is passed to AM_GNU_GETTEXT. * tests/gettext.test, tests/gettext2.test: New files. * tests/Makefile.am (TESTS): Add gettext.test and gettext2.test. 2002-07-18 Alexandre Duret-Lutz Akim Demaille * m4/header.m4 (_AM_DIRNAME, _AM_STAMP, _AM_CONFIG_HEADER, _AM_CONFIG_HEADER_INSINUATE): Remove them all. Leave just ... (AM_CONFIG_HEADER): ... this new definition for compatibility. * m4/init.m4: Don't call _AM_CONFIG_HEADER_INSINUATE. (_AC_AM_CONFIG_HEADER_HOOK): New macro. * tests/confh5.tests: Delete. * tests/Makefile.am (TESTS): Remove confh5.tests. 2002-07-16 Alexandre Duret-Lutz * automake.in (handle_single_transform_list): Typo. * lib/Automake/Channels.pm (dup_channel_setup, drop_channel_setup): New functions. (@EXPORT): Add them. * automake.in (generate_makefile): Call dup_channel_setup and drop_channel_setup. (process_option_list): Recognize --warnings and -W options. * automake.texi (Options): Document them. * tests/pluseq5.test: Check that -Wno-obsolete will disable the warning. * tests/warnopts.test: New file. * tests/Makefile.am (TESTS): Add warnopts.test. 2002-07-12 Alexandre Duret-Lutz * automake.in: Register warning channel `gnu'. (set_strictness): Turn on `gnu' in --gnu and --gnits. (usage): Mention the `gnu' category. (%var_is_am): Replace by ... (%var_owner): ... this, which uses ... (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE): ... these new constants. Adjust all uses of %var_is_am. (handle_languages): Warn about user variables being overriden. (require_variables): Also check %configure_vars for the existence of a required variable. * automake.texi (Invoking Automake): Document -Wgnu. * tests/yacc2.test, tests/yacc3.test: Use -Wno-gnu when we test YFLAGS. * tests/gnuwarn.test: New file. * tests/Makefile.am (TESTS): Add gnuwarn.test. 2002-07-11 Alexandre Duret-Lutz Fix for PR automake/337: * automake.in: Redefine the `flags' attribute of each language as a list. List CPPFLAGS in `flags' when it is used. (register_language): Set the default value of 'flags'. (handle_single_transform_list): Adjust to treat `flags' as a list. (handle_languages): Likewise. Don't bother defining the configure variable for `c', this is always done since we trace configure.ac. * automake.texi (etags): Use per-executable _CPPFLAGS. (Program and Library Variables): Mention maude_CPPFLAGS. (Program variables): Likewise. * tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS. * tests/specflags9.test: New file. * tests/Makefile.am (TESTS): Add specflag9.test. 2002-07-10 Alexandre Duret-Lutz * automake.texi: Use `variable' instead of `macro' everywhere it designates a Makefile variable. (Texinfo): `VERSION', `UPDATED', `EDITION', and `UPDATED-MONTH' are `flags', not `macros'. `Macro' means something else in Texinfo. Also show how to use these flags. * automake.in (file_contents_internal): s/macro/variable/ in error message. * automake.in (parse_arguments): Call Getopt twice: once to catch --help or --verbose, and once to process the other arguments. (usage, verbose): Always exit 0, ignoring $exit_code (which anyway should always be 0 because of the change to parse_arguments). * tests/Makefile.am (TESTS): Add getopt.test. * tests/getopt.test: New file. 2002-07-09 Tom Tromey For PR automake/286: * automake.texi (Tags): Document ctags. * automake.in (handle_tags): Handle ctags. * lib/am/tags.am (CTAGS): New macro. (CTAGSFLAGS): Likewise. (ctags): New target. (distclean-tags): Remove `tags'. * lib/am/depend2.am: Reworked syntax to avoid parsing problem. * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE% before passing to cygpath. Partial fix for PR automake/334. 2002-07-09 Alexandre Duret-Lutz * automake.in (generate_makefile): Suggest using AM_CPPFLAGS instead of INCLUDES. * tests/pluseq5.test: Check that AM_CPPFLAGS is suggested. 2002-07-09 Alexandre Duret-Lutz * automake.in (usage, version): Honor $exit_code. (parse_arguments): Use fatal. 2002-07-09 Alexandre Duret-Lutz * automake.texi (Invoking Automake): Document WARNINGS. * automake.in (switch_warning, parse_WARNINGS): New function. (setup_warnings): Rename to ... (parse_warnings): ... this. Move most of the code to switch_warning. Accept a comma separated list of categories. * tests/vars2.test: Use a comma separated list of warning categories. 2002-07-08 Alexandre Duret-Lutz * NEWS (New in 1.6): Mention that libtoolize is no longer run by automake. 2002-07-08 Alexandre Duret-Lutz Fix for PR automake/291: * automake.in (macro_define): Catch variable names starting with `_'. (handle_installdirs): Rename _am_installdirs to am__installdirs. * lib/am/data.am, lib/am/install.am, lib/am/libs.am, lib/am/lisp.am, lib/am/ltlibs.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Likewise. * tests/canon5.test: Use -Wno-portability. * tests/vars2.test: New file. * tests/Makefile.am (TESTS): Add vars2.test. 2002-07-08 Alexandre Duret-Lutz * tests/defs (AUTOMAKE): Add -Wall. * tests/outdir.test: Use -Wno-obsolete. 2002-07-07 Tom Tromey * m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep conditional. * automake.in (handle_languages): Compute FASTDEP. * lib/am/depend2.am: Added %FASTDEP% mode. 2002-07-07 Tom Tromey * automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode now. Fixes PR automake/332. 2002-07-06 Alexandre Duret-Lutz * tests/nobase.test (test-install-exec): Move all the `test -f' tests in the Makefile so we can use $(EXEEXT) on programs. Reported by Charles Wilson. 2002-07-06 Alexandre Duret-Lutz * m4/header.m4 (AM_CONFIG_HEADER): New macro. * tests/confh5.test: Make sure that Autoconf complains if AM_CONFIG_HEADER or AC_CONFIG_HEADERS is called before AM_INIT_AUTOMAKE. 2002-07-06 Alexandre Duret-Lutz * lib/Automake/Channels.pm: New file. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Channels.pm. * automake.in: Use Automake::Channels and register some channels for errors and warnings. ($exit_status): Remove, replaced by Channels::$exit_code. (%required_variables): Remove, Channels will filter-out duplicates itself. (initialize_per_input): Call reset_local_duplicates. (prog_error): Adjust to all `msg'. (setup_warnings): New functions. (parse_arguments): Accept -W CATEGORY and --warnings=CATEGORY, call setup_warnings. (usage): Update usage text accordingly. (macro_dump, macros_dump): Return the dump as a string instead of printing it. (am_install_var) <$warned_about_extra>: Remove, Channels will filter-out duplicates itself. (set_strictness): Turn on/off channels for each stricness. (err, fatal, err_var, err_target, err_am, err_ac, msg_var, msg_target, msg_am, msg_ac, reject_var, reject_target, verb): New functions, to replace ... (print_error, am_error, file_error, macro_error, target_error, conf_error, file_warning): ... these functions. Remove them. Update all the code to use the new functions. The rough correspondance is am_error -> err_am file_error -> err macro_error -> err_var target_error -> err_target conf_error -> err_ac die -> fatal macro_error if defined -> reject_var target_error if defined -> reject_target verbose -> verb * automake.texi (Invoking Automake): Document -W and --warnings. Remove the documentation for --Werror and --Wno-error. * tests/defs: Use -Werror, no --Werror. * tests/exeext2.test: Test that the error message is enabled with -Wobsolete. * tests/output5.test: Rewrite to test that Automake complains when there is no Makefile specified. (The original test was succeeding for the wrong reason.) * tests/seenc.test: Don't use --Wno-error, there is no reason now that -Werror doesn't stop after the first error. * tests/subobj.test: Use --add-missing, and check that `compile' is installed and that Automake says so. * tests/subobj2.test: Don't create `compile'. 2002-07-05 Tom Tromey * automake.texi (Java Support): Mention --main and _LDFLAGS. For PR automake/324. 2002-07-04 Alexandre Duret-Lutz * tests/asm.test: Erase Autom4te's cache between each test. 2002-07-03 Alexandre Duret-Lutz * automake.in (am_macro_for_var): Add LIBTOOL. (ac_macro_for_var): Add RANLIB. (seen_libtool): Remove. (handle_libtool, lang_c_finish, define_compiler_variable, make_paragraphs): Use variable_defined ('LIBTOOL') instead of $seen_libtool. (handle_languages) <%transform>: Don't set 'LIBTOOL', it is already done in make_paragraphs. (handle_libraries): Simplify by requiring RANLIB with &require_variables_for_macro. (handle_ltlibraries): Simplify by requiring LIBTOOL with &require_variables_for_macro. (scan_autoconf_traces): Don't trace for AC_PROG_LIBTOOL and AM_PROG_LIBTOOL. * tests/libtool4.test, tests/library2.test: New files. * tests/Makefile.in (TESTS): Add libtool4.test and library2.test. 2002-07-02 Alexandre Duret-Lutz * automake.in (create, keyed_aclocal_warning): Delete, unused. 2002-07-01 Alexandre Duret-Lutz * automake.in (ac_macro_for_var): Add YACC. 2002-07-01 Alexandre Duret-Lutz Handle multiple suffix rules with the same input extension. For PR automake/37. * automake.in (suffix_rules_default): New variable. (suffix_rules): Redefine as a hash of hashes of pairs. (initialize_per_input): Setup suffix_rules_default from suffix_rules on first call, an override suffix_rules with suffix_rules_default on following calls. (struct) : New attribute. (register_language): Set the default for output_extensions. Call register_suffix_rule for each suffix. (derive_suffix, handle_languages): Adjust to the new definition of $suffix. (register_suffix_rule): New function. (rule_define): Call register_suffix_rule. * tests/suffix8.test, tests/suffix9.test, tests/suffix10.test: New files. * tests/Makefile.am (TESTS): Add them. 2002-06-30 Alexandre Duret-Lutz * automake.in (am_macro_for_var, ac_macro_for_var, required_variables): New variables. (am_c_prototypes, seen_prog_lex, am_lispdir_location, pythondir_location): Remove. (initialize_per_input): Clear %required_variables. (require_variables, require_variables_for_macro): New functions. (handle_languages): Call &require_variables for $lang->config_vars. (handle_compile): Call &require_variables_for_macro for the ANSI2KNR and U variables. (handle_emacs_lisp): Call &require_variables for EMACS and libdir. (handle_python): Call &require_variables for PYTHON. Don't explicitly allow `python' as a prefix for PYTHON. (scan_autoconf_traces): Don't scan AC_PROG_LEX, AM_C_PROTOTYPES, AM_PATH_LISPDIR, and AM_PATH_PYTHON. (scan_autoconf_traces) : Don't filter out ANSI2KNR and AMDEPBACKSLASH here... (define_configure_variable): ... do this here. (am_primary_prefixes): Probe the existence of ${X}dir using &require_variables_for_macro. If a standard prefix is not legitimate, say so. Ignore all configure variables. * tests/ansi8.test, tests/cxx2.test, tests/gcj5.test, tests/lisp2.test, tests/python2.test: New files * tests/Makefile.am (TESTS): Add them. * tests/asm.test: Grep stderr. * tests/lex2.test: Rewrite to test that Automake suggests AM_PROG_LEX. * tests/python.test: Make sure py-compile is installed. 2002-06-27 Alexandre Duret-Lutz * automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR, COMPILE_LIBTOOL, COMPILE_ORDINARY): Redefine as constants. Adjust all occurrences. 2002-06-27 Alexandre Duret-Lutz * aclocal.in: Add local variables so that Emacs setups GNU style for perl-mode and cperl-mode. * automake.in: Likewise. (WHITE_PATTERN, RULE_PATTERN, SUFFIX_RULE_PATTERN, MACRO_PATTERN, ASSIGNMENT_PATTERN, IF_PATTERN, ELSE_PATTERN, ENDIF_PATTERN, INCLUDE_PATTERN, EXEC_DIR_PATTERN): Write $ as "\$" to please perl-mode. 2002-06-27 Alexandre Duret-Lutz * Makefile.am (fetch): Fetch install-sh from Autoconf CVS. * lib/config.sub, lib/install-sh: New upstream versions. 2002-06-26 Paul Eggert * Makefile.am (maintainer-check): Don't assume that egrep exists; this fixes a portability bug introduced in the 2002-06-08 fix for PR automake/317. 2002-06-26 Alexandre Duret-Lutz * automake.in (required_targets): Add ps and ps-am. (initialize_per_input): Reset them. (handle_texinfo_helper): Fill @pss_list, and define the PSS make variable. * lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive. (ps, ps-am): New targets. * automake.texi (Auxiliary Programs) : Mention `make ps' and `make pdf'. (Texinfo): Document `make ps', `make pdf', and `make dvi'. (Extending): The `ps' and `pdf' targets support a `-local' version. 2002-06-26 Art Haas * automake.texi: s/.../@dots{}/. 2002-06-26 Alexandre Duret-Lutz * configure.in: Check that ln works, fall back to `cp -p'. * Makefile.am (install-exec-hook): Use $(LN) instead of ln. Reported by Andreas Buening. 2002-06-21 Alexandre Duret-Lutz * automake.in: Register &lang_lex_target_hook for lex and lexxx. (lang_lex_target_hook): New function. * tests/lex3.c: Complete to check that maintainer-clean erases Lex's output. Reported by Flavien Astraud. This was lost on 2001-06-23 too. 2002-06-21 Alexandre Duret-Lutz * automake.in (lang_yacc_target_hook): Add $output to @maintainer_clean_files. This was lost on 2001-06-23. * tests/yacc7.test, tests/yacc4.test: Complete to check that maintainer-clean erases YACC's output files, respectively with and without `-d'. Reported by Flavien Astraud. 2002-06-19 Alexandre Duret-Lutz * lib/am/lang-compile.am (%FPFX%DEPMODE): Delete. This is now traced from configure.ac. * automake.in (macro_define): Don't accept to override an AC_SUBST or Automake variable in a new condition. * tests/cond23.test, tests/cond24.test: New file. * tests/Makefile.am (TESTS): Add cond23.test and cond24.test. Reported by Patrik Weiskirchre. 2002-06-19 Alexandre Duret-Lutz * tests/nobase.test, tests/pr204.test, tests/pr300-lib.test, tests/pr300-ltlib.test, tests/pr300-prog.test, tests/specflags7.test, tests/specflags8.test, tests/subdir5.test, tests/subobj6.test, tests/subpkg.test, tests/transform.test: Require gcc. 2002-06-18 Alexandre Duret-Lutz * tests/libtool2.test: Use required=libtoolize. * tests/install2.test: Use required=gzip. 2002-06-18 Alexandre Duret-Lutz * tests/defs (required): Handle bison; set YACC automatically. * tests/pr204.test, tests/yacc4.test, tests/yacc8.test, tests/yaccvpath.test: Require bison. Don't set YACC. 2002-06-18 Alexandre Duret-Lutz * tests/defs (required): Handle `gcc' and `g++'; automatically export CC and CXX when they are required. * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test, tests/cond4.test, tests/cond16.test, tests/cond18.test, tests/cond19.test, tests/depcomp2.test, tests/depend2.test, tests/lex3.test, tests/pr87.test, tests/pr220.test, tests/substref.test, tests/target-cflags.test, tests/yacc4.test, tests/yaccvpath.test: Require gcc. Don't pass CC=gcc to configure. * tests/subobj9.test: Require g++. 2002-06-18 Alexandre Duret-Lutz * tests/defs (required): Handle `GNUmake'. (needs_gnu_make): Don't define anymore. * tests/cond4.test, tests/cond18.test, tests/cond19.test, tests/dollar.test, tests/exsource.test, tests/extra6.test, tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test, tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test, tests/yaccvpath.test: Use `required=GNUmake' instead of `$needs_gnu_make'. 2002-06-17 Paolo Bonzini * automake.in (process_option_list): Recognize std-options. (handle_options): Enable std-options in gnits strictness. (am_install_var): If std-options, enable CK-OPTS section. * lib/am/scripts.am (installcheck-am): New target. * lib/am/progs.am (installcheck-am): New target. * tests/gnits2.test: New file. * tests/Makefile.am (TESTS): Add gnits2.test. * automake.texi (Gnits, Options): Document std-options. 2002-06-17 Kevin Ryde * automake.in (scan_texinfo_file): Add tmp to @clean_suffixes, as generated by recent texinfo.tex. 2002-06-14 Alexandre Duret-Lutz * m4/header.m4 (AM_CONFIG_HEADER): Rename to ... (_AM_CONFIG_HEADERS): ... this. (_AM_CONFIG_HEADER_INSINUATE): Define AC_CONFIG_HEADERS to call _AM_CONFIG_HEADERS; and AM_CONFIG_HEADER to call AC_CONFIG_HEADERS. * automake.in (scan_autoconf_traces): Trace AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. * tests/autoheader2.test: New file. * tests/Makefile.am (TESTS): Add autoheader2.test. Suggested by Raja R Harinath. 2002-06-13 Alexandre Duret-Lutz * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead of m4_rename so that AC_CONFIG_HEADER is never undefined and therefore still traced after the redefinition. * tests/defs (AUTOHEADER): Define. * tests/autoheader.test: New file. * tests/Makefile.am (TESTS): Add autoheader.test. Reported by Braden McDaniel. 2002-06-13 Paolo Bonzini * automake.in (check_gnu_standards): In --gnu mode, accept one of COPTING, COPYING.LESSER, or COPYING.LIB. (common_files): Add COPYING.LESSER. * automake.texi (Gnits): Document this. 2002-06-13 Paolo Bonzini * automake.in (required_targets): Add the pdf and pdf-am targets. (initialize_per_input): Likewise. (scan_texinfo_file): Add pdf to @clean_suffixes. (handle_texinfo_helper): Output the .pdf dependencies, and define the PDFS variable. * lib/am/texinfos.am (TEXI2PDF): New variable. (pdf, pdf-am): New targets. (.PHONY): Add pdf, pdf-am, and pdf-recursive. * lib/am/texibuild.am (.%SUFFIX%.pdf): New rule. 2002-06-13 Alexandre Duret-Lutz Fix pr307.test failure with gcc 3.x. * lib/depcomp (dashmstdout): Strip the call to libtool, and replace `-o $object' by `-o /dev/null' before running "$@" to generate dependencies. (cpp): Strip the call to libtool as well as `-o $object'. 2002-06-12 Alexandre Duret-Lutz * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as $base.lo.d, when libtool is used. Reported by Nicolas Joly. 2002-06-11 Alexandre Duret-Lutz * lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there is no file to compile. * tests/java2.test: New file. * tests/Makefile.am (TESTS): Add java2.test. Reported by Braden N. McDaniel. 2002-06-11 Alexandre Duret-Lutz * tests/maintclean.test: Don't check for autom4te.cache if it's not created by Autoconf. Reported by Bernd Jendrissek. 2002-06-11 Alexandre Duret-Lutz * automake.texi (Tests): Document site.exp. Update DejaGnu's url. 2002-06-10 Alexandre Duret-Lutz * lib/am/header-vars.am (transform): Define. Was removed by mistake on 2002-04-13. * tests/transform.test: New file. * tests/Makefile.am (TESTS): Add transform.test. Reported by Nicolas Joly. 2002-06-10 Alexandre Duret-Lutz * tests/dollar.test: Require GNU make. * tests/maintclean.test: Don't use `export YACC=false'. Pass YACC=false to configure instead. 2002-06-10 Alexandre Duret-Lutz * lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL, INSTALL: New upstream versions. 2002-06-10 Alexandre Duret-Lutz * tests/sinclude.test: Check for m4_include too. 2002-06-10 Alexandre Duret-Lutz * tests/sinclude.test: Rename the package as amsinclude; am__sinclude still trigers the sinclude macro once it has been converted to am--sinclude. Reported by Nicolas Joly. 2002-06-10 Alexandre Duret-Lutz * automake.texi (API versioning): Typo. 2002-06-10 Nicolas Joly * THANKS (Nicolas Joly): Remove duplicate. 2002-06-10 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Fix $MAKE -e detection. * tests/yacc7.test: Use rm -f. 2002-06-10 Alexandre Duret-Lutz * tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths. * tests/subpkg.test: New file. * tests/Makefile.am (TESTS): Add subpkg.test. 2002-06-09 Alexandre Duret-Lutz For PR automake/318: * tests/nobase.test: Rewrite to test _HEADERS, _DATA, _SCRIPTS, _PROGRAMS, _LIBRARIES, and _LTLIBRARIES. * lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS): Honor nobase_; strip the directory by default. (?%DIR%SCRIPT_INSTALL): New variable. * lib/am/header-vars.am (install_sh_SCRIPT): New variable. Reported by Eric Siegerman. 2002-06-08 Alexandre Duret-Lutz * automake.in (lang_yacc_target_hook): Add rule to recover from the removal of $header. * lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one output by lang_yacc_target_hook). * tests/yacc7.test: Try to recreate foo.h after its removal. * tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate parse.h too. Reported by Bernd Jendrissek. 2002-06-08 Alexandre Duret-Lutz For PR automake/317: * Makefile.am (maintainer-check): Disallow `for f in $(FILES)', suggest `list='$(FILES)'; for f in $$list' instead. * lib/am/distdir.am (distdir): Adjust `for' usage. * lib/am/texinfos.am (maintainer-clean-aminfo): Likewise. * tests/dollar.test: New file. * tests/Makefile.am (TESTS): Add dollar.test. Reported by Eric Siegerman and Philip Fong. 2002-06-06 Alexandre Duret-Lutz For PR automake/47 (fixed a long time ago): * tests/yacc7.test: Also check that parser sources are distributed. 2002-06-06 Alexandre Duret-Lutz * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable. (distclean): Use it. (maintainer-clean): Delete autom4te.cache and $(am__CONFIG_DISTCLEAN_FILES). * tests/maintclean.test: New file. * tests/Makefile.am (TESTS): Add maintclean.test. 2002-06-05 Miloslav Trmac * lib/am/dejagnu.am (site.exp): Quote build_alias, host_alias, and target_alias. 2002-05-31 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Check for egrep and fgrep. * test/cond22.test: Set SHELL when calling $MAKE -e. 2002-05-31 Richard Boulton Fix PR automake/326: * automake.in (define_objects_from_sources): Calculate the result in all conditions before passing this to subobjname to pick a name to store the result in. (subobjname): Expect a list of condition/value pairs as input. Combine this list and use it as the key to determine the variable name. * test/cond22.test: New file. * tests/Makefile.am (TESTS): Add cond22.test 2002-05-30 Paul Eggert * lib/am/distdir.am (distdir): Don't assume that 'grep -F' works; instead, use shell pattern matching. 2002-05-29 Paul Eggert Don't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no longer requires them. * Makefile.am (maintainer-check): Use grep -E and grep -F instead of egrep and fgrep. Omit unnecessary -E and -F. Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'". * lib/am/distdir.am (distdir): fgrep -> grep -F. Use $(), not ${}, for Make variables. * lib/am/texinfos.am (install-info-am, uninstall-info-am): fgrep -> grep * m4/make.m4 (AM_MAKE_INCLUDE): Likewise. * tests/defs: Set FGREP and EGREP. * tests/aclocali.test, tests/acoutput2.test, tests/all.test, tests/ansi.test, tests/ansi4.test, tests/colon3.test, tests/cond21.test, tests/condlib.test, tests/confh4.test, tests/confsub.test, tests/cxxansi.test, tests/cxxo.test, tests/depend4.test, tests/discover.test, tests/distname.test, tests/dup3.test, tests/empty4.test, tests/fo.test, tests/implicit.test, tests/insh2.test, tests/interp.test, tests/lex.test, tests/lex3.test, tests/lex4.test, tests/libobj5.test, tests/libobj7.test, tests/make.test, tests/makevars.test, tests/nostdinc.test, tests/parse.test, tests/pluseq.test, tests/pluseq4.test, tests/pluseq6.test, tests/pr2.test, tests/pr9.test, tests/seenc.test, tests/specflags.test, tests/specflags3.test, tests/specflags6.test, tests/subobj.test, tests/subobj2.test, tests/suffix3.test, tests/texinfo.test, tests/texinfo6.test, tests/texinfo8.test, tests/vtexi.test, tests/yacc3.test, tests/yacc6.test: fgrep -> $FGREP, egrep -> $EGREP 2002-05-24 Alexandre Duret-Lutz For PR automake/323: * m4/depend.m4: Missing comma. * tests/gcj4.test: New file. * tests/Makefile.am (TESTS): Add gcj4.test. Reported by David Pashley. 2002-05-22 Alexandre Duret-Lutz * tests/defs (configure.in): Don't double-quote $me. * tests/sinclude.test: Overwrite configure.in and use `am__sinclude' instead of `sinclude' as package name. Excercise `m4_sinclude' instead of `sinclude'. 2002-05-20 Alexandre Duret-Lutz * automake.in (conditional_implies_one_of): Rename as ... (conditional_implies_any): ... this. * tests/pluseq9.test: Exercise another case with the new `C' variable. Suggested by Raja R Harinath. 2002-05-17 Alexandre Duret-Lutz * tests/defs (configure.in): Quote macro arguments. Reported by Nicolas Joly. 2002-05-17 Alexandre Duret-Lutz * lib/am/header-vars.am (build_triplet, host_triplet, target_triplet): Define. Were removed by mistake on 2002-04-13. 2002-05-17 Alexandre Duret-Lutz For PR automake/186: * lib/am/distdir.am (distcheck): Attempt a DESTDIR install. * tests/destdir.test: New file. * tests/Makefile.am (TESTS): Add destdir.test. 2002-05-16 Alexandre Duret-Lutz * automake.in (conditional_true_when): Return false if $WHEN == FALSE. (conditional_is_redundant): Simplify. (conditional_implies_one_of, variable_not_always_defined_in_cond): New functions (macro_define): Reject appends if the variable is not defined in all conditions where `+=' applies. (invert_conditions): Rewrite. Before this patch, invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE") would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems wrong (these conditions implies "A_FALSE"). Now it outputs (), which just means the input conditions cover all cases. (variable_conditions_permutations): Never output FALSE conditions. * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA in the CHECK_FALSE condition to fix the test. * tests/pluseq5.test: Actually check the diagnostic. * tests/pluseq9.test: New file. * tests/Makefile.am (TESTS): Add pluseq9.test. 2002-05-14 Alexandre Duret-Lutz Fix for PR automake/322: * automake.in (read_am_file): Rename $was_rule as $prev_state, and set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate. Handle comments continued by backslashes. * tests/comment6.test: New file. * tests/Makefile.am (TESTS): Add comment6.test. Reported by Braden N. McDaniel. 2002-05-08 Charles Wilson Alexandre Duret-Lutz * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean both `program$(EXEEXT)' and `program'; needed under Cygwin. * tests/libtool3.test: New file. * tests/Makefile.am (TESTS): Add libtool3.test. 2002-05-07 Alexandre Duret-Lutz * TODO: Undust. 2002-05-06 Alexandre Duret-Lutz * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS. 2002-05-06 Alexandre Duret-Lutz Erase stamps from the Makefile that generates them. * automake.in (handle_configure): Append each used stamp to @distclean_config. Don't warn about stamp-h in AC_OUTPUT, this file is not used anymore. * lib/am/clean.am (distclean-generic): Don't erase stamp-h and stamp-h[0-9]*. * tests/subdir6.test: New file. * tests/Makefile.am (TESTS): Add it. 2002-05-06 Alexandre Duret-Lutz Fix for condd.test (conditional `+='): * automake.in (%appendvar): New. (initialize_per_input): Clear it. (macro_define): Handle += for variable defined in another condition. * automake.texi (Conditional Sources): Use conditional += in the example. (General Operation, Conditionals): Remove note about broken +=. * tests/cond21.test: New file. * tests/condd.test: Also test conditional append to a _SOURCE variable. Create missing directories. * tests/Makefile.am (TESTS): Add cond21.test. (XFAILS): Remove condd.test. 2002-05-05 Tom Tromey * automake.texi (Program and Library Variables): Mention _LFLAGS. 2002-04-30 Alexandre Duret-Lutz * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations files. Fix subobj9.test on OSF and IRIX. Reported by Nelson H. F. Beebe. 2002-04-26 Tom Tromey * lib/am/dejagnu.am (distclean-DEJAGNU): New target. For Debian bug 144221. 2002-04-26 Alexandre Duret-Lutz * tests/man2.test: Use `pwd`, not $PWD. Use $MAKE -e. 2002-04-25 Alexandre Duret-Lutz * automake.in (subobjname): Use the length of %subobjvar instead of $subobjnamenum. (subobjnamenum): Remove. 2002-04-25 Alexandre Duret-Lutz For PR automake/307: * lib/depcomp: Never compute dependencies in the background, this can cause races with libtool. Compute the dependencies after the actual compilation. Don't make libtool silent now that it's run in the foreground. * tests/pr307.test: New file. * tests/Makefile.am (TESTS): Add pr307.test. Reported by Laurent Morichetti. 2002-04-25 Alexandre Duret-Lutz * lib/am/check.am: Show skipped tests. Display the $(PACKAGE_BUGREPORT) address on failure. 2002-04-24 Alexandre Duret-Lutz Fix PR automake/315: * automake.in (subobjname): Rewrite to generate variable name unique for each content. (%substnums): Remove. (%subobjvar): New hash. (initialize_per_input): Clear %subobjvar. (define_objects_from_sources): Return the name of the variable defined, in addition to the linker. Call subobjname only once the content of the variable to define is known. (handle_source_transform): Adjust call to define_objects_from_sources. * tests/specflags8.test: Mention PR 315. * tests/subobjname.test: New file. * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test. (TESTS): Add subobjname.test. 2002-04-23 Alexandre Duret-Lutz * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep the whole file for 'generated by automake', not only the first line. This accounts for post-processed Makefile.in's. * tests/postproc.test: New file. * tests/Makefile.am (TESTS): Add postproc.test. 2002-04-22 Alexandre Duret-Lutz For PR automake/151 and PR automake/314: * automake.texi (A Program): Split into (Program Sources, Linking, Conditional Sources, Conditional Programs): ... these subsections; moving the Linking node before the Conditional discussions. (Conditional Sources): More details. Notably, mention hello_DEPENDENCIES. (Conditionals): Adjust reference to Conditional Programs. 2002-04-19 Paul Eggert Fix some bugs when using "$@" when there might be zero positional arguments in cases where this matters. Zsh doesn't support the workaround ${1+"$@"} that has been used by Automake since the Mon Dec 4 11:55:36 1995 change. * aclocal.in: Use 'case' statement to work around problem. * automake.in: Likewise. * lib/ylwrap: Likewise. * lib/missing: No need for workaround, as the command is never invoked with zero arguments. * tests/ccnoco.test: Likewise. * missing: Update from lib/missing. 2002-04-19 Alexandre Duret-Lutz * automake.in (initialize_per_input): Clear %require_file_found. (%require_file_found): Group the declaration with the other variables initialized by initialize_per_input. * tests/required.test: New file. * tests/Makefile.am (TESTS): Add it. Reported by Marius Vollmer. 2002-04-19 Alexandre Duret-Lutz * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function, override AC_CONFIG_HEADERS with AM_CONFIG_HEADER. (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS. * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE. * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config files. * tests/confh5.test: New file. * tests/Makefile.am (TESTS): Add confh5.test. * automake.texi (Optional, Public macros): Update descriptions of AC_CONFIG_HEADERS and AM_CONFIG_HEADER. 2002-04-13 Alexandre Duret-Lutz * tests/man2.test: New file. * tests/Makefile.am (TESTS): Add man2.test. * lib/am/mans.am (install-man%SECTION%): Change the extension of the man pages being installed, as documented. 2002-04-13 Alexandre Duret-Lutz Enable traces; wipe out the old configure.in parser. * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of 'autoconf'. Honnor the $filename argument. (scan_autoconf_files): Don't call scan_one_autoconf_file. Always call scan_autoconf_traces. (scan_one_autoconf_file): Remove, with it associated regexes. (obsolete, obsolete_rx): Remove. (register_language, handle_languages): Remove the 'define_flag' support. Remove it from the struct and language definitions too. (unquote_m4_arg): Remove. * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove the `FOO = @FOO@' definitions for all AC_SUBST'ed variables. They are now generated automatically. * aclocal.in (obsolete_macros): Don't mention obsolete_macros in automake.in. * automake.texi (Invoking Automake): Mention the AUTOCONF envvar. 2002-04-13 Alexandre Duret-Lutz * tests/version6.test: New file. * tests/Makefile.am (TESTS): Add tests/version6.test. * automake.in (version_check): Return 0 on equality. 2002-04-13 Andreas Schwab * THANKS: Update my mail address. 2002-04-12 Alexandre Duret-Lutz * tests/discover.test: Use a full configure.in that calls AC_INIT. Use AC_LIBOBJ. Grep the error message. * test/ldadd.test: Don't use LIBOBJS. Use a full configure.in. Grep the error message. Require libtool. * tests/ldflags.test: Don't use LIBOBJS. * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the error messages for CC and CXX. 2002-04-12 Alexandre Duret-Lutz * automake.in (scan_autoconf_traces) : Ignore ANSI2KNR and AMDEPBACKSLASH. * tests/distcommon2.test: Use a full configure.in that calls AC_INIT. * tests/ext.test: Enable dependencies for OBJC. * tests/libobj.test, tests/libobj6.test, tests/libobj9.test: Delete. They tests for different flavors of $LIBOBJS assignments that wont be supported anymore. * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ. * tests/obsolete.test: Don't test Automake. * tests/suffix5.test: Require libtool. * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and libobj9.test. 2002-04-10 Alexandre Duret-Lutz * configure.in (APIVERSION): Fix definition. 2002-04-10 Alexandre Duret-Lutz * NEWS: Catch up with changes since 1.6. 2002-04-10 Alexandre Duret-Lutz * tests/yacc8.test: Don't assume GNU make, run config.status to regenerate the Makefile. 2002-04-10 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Make sure `$MAKE -e' is always followed by a SHELL setting. * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set SHELL when calling `$MAKE -e'. 2002-04-10 Alexandre Duret-Lutz * tests/subobj9.test: Use configure.in, not configure.ac, otherwise this fails with old libtool versions. 2002-04-10 Alexandre Duret-Lutz * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream versions. 2002-04-10 Alexandre Duret-Lutz * ChangeLog.2001: New file, extracted from ChangeLog. * Makefile.am (EXTRA_DIST): Add it. 2002-04-09 Alexandre Duret-Lutz * automake.texi (Canonicalization): The sources for libmumble++.a go into libmumble___a_SOURCES. 2002-04-07 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Check for `sleep 1' uses in the test suite. Suggest `sleep 2' instead. * tests/confsub.test: Use `sleep 2'. 2002-04-04 Paul Eggert * lib/am/subdirs.am: ($(RECURSIVE_TARGETS), maintainer-clean-recursive): $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if MAKEFLAGS contains '$(...)'. 2002-04-02 Alexandre Duret-Lutz * tests/specflags8.test: Typo. 2002-04-02 Alexandre Duret-Lutz * tests/specflags6.test: Run aclocal. * tests/Makefile.am (TESTS): Add specflags6.test. 2002-04-02 Alexandre Duret-Lutz * tests/specflags7.test, tests/specflags8.test: New files. * tests/Makefile.am (TESTS): Add them. (XFAIL_TESTS): Add specflags8.test. 2002-03-29 Tom Tromey * automake.in (check_typos): Examine AM_LDFLAGS. Fixes PR automake/311. For PR automake/312: * lib/am/libtool.am (clean-libtool): Use LTRMS. * automake.in (handle_single_transform_list): When processing a libtool object, clean the ordinary object and register the directory. (libtool_clean_directories): New global. (initialize_per_input): Initialize it. (generate_makefile): Call handle_libtool later. (handle_libtool): Handle libtool_clean_directories. * tests/subobj9.test: New file. * tests/Makefile.am (TESTS): Added subobj9.test. 2002-03-26 Alexandre Duret-Lutz * tests/extra6.test, tests/subdir5.test: Require GNU make. 2002-03-26 Alexandre Duret-Lutz * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/. 2002-03-26 Alexandre Duret-Lutz * tests/extra7.test: New file. * tests/Makefile.am: Add it. * lib/am/distdir.an (distdir): When a distribuable directory exists both in `.' and $(srcdir), merge both directories. This works around a failure of extra6.test on Tru64 reported by Nicolas Joly. 2002-03-26 Alexandre Duret-Lutz * tests/pr87.test, tests/yaccvpath.test: Require GNU make. 2002-03-26 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Catch occurrences of `$MAKE foo=bar' in the testsuite. Suggest using `foo=bar $MAKE -e' instead. * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Use $MAKE -e. This fixes a ansi5.test failure with Solaris make. * tests/defs: Unset $srcdir, and set $testsrcdir to its old value. * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir. 2002-03-26 Alexandre Duret-Lutz Fix for PR automake/310: * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE% so it never appears as a plain word. 2002-03-25 Angus Leeming * lib/depcomp (tru64): Correctly compute `base'. 2002-03-21 Alexandre Duret-Lutz * tests/pr211.test: s/requires/required/, otherwise the test fails if libtool is not installed. 2002-03-21 Alexandre Duret-Lutz * tests/dirname.test: Don't use $SHELL when calling ./configure. 2002-03-21 Alexandre Duret-Lutz * tests/dirname.test: Use --quiet to fix failure on installations using a site script. Reported by Nicolas Joly. 2002-03-21 Alexandre Duret-Lutz * Makefile.am (maintainer-check): Check for misuses of make, autoconf, automake, aclocal, and perl in the testsuite. Suggest using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead. * tests/confsub.test: Use $AUTOCONF and $MAKE. * tests/extra5.test, tests/extra6.test, tests/lex5.test, tests/nobase.test, tests/nodist2.test, tests/pr204.test, tests/pr224.test, tests/pr287.test, tests/strip.test, tests/yacc8.test: Use $MAKE. 2002-03-20 Alexandre Duret-Lutz Add support for two-dot versions. * tests/version5.test: New file. * tests/Makefile.am (TESTS): Add it. * automake.in (version_split, version_compare): New functions. (version_check): Rewrite using version_split and version_compare. (process_option_list): Adjust regex. 2002-03-18 Richard Boulton Fix for PR automake/306: * automake.texi (Generalities): Document +=. (Conditionals): Document limitations of += with conditionals. 2002-03-17 Tom Tromey Fix for PR automake/295: * automake.texi (Invoking Automake): Deprecate --output-dir. * automake.in (usage): Don't document --output-dir. (output_directory): Don't initialize. (parse_arguments): Deprecate --output-dir. * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes. Fixes PR automake/304. 2002-03-17 Alexandre Duret-Lutz * tests/dirforbid.test: Workaround for NetBSD sh bug. Fixes PR automake/305. 2002-03-11 Richard Boulton * automake.in (check_typos): Allow variables with reserved suffices (such as _LDFLAGS) and prefixes which aren't recognised if the variable is defined in configure.ac. Fixes acsubst.test. 2002-03-11 Richard Boulton * tests/acsubst.test: New test, by Alexandre Duret-Lutz * tests/acsubst2.test: New test, by Alexandre Duret-Lutz * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test 2002-03-11 Peter Breitenlohner * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check' causes failures. 2002-03-07 Alexandre Duret-Lutz Fix for PR automake/303: * automake.in (version_check): Move the error message ... (process_option_list): ... here, so we can distinguish between global and local options. 2002-03-07 Alexandre Duret-Lutz * tests/pr300-lib.test, tests/pr300-ltlib.test, tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so Autoconf doesn't complain about Makefile being output twice. 2002-03-06 Tom Tromey * configure.in: Upped version to 1.6a. 2002-03-05 Tom Tromey * configure.in: Released 1.6. 2002-03-05 Alexandre Duret-Lutz Fix for PR automake/300: * tests/pr300-lib.test, tests/pr300-ltlib.test, tests/pr300-prog.test: New files. * tests/Makefile.am (TESTS): Add them. * automake.in (handle_ltlibraries): Strip nobase_ prefix to compute the directory. * lib/am/header-vars.am (install_sh_PROGRAM): New variable. * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable. (install-%DIR%LIBRARIES): Use it. Honor nobase_. (uninstall-%DIR%LIBRARIES): Honor nobase_. * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable. (install-%DIR%LTLIBRARIES): Use it. Honor nobase_. (uninstall-%DIR%LTLIBRARIES): Honor nobase_. * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable. (install-%DIR%PROGRAMS): Use it. Honor nobase_. (uninstall-%DIR%PROGRAMS): Honor nobase_. See also the fix for nobase.test on 2001-11-09. 2002-03-05 Tom Tromey * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated. 2002-03-05 Pavel Roskin * tests/yacc8.test: Add a command between "test" and "cd" to work around a bug in bash-2.05. 2002-03-05 Alexandre Duret-Lutz Fix for PR automake/294: * tests/dirforbid.test: New file. * tests/Makefile.am (TESTS): Add it. * automake.in (standard_prefix): New hash. (am_primary_prefixes): Forbid standard_prefixes which are not explicitely allowed. * automake.texi (Uniform): Remove FIXME. 2002-03-05 Jim Meyering * automake.in (@common_files): Add config.rpath. 2002-03-05 Kevin Ryde For PR automake/297: * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until after AC_PROG_LEX, since it will try to run it and fail (in autoconf 2.52 at least). 2002-02-25 Alexandre Duret-Lutz * automake.in (scan_one_autoconf_file): Declare LEX_OUTPUT_ROOT and LEXLIB as configure variables when AM_PROG_LEX or AC_PROG_LEX are seen. This allows to ... * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB definitions. Search %SOURCE% in $(srcdir). Use s||| instead of s/// in the sed invocation, to support filenames containing slashes. * lib/am/yacc.am: Search %SOURCE% in $(srcdir). Use s||| too. * tests/lex5.test, tests/yacc8.test: New files. * tests/Makefile.am (TESTS): Add them. 2002-02-23 Per Bothner * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to `.' in else branch. 2002-02-22 Alexandre Duret-Lutz * tests/make.test: Revert the grep logic to work around a bug in NetBSD sh (see NetBSD Problem Report #11542). Reported by Patrick Welche. 2002-02-20 Tim Van Holder * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS to try and prevent a non-lisp emacs from starting in interactive mode. * automake.texi: Document this change. 2002-02-19 Alexandre Duret-Lutz * automake.texi (Macros): Split into ... (Public Macros, Private Macros): ... these. 2002-02-19 Alexandre Duret-Lutz * tests/insthook.test: Use sed instead of "tail +X". 2002-02-18 Paul Eggert * lib/depcomp: Don't use "tail +3"; it's not portable to POSIX 1003.1-2001 hosts. 2002-02-18 Jim Meyering * tests/cond12.test: Use sed 1q, not `head -n 1'. The latter is not portable to some old systems. * m4/depout.m4: Don't use `head -1'; it's no longer portable. Use `sed 1q' instead. * tests/insthook.test: Likewise. 2002-02-17 Alexandre Duret-Lutz * automake.in (handle_lib_objects_cond): Tell the user to put global linker flags in AM_LDFLAGS, not LDFLAGS. * automake.texi (General Operation): AC_SUBST'ed variables override Automake's variables. (Uniform): More words and @refs. (Auxiliary Programs) : Add URL. (etags): More explanations about the first example. (Invoking Automake): Mention autoreconf. More @refs. (Requirements): Mention AC_CONFIG_FILES. (Optional): AC_CHECK_TOOL will no longer install config.sub and config.guess. Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES. (Invoking aclocal): aclocal no longer warn about duplicates. (Macros) : More explanations. (Extending aclocal): Suggest using the output of `aclocal --print-ac-dir` to install third-party macros. (Alternative): Specify ordering of dist_, nodist_, and nobase_ prefixes. (A Program): Mention scripts. The global LDADD variable is not meant to hold link flags, suggest using AM_LDFLAGS instead. (Program and Library Variables) : _LIBADD and _LDADD are subject to the same restriction wrt to link flags. (Program and Library Variables) : Is also derived from maude_LIBADD. (Program variables): Define AM_LDFLAGS. (Dependencies): Passing the no-dependencies option to AM_INIT_AUTOMAKE is prefered. (Scripts): Explain why automake is magically cleaned. Mention noinst_SCRIPTS and check_SCRIPTS. (Data): Use dist_ in Automake's example. (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION. Mention AC_CONFIG_FILES instead of AC_OUTPUT. 2002-02-14 Alexandre Duret-Lutz * Makefile.am (FETCHFILES): Add Automake/XFile.pm. (fetch): Fetch XFile.pm. Update the files in $(srcdir) instead of asking the maintainer to do it manually. * lib/config.guess, lib/config.sub, lib/texinfo.tex, Automake/XFile.pm: New upstream versions. 2002-02-02 Tom Tromey * automake.texi (Macros): Warn about upgrading. 2002-02-01 Tom Tromey Change per GNU coding standards: * aclocal.in (parse_arguments): Only mention most recent year in copyright output. * automake.in (version): Only mention most recent year. 2002-01-30 Alexandre Duret-Lutz * automake.texi (API versioning): New Node. (Extending): Use $(DESTDIR) in examples. 2002-01-28 Akim Demaille * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5. Respect the --help layout. 2002-01-27 Tom Tromey * configure.in: Bumped to 1.5e. * lib/am/yacc.am: Use `rm -f'. * configure.in: Released 1.5d. * lib/config.guess: New version from FSF. * Makefile.am (uninstall-hook): New target. 2002-01-24 Akim Demaille * lib/install-sh: Update, from Autoconf. 2002-01-24 Alexandre Duret-Lutz * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL as AC_CANONICAL_HOST (the former does not require the latter since Autoconf 2.50). * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip. * automake.texi (Requirements): Do not require STRIP to be defined by the user. 2002-01-23 Alexandre Duret-Lutz * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS). * automake.in (handle_languages): Compute and substitute %DEPDIRS%. * tests/pr224.test: Make sure .deps subdirectories are erased by distclean. 2002-01-22 Tom Tromey * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if no-dependencies option is set. * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if no-dependencies option is set. Don't call AM_DEP_TRACK or AM_SET_DEPDIR. 2002-01-22 Pavel Roskin * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and ASFLAGS. 2002-01-22 Akim Demaille * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex. (fetch): Adjust. 2002-01-21 Tom Tromey * Makefile.am (fetch): Don't fetch ansi2knr. * automake.texi (Macros): Updated for new variable names. (Program and Library Variables): Likewise. (Assembly Support): Likewise. * m4/as.m4: Use CCAS and CCASFLAGS. * automake.in (asm): Use CCAS and CCASFLAGS. 2002-01-21 Akim Demaille * automake.in (&parse_arguments): Use a more GNUish error message on wrong options. 2002-01-20 Tom Tromey Fix for PR automake/231: * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ). * m4/depend.m4: Document `GCJ'. For PR automake/224: * tests/Makefile.am (TESTS): Added pr224.test. * tests/pr224.test: New file. * lib/depcomp: Fixed computation of depfile. * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR). * automake.in (handle_single_transform_list): Only reject `..' component for Java. Put dependencies in directory near object. (handle_languages): Set DEPBASE. Handle de-ansi-fication. 2002-01-20 Alexandre Duret-Lutz * tests/defs: Export AUTOMAKE and ACLOCAL. 2002-01-19 Alexandre Duret-Lutz Fix for PR automake/204: * tests/pr204.test: New file. * tests/Makefile.am (TESTS): Add it. * automake.in (handle_single_transform_list): Don't distribute sources derived from non-distributed sources. 2002-01-18 Alexandre Duret-Lutz Fix for PR automake/229: * tests/pr229.test: New file. * tests/Makefile.am (TESTS): Add it. * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN, AC_EMXOS2, and AC_MINGW32. 2002-01-18 Tom Tromey * tests/cond7.test: Fix test bug exposed by copyright update. For PR automake/288: * automake.in (lang_c_rewrite): Don't prepend directory to base if directory is `.'. Also, properly compute de_ansi_files entry in subdir-objects case * tests/Makefile.am (TESTS): Added ansi7.test. * tests/ansi7.test: New file. * aclocal.in (parse_arguments): Added 2002. (write_aclocal): Likewise. (parse_arguments): Updated my email address. * automake.in (gen_copyright): Added 2002. (version): Likewise. Also, changed my email address. * configure.in (APIVERSION): Refined definition. 2002-01-18 Tom Tromey * missing: Updated. * lib/missing: Accept versioned aclocal. * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal. 2002-01-17 Pavel Roskin * m4/Makefile.am (m4datadir): Use APIVERSION. 2002-01-16 Tom Tromey * Makefile.am (install-exec-hook): Use APIVERSION. * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version. * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from APIVERSION. * automake.in (perllibdir): Use APIVERSION. (libdir): Likewise. * aclocal.in (perllibdir): Use APIVERSION. (APIVERSION): New global. (parse_arguments): Use APIVERSION. * configure.in (APIVERSION): New subst. (pkgvdatadir): Use APIVERSION. 2002-01-15 Tom Tromey * missing: Updated. * lib/missing: Match against `automake*' to pick up versioned automake. * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name. * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version variable. * lib/am/Makefile.am (amdir): Use pkgvdatadir. * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use pkgvdatadir. (scriptdir): Use pkgvdatadir. (installcheck-local): Likewise. * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir. * automake.in (perllibdir): Added VERSION. (libdir): Likewise. * aclocal.in (parse_arguments): Search versioned directory. Don't push unversioned directory unless it exists. (perllibdir): Added VERSION. (default_acdir): New global. * m4/Makefile.am (m4datadir): Added $(VERSION). * Makefile.am (install-exec-hook): New target. * configure.in (ACLOCAL): Search build directory. (pkgvdatadir): New subst. 2002-01-15 Alexandre Duret-Lutz * lib/config.sub, lib/config.guess: New versions from FSF. 2002-01-13 Tom Tromey For PR automake/288: * automake.in (lang_c_rewrite): Set value for de_ansi_files entry to directory. (lang_c_finish): Likewise. Also, use directory information from de_ansi_files. 2002-01-13 Kevin Ryde For PR automake/288: * tests/Makefile.am (TESTS): Added ansi6.test. * tests/ansi6.test: New file. 2002-01-13 Tom Tromey For PR automake/287: * lib/am/distdir.am (distdir): Use `$$list' trick when looping over subdirs. * tests/Makefile.am (TESTS): Added pr287.test. * tests/pr287.test: New file. 2002-01-13 Alexandre Duret-Lutz * lib/am/distdir.am (distdir): Handle subdirectories. * tests/extra6.test: New file. * tests/Makefile.am (TESTS): Add it. 2002-01-13 Alexandre Duret-Lutz * tests/extra2.test: Run $ACLOCAL. 2002-01-12 Alexandre Duret-Lutz * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from AM_INIT_AUTOMAKE arguments when using the old-style call. Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only. Suggested by Pavel Roskin. 2002-01-12 Alexandre Duret-Lutz * test/nodefine.test, test/nodefine2.test: Check that no-define works, not the contrary... * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset. * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define, not the contrary. 2002-01-12 Jim Meyering * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument. * tests/libobj11.test: New file. * tests/Makefile.am (TESTS): Add libobj11.test. 2002-01-09 Ryan T. Sammartino * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options. 2002-01-09 Alexandre Duret-Lutz * automake.in (file_contents_internal): Introduce two variables, $is_rule and $discard_rules to track rules spanning across multiple paragraphs. This fixes a very nasty bug reported by Dmitry Mikhin where only the first paragraph of such a multi-paragraph rule was discarded; but it leaves many similar latent bugs (see the FIXMEs). 2002-01-09 Alexandre Duret-Lutz * tests/dup3.test: Remove all -I from $ACLOCAL before using it. * tests/error.test: Use some macro names which are not defined by Automake itself. 2002-01-09 Alexandre Duret-Lutz * automake.texi (Complete, Macros, Options): Document the new style AM_INIT_AUTOMAKE. Remove AM_AUTOMAKE_OPTIONS documentaion. * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from AC_INIT if they are available there. Support a new call form where the only argument is an optional space-separated list of Automake options. * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove. (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS, _AM_IF_OPTION): New functions. * automake.in (AC_INIT_PATTERN): New variable. (global_options_line): Remove, use $seen_init_automake instead. (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version from AC_INIT if available. Support the new style AM_INIT_AUTOMAKE. Remove the AM_AUTOMAKE_OPTIONS handling. * configure.in: Modernize. * tests/defs (configure.in): Modernize. One third of the tests still overwrite the default configure.in and use an old AM_INIT_AUTOMAKE call, so that makes testing for both. * tests/nodefine.test, tests/nodefine2.test: New files. * tests/Makefile.am (TESTS): Add them. 2002-01-08 Raja R Harinath * automake.in (define_configure_variable): Propagate line numbers. 2002-01-08 Alexandre Duret-Lutz * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2. 2002-01-07 Alexandre Duret-Lutz * configure.in: Run the Autoconf test in a subdirectory, then erase this directory. 2002-01-07 Alexandre Duret-Lutz * configure.in (AUTOMAKE): Create m4/amversion.m4. * m4/amversion.in: New file. * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ... (dist_m4data_DATA): ... this. (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_CURRENT_AUTOMAKE_VERSION. * automake.in (seen_automake_version): New variable. (scan_autoconf_traces, scan_one_autoconf_file, scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain when the version used in aclocal.m4 differs from Automake's. * tests/defs (ACLOCAL): Look in ../m4 too. * tests/installsh.test (ACLOCAL): Likewise. * tests/installdir.test (installdirs-local): Run $ACLOCAL. 2002-01-06 Raja R Harinath * automake.in (handle_languages): Emit an automake internal variable 'am__depfiles_maybe'. * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe. * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to config.status. 2002-01-06 Tom Tromey * automake.texi (Tags): Document new variables. * lib/am/tags.am (ETAGS): New macro. (ETAGSFLAGS): Likewise. (TAGS): Use them. 2002-01-04 Tom Tromey * configure.in (ACLOCAL): Set perllibdir. From Nicolas Joly. 2002-01-04 Alexandre Duret-Lutz * automake.in (read_am_file): Thinko in "comment following trailing backslash" detection. * tests/comment5.test: Test for this too. 2002-01-02 Tom Tromey * automake.texi (Extending): Added index for uninstall-hook. 2002-01-02 Alexandre Duret-Lutz Fix for PR automake/278: * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope with versions such as '2.2c1'. Also, use `int' instead of the obsoleted `string.atoi'. Reported by Enrico Scholz. 2002-01-02 Alexandre Duret-Lutz Fix for PR automake/280: * automake.in (read_am_file): Warn about trailing backslashes in comments. * tests/comment5.test: New file. * tests/Makefile.am (TESTS): Add comment5.test. Reported by Enrico Scholz. 2002-01-02 Alexandre Duret-Lutz * tests/comment4.test: New file. * tests/Makefile.am (TESTS): Add comment4.test. Fix for comment4.test: * automake.in (read_am_file): Output leading comments only when encountering white lines. 2002-01-01 Tom Tromey For PR automake/234: * tests/Makefile.am (TESTS): Added strip.test. * tests/strip.test: New file. * automake.texi (Extending): Mention uninstall-hook. (Install): Likewise. * automake.in (handle_factored_dependencies): Allow uninstall-hook. 2002-01-01 Alexandre Duret-Lutz * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s, it is needed by install-%DIR%LTLIBRARIES in ltlib.am. This fixes a bug introduced on 2001-01-28. Reported by Jared Davis. ----- Copyright (C) 2002 Free Software Foundation, Inc. This file is part of GNU Automake. GNU Automake is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Automake is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with autoconf; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.