platform/upstream/automake.git
21 years agotypo
Alexandre Duret-Lutz [Fri, 4 Jul 2003 22:23:04 +0000 (22:23 +0000)]
typo

21 years ago* automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
Alexandre Duret-Lutz [Fri, 4 Jul 2003 22:13:52 +0000 (22:13 +0000)]
* automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
are automatically distributed.

21 years ago* lib/depcomp (icc): Update to grok ICC 7.1's output.
Alexandre Duret-Lutz [Fri, 4 Jul 2003 21:08:06 +0000 (21:08 +0000)]
* lib/depcomp (icc): Update to grok ICC 7.1's output.
* m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
in a subdirectory, and with many dependencies.  This
catches more failures of depcomp.
Reports from Ralf Wildenhues and Akim Demaille.

21 years ago* automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
Akim Demaille [Fri, 4 Jul 2003 08:36:53 +0000 (08:36 +0000)]
* automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
(&handle_texinfo_helper, &handle_texinfo): Formatting changes.
Prototype properly.
Don't use & when calling functions.

21 years ago* NEWS: Categorize entries.
Alexandre Duret-Lutz [Thu, 3 Jul 2003 20:38:21 +0000 (20:38 +0000)]
* NEWS: Categorize entries.
Suggested by Jim Meyering.

21 years ago* Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
Alexandre Duret-Lutz [Thu, 3 Jul 2003 18:58:50 +0000 (18:58 +0000)]
* Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
Ignore @...@ substitutions in comments.
* tests/defs.in: Try to make the shell more POSIX compliant.
(AUTOMAKE_run, AUTOMAKE_fails): New functions.
* tests/README: Mention AUTOMAKE_fails.
* tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
* tests/asm.test, tests/backsl3.test, tests/backsl4.test,
* tests/badline.test, tests/badopt.test, tests/canon.test,
* tests/canon5.test, tests/colneq.test, tests/comment3.test,
* tests/comment5.test, tests/cond2.test, tests/cond20.test,
* tests/cond23.test, tests/cond24.test, tests/cond27.test,
* tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
* tests/dejagnu2.test, tests/dirforbid.test,
* tests/distcom3.test, tests/else.test, tests/exdir2.test,
* tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
* tests/getopt.test, tests/gettext.test, tests/gettext2.test,
* tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
* tests/insh.test, tests/lex2.test, tests/libobj10.test,
* tests/libobj12.test, tests/libobj13.test,
* tests/libobj3.test, tests/library2.test,
* tests/library3.test, tests/libtool4.test,
* tests/libtool6.test, tests/lisp2.test, tests/location.test,
* tests/nogzip2.test, tests/output5.test, tests/overrid.test,
* tests/percent.test, tests/percent2.test,
* tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
* tests/pr211.test, tests/primary.test, tests/primary2.test,
* tests/python2.test, tests/recurs.test, tests/reqd2.test,
* tests/seenc.test, tests/specflg.test, tests/specflg2.test,
* tests/spell.test, tests/spell2.test, tests/srcsub.test,
* tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
* tests/substtarg.test, tests/suffix11.test,
* tests/symlink.test, tests/syntax.test,
* tests/targetclash.test, tests/txinfo4.test,
* tests/version3.test, tests/warnopts.test,
* tests/xsource.test, tests/yacc2.test: Use set -e,
AUTOMAKE_fails, and always grep error message.

21 years ago* automake.in (handle_ltlibraries): Fix call to msg.
Alexandre Duret-Lutz [Wed, 2 Jul 2003 23:30:56 +0000 (23:30 +0000)]
* automake.in (handle_ltlibraries): Fix call to msg.

21 years ago* tests/stamph.test: Delete.
Alexandre Duret-Lutz [Wed, 2 Jul 2003 23:19:38 +0000 (23:19 +0000)]
* tests/stamph.test: Delete.
* tests/Makefile.am (TESTS): Remove stamph.test.

21 years ago* automake.in (handle_single_transform_list): Use $var->name
Alexandre Duret-Lutz [Wed, 2 Jul 2003 23:15:52 +0000 (23:15 +0000)]
* automake.in (handle_single_transform_list): Use $var->name
to print variable in the configure-substitution diagnostic.
Do not mention the parent when it is the variable itself.

21 years ago* tests/package.test: Delete.
Alexandre Duret-Lutz [Wed, 2 Jul 2003 22:47:01 +0000 (22:47 +0000)]
* tests/package.test: Delete.
* tests/Makefile.am (TESTS): Remove package.test.

