2001-06-17 Tom Tromey <tromey@redhat.com>
* tests/acoutput2.test: New file.
* tests/Makefile.am (TESTS): Added acoutput2.test.
2001-06-15 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (TESTS): Added libtool.test.
* tests/libtool.test: New file.
2001-06-14 Tom Tromey <tromey@redhat.com>
Fix some lisp bugs reported by Bruno Haible:
* lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
echo.
(install-%DIR%LISP): Handle case where lispdir is not defined.
(uninstall-%DIR%LISP): Likewise.
(.el.elc): Added `else' clause.
Fix for bug reported by Steve M. Robbins:
* automake.in (handle_single_transform_list): When building a file
from a subdirectory, continue to use `AM_' prefix.
* tests/Makefile.am (TESTS): Added subobj7.test.
* tests/subobj7.test: New file.
* lib/am/configure.am ($(top_builddir)/config.status): Added
$(top_builddir) prefix to work around problems with some vendor
makes. From Nicholas Joly.
* automake.in (yacc_lex_finish_helper): Find ylwrap in
top_srcdir. From Tim Van Holder.
* tests/Makefile.am (TESTS): Added yacc6.test.
* tests/yacc6.test: New file.
2001-06-14 Tim Van Holder <tim.van.holder@pandora.be>
* tests/defs, tests/installsh.test: Properly support
DOS-style paths.
2001-06-14 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (TESTS): Added mdate4.test.
* tests/mdate4.test: New file.
* aclocal.in (scan_m4_files): Removed unused variable.
2001-06-14 Alexandre Duret-Lutz <duret_g@epita.fr>
* aclocal.in (scan_m4_files): Tweak the building of &search so
that multiple macro names can be found on the same line. Ensure
we match whole macro name, not only substrings.
2001-06-12 Tom Tromey <tromey@redhat.com>
* automake.texi (ANSI): Minor clarification.
(Other GNU Tools): Don't mention Guile.
(Guile): Removed.
(Java Support): Mention file extensions.
(Man pages): Mention dist_. Don't mention info pages.
2001-06-11 Tom Tromey <tromey@redhat.com>
* automake.texi (Program variables): Document AM_CPPFLAGS.
Deprecate INCLUDES.
(Java Support): Document AM_GCJFLAGS.
(Support for Other Languages): Removed `fixme'; added link to
suffix rule handling.
* automake.texi (Program and Library Variables): Document _LIBADD,
_LDADD, _LDFLAGS, _AR, and _DEPENDENCIES.
2001-06-11 Kevin Dalley <kevind@rahul.net>
* missing: Support configure.ac.
2001-06-08 Tom Tromey <tromey@redhat.com>
* tests/version4.test: New file.
* automake.in (version_check): New sub.
(handle_options): Use it.
* tests/Makefile.am (AUTOMAKE_OPTIONS): Removed.
(TESTS): Added version4.test.
* m4/Makefile.am (AUTOMAKE_OPTIONS): Removed.
* Makefile.am (AUTOMAKE_OPTIONS): Remove `gnits'.
2001-06-04 Kevin Dalley <kevind@rahul.net>
* lib/am/dejagnu.am (site.exp): Fix typo.
2001-06-02 Tom Tromey <tromey@redhat.com>
* automake.in (variable_conditions_sub): Move parent-only code
from here...
(variable_conditions): ... to here.
(variable_conditions_sub): Include this variable's conditions in
the resulting condition list.
* tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
2001-06-01 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
(TESTS): Likewise.
* tests/ltdeps.test: New file. Report from Lars J. Aas.
2001-05-31 Tom Tromey <tromey@redhat.com>
* automake.texi (Alternative): New node.
(Macros): Use new name for gcc.
(Java Support): Likewise.
(Dependencies): Rewrote.
(Invoking Automake): (Re-)document -i, --ignore-deps, and
--include-deps.
* automake.texi (Top level): Removed erroneous spaces. Documented
MAKE and MAKEFLAGS.
2001-05-29 Tom Tromey <tromey@redhat.com>
* m4/init.m4 (AM_INIT_AUTOMAKE): Allow any AM_*FLAGS variable.
* automake.texi (Include): Rewrote.
(Suffixes): Remove Java example.
(Java): Added more explanation. Document variables.
(Uniform): Mention JAVA as a primary.
(Python): Updated for new Python support.
(Sources): Added a weak example.
* lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
* automake.texi (A Program): Mention `check' prefix.
(Program and Library Variables): New node.
(Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
AM_MAKEINFOFLAGS.
(etags): Mention per-program flags.
(Tests): Document AM_RUNTESTFLAGS; added sectioning; more
updates.
* lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
install-info-am.
2001-05-28 Tom Tromey <tromey@redhat.com>
* m4/Makefile.am (MAINT_CHARSET): Removed.
* Makefile.am (MAINT_CHARSET): Removed.
* automake.in (maint_charset, dist_charset): Removed.
(local_maint_charset): Removed.
(initialize_per_input): Don't use maint_charset.
(handle_dist): Don't compute maint_charset or check DIST_CHARSET.
* lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
AM_MAKEINFOFLAGS.
(.%SUFFIX%.dvi): Likewise.
(.%SUFFIX%): Likewise.
2001-05-27 Tom Tromey <tromey@redhat.com>
* automake.in (handle_multilib): Only add multilib support code at
top level.
* lib/am/multilib.am: Handle invocation of *-multi targets
differently for SUBDIRS and non-SUBDIRS Makefiles.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
Only add multilib code when the Makefile in question is actually
rebuilt.
* lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
2001-05-25 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (handle_single_transform_list): Skip unknown
extensions.
2001-05-25 Tom Tromey <tromey@redhat.com>
* m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
2001-05-24 Tom Tromey <tromey@redhat.com>
* automake.in (handle_texinfo_helper): Find mdate-sh in current
directory in some situations.
* automake.in (generate_makefile): Better explanation for ansi2knr
fix.
2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (handle_languages): Skip unknown extensions.
(derive_suffix): Check whether $extension_map{$source_ext}
is undefined, not empty.
2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (read_am_file): Ignore trailing backslash on
comment lines.
2001-05-22 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
2001-05-21 Akim Demaille <akim@epita.fr>
* automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
multiple times'' warning.
2001-05-20 Tom Tromey <tromey@redhat.com>
* configure.in: Updated to 1.4g.
* configure.in: Updated to 1.4f.
* Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
* lib/ansi2knr.c: New version.
* Makefile.am (FETCHFILES): Added ansi2knr.c.
(fetch): Likewise.
2001-05-19 Tom Tromey <tromey@redhat.com>
* config.guess, config.sub: New versions from FSF.
* Makefile.am (fetch): Compare against files in srcdir.
For for ansi2knr report from Harlan Stenn:
* automake.in (generate_makefile): Run handle_compile before
handle_languages.
2001-05-18 Tom Tromey <tromey@redhat.com>
* automake.in: Reverted erroneous checkin.
2001-05-18 Akim Demaille <akim@epita.fr>
* lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
to missing `install-info'.
2001-05-17 Tom Tromey <tromey@redhat.com>
* automake.in (lang_c_finish): Use `rm -f'.
* automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
* tests/Makefile.am (TESTS): Added new file.
* tests/ansi5.test: New file.
2001-05-17 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
STRIP is not empty.
* m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
to install-sh unconditionally. Don't set INSTALL_STRIP_PROGRAM_ENV.
* automake.texi (Requirements): Document the use of the STRIP
variable in cross-compilation environments.
2001-05-17 Tom Tromey <tromey@redhat.com>
* m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
to no dependency tracking.
* tests/Makefile.am (TESTS): Added depcomp2.test.
* tests/depcomp2.test: New file. From Pavel Roskin.
* lib/depcomp (aix): Bug fix and simplification from Larry Jones.
* lib/depcomp (tru64): New dependency tracking mode.
Fix for PR automake/159:
* lib/depcomp (aix): Rewrote.
(sgi): Likewise.
Fix for PR automake/174:
* tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
* automake.in (read_am_file): Warn if `#' is at start of rule.
2001-05-16 Tom Tromey <tromey@redhat.com>
For PR automake/174:
* tests/Makefile.am (TESTS): Added comment3.test.
(XFAIL_TESTS): Likewise.
* tests/comment3.test: New file.
Fix for PR automake/175:
* tests/Makefile.am (XFAIL_TESTS): Removed make.test.
* m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
`Leaving directory' messages.
For PR automake/175:
* tests/Makefile.am (XFAIL_TESTS): Added make.test.
* tests/make.test: Run test with `make -w'.
* tests/Makefile.am (TESTS): Removed maintclean.test.
* lib/am/clean.am (maintainer-clean-generic): Don't remove
Makefile.in.
* lib/am/configure.am (maintainer-clean-am): Removed.
(maintainer-clean-conf): Removed.
* tests/maintclean.test: Removed.
2001-05-15 Tom Tromey <tromey@redhat.com>
Fix for PR automake/177:
* Makefile.am (maintainer-clean): Set perllibdir before invoking
automake or aclocal.
Fix for maintclean.test:
* tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
* lib/am/clean.am (distclean-generic): Don't remove config.cache
or config.log.
(distclean, maintainer-clean): Moved to...
* lib/am/configure.am: ... here.
(distclean): Remove config.cache and config.log.
(maintainer-clean): Removed.
(maintainer-clean-conf): New target.
(maintainer-clean-am): New target.
* tests/Makefile.am (TESTS): Added maintclean.test.
(XFAIL_TESTS): Likewise.
* tests/maintclean.test: New file.
Fixes PR automake/175:
* tests/target-cflags.test: Use $needs_gnu_make.
* tests/exsource.test: Use $needs_gnu_make.
* tests/make.test: Require GNU make.
* tests/defs (needs_gnu_make): Compute.
2001-05-14 Tom Tromey <tromey@redhat.com>
* lib/ylwrap: Fixed quoting on regular expression. Fixes
yacc4.test.
Fix for texinfo10.test.
* tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
* lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
* automake.in (handle_texinfo_helper): New sub.
(handle_texinfo): Rewrote. Now defines LOCAL-TEXIS.
* tests/texinfo10.test: Added more cases.
Fix for yaccvpath.test:
* tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
* lib/am/distdir.am (distdir): Always look for file in build
directory first.
* lib/ylwrap: Quote the `#line' regular expression.
* lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
change; don't run sed on the generated file.
* tests/yaccvpath.test: Create new parser in srcdir. Added test
to make sure parser will be rebuilt at dist time.
2001-05-13 Pavel Roskin <proski@gnu.org>
* automake.in ($IGNORE_PATTERN): Allow spaces before comments
beginning with `##'.
* automake.texi (General Operation): Document it.
2001-05-13 Tom Tromey <tromey@redhat.com>
Reported by Rainer Orth:
* lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
TOPDIR_P.
* tests/Makefile.am (TESTS): Added distname.test.
* tests/distname.test: New file.
* Makefile.am (dist_pkgdata_DATA): Removed.
* tests/defs: Find files to copy in lib/.
* automake.in (perllibdir): Set to Automake directory.
* ansi2knr.c, ansi2knr.1: Removed.
* Makefile.am (dist_am_DATA): Removed.
(amdir): Removed.
(maintainer-check): Look for lib/am/*.am. Expect 28 lines of
diffs.
(scriptdir): Removed.
(dist_script_DATA): Likewise.
(install-data-hook): Likewise.
(installcheck-local): Likewise.
(TAGS_FILES): Removed amfiles.
(dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
* tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
point it to the right directory.
* ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
compile.am, configure.am, data.am, dejagnu.am, depend.am,
depend2.am, distdir.am, footer.am, header-vars.am, header.am,
install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
mans.am, multilib.am, program.am, progs.am, python.am,
remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
* configure.in (AC_OUTPUT): Added lib/am/Makefile.
(AUTOMAKE): Use --libdir, not --amdir.
Ues AC_CONFIG_AUX_DIR.
* lib/Makefile.am (SUBDIRS): Added `am'.
(scriptdir): New macro.
(dist_script_DATA): Likewise.
(dist_pkgdata_DATA): Likewise.
(install-data-hook): New target.
(installcheck-local): Likewise.
* lib/am/Makefile.in: New file.
* lib/am/Makefile.am: Removed everything except amdir and
dist_am_DATA.
2001-05-13 Akim Demaille <akim@epita.fr>
* automake.in ($pkgdata_dir): Rename as...
($libdir): this.
($am_dir): Remove, replace its uses with $libdir.
(&parse_arguments): Replace --amdir with --libdir.
* automake.texi (Invoking Automake): Document --libdir, not
--amdir.
* tests/defs (AUTOMAKE): Use --libdir, not --amdir.
2001-05-13 Tom Tromey <tromey@redhat.com>
* m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
not AMDEP.
* m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
Correctly look at AMDEP_TRUE, not AMDEP.
Report from Robert Boehne:
* tests/Makefile.am (TESTS): Added depend2.test.
* tests/depend2.test: New file.
2001-05-13 James Henstridge <james@daa.com.au>
* m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
Point pythondir at site-packages directory. Rename
PYTHON_SITE_PACKAGE to pkgpythondir. Rename PYTHON_SITE_EXEC to
pyexecdir. Removed package/module argument. Removed
PYTHON_SITE_INSTALL. Added version checking.
2001-05-14 Jim Meyering <meyering@lucent.com>
* automake.in (macro_define): Change one remaining use of
`variable_dump' to `macro_dump'.
2001-05-13 Tom Tromey <tromey@redhat.com>
* m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
and gcj.
2001-05-13 Akim Demaille <akim@epita.fr>
* automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
(&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
(&am_primary_prefixes): Use `map' rather than `grep'.
2001-05-13 Akim Demaille <akim@epita.fr>
* automake.in (Language): Set config_vars for yacc, yaccxx, lex,
lexxx, asm.
(&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
(&lang_asm_finish): Remove, set asm's finisher to C's one.
2001-05-13 Akim Demaille <akim@epita.fr>
* lang-compile.am: New file, loaded once per language.
* depend2.am: Move definitions loaded once per language in the
aforementioned file.
* automake.in (&handle_languages): Load it.
(&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
handled by lang-compile.am.
2001-05-13 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (TESTS): Added python.test.
* tests/python.test: New file.
* automake.in (handle_languages): Use
config_aux_dir_set_in_configure_in.
(handle_python): Correctly mention AM_PATH_PYTHON. Use
py-compile, not py_comp. Define py_compile macro.
2001-05-13 Derek Price <dprice@openavenue.com>
* automake.in (require_file_with_conf_line,
require_file_with_line, require_file): Pass a @require_file_path
of $relative_dir instead of '.' to require_file_internal so that
all the special casing of '.' can be removed elsewhere.
(require_config_file, require_conf_file_with_line,
require_conf_file_with_conf_line): Remove special casing for '.'
and make sure $config_aux_dir is maintained properly.
(require_file_internal): Remove special casing of '.' and set
@require_file_path when missing files are added.
(maybe_push_required_file): Remove special casing of '.'
(handle_dependencies): Remove a workaround for a bug now fixed
and remove $config_aux_dir special casing.
(handle_configure): Remove special casing for $config_aux_dir
(handle_python): Ditto.
(yacc_lex_finish_helper): Change $config_aux_dir switch to
switch on the value of $config_aux_dir_set_in_configure_in.
(handle_texinfo): Ditto.
(scan_one_configure_file): Set $config_aux_dir and
$config_aux_dir_set_in_configure_in properly so special casing
on the value of $config_aux_dir can be removed elsewhere.
* tests/depcomp.test: New file.
* tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
first subdir containing a C file.
* tests/libobj2.test: Ditto.
* tests/Makefile.am (TESTS): Added 'depcomp.test'.
2001-05-12 Tom Tromey <tromey@redhat.com>
* tests/gcj.test: Updated for gcj dependency tracking.
* tests/gcj2.test: Likewise.
Fixes PR automake/169.
* m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ. Don't assume gcc
style for OBJC.
* automake.in (java): Added autodep entry.
* tests/Makefile.am (TESTS): Added gcj3.test.
* tests/gcj3.test: New file.
2001-05-12 Raja R Harinath <harinath@cs.umn.edu>
* automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
stop at the first '='.
* tests/Makefile.am (TESTS): Added vars.test.
* tests/vars.test: New file.
2001-05-12 Akim Demaille <akim@epita.fr>
* automake.in (&handle_single_transform_list): Simplify
computation of $object and $this_obj_ext.
* tests/lex3.test: Merge into...
* tests/lex.test: here.
* tests/pr19.test: Improve and rename as...
* tests/lex3.test: this.
2001-05-09 Tom Tromey <tromey@redhat.com>
* automake.in (read_am_file): Correctly compute $saw_bk.
(scan_autoconf_files): Ensure configure_dist_common is always
set.
* tests/defs (AUTOMAKE): Added --Werror.
2001-05-09 Pavel Roskin <proski@gnu.org>
* automake.in (define_compiler_variable): Escape $(LIBTOOL) in
double quotes.
2001-05-09 Tom Tromey <tromey@redhat.com>
* tests/werror.test: Use `rm -f'.
2001-05-09 Akim Demaille <akim@epita.fr>
* automake.in (&am_line_warning): Invoke `am_line_error', not itself.
2001-05-09 Akim Demaille <akim@epita.fr>
* automake.in: Remove some code left from bad patches.
(&handle_dependency): Remove, for the same reason.
2001-05-09 Akim Demaille <akim@epita.fr>
* automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
(&handle_tests_dejagnu, &define_standard_variables): Don't.
(&define_standard_variables): Don't transform %top_builddir% since...
* header-vars.am: Use %TOPDIR% instead.
2001-05-09 Akim Demaille <akim@epita.fr>
* automake.in (@objects): Remove, unused.
Remove all the code related to it, and to former `$(OBJECTS)'.
2001-05-08 Tom Tromey <tromey@redhat.com>
For PR automake/29:
* ylwrap: Handle arguments to program. Remove old code that tried
to avoid absolute paths and add new code to do it in all cases.
Removed ancient logic that tried to deal with relative path.
* tests/Makefile.am (TESTS): Added yacc4.test.
* tests/yacc4.test: New file.
Fix for PR automake/149 and werror.test:
* automake.in (require_file_internal): Use am_line_warning or
am_conf_line_warning when suppressing error.
(am_line_warning): New sub.
(am_conf_line_warning): Save and restore warning signal.
* tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
Fix for PR automake/36:
* tests/Makefile.am (TESTS): Added asm.test.
* tests/asm.test: New file.
* automake.in (asm): Use ASFLAGS and AS.
(lang_asm_finish): New sub.
* automake.in (read_am_file): Removed debugging code.
For PR automake/149:
* tests/Makefile.am (TESTS): Added werror.test.
(XFAIL_TESTS): Likewise.
* tests/werror.test: New file.
* automake.in (conditional_true_when): Don't return if we see
`TRUE'.
* tests/objc.test: Removed.
* tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
(TESTS): Likewise.
* automake.in (subst): New sub.
(handle_languages): Use it.
(output_lex_build_rule): Likewise; also use _am_quote.
(check_libobjs_sources): Likewise.
(make_paragraphs): Use subst.
* automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
problem.
* automake.in (file_contents_internal): Prototype now `$$%'.
(register_language): Prototype now `%'.
Fixes test subobj6.test and PR automake/160:
* tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
* compile.am (mostlyclean-compile): Added MOSTLYRMS.
(distclean-compile): Added DISTRMS.
* tests/subobj6.test (wish_SOURCES): Updated to reflect
`mostlyclean' use; added test for non-subdir case.
* automake.in (compile_clean_files): New global.
(MOSTLY_CLEAN, DIST_CLEAN): New constants.
(initialize_per_input): Initialize compile_clean_files.
(handle_single_transform_list): Set compile_clean_files entries.
(handle_compile): Handle compilation cleanups.
2001-05-08 Lars J. Aas <larsa@sim.no>
* automake.texi (Canonicalizing Automake macros): Document not
canonicalizing strudels (@) anymore.
2001-05-08 Akim Demaille <akim@epita.fr>
* distdir.am (dist-all): Build all the flavors using a single
distdir.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents_internal): Apply the @cond_stack to
the rules and assignments.
Don't rely on `$.' as it's biased by &make_paragraphs.
Don't remove backslashes in variable values.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
($RULE_PATTERN): Use that from `&make_paragraphs'.
($MACRO_PATTERN): Just catch the name of a macro.
($BOGUS_MACRO_PATTERN): Remove.
($ASSIGNMENT_PATTERN): New.
(&file_contents_internal, &make_paragraphs): Adjust.
(¯o_define): Catch bad macro names.
(&cond_stack_endif): Better error message.
(&file_contents_internal): Don't remove backslashes in variable
values.
(¯o_define): Do it for `+=' user variables.
(&define_standard_variables): Use `undef' instead of a dummy
variable.
(&make_paragraph): Be sure not to chop the trail of hash only
lines: adjust the `##' regexp.
(&rule_define): Fix a bug: don't read $1 but $target.
* tests/condincl.test: Strengthen.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (Language): Add attributes `Name' and `config_vars'.
(&finish): Work properly if there is no _finish.
(Automake): Register language Names and AC_SUBST dependencies.
Register Fortran 77 variables upon which ratfor and ppf77 depend.
(&handle_languages): Once per language, invoke
`define_linker_variables', and check its config_vars.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Remove.
(&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents_internal): Accept $IS_AM.
(&handle_compile, &define_standard_variables, &file_contents): Adjust.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (am_install_var): Use `next' instead of `if' on the
body of $X loop.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (Language): Add attributes `lder' and `ld'.
(®ister_language): Specify for cxx, objc, f77, gcj.
(&define_linker_variable): New.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Adjust.
(&libtool_compiler): Remove.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
argument, as you don't use it.
Hence...
(&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
don't use it.
Hence...
(&handle_programs): Don't mess with %lex_sources, as you don't use
it.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (Language): Add attribute `link'.
(®ister_language): Specify for cxx, objc, f77, gcj.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Adjust.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&define_compiler_variables): Use only $LANG as
argument.
(&handle_languages): Adjust.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&define_program_variable): Remove.
(&scan_one_autoconf_file): Skip MAKEINFO when found in an
AM_MISSING_PROG.
(&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
* texinfos.am: Do it.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&handle_tests_dejagnu): Don't define EXPECT and
RUNTEST.
* dejagnu.am: Do it.
(site.exp): Use `if'.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in: Formatting changes.
(variable_dump, variables_dump): Rename as...
(macro_dump, macros_dump): these.
2001-05-08 Akim Demaille <akim@epita.fr>
Support `if !COND', `else COND', `end COND'.
* automake.texi (Conditionals): Document it.
* automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
a leading `!' before the condition.
(&handle_options): Use `\d'.
(&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
(&read_am_file, &file_contents_internal): Use them.
(&transform): No longer substitute `%!COND%', forcing the use of
`! %?COND%'.
* ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
2001-05-08 Akim Demaille <akim@epita.fr>
Uniform handling of per-object compilation rules.
Note: Automake is repaired.
* automake.in (&handle_languages): Output per object rules for all
the objects, not only for those which language supports dependency
tracking.
Fix Automake: when outputting per-object rules, use `-o' if the
language has no `output_flag', as it's really needed.
(&handle_single_transform_list): Instead of special casing files
which need per object rules but which language don't support
dependency tracking, keep them in the queue for processing by
`&handle_languages'.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): `ext-compile.am' and
`depend2.am' are now equivalent for generic rules: output only the
latter.
* ext-compile.am: Remove.
2001-05-08 Akim Demaille <akim@epita.fr>
Note: This patch breaks Automake. Repaired within two patches.
* automake.in (Language): Replace the attribute `output_arg' with
`compile_flag' and `output_flag'.
(Automake): Adjust language registrations.
(&handle_languages): Transform `-c' and `-o' for both suffix and
per object rules, instead of `OUTARG' and `LTOUTARG' only for
generic rules.
(&handle_single_transform_list): Adjust to `compile_flag' and
`output_flag'.
* depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Don't transform %COMPILER%.
Use `$lang->compiler' instead of `$pfx' to transform generic
%COMPILE% and %LTCOMPILE%.
* ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
of %COMPILER% and $<.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Use the same `%transform' for
both `depend2.am' and `ext-compile.am'.
Delay the definition of `$flag' so it is right before the first use,
and rename as `$flags'.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Compute `$ltoutarg' and
`$outarg' independently of dependency code.
There is no use looping on a language's possible extensions since
we loop over used extensions.
Therefore, there is no use for a local `%transform'.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Don't use $comp.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Merge the two loops over
%extension_seen/%languages into one and group code to be run once
per language together.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&handle_languages): Move the `if
($use_dependencies)' block so that loops over extensions and
languages are next to each other.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&depend2): Remove, merged into...
(&handle_languages): here.
2001-05-07 Akim Demaille <akim@epita.fr>
* automake.in (&finish_languages): Rename as...
(&handle_languages): this.
Include the body of...
(&handle_dependency): this.
Remove.
2001-05-06 Tom Tromey <tromey@redhat.com>
For PR automake/46:
* tests/Makefile.am (TESTS): Add 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. Add `fork
identifier'.
(handle_options): Handle fork identifier in version number.
* automake.texi (Dist): Document distcheck-hook.
* tests/confh4.test: Update 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): Add subobj5.test and subobj6.test.
(XFAIL_TESTS): Add 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): Add new file.
(XFAIL_TESTS): Likewise.
* tests/texinfo10.test: New file.
2001-05-05 Pavel Roskin <proski@gnu.org>
* automake.in (scan_texinfo_file): Treat @defindex and @synindex
in the same way as @defcodeindex and @syncodeindex respectively.
2001-05-05 Tom Tromey <tromey@redhat.com>
* 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 <harinath@cs.umn.edu>
For PR automake/164:
* tests/Makefile.am (TESTS): Added new file.
(XFAIL_TESTS): Likewise.
* tests/cond10.test: New file.
2001-05-05 Tom Tromey <tromey@redhat.com>
* texinfos.am (uninstall-info-am): Debian install-info v1.8.3
prints to stderr.
(install-info-am): Likewise.
2001-05-05 Pavel Roskin <proski@gnu.org>
* automake.in (scan_texinfo_file): Don't push undefined values
to @clean_suffixes.
2001-05-05 Richard Boulton <richard@tartarus.org>
* automake.in (handle_dist): Check for existence of DIST_SUBDIRS
first.
2001-05-05 Robert Collins <robert.collins@itdomain.com.au>
* automake.in (required_targets): Added uninstall-am.
2001-05-05 Tom Tromey <tromey@redhat.com>
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 <peter_e@gmx.net>
* m4/sanity.m4: Remove the temp file before possible error exits.
2001-05-04 Akim Demaille <akim@epita.fr>
* configure.in: Set perllibdir.
From Dave Morrison.
2001-05-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake.in ($pkgdata_dir): New.
(&require_file_internal): Use it.
2001-05-03 Akim Demaille <akim@epita.fr>
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 <harinath@cs.umn.edu>
* data.am (install-%DIR%%PRIMARY%): Execute the same command as
echoed.
2001-04-30 Jim Meyering <meyering@lucent.com>
* automake.in: Remove `/lib' from include directory.
2001-04-27 Akim Demaille <akim@epita.fr>
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 <akim@epita.fr>
* tests/specflags4.test, tests/specflags5.test: Remove, merged
into...
* tests/specflags3.test: here.
2001-04-27 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&file_contents_internal): Declare it.
2001-04-27 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
* ansi2knr.am: Do it.
Prefer `if %?FOO%' to `if %!FOO%'.
2001-04-27 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
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 <akim@epita.fr>
* automake.in (&am_install_var): Transform `ONE_PRIMARY'.
* data.am: Use it.
* header.am: Include data.am.
2001-04-27 Akim Demaille <akim@epita.fr>
* automake.in (&am_install_var): Transform `PRIMARY'.
* data.am: Equip with %PRIMARY%.
2001-04-27 Akim Demaille <akim@epita.fr>
* automake.in (@conditional_stack): Rename as...
(@cond_stack): this.
(&file_contents_internal): Support inclusion of files.
2001-04-27 Akim Demaille <akim@epita.fr>
* automake.in (&lang_extensions): Remove.
(&add_depend2, &saw_sources_p): Adjust.
* depend2.am: `%EXT%' no longer includes the dot.
2001-04-27 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (®ister_language): Use `new Language' with a hash.
2001-04-27 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <proski@gnu.org>
* automake.in: Add forward declaration for register_language().
* tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
passes now.
2001-04-20 Akim Demaille <akim@epita.fr>
* automake.in (%required_targets): Add `uninstall'.
From Robert Collins.
2001-04-12 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <tromey@redhat.com>
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 <akim@epita.fr>
* depend2.am: Fix the `if' condition for Libtool.
Reported by Robert Boehne.
2001-04-10 Robert Collins <robert.collins@itdomain.com.au>
* tests/subobj5.test: New file.
2001-04-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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 <tromey@redhat.com>
* tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
2001-04-10 Derek R. Price <dprice@collab.net>
* tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
2001-04-10 Akim Demaille <akim@epita.fr>
* distdir.am: Add a missing backslash.
2001-04-10 Akim Demaille <akim@epita.fr>
* 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 <tromey@redhat.com>
* m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
Fixes report from Jim Meyering.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_configure): Don't bother with optimizing
macro uses.
2001-04-09 Akim Demaille <akim@epita.fr>
* tests/cond3.test (expected): Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in ($source_suffix_pattern): Remove, unused.
%extension_map seems to have replaced it.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
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 <akim@epita.fr>
* tags.am: Fix missing leading tabs.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* subdirs.am: Don't define info related recursive targets.
* texinfos.am: Do.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 of the owner.
(&variable_output, &variable_pretty_output): Adjust to %var_type.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* comp-vars.am: Remove, merged into...
* compile.am: here.
* automake.in (&get_object_extension): Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* remake.am: Merge into...
* configure.am: ... here.
* automake.in (&handle_configure): Adjust.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&output_lex_build_rule): Output this...
* lex.am: New file.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in: Use strict vars and subs.
Declare `%require_file_found'.
(&handle_source_transform, &make_paragraphs): Declare my variables.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* distdir.am: Use and abuse of if/endif.
* scripts.am: Using if/endif with variables is fine.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* tests/yacc2.test: Don't define several times a variable, as
automake complains.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&handle_source_transform): Fix pr72: don't define
$linker if there are no @files.
2001-04-09 Akim Demaille <akim@epita.fr>
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 <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&handle_source_transform): Better locality of the
variables.
Use `next' to skip nonexistent variables.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
(&variable_conditions): Don't include `FALSE' in the result.
2001-04-09 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditions_reduce): FALSE is absorbent.
(&variable_conditions): Don't include `FALSE' in the result.
2001-04-09 Akim Demaille <akim@epita.fr>
* tests/defs, tests/depend3.test: Remove useless code.
2001-04-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
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 <tromey@redhat.com>
* tests/Makefile.am (XFAIL_TESTS): Added man.test.
(TESTS): Likewise.
* tests/man.test: New file.
2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
* depcomp (gcc3): Invert test condition.
2001-04-07 Tom Tromey <tromey@redhat.com>
* depcomp (gcc3, gcc): Don't assume $? will be set in `if'
statement. Report from Larry Jones.
2001-04-07 Raja R Harinath <harinath@cs.umn.edu>
* depcomp (sgi): Fix sed expression. Report from Robert Boehne.
2001-04-01 Tom Tromey <tromey@redhat.com>
* java.am (.PHONY clean-am): Removed trailing ":".
From Per Bothner. Fixes PR automake/139.
2001-03-28 Akim Demaille <akim@epita.fr>
* program.am: Fix a stupid typo: now *all* (not none) the programs
use `$(EXEEXT)'.
Reported by Robert Boehne.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file, &file_contents): Avoid name clashes
on $cond.
2001-03-23 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&handle_footer, &handle_installdirs)
(&read_main_am_file): Don't read %contents directly, use
&variable_value.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file): Define the variables in a single
shot.
Factor the $saw_bk code.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&read_am_file): Keep $cond_string up to date.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&define_variable): Use ¯o_define.
2001-03-23 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&conditional_dump): Rename as...
(&variables_dump): this. Use...
(&variable_dump): this new sub.
2001-03-23 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&file_contents): Use rule_define.
2001-03-23 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in (&rule_define): Extract from...
(&read_am_file): here.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define, &read_am_file): More work for the
former from the latter. Reorganize the latter.
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (¯o_define): Extract from...
(&read_am_file): here.
2001-03-23 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <proski@gnu.org>
* tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
now.
2001-03-12 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditions_permutations): Separate the
conditions.
* tests/cond3.test: Improve the sed expression.
2001-03-09 Pavel Roskin <proski@gnu.org>
* 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 <tromey@redhat.com>
* automake.in (scan_one_autoconf_file): Fixed comment to avoid
maintainer-check failure.
2001-03-09 Akim Demaille <akim@epita.fr>
* tests/cond3.test: Strengthen.
2001-03-09 Akim Demaille <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* 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 <akim@epita.fr>
* automake.in, aclocal.in: Backquote is inert in double quotes.
2001-03-06 Akim Demaille <akim@epita.fr>
* Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
into `grep -v ...'.
2001-03-06 Pavel Roskin <proski@gnu.org>
* java.am: Use `rm -f' instead of `rm'.
2001-03-06 Akim Demaille <akim@epita.fr>
* automake.in (&push_dist_common): Simplify.
2001-03-06 Jens Kr