Alexandre Duret-Lutz [Thu, 6 Dec 2001 19:23:24 +0000 (19:23 +0000)]
* tests/confsub.test, tests/depdist.test, tests/extra5.test,
tests/nobase.test, tests/stamph2.test,
tests/subdirbuiltsources.test: Require Autoconf.
Alexandre Duret-Lutz [Wed, 5 Dec 2001 17:26:46 +0000 (17:26 +0000)]
* automake.texi (Dist): Document $(DISTCHECK_CONFIGURE_FLAGS).
* lib/am/distdir.am (distcheck): Honnor $(DISTCHECK_CONFIGURE_FLAGS).
Suggested by Merijn de Jonge.
Alexandre Duret-Lutz [Wed, 5 Dec 2001 17:15:43 +0000 (17:15 +0000)]
* lib/am/tags.am (ID): Search $(LISP) files in $(srcdir),
like other ID dependencies.
Suggested by Christian Cornelssen.
Alexandre Duret-Lutz [Wed, 5 Dec 2001 17:13:41 +0000 (17:13 +0000)]
* automake.in (handle_dist): Distribute common files which
do not exist but are target of a Makefile rule.
* automake.texi (Dist): Update.
* test/builtcommon3.test: New file.
* test/Makefile.am (TESTS): Add distcommon3.test.
Alexandre Duret-Lutz [Tue, 4 Dec 2001 21:58:49 +0000 (21:58 +0000)]
* automake.in (macro_define): Fix misuse of chomp introduced on
2001-11-28.
Alexandre Duret-Lutz [Wed, 28 Nov 2001 12:31:34 +0000 (12:31 +0000)]
* automake.in (append_comments): New. Extracted from
read_am_file. Match 'n' with a regexp, don't use substr (the
perlport man page says 'n' is not always one byte wide).
(read_am_file): Use it. Always chomp $_.
(file_contents_internal): Use append_comments.
(macro_define): Don't treat the trailing 'n' with substr, use
a regexp or chomp.
Alexandre Duret-Lutz [Wed, 28 Nov 2001 12:30:16 +0000 (12:30 +0000)]
* tests/defs: Turn on shell traces when VERBOSE=x.
Tom Tromey [Mon, 26 Nov 2001 22:02:28 +0000 (22:02 +0000)]
* automake.texi (Assembly Support): Mention .s and .S as only
suffixes.
Alexandre Duret-Lutz [Mon, 26 Nov 2001 18:05:43 +0000 (18:05 +0000)]
* tests/subdirbuiltsources.test: Set -e after sourcing defs, not
before.
Alexandre Duret-Lutz [Mon, 26 Nov 2001 18:04:19 +0000 (18:04 +0000)]
* tests/lex3.test: Require GNU Make.
Alexandre Duret-Lutz [Mon, 26 Nov 2001 18:02:41 +0000 (18:02 +0000)]
* tests/defs (ACLOCAL): Add -I $srcdir/../m4 before any other
directory.
Alexandre Duret-Lutz [Mon, 26 Nov 2001 18:01:54 +0000 (18:01 +0000)]
* lib/am/tags.am (TAGS): Search %CONFIG% and $(LISP) files
in $(srcdir), like other TAGS dependencies.
Suggested by Christian Cornelssen.
Akim Demaille [Mon, 26 Nov 2001 15:30:34 +0000 (15:30 +0000)]
* automake.in (¯o_define): Use $where when reporting an error,
not the place where the macro was first defined since (i) if this
is the first definition, then obviously it was not defined before,
and (ii) anyway, the error is with the new definition, not the
first.
Alexandre Duret-Lutz [Mon, 26 Nov 2001 09:02:58 +0000 (09:02 +0000)]
* lib/am/distdir.am (distcheck): Call distcleancheck.
(distcleancheck_listfiles, distcleancheck): New, extracted from
distcheck.
* automake.texi (Checking the distribution): Document
distcleancheck_listfiles and distcleancheck.
Alexandre Duret-Lutz [Sun, 25 Nov 2001 20:30:54 +0000 (20:30 +0000)]
* automake.in (scan_one_autoconf_file): Parenthesize qw// in
foreach invocation, otherwise Perl5.005_03 complains about a
syntax error. Reported by Yann Droneaud.
Alexandre Duret-Lutz [Mon, 19 Nov 2001 12:32:39 +0000 (12:32 +0000)]
* automake.in (scan_texinfo_file): Suppress FIXME about strange
map behavior.
Alexandre Duret-Lutz [Mon, 19 Nov 2001 12:27:50 +0000 (12:27 +0000)]
* tests/defs (aclocaldir): Check for existence of libtool.m4 and
gettext.m4 if required.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 16:08:10 +0000 (16:08 +0000)]
Recommend the usage of $(am__cd).
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:33:15 +0000 (10:33 +0000)]
* automake.in (define_objects_from_sources,
handle_lib_objects_cond, value_to_list): Use quotemeta instead of
the equivalant substitution.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:32:42 +0000 (10:32 +0000)]
* automake.in (SUFFIX_RULE_PATTERN): Add '_(){}$@' to the
set of accepted characters in extensions.
(rule_define): Convert '.o' and '.obj' into '$(OBJEXT)' for
internall use.
* tests/suffix6.test: Ensure that `.o' is handled like `.$(OBJEXT)'.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:31:51 +0000 (10:31 +0000)]
* automake.texi (Suffixes): Don't require SUFFIXES, but document
its use for the "extreme" cases.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:30:16 +0000 (10:30 +0000)]
* automake.in (rule_define): Use $KNOWN_EXTENSIONS_PATTERN
to match suffix rules for known extensions, or call
accept_extensions on suffixe rules for unknown extensions.
(var_SUFFIXES_trigger): New function.
(macro_define): Call var_VAR_trigger when $VAR is updated.
* tests/suffix6.test, tests/suffix7.test: New files.
* tests/Makefile.am (TESTS): Add suffix6.test and suffix7.test.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:27:51 +0000 (10:27 +0000)]
* automake.in (KNOWN_EXTENSIONS_PATTERN, known_extensions_list):
New variables.
(handle_single_transform_list, lang_yacc_target_hook): Use
KNOWN_EXTENSIONS_PATTERN.
(accept_extension): New function.
(register_language): Call it.
Alexandre Duret-Lutz [Fri, 16 Nov 2001 10:25:58 +0000 (10:25 +0000)]
At every place where an "$extension" is used, include the leading
dot in the extension, don't hardcode it when building the filename.
That will make any support for a dot-less extension easier to add.
* automake.in (SUFFIX_RULE_PATTERN): Include extension dots in
backref groups.
("main"): Prepend a '.' to the supported extensions of all
languages (e.g. 'c' becomes '.c').
(handle_languages, handle_single_transform_list,
handle_lib_objects_cond, handle_headers, derive_suffix,
rule_define): Do not add a dot
before extensions, and include dots in matching groups.
* lib/am/depend2.am (.%EXT%.o, .%EXT%.obj, .%EXT%.lo): Rename as ...
(%EXT%.o, %EXT%.obj, %EXT%.lo): ... these.
* lib/am/lex.am (.%EXT%.%DERIVED-EXT%): Rename as ...
(%EXT%%DERIVED-EXT%): ... this.
* lib/am/yacc.am: Likewise.
Akim Demaille [Mon, 12 Nov 2001 08:55:52 +0000 (08:55 +0000)]
* m4/make.m4 (AM_MAKE_INCLUDE): Serial 2.
Use `"#"' and `"""', which
Autoconf mode prefers over `'#'' and `'"''.
* m4/missing.m4 (AM_MISSING_HAS_RUN): Serial 3.
Rely on AC_MSG 2.50's quotation.
Alexandre Duret-Lutz [Fri, 9 Nov 2001 21:55:10 +0000 (21:55 +0000)]
* automake.in (scan_texinfo_file): Typo from 2001-11-05.
Alexandre Duret-Lutz [Fri, 9 Nov 2001 17:39:46 +0000 (17:39 +0000)]
* lib/am/distdir.am (distdir): Also look for directory in build
directory first. (See 2001-05-14.)
* tests/Makefile.am (TESTS): Add extra5.test.
* tests/extra5.test: New file.
From Dean Povey.
Alexandre Duret-Lutz [Fri, 9 Nov 2001 17:17:47 +0000 (17:17 +0000)]
Fix for distcommon2.test:
* automake.in (automake_needs_to_reprocess_all_files): New
variable.
("main"): Process all Makefiles a second time if
$automake_needs_to_reprocess_all_files is set.
(maybe_push_required_file): Return 1 or 0 whether the file is
pushed or not.
(require_file_internal): Set $automake_needs_to_reprocess_all_files
if an added file can't be pushed.
* test/distcommon2.test: New file.
* test/Makefile.am (TESTS): Add distcommon2.test.
From Pavel Roskin.
Alexandre Duret-Lutz [Fri, 9 Nov 2001 16:27:25 +0000 (16:27 +0000)]
* automake.in (exec_dir_p): Remove. Replace by...
(EXEC_DIR_PATTERN):... this.
(am_install_var): Adjust to use EXEC_DIR_PATTERN.
Alexandre Duret-Lutz [Fri, 9 Nov 2001 16:25:03 +0000 (16:25 +0000)]
Fix for nobase.test:
* lib/am/header-vars.am (install_sh_DATA): New.
* lib/am/data.am (install-%DIR%%PRIMARY%): Declare and use
%DIR%%PRIMARY%_INSTALL, and set it to $(install_sh_DATA) instead
of $(INSTALL_DATA) for nobase_ targets.
* lib/am/lisp.am (install-%DIR%LISP): Likewise.
* lib/am/python.am (install-%DIR%PYTHON): Likewise.
* tests/nobase.test (configure.in): Append AC_OUTPUT.
* tests/Makefile.am (XFAIL_TESTS): Remove nobase.test.
Akim Demaille [Thu, 8 Nov 2001 17:06:12 +0000 (17:06 +0000)]
Englisho.
Akim Demaille [Thu, 8 Nov 2001 17:05:04 +0000 (17:05 +0000)]
* automake.texi: Remove references to stamp-h.in, which no longer
exist.
* tests/stamph2.test: Formatting change.
Alexandre Duret-Lutz [Thu, 8 Nov 2001 15:25:58 +0000 (15:25 +0000)]
* tests/suffix3.test: Check for foo.$(OBJEXT) in Makefile.in.
Don't use -Wno-error.
Alexandre Duret-Lutz [Thu, 8 Nov 2001 08:52:31 +0000 (08:52 +0000)]
* tests/suffix4.test ($AUTOMAKE): Don't use -Wno-error.
* tests/suffix5.test ($AUTOMAKE): Likewise.
Akim Demaille [Wed, 7 Nov 2001 18:08:14 +0000 (18:08 +0000)]
* m4/init.m4 (AM_INIT_AUTOMAKE): Don't escape quotes in
AC_MSG_ERROR.
Reported by Jim Meyering.
Alexandre Duret-Lutz [Wed, 7 Nov 2001 08:03:53 +0000 (08:03 +0000)]
* lib/am/distdir.am (am__remove_distdir): Define in topdir only.
Paul Eggert [Mon, 5 Nov 2001 19:53:59 +0000 (19:53 +0000)]
* lib/am/distdir.am (am__remove_distdir):
New macro. Do not change permission of non-directories.
Change only user permission, as there's no point to changing group
or other permission.
(distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
distcheck): Use it.
Paul Eggert [Mon, 5 Nov 2001 19:52:57 +0000 (19:52 +0000)]
(am__remove_distdir):
New macro. Do not change permission of non-directories.
Change only user permission, as there's no point to changing group
or other permission.
(distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
distcheck): Use it.
Alexandre Duret-Lutz [Mon, 5 Nov 2001 17:52:06 +0000 (17:52 +0000)]
* lib/am/python.am: Cleanup the cleaning section.
* automake.texi (Python): Remove documentation for PYCFILES
and PYOFILES. Update the first paragraphes.
Alexandre Duret-Lutz [Mon, 5 Nov 2001 17:46:21 +0000 (17:46 +0000)]
* automake.in (FOREIGN, GNU, GNITS, AC_CANONICAL_HOST,
AC_CANONICAL_SYSTEM, MOSTLY_CLEAN, DIST_CLEAN): Define as constants.
Adjust usage everywhere.
Alexandre Duret-Lutz [Mon, 5 Nov 2001 17:41:00 +0000 (17:41 +0000)]
* automake.in (libtool_files, libtool_sometimes, common_files,
common_sometimes, config_aux_path): Use qw to simplify definition.
(scan_texinfo_file) <clean_suffixes, predefined_index,
hidden_index>: Likewise.
(scan_autoconf_traces) <traced>: Likewise.
(scan_one_autoconf_file, check_gnu_standards, resolve_linker):
Likewise.
Alexandre Duret-Lutz [Mon, 5 Nov 2001 17:32:09 +0000 (17:32 +0000)]
* automake.in (handle_single_transform_list): Pass $nonansi_obj to
derive_suffix. Don't use an hardcoded 'o' for object extensions.
(derive_suffix): Accept $OBJ as a second argument, don't
hardcode 'o'.
* tests/suffix5.test: New test.
* tests/Makefile.am (TESTS): Add suffix5.test.
Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
Alexandre Duret-Lutz [Mon, 5 Nov 2001 17:26:55 +0000 (17:26 +0000)]
* automake.in (handle_single_transform_list): Don't call
$lang->target_hook for undefinied langages.
* tests/suffix4.test: New test.
* tests/Makefile.am (TESTS): Add suffix4.test.
Reported by Dmitry Mikhin <dmitrym@acres.com.au>.
Akim Demaille [Mon, 5 Nov 2001 17:12:38 +0000 (17:12 +0000)]
Typo.
Akim Demaille [Mon, 5 Nov 2001 09:24:06 +0000 (09:24 +0000)]
* automake.in (@common_sometimes, &handle_configure): No longer
use stamp-hin.
* lib/am/remake-hdr.am: Adjust.
* tests/confh.test: There is no stamp.hin.
Akim Demaille [Thu, 1 Nov 2001 17:39:39 +0000 (17:39 +0000)]
* lib/am/lex.am, lib/am/yacc.am: Use the output file name in
`#line' and multiple inclusion guards.
* lib/ylwrap: Remove debugging code.
(input_dir, input_rx): Move where used.
Use the output file name in `#line'.
Alexandre Duret-Lutz [Thu, 1 Nov 2001 11:45:25 +0000 (11:45 +0000)]
typo in Olivier Louchart-Fletcher email
Alexandre Duret-Lutz [Wed, 31 Oct 2001 18:39:34 +0000 (18:39 +0000)]
* automake.in (transform): Update documentation.
Alexandre Duret-Lutz [Wed, 31 Oct 2001 18:36:58 +0000 (18:36 +0000)]
* m4/gcj.m4 (AM_PROG_GCJ): Define GCJFLAGS if unset.
Reported by Olivier Louchart-Fletcher <olivier@zipworld.com>.
Akim Demaille [Tue, 30 Oct 2001 16:50:14 +0000 (16:50 +0000)]
* automake.in (&create): Reinstall.
Akim Demaille [Tue, 30 Oct 2001 16:44:40 +0000 (16:44 +0000)]
* automake.in (append_exeext): Use macro_delete.
Akim Demaille [Tue, 30 Oct 2001 16:31:18 +0000 (16:31 +0000)]
* automake.in ($verbose): Remove, inherited from
Automake::General.
(&variable_delete): Rename as...
(¯o_delete): this, for consistency.
(&variable_assert): New.
(&variable_value_as_list, &variable_value_as_list_recursive_worker):
Use it.
Akim Demaille [Mon, 29 Oct 2001 22:12:40 +0000 (22:12 +0000)]
* m4/lispdir.m4 (AM_PATH_LISPDIR): Use AC_RUN_LOG to avoid
cluttering configure's stdout.
Akim Demaille [Sun, 28 Oct 2001 14:02:18 +0000 (14:02 +0000)]
* automake.in: Various formatting changes.
(create): Remove, unused.
Akim Demaille [Sun, 28 Oct 2001 14:02:01 +0000 (14:02 +0000)]
* automake.in (&append_exeext): New.
(&am_primary_prefixes): Use it.
Akim Demaille [Sun, 28 Oct 2001 14:01:41 +0000 (14:01 +0000)]
* automake.in (am_primary_prefixes): Now, in accordance with its
comment, return the list of prefixes actually used, not all the
possible prefixes for a primary.
(&handle_libraries, &handle_ltlibraries, &handle_java)
(&am_install_var): Adjust.
* Makefile.am (maintainer-check): Allow `local $_;'.
Akim Demaille [Sun, 28 Oct 2001 14:01:18 +0000 (14:01 +0000)]
* automake.in: Various formatting changes.
(&variable_defined): Second argument is optional.
Akim Demaille [Sun, 28 Oct 2001 14:00:59 +0000 (14:00 +0000)]
* automake.in (&am_primary_prefixes): Now returns a list, not a
hash.
(&handle_libraries, &handle_ltlibraries, &handle_java)
(&am_install_var): Adjust.
Akim Demaille [Sun, 28 Oct 2001 14:00:43 +0000 (14:00 +0000)]
* automake.in (@libtoolize_files, @libtoolize_sometimes): Rename
as...
(@libtool_files, @libtool_sometimes): these.
($libtool_location): Remove, completely replaced by $seen_libtool.
(&require_file_internal): Do not run libtoolize, that's
autoreconf's job.
Akim Demaille [Sun, 28 Oct 2001 14:00:28 +0000 (14:00 +0000)]
* tests/acoutnoq.test, tests/acoutput.test, tests/acoutqnl.test,
* tests/acouttbs.test, tests/auxdir.test, tests/colon.test,
* tests/colon2.test, tests/colon3.test, tests/colon4.test,
* tests/colon5.test, tests/colon6.test, tests/colon7.test,
* tests/conf2.test, tests/config.test, tests/depcomp.test,
* tests/depcomp2.test, tests/discover.test, tests/fpinst2.test,
* tests/fpinstall.test, tests/ldadd.test, tests/libobj7.test,
* tests/libobj8.test, tests/output.test, tests/output2.test,
* tests/output3.test, tests/output4.test, tests/output5.test,
* tests/pr2.test, tests/remake.test, tests/remake2.test,
* tests/remake3.test, tests/scripts.test, tests/stamph.test,
* tests/subdir.test, tests/subdir2.test, tests/subdir4.test,
* tests/tagsub.test, tests/texinfo8.test: Remove PACKAGE and VERSION
assignments.
Akim Demaille [Sun, 28 Oct 2001 14:00:09 +0000 (14:00 +0000)]
* automake.in (&scan_autoconf_traces): Use eq for equality.
Anchor regexps.
Remove dead comment.
(&initialize_per_input): Don't initialize several times the same
vars.
Akim Demaille [Sun, 28 Oct 2001 13:59:54 +0000 (13:59 +0000)]
* automake.in (scan_one_autoconf_file): When using %generalize, be
sure to replace only words. AC_FUNC_OBSTACK was matching
M4_AC_FUNC_OBSTACK.
Akim Demaille [Fri, 26 Oct 2001 10:10:53 +0000 (10:10 +0000)]
Formatting changes.
Akim Demaille [Fri, 26 Oct 2001 10:01:05 +0000 (10:01 +0000)]
* tests/stamph2.test: Strengthen.
* tests/confh2.test, tests/confh3.test: Remove.
These are bad tests: they don't check the effects, but some
internal details in Makefile.
And they are covered by stamph2.test.
Akim Demaille [Fri, 26 Oct 2001 09:59:59 +0000 (09:59 +0000)]
Now that stamp-h's are created by config.status, we don't need to
handle them in Makefile's.
* lib/am/remake-hdr.am (%STAMP%): Just run config.status.
* m4/header.m4 (_AM_STAMP): New.
(_AM_CONFIG_HEADER): Use it.
Akim Demaille [Fri, 26 Oct 2001 09:59:30 +0000 (09:59 +0000)]
* automake.in (&generate_makefile, &handle_texinfo_helper)
(&handle_man_pages, &handle_dist, &handle_configure, &handle_all)
(&define_pretty_variable, &read_am_file, &file_contents_internal)
(&am_install_var, &push_dist_common, &unquote_m4_arg): Simplify
`join (' ', @list)' into `"@list"'.
Akim Demaille [Fri, 26 Oct 2001 09:58:40 +0000 (09:58 +0000)]
* automake.in (@config_fullnames, @config_names): Remove.
(@config_headers): Now contains the actual spec used in
AC_CONFIG_HEADERS.
(&split_config_file_spec): New.
(&handle_tags, &handle_configure, &handle_all, &scan_autoconf_traces)
(&scan_one_autoconf_file): Adjust.
(&scan_one_autoconf_file): Pff, don't think _AM_CONFIG_HEADER is
AM_CONFIG_HEADER.
Akim Demaille [Fri, 26 Oct 2001 09:57:37 +0000 (09:57 +0000)]
* m4/header.m4 (_AM_CONFIG_HEADER): New.
(AM_CONFIG_HEADER): Use it.
Akim Demaille [Fri, 26 Oct 2001 09:56:43 +0000 (09:56 +0000)]
* automake.in (&handle_configure): Use the config.status 2.50
invocation syntax for config files and headers.
autoheader needs the name of the file to create, not from what it
must be created, hence CONFIG_HEADER_FULL is $one_name, not
$one_fullname.
* lib/am/configure.am, lib/am/remake-hdr.am: Likewise.
* tests/confsub.test (SUBDIRS): Adjust to the new config.status
invocation.
Strengthen: Use the non-default config.hin source.
Strengthen: Make sure config.h is properly updated when config.hin
is changed.
Akim Demaille [Fri, 26 Oct 2001 09:56:05 +0000 (09:56 +0000)]
* automake.in (&handle_configure): Seeing Automake files in
@other_input_files is a programming error, not merely something to
ignore.
Factor slightly the code.
Akim Demaille [Fri, 26 Oct 2001 09:55:18 +0000 (09:55 +0000)]
* automake.in ($canonical_location): New.
Use it.
(&require_config_file, $line_error): Remove.
Akim Demaille [Fri, 26 Oct 2001 09:54:04 +0000 (09:54 +0000)]
* automake.in: Use &verbose.
(&generate_makefile, &scan_texinfo_file, &scan_aclocal_m4): Use
Automake::XFile.
Alexandre Duret-Lutz [Thu, 25 Oct 2001 12:56:15 +0000 (12:56 +0000)]
* lib/am/python.am (install-%DIR%PYTHON, uninstall-%DIR%PYTHON):
Have the basename step optional and use %NDIR% instead of %DIR% in
filenames in order to support 'nobase_'.
Alexandre Duret-Lutz [Wed, 24 Oct 2001 12:02:46 +0000 (12:02 +0000)]
* automake.in (handle_languages, handle_single_transform_list,
lang_c_rewrite): Use require_conf_file instead of
require_config_file to require depcomp or compile from
Makefile.am. (This is a part of my patch of 2001-10-15 which got
mistakenly reverted.)
Akim Demaille [Wed, 24 Oct 2001 12:00:56 +0000 (12:00 +0000)]
* tests/confh.test: Since 2001-10-20 Kevin Ryde, stamp-h is
stamp-h1.
Akim Demaille [Wed, 24 Oct 2001 09:04:18 +0000 (09:04 +0000)]
Since the ansi2knr patch from 2001-10-20 Kevin Ryde, `$U' can
appear in Makefile.in in the clean rule.
* tests/cxxansi.test: Adjust.
Akim Demaille [Wed, 24 Oct 2001 06:20:37 +0000 (06:20 +0000)]
* automake.in (&am_print_error, &am_file_error, &am_macro_error)
(&am_target_error, &am_line_error, &am_conf_error, &am_file_warning):
Rename as...
(&print_error, &file_error, ¯o_error, &target_error, &line_error)
(&conf_error, &file_warning): these.
(&file_warning): Fix the prototype and argument handling.
(&am_line_warning): Remove, unused.
Also, repair the misapplication of previous patches.
Akim Demaille [Sun, 21 Oct 2001 21:54:56 +0000 (21:54 +0000)]
Typo.
Akim Demaille [Sun, 21 Oct 2001 21:54:01 +0000 (21:54 +0000)]
* automake.in ($ac_output_location): Replace with...
($ac_config_files_location): this.
(&scan_autoconf_traces): We don't need $file and $line, $here is
enough.
(&scan_one_autoconf_file): Use `$in_ac_output' to store the macro
name (AC_OUTPUT or AC_CONFIG_FILES) for error messages.
Akim Demaille [Sun, 21 Oct 2001 18:12:07 +0000 (18:12 +0000)]
* automake.in (&require_file_with_macro): Use &require_file.
(&read_am_file): Move the definition of $here at its proper place.
Akim Demaille [Sun, 21 Oct 2001 18:11:48 +0000 (18:11 +0000)]
* automake.in ($libtool_line, $seen_pythondir): Replace with...
($libtool_location, $pythondir_location): these.
(&require_conf_file_with_line, &require_conf_file_with_line):
Remove, unused.
(&require_file): Don't forget $where.
(&require_conf_file): Ahem... Fix the name.
(&require_config_file): Invoke &require_conf_file, not yourself.
(&am_line_error): Fix the default am_file_error invocation.
Akim Demaille [Sun, 21 Oct 2001 18:11:28 +0000 (18:11 +0000)]
* automake.in ($seen_lispdir): Replace with...
($am_lispdir_location): this.
(&require_conf_file): New.
(&require_config_file, &require_conf_file_with_line,
(&require_conf_file_with_conf_line): Use it.
(&require_conf_file_with_macro): New.
Akim Demaille [Sun, 21 Oct 2001 18:11:10 +0000 (18:11 +0000)]
* automake.in ($config_header_line, $ac_output_line)
($ac_gettext_line, $package_version_line): Replace with...
($config_header_location, $ac_output_location)
($ac_gettext_location, $package_version_location): these.
(&require_file_with_conf_line, &require_file_with_line): Remove,
no longer used.
Akim Demaille [Sun, 21 Oct 2001 18:10:52 +0000 (18:10 +0000)]
* automake.in (&require_file_internal): Instead of $file and $line,
take $where as first argument.
Adjust all callers.
(&require_file_with_macro): New.
Use it where internal black magic was used to recover the location
of a macro definition.
Akim Demaille [Sun, 21 Oct 2001 18:10:35 +0000 (18:10 +0000)]
* automake.in (&read_am_file): Define and use `$here'.
Avoid using am_line_error.
Akim Demaille [Sun, 21 Oct 2001 18:10:21 +0000 (18:10 +0000)]
* automake.in (&am_target_error): New.
Use it where appropriate instead of...
(&am_line_error): this.
Using it for a target is a croak error.
Akim Demaille [Sun, 21 Oct 2001 18:10:03 +0000 (18:10 +0000)]
* automake.in (&am_macro_error): New.
Use it where appropriate instead of...
(&am_line_error): this.
Using it for a macro is a croak error.
Akim Demaille [Sun, 21 Oct 2001 18:09:50 +0000 (18:09 +0000)]
* tests/asm.test: s/AC_PROG_AS/AM_PROG_AS/.
AC_OUTPUT a Makefile.
Akim Demaille [Sun, 21 Oct 2001 18:09:36 +0000 (18:09 +0000)]
* automake.in (%var_line): Rename as...
(%var_location): this.
Use it consistently as the location where the macro is defined,
file and line when possible, otherwise just file.
(&read_am_file): Rules have their own location tracking, don't
pollute %var_location.
Akim Demaille [Sun, 21 Oct 2001 18:09:24 +0000 (18:09 +0000)]
* automake.in (am_line_error): Clarify.
Akim Demaille [Sun, 21 Oct 2001 18:09:09 +0000 (18:09 +0000)]
* automake.in (&am_print_error): Set $exit_status since all your
users do.
(&am_error, &am_file_error, &am_line_error, &am_conf_error):
Don't.
(&am_conf_line_error, &am_conf_line_warning): Remove.
Adjust callers to use &am_file_error and...
(&am_file_warning): new.
Akim Demaille [Sun, 21 Oct 2001 18:05:38 +0000 (18:05 +0000)]
* m4/regex.m4: Use AC_LIBOBJ.
Require 2.50, and use AC_LIBSOURCES freely.
* tests/asm.tests: Formatting changes.
Exercise AM_PROG_AS.
Akim Demaille [Sun, 21 Oct 2001 18:05:22 +0000 (18:05 +0000)]
* tests/install.test: This test is an empty shell, do not run
automake.
* tests/Makefile.am (TESTS): Don't run it.
* tests/defs (ACLOCAL): When using gettext, pass in the installed
aclocaldir.
* tests/subdircond.test (SUBDIRS): AM_GNU_GETTEXT needs automake
--add--missing.
* tests/obsolete2.test: Remove, merged into...
* tests/obsolete.test: here.
Both aclocal and automake should complain.
Akim Demaille [Sun, 21 Oct 2001 18:05:03 +0000 (18:05 +0000)]
* automake.in (scan_autoconf_traces): Don't recognize AC_SUBSTs
for symbols which cannot be Make macro names.
(scan_one_autoconf_file): `$here' is new.
Use it consistently instead of `1' to remember a token was seen.
Akim Demaille [Sun, 21 Oct 2001 18:04:33 +0000 (18:04 +0000)]
* tests/subdircond.test: Requires gettext.
* tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
* tests/libobj6.test, tests/libobj9.test, tests/libtool.test,
* tests/libtool2.test, tests/ltdeps.test, tests/ltlibobjs.test,
* tests/nolink.test, tests/obsolete.test, tests/pr72.test,
* tests/sinclude.test, tests/subdircond.test, tests/subobj4.test:
Produce valid configure.in, use aclocal appropriately, declare
when libtool is required.
Akim Demaille [Sun, 21 Oct 2001 18:04:16 +0000 (18:04 +0000)]
* m4/lex.m4: Don't run AC_DECL_YYTEXT, Autoconf does.
* automake.texi (Macros, Yacc and Lex): Adjust.
* automake.in ($seen_decl_yytext): Rename as...
($seen_prog_lex): this.
(&scan_autoconf_traces): Add AC_PROG_LEX support.
(&scan_one_autoconf_file, &lang_lex_finish): Adjust.
Akim Demaille [Sun, 21 Oct 2001 18:03:57 +0000 (18:03 +0000)]
* automake.in (&scan_autoconf_traces): Add support for
AM_PATH_LISPDIR and AM_PATH_PYTHON.
Akim Demaille [Sun, 21 Oct 2001 18:03:20 +0000 (18:03 +0000)]
* tests/defs (ACLOCAL): Point to the installed aclocaldir is
libtool is required.
* tests/lex.test: Run AC_INIT once.
* tests/ldflags.test, tests/listval.test, tests/suffix2.test:
Libtool is required.
* tests/header.test: Built a correct configure.in.
* tests/defun2.test (configure.in): Be a bit respectful with
Autoconf, close the macro invocations.
* tests/confdeps.test: Even when not using aclocal, aclocal.m4
must be correct.
* automake.in (scan_autoconf_traces): Add support for
AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM, A[CM]_PROG_LIBTOOL,
AM_CONFIG_HEADER, AM_MAINTAINER_MODE.
* tests/condincl.test (target): Better pattern, to avoid matching
the definition of `target_alias' which is now properly discovered
as an AC_SUBST by traces.
* cond4.test: Better grep pattern: After all, why shouldn't
TWO_FALSE be AC_SUBST properly.
* tests/installsh.test (AUTOMAKE, ACLOCAL): Adjust.
Tom Tromey [Sat, 20 Oct 2001 19:17:16 +0000 (19:17 +0000)]
2001-10-20 Kevin Ryde <user42@zip.com.au>
* lib/am/ansi2knr.am (mostlyclean-kr): Only rm *_.c when
actually using ansi2knr.
Tom Tromey [Sat, 20 Oct 2001 19:13:49 +0000 (19:13 +0000)]
2001-10-20 Kevin Ryde <user42@zip.com.au>
* automake.in (handle_configure): Always put a number on $stamp_name,
to match AM_CONFIG_HEADER.