21 years ago* automake.in (cond_stack_else): Return FALSE if `if' was not
Alexandre Duret-Lutz [Wed, 2 Jul 2003 22:20:32 +0000 (22:20 +0000)]
* automake.in (cond_stack_else): Return FALSE if `if' was not
used.
(cond_stack_endif): Return TRUE if `if' was not used.  Do not
display $negate and $cond, they are irrelevant and maybe undefined.

21 years ago* lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
Alexandre Duret-Lutz [Wed, 2 Jul 2003 21:57:51 +0000 (21:57 +0000)]
* lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
Do not return undef when a variable is recursively defined, this
causes warnings all over the place.  Return the empty string instead.

21 years ago* lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
Alexandre Duret-Lutz [Wed, 2 Jul 2003 20:53:07 +0000 (20:53 +0000)]
* lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
from empty DIST_ARCHIVES.

21 years ago* automake.in (scan_autoconf_traces): Check the expected
Alexandre Duret-Lutz [Tue, 1 Jul 2003 21:25:39 +0000 (21:25 +0000)]
* automake.in (scan_autoconf_traces): Check the expected
number of arguments of each traced macro.
* tests/overrid.test: Fix call to AM_CONDITIONAL.
* tests/conff2.test: New files.
* tests/Makefile.am (TESTS): Add conff2.test.
Report from Paolo Bonzini.

21 years ago* automake.in ($SUBST_REF_PATTERN): Do not define.
Alexandre Duret-Lutz [Mon, 30 Jun 2003 06:35:55 +0000 (06:35 +0000)]
* automake.in ($SUBST_REF_PATTERN): Do not define.
(%gen_varname): Move to Variable.pm, as %_gen_varname.
(initialize_per_input): Do not clean %gen_varname.
(handle_options, check_libobjs_sources, handle_source_transform,
handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
am_install_var): Adjust to use value_as_list_recursive,
loc_and_value_as_list_recursive, and has_conditional_contents.
(require_file_with_macro): Accept an Automake::Variable as argument.
(traverse_variable_recursively,
traverse_variable_recursively_worker, gen_varname,
transform_variable_recursively): Move ...
* lib/Automake/Variable.pm (traverse_variable_recursively,
_traverse_variable_recursively_worker,
_gen_varname, transform_variable_recursively): ... here.
* automake.in (variable_conditionally_defined,
variable_value_as_list_recursive_worker,
variable_value_as_list_recursive
variable_loc_and_value_as_list_recursive): Move ...
* lib/Automake/Variable.pm (has_conditional_contents,
_value_as_list_recursive_worker,
value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
(reset): Reset %_gen_varname.

21 years ago2003-06-27 Alexandre Duret-Lutz <adl@gnu.org>
Alexandre Duret-Lutz [Fri, 27 Jun 2003 18:35:14 +0000 (18:35 +0000)]
2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>

* tests/aclocal6.test: Test maintainer-clean in VPATH
builds. (For Ralf's fix.)

2003-06-27  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>  (tiny change)

* lib/am/configure.am (maintainer-clean): Remove
$(top_srcdir)/autom4te.cache, not autom4te.cache.

21 years ago* automake.texi: Use @node with a single argument.
Akim Demaille [Fri, 27 Jun 2003 11:47:26 +0000 (11:47 +0000)]
* automake.texi: Use @node with a single argument.

21 years ago* m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
Alexandre Duret-Lutz [Fri, 27 Jun 2003 06:51:52 +0000 (06:51 +0000)]
* m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.

21 years agoAdd Bernard Giroud -- see ChangeLog on 2003-06-13
Alexandre Duret-Lutz [Fri, 27 Jun 2003 00:08:04 +0000 (00:08 +0000)]
Add Bernard Giroud -- see ChangeLog on 2003-06-13

21 years ago* lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
Alexandre Duret-Lutz [Fri, 27 Jun 2003 00:03:59 +0000 (00:03 +0000)]
* lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
at the end of distcheck.  This was mistakenly removed on
2003-06-15.
* tests/subpkg.test: Make sure distcheck cleans up after itself.

21 years ago* m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
Alexandre Duret-Lutz [Thu, 26 Jun 2003 23:54:07 +0000 (23:54 +0000)]
* m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
($(top_srcdir)/m4/amversion.m4): ... this.
(DISTCLEANFILES): Remove.
(nodist_m4data_DATA): Remove. amversion.m4 is automatically
distributed.
(EXTRA_DIST): Add amversion.in.

21 years ago* automake.texi (Top): Use @copying and @insertcopying.
Akim Demaille [Wed, 25 Jun 2003 14:01:24 +0000 (14:01 +0000)]
* automake.texi (Top): Use @copying and @insertcopying.
Make Alexandre an author.
* automake.in ($gen_copyright): Add the "(C)" to Copyright.
* lib/depcomp: Likewise.

21 years ago* lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
Alexandre Duret-Lutz [Mon, 23 Jun 2003 21:39:54 +0000 (21:39 +0000)]
* lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
(variable_defined, examine_variable): Remove.
(%_ac_macro_for_var): Add an entry for ALLOCA.
(require_variables): Use vardef instead of variable_defined.
Do not use _cvar.
* automake.in (generate_makefile): Do not push $(SOURCE) into
@sources.  Use define_pretty_variable to define SOURCES.
(handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
to require LIBOBJS, LTLIBOBJS and ALLOCA.
(handle_programs, handle_ltlibraries): Do not define an empty
_DEPENDENCIES or _LDFLAGS variable when none is defined.
(define_configure_variable): Do not check whether the variable
already exists (it's Automake::Variable::define's job).
(require_build_directory): Likewise, do not check
the existence of am__dirstamp.
(generate_makefile, handle_options, handle_languages)
(check_libobjs_sources, handle_single_transform_list)
(traverse_variable_recursively_worker, handle_source_transform)
(handle_lib_objects, handle_LIBOBJS, handle_compile)
(handle_libtool, handle_programs, handle_libraries)
(handle_ltlibraries, check_typos, handle_texinfo_helper)
(handle_man_pages, handle_tags, handle_dist, handle_subdirs)
(scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
(handle_all, do_check_merge_target, handle_clean, lang_c_finish)
(handle_tests, lang_yacc_target_hook, define_pretty_variable)
(define_compiler_variable, define_linker_variable)
(make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
call var, vardef, or set_seen, instead of variable_defined.  Use
set_seen only for variables which are actually checked by
check_typos.
* tests/target.test: Delete.
* tests/alloca.test, tests/alloca2.test: New files.
* tests/libobj3.test: Check error message.
* tests/distcom4.test: Make sure configure is in DIST_COMMON.
This replace confdist.test.
* tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
(TESTS): Add alloca.test and alloca2.test.  Remove confdist.test.

21 years ago* automake.in (handle_dist): Delete DIST_COMMON before redefining
Alexandre Duret-Lutz [Fri, 20 Jun 2003 20:38:58 +0000 (20:38 +0000)]
* automake.in (handle_dist): Delete DIST_COMMON before redefining
it.  Bug report from Akim Demaille.
(rewrite_inputs_into_dependencies): Make sure we always return
something, even when $add_srcdir is 0.
* tests/distcom4.test, tests/distcom5.test: New files.
* tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.

21 years ago* tests/cond29.test: Also check for _SOURCES.
Alexandre Duret-Lutz [Fri, 20 Jun 2003 19:12:32 +0000 (19:12 +0000)]
* tests/cond29.test: Also check for _SOURCES.
Report from Paolo Bonzini.

21 years ago* lib/am/configure.am: Replace leading spaces with a real tab.
Akim Demaille [Fri, 20 Jun 2003 08:16:43 +0000 (08:16 +0000)]
* lib/am/configure.am: Replace leading spaces with a real tab.

21 years agoTypo fix
Tom Tromey [Sun, 15 Jun 2003 22:27:22 +0000 (22:27 +0000)]
Typo fix

21 years ago* tests/nogzip.test, tests/nogzip2.test: New files.
Alexandre Duret-Lutz [Sun, 15 Jun 2003 17:43:20 +0000 (17:43 +0000)]
* tests/nogzip.test, tests/nogzip2.test: New files.
* tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test

21 years ago2003-06-15 Akim Demaille <akim@epita.fr>
Alexandre Duret-Lutz [Sun, 15 Jun 2003 17:35:50 +0000 (17:35 +0000)]
2003-06-15  Akim Demaille  <akim@epita.fr>

* automake.in (&make_paragraphs): Define %GZIP%.
(&process_option_list): Accept no-dist-gzip2.
(&handle_dist): Complain when no archive format is enabled.
* lib/am/distdir.am (DIST_ARCHIVES): New variable.
(dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
conditioned.
(dist): Build $(distdir).tar.gz conditionally.
(distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
to list built archives.  Run $(MAKE) dist instead of dist-gzip.
* automake.texi (Options, The types of distributions): Adjust.

21 years ago2003-06-15 Jens Elkner <elkner@imsgroup.de> (tiny change)
Alexandre Duret-Lutz [Sun, 15 Jun 2003 16:19:48 +0000 (16:19 +0000)]
2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)

        * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
        POSIXLY_CORRECT=1.

21 years ago2003-06-14 Karl Berry <karl@gnu.org>
Alexandre Duret-Lutz [Sat, 14 Jun 2003 22:01:41 +0000 (22:01 +0000)]
2003-06-14  Karl Berry  <karl@gnu.org>
    Alexandre Duret-Lutz  <adl@gnu.org>

* mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
to update it each time the file is written, as in install-sh.
(usage): Improve message.
(--version): New option.
(--help): Output to stdout, not stderr.

21 years ago* lib/install.sh (dsttmp, rmtmp): Do not use '#' in file names;
Paul Eggert [Sat, 14 Jun 2003 05:05:47 +0000 (05:05 +0000)]
* lib/install.sh (dsttmp, rmtmp): Do not use '#' in file names;
it's not guaranteed by POSIX and it doesn't work on OpenVMS.
Bug reported by Bernard Giroud in:
http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html

21 years ago(dsttmp, rmtmp): Do not use '#' in file names;
Paul Eggert [Sat, 14 Jun 2003 05:04:52 +0000 (05:04 +0000)]
(dsttmp, rmtmp): Do not use '#' in file names;
it's not guaranteed by POSIX and it doesn't work on OpenVMS.
Bug reported by Bernard Giroud in:
http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html

21 years ago* automake.in (check_gnu_standards): Use no-installman and
Alexandre Duret-Lutz [Thu, 5 Jun 2003 20:33:05 +0000 (20:33 +0000)]
* automake.in (check_gnu_standards): Use no-installman and
no-installinfo's locations.
(process_option_list): Fill %options with locations.
(check_cygnus) Fill $options{'no-installinfo'} and
$options{'no-dependencies'} with $cygnus_mode, so that it
remains a Location.
* tests/gnuwarn2.test: New file.
* tests/Makefile.am (TESTS): Add gnuwarn2.test.

21 years ago* automake.in (process_option_list): Record the location
Alexandre Duret-Lutz [Wed, 4 Jun 2003 20:18:36 +0000 (20:18 +0000)]
* automake.in (process_option_list): Record the location
of ansi2knr's definition.
(handle_compile): Use it.
* tests/ansi3.test: Make sure the location appears correctly.
Update to use set -e.
* tests/ansi3b.test: New file.
* tests/Makefile.am (TESTS): Add ansi3b.test.

21 years ago* tests/alpha.test: Really run $MAKE. Augment to test
Alexandre Duret-Lutz [Wed, 4 Jun 2003 19:30:35 +0000 (19:30 +0000)]
* tests/alpha.test: Really run $MAKE.  Augment to test
subdirectories, and check-news report.
* tests/alpha2.test: New file.  Bug report from Akim Demaille.
* tests/gnits2.test: Make sure README-alpha is not distributed.
* tests/Makefile.am (TESTS): Add alpha2.test.
* automake.in (handle_minor_options): Distribute README-alpha
using push_dist_common, not require_file_with_macro.

21 years ago* lib/Automake/Configure_ac.pm
Alexandre Duret-Lutz [Tue, 3 Jun 2003 21:09:22 +0000 (21:09 +0000)]
* lib/Automake/Configure_ac.pm
(search_configure_ac, find_configure_ac): Rename as ...
(find_configure_ac, require_configure_ac): ... these.
* aclocal.in (scan_configure): Adjust call to require_configure_ac.
* automake.in (scan_autoconf_files): Likewise.
Suggested by Tim Van Holder.

21 years ago* alocal.in: Use Automake::Configure_ac.
Alexandre Duret-Lutz [Mon, 2 Jun 2003 23:35:00 +0000 (23:35 +0000)]
* alocal.in: Use Automake::Configure_ac.
($configure_ac): Delete.
(scan_configure): Adjust use of find_configure_ac;
* automake.in: Use Automake::Configure_ac.
($configure_ac): Delete.
(scan_autoconf_files): Adjust use of find_configure_ac;
* lib/Automake/Configure_ac.pm: New file.
* lib/Automake/General.pm (find_configure_ac): Delete.  Now
replaced by Automake::Configure_ac::search_configure_ac.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
* lib/Automake/Variable.pm: Use Automake::Configure_ac.
(require_variables): Adjust use of $configure_ac.

21 years agorun autoconf
Alexandre Duret-Lutz [Mon, 2 Jun 2003 21:59:14 +0000 (21:59 +0000)]
run autoconf

21 years ago* lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
Akim Demaille [Mon, 2 Jun 2003 07:08:40 +0000 (07:08 +0000)]
* lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
* lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
* lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
* lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
* lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
* lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
* lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
* lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
* lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
* lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
* m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
* m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
* m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
* m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
* m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
* m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
* m4/Makefile.am: White space changes and Copyright updates.

21 years ago* lib/Automake/Variable.pm (check_defined_unconditionally): Add
Alexandre Duret-Lutz [Thu, 29 May 2003 19:05:55 +0000 (19:05 +0000)]
* lib/Automake/Variable.pm (check_defined_unconditionally): Add
the $parent_cond argument.
(output): Use $self->name in diagnostic not $self.
(variable_value_as_list): Rename as ...
(value_as_list): ... this.  Declare as a method.  Take a $parent_cond
argument and pass it to check_defined_unconditionally.  Do not call
variable_assert, now that this is a method.
(variable_assert): Delete (unused).
* automake.in (traverse_variable_recursively_worker): Adjust to
use check_defined_unconditionally and value_as_list as a methods.

21 years ago* lib/Automake/Variable.pm (output): Declare as a method, since it
Alexandre Duret-Lutz [Thu, 29 May 2003 17:34:52 +0000 (17:34 +0000)]
* lib/Automake/Variable.pm (output): Declare as a method, since it
is only used this way.
(define): Fix documentation of $cond.
Suggested by Raja R. Harinath.

21 years ago* lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
Alexandre Duret-Lutz [Sun, 25 May 2003 20:05:50 +0000 (20:05 +0000)]
* lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
and VarDef.pm.
* automake.in: Use Automake::Variable and Automake::VarDef.
(MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
(am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
(ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
(silent_variable_override): Delete.  Now
Automake::Variable::_silent_variable_override.
(var_value, var_location, var_comment, var_type, var_owner,
var_pretty, content_seen): Delete.  This functionality is now
offered by Automake::Variable and Automake::VarDef.
(VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
Delete.  Now defined in Automake::VarDef.
(var_order): Delete.  Now Automake::Variable::_var_order.
(appendvar): Delete.  Now Automake::Variable::_appendvar.
(var_SUFFIX_trigger): Register using Automake::Variable::hook.
(initialize_per_input): Call Automake::Variable::reset.
(err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
defined in Automake::Variable.
(generate_makefile, process_option_list, handle_languages)
(traverse_variable_recursively_worker)
(transform_variable_recursively, handle_compile)
(handle_libraries, handle_ltlibraries)
(check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
Adjust to use Automake::Variable functions.
(check_ambiguous_condition): Delete.  Now
Automake::Variable::_check_ambiguous_condition.
(condition_ambiguous_p): Delete.  Now
Automake::Variable::condition_ambiguous_p.
(variable_not_always_defined_in_cond): Delete.  Now
Automake::Variable::not_always_defined_in_cond.
(macro_define): Delete.  Now Automake::Variable::define.
(macro_delete): Delete.  Now Automake::Variable::variable_delete.
(macro_dump): Delete.  Now Automake::Variable::variable_dump.
(macros_dump): Delete.  Now Automake::Variable::variables_dump.
(variable_defined): Delete.  Now
Automake::Variable::variable_defined, with the target check
temporarily disabled.
(variable_assert): Delete.  Now Automake::Variable::variable_assert.
(examine_variable): Delete.  Now
Automake::Variable::examine_variable.
(variable_conditions): Delete.  Now Automake::Variable::conditions.
(scan_variable_expansions): Delete.  Now
Automake::Variable::scan_variable_expansions.
(check_variable_expansions): Delete.  Now
Automake::Variable::check_variable_expansions.
(check_variable_defined_unconditionally): Delete.  Now
Automake::Variable::check_defined_unconditionally.
(variable_value): Delete.  Now Automake::Variable::variable_value.
(variable_value_as_list): Delete.  Now
Automake::Variable::variable_value_as_list.
(variable_value_as_list_recursive_worker): Adjust to use
Automake::Variable functions.
(variable_output): Delete.  Now Automake::Variable::output.
(define_pretty_variable, define_configure_variable, read_am_file)
(define_standard_variables, read_main_am_file): Adjust to use
Automake::Variable functions.
(handle_variables): Delete.  Now Automake::Variable::output_variables.
(file_contents_internal, am_primary_prefixes, am_install_var)
(require_file_with_macro, require_conf_file_with_macro)
(push_dist_common): : Adjust to use
Automake::Variable functions.
(require_variables): Delete.  Now
Automake::Variable::require_variables.
(require_variables_for_macro): Delete.  Now
Automake::Variable::require_variables_for_variable.
* tests/Makefile.am (XFAIL_TESTS): Add target.test.

21 years ago* tests/dejagnu7.test: Check if runtest supports --status.
Alexandre Duret-Lutz [Sun, 25 May 2003 17:12:57 +0000 (17:12 +0000)]
* tests/dejagnu7.test: Check if runtest supports --status.

21 years ago* lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
Alexandre Duret-Lutz [Fri, 23 May 2003 21:53:34 +0000 (21:53 +0000)]
* lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
is undefined.

21 years ago* lib/Automake/DisjConditions.pm (human): Fix infinite loop when
Alexandre Duret-Lutz [Fri, 23 May 2003 21:26:06 +0000 (21:26 +0000)]
* lib/Automake/DisjConditions.pm (human): Fix infinite loop when
$self contains only one Condition.

21 years ago* automake.in: Use plain strict, including refs.
Alexandre Duret-Lutz [Fri, 23 May 2003 21:10:38 +0000 (21:10 +0000)]
* automake.in: Use plain strict, including refs.
(macro_define, handle_single_transform_list): Use &{'name'} to
build references to named subroutines.

21 years ago* automake.texi: Update @dircategory to match the Free Software
Alexandre Duret-Lutz [Thu, 22 May 2003 20:44:11 +0000 (20:44 +0000)]
* automake.texi: Update @dircategory to match the Free Software
Directory.  End directory entries with dots.

21 years ago* automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
Alexandre Duret-Lutz [Thu, 22 May 2003 20:23:33 +0000 (20:23 +0000)]
* automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
* lib/elisp-comp: s/François/Franc,ois/.
Suggested by Paul Eggert.

21 years ago* automake.in: Move the "main" code at the end.
Alexandre Duret-Lutz [Thu, 22 May 2003 17:50:10 +0000 (17:50 +0000)]
* automake.in: Move the "main" code at the end.
(parse_arguments): Move near the end.
($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
accept_extensions, var_SUFFIXES_trigger): Move these definitions
before any call to register_language.
(am_file): Move the definition with all other global variables,
do not use local to define it.
* Makefile.am (maintainer-check): Expect no `local' in Automake.

21 years ago* lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
Alexandre Duret-Lutz [Wed, 21 May 2003 20:30:07 +0000 (20:30 +0000)]
* lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
* lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
* automake.in (handle_texinfo_helper, pretty_print_rule)
(variable_output): Adjust to use makefile_wrap instead of
pretty_print_internal.
(pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
and augmented to accept the $eol and $max_len arguments.

21 years ago* lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
Alexandre Duret-Lutz [Sun, 18 May 2003 08:38:21 +0000 (08:38 +0000)]
* lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
lib/texinfo.tex: New upstream versions.

21 years ago* lib/am/install.am (install, install-exec, install-data, uninstall):
Alexandre Duret-Lutz [Sat, 17 May 2003 11:31:57 +0000 (11:31 +0000)]
* lib/am/install.am (install, install-exec, install-data, uninstall):
Declare conditionally using a if/else/endif block instead of
using ?SUBDIRS?-style conditions.  The latter fail when
%maybe_BUILT_SOURCES% is replaced by several lines.
This fixes a bug introduced on 2003-04-06.
* tests/bsource.test: New file.
* tests/Makefile.am (TESTS): Add bsource.test.
Reported by Bruno Haible.

21 years ago* automake.texi (renamed objects): New node.
Alexandre Duret-Lutz [Sun, 11 May 2003 19:56:59 +0000 (19:56 +0000)]
* automake.texi (renamed objects): New node.
(Program and Library Variables): Move maude_DEPENDENCIES closer
to maude_LDADD.  Define and use `per-target compilation flags' in the
explanation for maude_CFLAGS et al.  Link to the `renamed objects'
node.  Illustrate maude_SHORTNAME.

21 years ago* lib/install-sh: Update copyright notice and license to that of
Alexandre Duret-Lutz [Fri, 9 May 2003 17:58:21 +0000 (17:58 +0000)]
* lib/install-sh: Update copyright notice and license to that of
X11R6.  This removes an advertising clause reported as Debian bug
#191717.

21 years ago* configure.in (ACLOCAL): Do not use -I, --acdir is enough.
Alexandre Duret-Lutz [Wed, 7 May 2003 21:12:43 +0000 (21:12 +0000)]
* configure.in (ACLOCAL): Do not use -I, --acdir is enough.

21 years ago* m4/make.m4: Rename the doit target as am__doit,
Alexandre Duret-Lutz [Wed, 7 May 2003 20:59:08 +0000 (20:59 +0000)]
* m4/make.m4: Rename the doit target as am__doit,
and make it phony.
Reported by Philip S Tellis.

21 years agoquote DJGPP; from Simon Richter
Alexandre Duret-Lutz [Tue, 6 May 2003 22:36:54 +0000 (22:36 +0000)]
quote DJGPP; from Simon Richter

21 years ago* lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
Alexandre Duret-Lutz [Tue, 6 May 2003 22:29:16 +0000 (22:29 +0000)]
* lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
status.
* tests/makej.test: New file (test Autom4te's cache locking,
new in CVS Autoconf).
* tests/Makefile.am (TESTS): Add makej.test.

21 years ago* lib/Automake/General.pm (contents): New function.
Alexandre Duret-Lutz [Tue, 6 May 2003 12:07:22 +0000 (12:07 +0000)]
* lib/Automake/General.pm (contents): New function.
* aclocal.in (greatest_mtime, force_output): New globals.
(scan_configure, add_file): Update $greatest_mtime.
(parse_arguments): Parse --force.
(write_aclocal): Do not overwrite $output_file unless needed.
* automake.texi (aclocal options): Document --force.
* tests/aclocal7.test: New file.
* tests/Makefile.am (TESTS): Add aclocal7.test.

21 years ago* automake.texi (Optional): Document m4_include.
Alexandre Duret-Lutz [Mon, 5 May 2003 19:56:21 +0000 (19:56 +0000)]
* automake.texi (Optional): Document m4_include.
(Invoking aclocal): Shake a bit to introduce the various uses
of aclocal and explain that aclocal will use m4_include for
local files.
(Extending aclocal): Show how to install installable macros
in $(datadir)/aclocal, and make it clearer that writing installable
macros is not the only way to extend aclocal.
(Local Macros, Future of aclocal): New sections.

21 years ago* automake.in (@common_files): Remove acinclude.m4 since
Alexandre Duret-Lutz [Sun, 27 Apr 2003 18:14:37 +0000 (18:14 +0000)]
* automake.in (@common_files): Remove acinclude.m4 since
it will be m4_included by aclocal.m4 and files are always
distributed.
(scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
We will get this dependency when tracing m4_includes.
* tests/aclocal6.test: Make sure acinclude.m4 is distributed
when used.
* tests/acinclude.test: Delete.
* tests/Makefile.am (TESTS): Remove acinclude.test.

21 years ago* automake.in (handle_configure): Don't add @configure_deps to
Alexandre Duret-Lutz [Fri, 25 Apr 2003 20:46:21 +0000 (20:46 +0000)]
* automake.in (handle_configure): Don't add @configure_deps to
DIST_COMMON, we do this from lib/am/configure.am now.
Define the am__configure_deps variable instead of substituing
%CONFIGURE_DEPS%.
* lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
$(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
(DIST_COMMON): Add $(am__configure_deps).

21 years ago* tests/aclocal6.test: New file.
Alexandre Duret-Lutz [Fri, 25 Apr 2003 18:39:21 +0000 (18:39 +0000)]
* tests/aclocal6.test: New file.
* lib/am/configure.am (am--refresh): New rule.
(%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
$(top_srcdir)/configure): Call the top-level am--refresh from
subdirectories.
($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
top-level am--refresh when not in the top-level directory.
Fix jump directories for VPATH builds.
Suggested by Raja R. Harinath.

21 years agotypos
Alexandre Duret-Lutz [Thu, 24 Apr 2003 18:54:46 +0000 (18:54 +0000)]
typos

21 years ago* automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
Alexandre Duret-Lutz [Thu, 24 Apr 2003 18:48:07 +0000 (18:48 +0000)]
* automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
and glob for m4_files (We've got all local m4 files while
tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
Distribute aclocal.m4 only at the top-level.
(my_glob): Remove.  This fixes PR automake/11.
(handle_dist): Strip leading `./' from directories.
* aclocal.in (add_file): Output 'm4_include([file.m4])' instead
of copying local files.
(write_aclocal, parse_arguments): Bump copyright date.
* configure.in: De not build m4/amversion.m4 from here ...
* m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
(nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
of amversion.m4.
* tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
(TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
* tests/aclocal2.test: Delete (pointless).
* tests/aclocal5.test: Make sure configure's dependencies are
distributed.
* tests/acinclude.test: Adjust to search for m4_include.
* tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
configure instead of aclocal.m4.

21 years agoFor automake PR/46:
Alexandre Duret-Lutz [Thu, 24 Apr 2003 18:39:32 +0000 (18:39 +0000)]
For automake PR/46:
* automake.in (scan_aclocal_m4): Work in all directories, not only
the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
dependency.
* lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
Define rebuild rules in each directory.
* tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
from the top-level directory.
* tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
from a subdirectory.
* tests/Makefile.am (TESTS): Add aclocal5.test.
(XFAIL_TESTS): Replace subdir8.test by aclocal5.test.

21 years agoFor automake PR/46:
Alexandre Duret-Lutz [Thu, 24 Apr 2003 18:33:42 +0000 (18:33 +0000)]
For automake PR/46:
* lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
because of one of configure's dependencies, run automake without
argument to update the whole tree at once.  Depend upon
%CONFIGURE_DEPS%.
(%MAKEFILE%): If Makefile is rebuilt because config.status has
been updated, run config.status without arguments.
* automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
before all files in @configure_deps.
* tests/subdir5.test: Modernize configure.in, make sure
maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
* tests/subdir8.test: New file.
* tests/Makefile.am (TESTS): Add subdir8.test.
(XFAIL_TESTS): Replace subdir5.test by subdir8.test.

21 years ago* automake.texi (Requirements): Typo in index
Alexandre Duret-Lutz [Wed, 23 Apr 2003 21:45:19 +0000 (21:45 +0000)]
* automake.texi (Requirements): Typo in index
s/AC_CONFIG_FILE/AC_CONFIG_FILES/.

21 years ago* lib/texinfo.tex: New upstream version.
Alexandre Duret-Lutz [Wed, 23 Apr 2003 19:08:47 +0000 (19:08 +0000)]
* lib/texinfo.tex: New upstream version.

21 years ago.
Jim Meyering [Mon, 21 Apr 2003 15:09:46 +0000 (15:09 +0000)]
.

21 years ago * lib/mkinstalldirs: Remove each sequence of spaces before a
Jim Meyering [Mon, 21 Apr 2003 15:06:29 +0000 (15:06 +0000)]
* lib/mkinstalldirs: Remove each sequence of spaces before a
TAB character.
* lib/depcomp: Search for TAB-SPC, not SPC-TAB.

21 years agoFix for PR automake/389:
Alexandre Duret-Lutz [Sat, 19 Apr 2003 11:22:22 +0000 (11:22 +0000)]
Fix for PR automake/389:
* automake.in (handle_configure): Don't put $colon_infile in
CONFIG-MAKEFILE.
* tests/conff.test: New file.
* tests/Makefile.am (TESTS): Add conff.test.
Reported by Alexander Turbov.

21 years agoback out mistaken commit
Alexandre Duret-Lutz [Fri, 18 Apr 2003 20:05:31 +0000 (20:05 +0000)]
back out mistaken commit

21 years ago* tests/defs.in: Handle required=etags to work around
Alexandre Duret-Lutz [Fri, 18 Apr 2003 19:59:31 +0000 (19:59 +0000)]
* tests/defs.in: Handle required=etags to work around
Exuberant Ctags.

21 years ago* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
Alexandre Duret-Lutz [Fri, 18 Apr 2003 17:23:20 +0000 (17:23 +0000)]
* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
versions.

21 years ago* tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
Alexandre Duret-Lutz [Fri, 18 Apr 2003 17:15:02 +0000 (17:15 +0000)]
* tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
Distribute dejagnu test cases, so that distcheck actually runs them.

21 years ago.
Jim Meyering [Fri, 18 Apr 2003 09:11:04 +0000 (09:11 +0000)]
.

21 years ago(variable_output): Fix typo in comment s/is/if/.
Jim Meyering [Fri, 18 Apr 2003 09:09:57 +0000 (09:09 +0000)]
(variable_output): Fix typo in comment s/is/if/.

21 years ago* lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
Richard Dawe [Fri, 18 Apr 2003 09:07:01 +0000 (09:07 +0000)]
* lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
  because we set that by invoking runtest with --tool.
* tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
  dejagnu6.test, dejagnu7.test.
* tests/dejagnu4.test: New test.
* tests/dejagnu5.test: New test.
* tests/dejagnu6.test: New test.
* tests/dejagnu7.test: New test.

* tests/dejagnu3.test: Make sure the DejaGnu test is actually run.

21 years ago * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
Jim Meyering [Fri, 18 Apr 2003 08:54:34 +0000 (08:54 +0000)]
* lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
directly to $@.  Instead, redirect to $@t and rename upon success.
Also, move the commands that update $@ so they are last.  Otherwise,
this rule could leave the user with an up to date target (.c file)
but with a missing or corrupted corresponding .h file.

21 years agos/Silent/Silence/
Alexandre Duret-Lutz [Thu, 17 Apr 2003 19:57:58 +0000 (19:57 +0000)]
s/Silent/Silence/

21 years ago* tests/defs.in: Handle required=runtest, to detect runtest from DejaGnu.
Richard Dawe [Thu, 17 Apr 2003 19:06:45 +0000 (19:06 +0000)]
* tests/defs.in: Handle required=runtest, to detect runtest from DejaGnu.
* tests/Makefile.am (TESTS): Add dejagnu3.test.
* tests/dejagnu3.test: New test.

21 years ago* automake.in (rule_define): If the user tries to override
Alexandre Duret-Lutz [Wed, 16 Apr 2003 19:59:03 +0000 (19:59 +0000)]
* automake.in (rule_define): If the user tries to override
an Automake which has a -local variant, suggest using the
-local variant in the -Woverride diagnostic.
(handle_factored_dependencies): Register factored
rules with rule_define, and define them only in undefined
conditions.
* tests/Makefile.am (TESTS): Add override.test.
* tests/overrid.test: New file.
* tests/phony.test: Count the number of .PHONY targets.

21 years ago* lib/am/distdir.am (distuninstallcheck, distcleancheck): Silent
Alexandre Duret-Lutz [Tue, 15 Apr 2003 20:40:31 +0000 (20:40 +0000)]
* lib/am/distdir.am (distuninstallcheck, distcleancheck): Silent
these rules, so that we don't confuse users by echoing
"echo ERROR:" commands which are not run.

21 years ago2003-03-14 Richard Dawe <rich@phekda.freeserve.co.uk>
Alexandre Duret-Lutz [Mon, 14 Apr 2003 19:59:30 +0000 (19:59 +0000)]
2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
            Alexandre Duret-Lutz  <adl@gnu.org>

        * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
        initialize_per_input):  Add infrastructure for generating HTML
        documentation from texinfo source.
        * lib/am/texinfos.am: Add rules for building HTML documentation
        from texinfo source.
        * lib/am/texibuild.am: Likewise.
        * automake.texi (Texinfo): Document rules for building
        HTML documentation from texinfo source.
        * tests/txinfo21.test: New file.
        * tests/Makefile.am (TESTS): Add txinfo21.test.
* tests/defs.in: Handle required=makeinfo-html.

21 years ago* automake.in (%silent_variable_override): New variable.
Alexandre Duret-Lutz [Mon, 14 Apr 2003 19:13:15 +0000 (19:13 +0000)]
* automake.in (%silent_variable_override): New variable.
(macro_define): Warn about variable definitions overriding
Automake variables.
(rule_define): Warn about target definitions overriding
Automake variables.  Fix $condmsg definition.
* automake.texi (Invoking Automake): Document the `override'
category.
* lib/Automake/ChannelDefs.pm (usage): Likewise.
* lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
this is already done in m4/init.m4.
* tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
-Wno-override, and make sure we get a warning without.
* tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
and make sure we get a warning without.
* tests/exeext3.test, tests/java2.test, tests/nolink.test,
tests/subpkg.test, tests/vartest.test: Use -Wno-override.
* tests/txinfo13.test: Use installcheck-local instead of overriding
installcheck.
* tests/txinfo2.test: Run $MAKE on the real Makefile (this test
used to succeed thanks to a failure...)
* tests/location.test: Adjust expected messages.
* tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.

21 years ago* lib/Automake/DisjConditions.pm (true): Don't cache answer.
Raja R Harinath [Sat, 12 Apr 2003 16:41:59 +0000 (16:41 +0000)]
* lib/Automake/DisjConditions.pm (true): Don't cache answer.
(invert): Update comment.
(_simplify): Remove.
(simplify): Implement using invert().
* lib/Automake/tests/DisjConditions.pl (test_simplify):
Update to reflect changes.

21 years ago* automake.in (scan_autoconf_files): Augment the error message
Alexandre Duret-Lutz [Sat, 12 Apr 2003 11:16:51 +0000 (11:16 +0000)]
* automake.in (scan_autoconf_files): Augment the error message
about AM_INIT_AUTOMAKE not found.
Suggested by Bruno Haible.

21 years ago* lib/Automake/Version.pm: New file.
Alexandre Duret-Lutz [Fri, 11 Apr 2003 22:11:43 +0000 (22:11 +0000)]
* lib/Automake/Version.pm: New file.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
* lib/Automake/tests/Version.pl: New file.
* lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
* tests/Makefile.am (TESTS): Remove version5.test.
* tests/version5.test: Delete.  Move the tests to Version.pl.
* automake.in (version_split, version_compare, version_check): Move ...
* lib/Automake/Version.pm (split, compare, check): ... here.

21 years ago* lib/Automake/tests/Condition.pl (test_reduce_and)
Alexandre Duret-Lutz [Fri, 11 Apr 2003 21:12:23 +0000 (21:12 +0000)]
* lib/Automake/tests/Condition.pl (test_reduce_and)
(test_reduce_or): Cosmetics.
* lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
Fix a comment.
* lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
in comment.
* tests/yacc8.test, configure.in: Update copyright year.

21 years ago* configure.in: Get the build platform name. Define
Richard Dawe [Thu, 10 Apr 2003 23:15:46 +0000 (23:15 +0000)]
* configure.in: Get the build platform name.  Define
  MODIFICATION_DELAY as the time to wait after modifying a file,
  to cope with timestamp granularity issues, depending
  on the platform.

* tests/defs.in: Define `sleep' using MODIFICATION_DELAY.

21 years ago2003-04-08 Eric Siegerman <eric_97@pobox.com> (tiny change)
Alexandre Duret-Lutz [Thu, 10 Apr 2003 20:36:14 +0000 (20:36 +0000)]
2003-04-08  Eric Siegerman  <eric_97@pobox.com>  (tiny change)

        * automake.texi (Public macros): Clarify that the new
        AM_INIT_AUTOMAKE variant is preferred, and the old one
        deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
        (Hello): Caution that the example uses the deprecated
        AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.

21 years agoRetain all variable definitions until the whole Makefile.am has
Alexandre Duret-Lutz [Thu, 10 Apr 2003 19:50:22 +0000 (19:50 +0000)]
Retain all variable definitions until the whole Makefile.am has
been processed, then output all variables in one step, at the top
of Makefile.in.  (Older revisions used to output user variables
before generating Automake targets, and to mix Automake variables
with Automake targets, preventing redefinitions of previously
output variables.)

* automake.in (%var_pretty): New variable.
(VAR_ASIS, VAR_PRETTY): New constants.
(@var_list): Rename as ...
(@var_order): ... this.
(initialize_per_input): Clear %var_pretty.
(handle_variables): New function, extracted from ...
(read_main_am_file): ... here.
(generate_makefile): Call handle_variable after everything else.
(handle_dist): Use define_pretty_variable, not pretty_print.
(pretty_print): Delete.
(macro_define): Augment with $COMMENT and $PRETTY parameters.
Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
(variable_pretty_output): Merge with ...
(variable_output): ... this, and choose the prettiness on a
per-condition basis.
(append_comments): Delete.  This work is now done by macro_define.
(read_am_file, file_contents_internal): Don't call append_comments
nor update @var_list, adjust calls to macro_define.
(handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
just mark it as VAR_PRETTY.
* tests/exeext.test: Make sure bin_PROGRAMS is output only once.
Report from Jim Meyering.

21 years ago* automake.in (handle_installdirs): Rename as ...
Alexandre Duret-Lutz [Sun, 6 Apr 2003 19:26:29 +0000 (19:26 +0000)]
* automake.in (handle_installdirs): Rename as ...
(handle_install): ... this.  Define maybe_BUILT_SOURCES.
(generate_makefile): Adjust call to handle_install.
* lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
* automake.texi (Sources, Built sources example): BUILT_SOURCES
is honored by `make install' too.
* tests/check3.test: Make sure that `make install' also depends
upon BUILT_SOURCES.
Report from Alexander Turbov.

21 years ago* lib/am/libs.am (ARFLAGS): Define.
Alexandre Duret-Lutz [Sun, 6 Apr 2003 18:31:12 +0000 (18:31 +0000)]
* lib/am/libs.am (ARFLAGS): Define.
* automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
hard-coding `cru'.
* automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
are used, and how they can be overridden.
(Program and Library Variables): Adjust to show `$(ARFLAGS)'
instead of `cru'
* tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
* tests/ranlib.test: Delete, obsoleted by ar.test.
* tests/Makefile.am (TESTS): Remove ranlib.test.
Report from Paul Thomas.

21 years ago* automake.in (check_trailing_slash): New function (variation on
Alexandre Duret-Lutz [Thu, 3 Apr 2003 21:38:39 +0000 (21:38 +0000)]
* automake.in (check_trailing_slash): New function (variation on
a patch by Peter Muir).  Diagnose whitespaces following trailing
backslash.
(read_am_file): Use it.
* tests/backsl4.test: New file.
* tests/Makefile.am (TESTS): Add backsl4.test.
Reported by Peter Muir.

21 years agoSpeedup Automake::DisjConditions::invert().
Raja R Harinath [Sun, 30 Mar 2003 01:56:28 +0000 (01:56 +0000)]
Speedup Automake::DisjConditions::invert().
* lib/Automake/Condition.pm (multiply): New.
* lib/Automake/DisjConditions.pm (_multiply): Use it.
(sub_conditions): Likewise.

* lib/Automake/Condition.pm (reduce): Rename to ...
(reduce_and): ... this.
(reduce_or): New.
* lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
* lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
(test_reduce_and): ... this.
(test_reduce_or): New.
* lib/Automake/tests/DisjConditions.pl
(test_invert): Update to reflect effect of reduce_or().
(test_simplify): Don't skip invert() on larger inputs.

21 years agoAdd a $sleep before modifying Makefile.am so
Raja R Harinath [Sat, 29 Mar 2003 21:29:08 +0000 (21:29 +0000)]
Add a $sleep before modifying Makefile.am so
that timestamp will change.

21 years agotests/yacc8.test: Add a sleep before modifying Makefile.am so
Raja R Harinath [Sat, 29 Mar 2003 20:05:20 +0000 (20:05 +0000)]
tests/yacc8.test: Add a sleep before modifying Makefile.am so
that timestamp will change.