platform/upstream/automake.git
20 years ago* automake.texi (Optional) <AC_SUBST>: Grammar fixes.
Alexandre Duret-Lutz [Sun, 9 Nov 2003 19:05:24 +0000 (19:05 +0000)]
* automake.texi (Optional) <AC_SUBST>: Grammar fixes.

20 years ago* automake.in (check_gnu_standards): Install COPYING only if
Alexandre Duret-Lutz [Sun, 9 Nov 2003 11:55:36 +0000 (11:55 +0000)]
* automake.in (check_gnu_standards): Install COPYING only if
none of COPYING, COPYING.LIB, or COPYING.LESSER exist.  Do not
overwrite the license otherwise.
* tests/Makefile.am (TESTS): Add license.test.
* tests/license.test: New file.

20 years ago* lib/mkinstalldirs: Mention automake-patches@gnu.org and
Alexandre Duret-Lutz [Sun, 9 Nov 2003 00:10:50 +0000 (00:10 +0000)]
* lib/mkinstalldirs: Mention automake-patches@gnu.org and
bug-automake@gnu.org.
* lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
Likewise.  Also add support for --help and --version.
* lib/py-compile, lib/ylwrap: Likewise, and reindent.

20 years ago* lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
Alexandre Duret-Lutz [Sat, 8 Nov 2003 16:07:45 +0000 (16:07 +0000)]
* lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
* lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
* lib/am/java.am (JAVACFLAGS): Remove.
* tests/dejagnu3.test: Check that the environment value
of RUNTESTFLAGS get passed down to runtest.
Suggested by Mark Mitchell.

20 years ago* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
Alexandre Duret-Lutz [Sat, 8 Nov 2003 14:03:35 +0000 (14:03 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
(?GENERIC?%EXT%.lo): Do not echo compile command manually, this
breaks `make -s'.  Instead, fold the compile command on two lines,
so that it take less space on the display.
Suggested by Karl Berry and William Fulton.

20 years ago* lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
Alexandre Duret-Lutz [Sat, 8 Nov 2003 13:01:13 +0000 (13:01 +0000)]
* lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
(%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
to select $(srcdir) or `.' builds.
(INFO_DEPS): Define here.
* lib/am/texinfos.am (dist-info): Strip filename starting with
"$(srcdir)/".
* automake.in (output_texinfo_build_rules): Take a new argument
$insrc, and adjust substitutions in 'texibuild'.
(handle_texinfo_helper): Compute a regex of all user-cleaned
files, and use this to select whether to build .info files in `.'
or $(srcdir).  Give an account of the $(srcdir) vs `.' debacle.
Alway build the version.texi and stamp files in $(srcdir).  Do not
define INFO_DEPS.
* tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
and txinfo25.test.
* tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
New files.
* tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
tests/vtexi.test: Adjust to new rules.

20 years ago* m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
Alexandre Duret-Lutz [Wed, 5 Nov 2003 21:31:34 +0000 (21:31 +0000)]
* m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
* configure.ac: Require Autoconf 2.58a, and check for 2.58.

20 years ago* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
Alexandre Duret-Lutz [Mon, 27 Oct 2003 21:17:15 +0000 (21:17 +0000)]
* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
* tests/Makefile.am (TESTS): Add autohdr3.test
* tests/autohdr3.test: New file.

20 years ago* automake.in (handle_configure): Rename am__configure_deps
Alexandre Duret-Lutz [Mon, 27 Oct 2003 07:52:00 +0000 (07:52 +0000)]
* automake.in (handle_configure): Rename am__configure_deps
as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
$configure_ac.  Define am__configure_deps as am__aclocal_m4_deps
+ $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4).  Do not define
ACLOCAL_M4_DEPS while processing configure.am.
(make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
(scan_aclocal_m4): Do not distribute aclocal.m4, this
is done from lib/am/configure.am.
* lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
$(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
$(am__configure_deps) or $(am__aclocal_m4_deps).
* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.

20 years ago* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
Alexandre Duret-Lutz [Sun, 26 Oct 2003 22:07:46 +0000 (22:07 +0000)]
* lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
$(am__configure_deps).

20 years ago* automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
Alexandre Duret-Lutz [Sun, 26 Oct 2003 21:20:11 +0000 (21:20 +0000)]
* automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
sources, and without using require_file.  Define %CONFIG_H_DEPS%
and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
* lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
of (srcdir)/%CONFIG_HIN%.  Output the $(srcdir)/%CONFIG_HIN%
rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
* tests/autohdr4.test: New file.
* tests/Makefile.am (TESTS): Add autohdr4.test.
* tests/config.test: Do not grep, run things to see if they work.

20 years ago* tests/output7.test: Populate sub/ with a dummy file, so that it
Alexandre Duret-Lutz [Sat, 25 Oct 2003 21:49:51 +0000 (21:49 +0000)]
* tests/output7.test: Populate sub/ with a dummy file, so that it
is not empty.  This fixes a failure reported by Patrick Welche.
* lib/am/distdir.am: Add note about tar's `-o' option and empty
directories.

20 years ago* lib/ylwrap: Typo in regex.
Alexandre Duret-Lutz [Fri, 24 Oct 2003 19:33:17 +0000 (19:33 +0000)]
* lib/ylwrap: Typo in regex.

20 years ago* lib/Automake/XFile.pm: Don't assume -j is solo.
Akim Demaille [Thu, 23 Oct 2003 14:29:22 +0000 (14:29 +0000)]
* lib/Automake/XFile.pm: Don't assume -j is solo.
Issue a more-informative diagnostic.
Problems reported by Eric Sunshine.

20 years ago* m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
Alexandre Duret-Lutz [Tue, 21 Oct 2003 16:29:04 +0000 (16:29 +0000)]
* m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
Always define lispdir.
* lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
$(EMACS) to decide whether _LISP files must be installed,
not $(lispdir).
* doc/automake.texi (Emacs Lisp): Mention the two ways to install
non byte-compiled Emacs lisp files.
* tests/lisp4.test, tests/lisp5.test: Check "make install"
when EMACS=no.
Suggested by Simon Josefsson.

20 years agotypo
Alexandre Duret-Lutz [Tue, 21 Oct 2003 16:11:54 +0000 (16:11 +0000)]
typo

20 years ago* NEWS: Clarify the entry about multiple conditional definitions
Alexandre Duret-Lutz [Tue, 21 Oct 2003 13:11:38 +0000 (13:11 +0000)]
* NEWS: Clarify the entry about multiple conditional definitions
of _PROGRAMS, _LDADD, and _LIBADD.
Report from Simon Josefsson.

20 years ago* lib/am/install.am (install-strip): Override install_sh_PROGRAM
Alexandre Duret-Lutz [Tue, 21 Oct 2003 13:05:55 +0000 (13:05 +0000)]
* lib/am/install.am (install-strip): Override install_sh_PROGRAM
too.
Report from Elmar Hoffmann.

20 years ago* aclocal.in ("MAIN", usage, parse_arguments): Move near
Alexandre Duret-Lutz [Mon, 6 Oct 2003 22:42:23 +0000 (22:42 +0000)]
* aclocal.in ("MAIN", usage, parse_arguments): Move near
the end, so "MAIN" can use prototypes.
(scan_configure): Move later too, for the sake of prototypes.
(scan_configure_dep): Fix setting of $scanned_configure_dep.
(trace_used_macros): Do not take any argument.

20 years ago* tests/stdlib2.test: Check AM_LDFLAGS alone.
Alexandre Duret-Lutz [Mon, 6 Oct 2003 22:18:50 +0000 (22:18 +0000)]
* tests/stdlib2.test: Check AM_LDFLAGS alone.

20 years ago* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
Alexandre Duret-Lutz [Mon, 6 Oct 2003 21:56:45 +0000 (21:56 +0000)]
* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
versions.

20 years ago* automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
Alexandre Duret-Lutz [Mon, 6 Oct 2003 21:47:34 +0000 (21:47 +0000)]
* automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
* tests/stdlib2.test: New file.
* tests/Makefile.am (TESTS): Add stdlib2.test.
Report from Kevin P. Fleming.

20 years ago* tests/defs.in: For required=runtest, check that we are using
Alexandre Duret-Lutz [Fri, 3 Oct 2003 20:22:29 +0000 (20:22 +0000)]
* tests/defs.in: For required=runtest, check that we are using
a DejaGnu that supports specifying the program on the command-line.

20 years agoFor Debian Bug #213524:
Alexandre Duret-Lutz [Fri, 3 Oct 2003 08:58:00 +0000 (08:58 +0000)]
For Debian Bug #213524:
* lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
stderr and stdout, and grep only the first line while testing
install-info --version's output.  This revert part of the change
from 2001-05-18.

20 years ago* m4/amversion.in: Add (C) to the Copyright notice.
Akim Demaille [Wed, 1 Oct 2003 07:14:51 +0000 (07:14 +0000)]
* m4/amversion.in: Add (C) to the Copyright notice.

20 years ago* lib/Automake/XFile.pm: Use Errno.
Akim Demaille [Wed, 1 Oct 2003 07:14:32 +0000 (07:14 +0000)]
* lib/Automake/XFile.pm: Use Errno.
(lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
<http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.

20 years ago * lib/Automake/Options.pm (_process_option_list): Recognize
Tom Tromey [Tue, 30 Sep 2003 19:05:54 +0000 (19:05 +0000)]
* lib/Automake/Options.pm (_process_option_list): Recognize
no-dist.
* NEWS: Update.
* doc/automake.texi (Options): Document no-dist.
* automake.in (check_cygnus): Set no-dist option.
(handle_dist): Recognize no-dist.
* tests/nodist3.test: New file.
* tests/Makefile.am (TESTS): Added nodist3.test.

20 years ago* automake.in (handle_clean): Take $makefile as argument, and
Alexandre Duret-Lutz [Mon, 29 Sep 2003 20:21:19 +0000 (20:21 +0000)]
* automake.in (handle_clean): Take $makefile as argument, and
define %MAKEFILE% while processing clean.am.
(generate_makefile): Pass $makefile to handle_clean.
* lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
not Makefile.
* tests/gnumake.test: New file.
* tests/Makefile.am (TESTS): Add gnumake.test.
Report from Braden N. McDaniel.

20 years ago* doc/automake.texi (Scripts): Update the example about automake.
Alexandre Duret-Lutz [Fri, 26 Sep 2003 17:35:08 +0000 (17:35 +0000)]
* doc/automake.texi (Scripts): Update the example about automake.
Mention `dist_' for distributed scripts.

20 years ago* lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
Alexandre Duret-Lutz [Fri, 26 Sep 2003 17:28:52 +0000 (17:28 +0000)]
* lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
Suggested by Eric Sunshine.

20 years ago* README: More mailing lists.
Alexandre Duret-Lutz [Thu, 25 Sep 2003 07:42:55 +0000 (07:42 +0000)]
* README: More mailing lists.

20 years ago* NEWS: Mention the switch to GNU FDL for the manual.
Alexandre Duret-Lutz [Wed, 24 Sep 2003 22:02:06 +0000 (22:02 +0000)]
* NEWS: Mention the switch to GNU FDL for the manual.

20 years ago* lib/install-sh (src, dst): Protect names starting with `-',
Alexandre Duret-Lutz [Wed, 24 Sep 2003 21:57:26 +0000 (21:57 +0000)]
* lib/install-sh (src, dst): Protect names starting with `-',
as in mkinstalldirs.

20 years ago* configure.in: Rename as ...
Alexandre Duret-Lutz [Wed, 24 Sep 2003 21:20:06 +0000 (21:20 +0000)]
* configure.in: Rename as ...
* configure.ac: ... this.
* README: s/configure.in/configure.ac/.

20 years ago* doc/fdl.texi: New file.
Alexandre Duret-Lutz [Wed, 24 Sep 2003 21:11:24 +0000 (21:11 +0000)]
* doc/fdl.texi: New file.
* doc/Makefile.am (automake_TEXINFOS): New variable.
* doc/automake.texi (Copying This Manual): New appendix, include
fdl.texi.
(Macro and Variable Index, General Index): Move as subsections of ...
(Indices): This new appendix.

20 years ago* doc/automake.texi: Refer to configure.ac instead of configure.in.
Alexandre Duret-Lutz [Wed, 24 Sep 2003 20:54:46 +0000 (20:54 +0000)]
* doc/automake.texi: Refer to configure.ac instead of configure.in.

20 years ago* automake.texi: Move ...
Alexandre Duret-Lutz [Tue, 23 Sep 2003 22:39:11 +0000 (22:39 +0000)]
* automake.texi: Move ...
* doc/automake.texi: ... here.
* doc/Makefile.am: New file.
* configure.in: Output doc/Makefile.
* Makefile.am (SUBDIRS): Add doc.
(ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.

20 years ago* aclocal.in (write_aclocal): Consider files with relative
Alexandre Duret-Lutz [Tue, 23 Sep 2003 19:32:58 +0000 (19:32 +0000)]
* aclocal.in (write_aclocal): Consider files with relative
paths as local to the project, i.e., subject to m4_include.
* tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
is also used for .m4 files in the outer project.

20 years agoSupport for multiple inputs in AC_CONFIG_FILES.
Alexandre Duret-Lutz [Tue, 23 Sep 2003 08:14:35 +0000 (08:14 +0000)]
Support for multiple inputs in AC_CONFIG_FILES.
Requested long ago by Harlan Stenn.
* automake.in (handle_dist): Remove unused argument $makefile.
(handle_subdirs): Expect SUBDIRS elements in $relative_dir,
not $am_relative_dir.
(rewrite_inputs_into_dependencies): Allow $add_srcdir to
be a filename that must always be prefixed by $(srcdir) or
$(top_srcdir).
(handle_configure, generate_makefile): Revamp to make the
Makefile.am, Makefile.in, Makefile more independent.
(locate_am): New function.
(scan_configure_dep, parse_arguments): Use locate_am.
(MAIN): Adjust call to generate_makefile.
* lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
of %MAKEFILE%.  %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
* tests/output6.test, tests/output7.test: New files.
* tests/Makefile.am (TESTS): Add them.
* automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
multiple inputs are scanned.

20 years agomissing file from 2003-08-29
Alexandre Duret-Lutz [Mon, 22 Sep 2003 22:05:27 +0000 (22:05 +0000)]
missing file from 2003-08-29

20 years ago* Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
Alexandre Duret-Lutz [Sat, 13 Sep 2003 21:54:26 +0000 (21:54 +0000)]
* Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
and lib/Automake/Struct.pm from Autoconf.
* lib/Automake/XFile.pm: Update comment, Automake is now
the master for this file.  Cosmetic changes.

20 years ago* lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
Akim Demaille [Fri, 12 Sep 2003 08:37:57 +0000 (08:37 +0000)]
* lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
Reported by Gary Vaughan.
(&find_file): Walk the @include in forward order.

20 years ago* lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
Akim Demaille [Tue, 9 Sep 2003 12:27:28 +0000 (12:27 +0000)]
* lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
trailing files.

20 years agoChanges to m4_included files should also cause aclocal.m4 to change.
Alexandre Duret-Lutz [Sun, 7 Sep 2003 13:26:44 +0000 (13:26 +0000)]
Changes to m4_included files should also cause aclocal.m4 to change.
* aclocal.in (m4_include_rx): New variable.
(scan_configure_dep): New function.
(scan_configure, add_file): Simplify using scan_configure_dep.
* tests/Makefile.am (TESTS): Add acloca13.test.
* tests/aclocal13.test: New file.

20 years ago* tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
Alexandre Duret-Lutz [Sun, 7 Sep 2003 12:44:44 +0000 (12:44 +0000)]
* tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
that we have fake version in the $PATH.

20 years ago* aclocal.in (add_file): Remove useless filling of $output, probably
Alexandre Duret-Lutz [Sun, 7 Sep 2003 10:14:25 +0000 (10:14 +0000)]
* aclocal.in (add_file): Remove useless filling of $output, probably
left a after CVS conflict.  This code is now in write_aclocal.

20 years ago* aclocal.in (configure_ac): Do not call require_configure_ac
Alexandre Duret-Lutz [Sun, 7 Sep 2003 09:55:36 +0000 (09:55 +0000)]
* aclocal.in (configure_ac): Do not call require_configure_ac
before parsing the options.
* automake.in (configure_ac): Likewise.
* lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
find it.
* lib/Automake/Configure_ac.pm (require_configure_ac):
find_configure_ac never return an undefined value, so test
the file's existence instead.
* tests/Makefile.am (TESTS): Add help.test.
* tests/help.test: New file.

20 years ago* lib/Automake/XFile.pm: Update to use ChannelDefs.
Alexandre Duret-Lutz [Sat, 6 Sep 2003 21:10:40 +0000 (21:10 +0000)]
* lib/Automake/XFile.pm: Update to use ChannelDefs.
(close): Call Automake::FileUtils::handle_exec_errors on errors.
* automake.in (scan_autoconf_files): Exit with $?=63 on version
mismatch.
(scan_autoconf_traces): Likewise.  Close the autoconf pipe to
capture abnormal exits.
* aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
instead.
(trace_used_macros): Close the autom4te pipe to capture abnormal exits.
* lib/missing: When a tool has run and exited with $?=63, emulate
it.  Adjust the diagnostic and pretend the tool is tool old in this
case.  Use an emacs-updated "scriptversion" variable.
* configure.in: Output tests/aclocal-${APIVERSION} and
tests/automake-${APIVERSION}.
* tests/aclocal.in, tests/automake.in,
tests/missing.test, tests/missing2.test: New files.
* tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
* tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
already testing for this.
* tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
configure.in so that aclocal works.
* tests/defun.test: Quote the AC_DEFUN body.
* tests/Makefile.am (TESTS): Add missing.test and missing2.test,
and remove dup3.test.
(check_SCRIPTS): Add aclocal and automake.

20 years ago* tests/unused.test: Quote AC_DEFUN arguments.
Alexandre Duret-Lutz [Sat, 6 Sep 2003 16:25:37 +0000 (16:25 +0000)]
* tests/unused.test: Quote AC_DEFUN arguments.

20 years agoSpelling and minor grammar fixes.
Paul Eggert [Sat, 6 Sep 2003 05:36:57 +0000 (05:36 +0000)]
Spelling and minor grammar fixes.

20 years ago* lib/config.sub, lib/config.guess, lib/texinfo.tex,
Alexandre Duret-Lutz [Mon, 1 Sep 2003 22:05:16 +0000 (22:05 +0000)]
* lib/config.sub, lib/config.guess, lib/texinfo.tex,
lib/config-ml.in, lib/symlink-tree: New upstream versions.

20 years ago* tests/yacc7.test: Require bison.
Alexandre Duret-Lutz [Sun, 31 Aug 2003 21:24:45 +0000 (21:24 +0000)]
* tests/yacc7.test: Require bison.

20 years ago* aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
Alexandre Duret-Lutz [Sun, 31 Aug 2003 21:15:57 +0000 (21:15 +0000)]
* aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
($underquoted_manual_once): New variable.
* automake.texi (Extending aclocal): Document this.

20 years ago* aclocal.in (@file_order): New variable, to make sure
Alexandre Duret-Lutz [Thu, 28 Aug 2003 22:49:58 +0000 (22:49 +0000)]
* aclocal.in (@file_order): New variable, to make sure
files are output in the opposite order of the -I arguments.
(scan_file): Fill it.
(trace_used_macros, write_aclocal): Use it.
(scan_m4_files): Reverse the directory contents, so that
macros from the lexicographically greatest files are preferred.
* tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
New files.
* tests/Makefile.am (TESTS): Add them.

20 years agoFor Debian Bug #206299:
Alexandre Duret-Lutz [Sun, 24 Aug 2003 22:34:59 +0000 (22:34 +0000)]
For Debian Bug #206299:
* automake.in ($configure_deps_greatest_timestamp,
$output_deps_greatest_timestamp): New variables.
(initialize_per_input): Reset $output_deps_greatest_timestamp.
(scan_autoconf_traces, scan_autoconf_files, read_am_file):
Update $configure_deps_greatest_timestamp and
$output_deps_greatest_timestamp
(generate_makefile): Rewrite the logic to decide whether
to rewrite the output.  Move the leading dup_channel_setup
and trailing drop_channel_setup to MAIN, so that
drop_channel_setup is executed for all exit paths.
* tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
* tests/distcom6.test: New file.  Report from Scott James Remnant.
* tests/Makefile.am (TESTS): Add distcom6.test.

20 years ago* configure.in: Require Autoconf 2.57b to be sure
Alexandre Duret-Lutz [Sun, 24 Aug 2003 19:56:07 +0000 (19:56 +0000)]
* configure.in: Require Autoconf 2.57b to be sure
aclocal can use autom4te --language Autoconf-without-aclocal-m4.
* m4/init.m4: Likewise.  Move the AC_PREREQ and m4_pattern_allow
calls inside the AM_INIT_AUTOMAKE macro.
* m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
AC_PREREQ calls inside the macros.
* m4/header.m4: Remove AC_PREREQ.

20 years ago* automake.in (file_contents_internal): Do not add newlines before
Alexandre Duret-Lutz [Sun, 24 Aug 2003 02:16:31 +0000 (02:16 +0000)]
* automake.in (file_contents_internal): Do not add newlines before
empty actions.

20 years ago* aclocal.in (write_aclocal): Take an output file and list of
Alexandre Duret-Lutz [Sun, 24 Aug 2003 02:00:58 +0000 (02:00 +0000)]
* aclocal.in (write_aclocal): Take an output file and list of
used macros in arguments and make up the file contents here.
(trace_used_macros): New function.
(add_file): Do not update $output.
($output): Delete.
(MAIN): Call trace_used_macros.  Then rewrite aclocal.m4 only
for these traced macros.  This should shorten aclocal.m4 by
stripping out unused macros.
* automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
* tests/aclibobj.test: Make sure configure.in exists by the time
aclocal runs.
* tests/aclocal8.test: New file.
* tests/Makefile.am (TESTS): Add aclocal8.test.
Suggested by Bruno Haible and Akim Demaille.

20 years ago* lib/Automake/Configure_ac.pm (&find_configure_ac)
Akim Demaille [Thu, 21 Aug 2003 08:49:25 +0000 (08:49 +0000)]
* lib/Automake/Configure_ac.pm (&find_configure_ac)
(&require_configure_ac): Accept an optional directory argument.
($configure_ac): Remove.
* aclocal.in, automake.in ($configure_ac): New.
* lib/Automake/Variable.pm: Don't use $configure_ac, just
configure.ac.

20 years ago* lib/Automake/FileUtils.pm: More perldoc.
Akim Demaille [Wed, 20 Aug 2003 17:28:05 +0000 (17:28 +0000)]
* lib/Automake/FileUtils.pm: More perldoc.
(&up_to_date_p): New.

20 years agoFix for PR automake/398:
Alexandre Duret-Lutz [Sun, 17 Aug 2003 18:09:10 +0000 (18:09 +0000)]
Fix for PR automake/398:
* m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
set.  Display `none' instead of `:' and $PYTHON is set to `:'
when no suitable interpreter is found.  Honor ACTION-IF-FOUND and
ACTION-IF-NOT-FOUND.
* automake.texi (Python): Document ACTION-IF-FOUND and
ACTION-IF-NOT-FOUND.
* tests/python4.test, tests/python5.test, tests/python6.test,
tests/python7.test, tests/python8.test, tests/python9.test: New
files.
* tests/Makefile.am (TESTS): Add them.
Report from Per Cederqvist.

20 years agoFix for PR automake/399:
Alexandre Duret-Lutz [Wed, 13 Aug 2003 21:29:58 +0000 (21:29 +0000)]
Fix for PR automake/399:
* m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
Report from Per Cederqvist.

20 years ago* lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
Raja R Harinath [Tue, 12 Aug 2003 23:32:59 +0000 (23:32 +0000)]
* lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
(not): Replace loop with 'map'.
* lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
* lib/Automake/Item.pm (not_alwasy_defined_in_cond):
Don't 'simplify' result of 'invert', since it's already in
canonical form.
* lib/Automake/Rule.pm (define): Replace loop with
'not_always_defined_in_cond'.

20 years agotypos in comments
Raja R Harinath [Tue, 12 Aug 2003 22:33:44 +0000 (22:33 +0000)]
typos in comments

20 years ago* lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
Alexandre Duret-Lutz [Tue, 12 Aug 2003 17:52:09 +0000 (17:52 +0000)]
* lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
* lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
* lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
(new): Adjust to call Automake::ItemDef::new.
(comment, location, owner): Delete.  Now inherited from ItemDef.
* lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
(_new): Adjust to call Automake::Item::new.
(name, def, rdef, _set, conditions, not_always_defined_in_cond):
Delete.  How inherited from Item, where `_set' is called `set'.
* automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
(suffix_rules_default): Delete.  Now
Automake::Rule::_suffix_rules_default
(suffixes): Delete.  Now Automake::Rule::suffixes.
(TARGET_AUTOMAKE, TARGET_USER): Delete.  Now
Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
(%targets, %target_source, %target_name, %target_owner): Delete,
replaced by the Rule and RuleDef classes.
(dependencies, depend, actions): Delete.  Now in Automake::Rule.
(suffix_rules, register_suffix_rule): Likewise.
(KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
(known_extensions_list): Delete.  Now
Automake::Rule::_known_extensions_list.
(target_conditions): Delete.  Now inherited by Automake::Rule
from Automake::Item::conditions.
(rule_define): Delete.  Now Automake::Rule::define.  Adjust all
callers.
(target_defined): Delete.  Now Automake::Rule::rule.  Adjust all
callers.
(initialize_per_input): Adjust to call Automake::Rule::reset.
(err_target, err_cond_target, msg_cond_target, msg_target,
reject_target): Delete.  Now defined in Automake::Rule as
err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
Adjust all callers.
(handle_languages): Call suffix_rules_count.
* tests/location.test: Adjust expected diagnostics.  We now display
$(EXEEXT) accurately.

20 years agoRevert the fix for PR automake/291:
Alexandre Duret-Lutz [Sat, 9 Aug 2003 22:34:30 +0000 (22:34 +0000)]
Revert the fix for PR automake/291:
* lib/Automake/Variable.pm (define): Do not warn about variables
starting with `_' which are an issue on NEWS-OS 4.2R.  According
to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
was released on 1996 and is not in wide use.  On the other hand,
variables starting with `_' are mandatory in several situations,
so diagnosing them is more annoying than useful.
* tests/canon5.test: Do not use -Wno-portability.
* tests/vars2.test: Delete.
* tests/Makefile.am (TESTS): Remove vars2.test.
Suggested by Jim Meyering.

20 years ago* lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
Raja R Harinath [Sat, 9 Aug 2003 20:11:45 +0000 (20:11 +0000)]
* lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
* lib/Automake/tests/DisjConditions.pl (test_ambig): Test
Automake::Disjunctions::ambiguous_p.

20 years agoignore Config.pm
Alexandre Duret-Lutz [Sat, 9 Aug 2003 12:04:10 +0000 (12:04 +0000)]
ignore Config.pm

20 years ago* lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
Alexandre Duret-Lutz [Thu, 7 Aug 2003 21:20:12 +0000 (21:20 +0000)]
* lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
* lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
* automake.in (rule_define): Adjust usage.
* lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.

20 years ago* lib/Automake/Options.pm: New file.
Alexandre Duret-Lutz [Thu, 7 Aug 2003 20:30:04 +0000 (20:30 +0000)]
* lib/Automake/Options.pm: New file.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
* automake.in (FOREIGN, GNU, GNITS, $default_strictness)
($default_strictness_name, $strictness, $strictness_name)
(%options, %global_options, process_option_list)
(set_strictness): Remove, now in Options.pm.
(initialize_per_input): Call Automake::Options::reset.
(handle_options, get_object_extension, get_object_extension)
(handle_languages, handle_single_transform_list, handle_compile)
(handle_texinfo_helper, handle_man_pages, handle_dist)
(handle_configure, do_check_merge_target)
(handle_factored_dependencies, handle_tests)
(handle_minor_options, scan_autoconf_traces, check_cygnus)
(lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
(make_paragraphs, am_install_var, parse_arguments): Adjust
to set and read options via the new interface.

20 years ago* Makefile.am (maintainer-check): Update perllibdir.
Raja R Harinath [Thu, 7 Aug 2003 11:21:45 +0000 (11:21 +0000)]
* Makefile.am (maintainer-check): Update perllibdir.
* lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
(EXTRA_DIST): Add Config.in.
* Makefile.in, lib/Automake/Makefile.in: Regenerate.
* tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
$perllibdir.

20 years ago* configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
Raja R Harinath [Thu, 7 Aug 2003 00:32:29 +0000 (00:32 +0000)]
* configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
from the builddir too, to pick up Automake::Config.
* tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
* configure: Regenerate.
* automake.in (BEGIN): Handle multiple directories in $perllibdir.
* aclocal.in (BEGIN): Likewise.

20 years ago* tests/ltcond.test: Thinko.
Alexandre Duret-Lutz [Wed, 6 Aug 2003 23:36:52 +0000 (23:36 +0000)]
* tests/ltcond.test: Thinko.

20 years ago* lib/Automake/Config.in: New file.
Alexandre Duret-Lutz [Wed, 6 Aug 2003 22:21:07 +0000 (22:21 +0000)]
* lib/Automake/Config.in: New file.
* lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
CLEANFILES): New variables.
(Config.pm): New rule.
* Makefile.am (maintainer-check): Adjust expected differences
between automake.in and automake.
* aclocal.in, automake.in: Use Automake::Config.

20 years ago* lib/Automake/Config.in: New file.
Alexandre Duret-Lutz [Wed, 6 Aug 2003 21:20:15 +0000 (21:20 +0000)]
* lib/Automake/Config.in: New file.
* lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
CLEANFILES): New variables.
(Config.pm): New rule.
* Makefile.am (maintainer-check): Adjust expected differences
between automake.in and automake.
* aclocal.in, automake.in: Use Automake::Config.

20 years ago* tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
Alexandre Duret-Lutz [Tue, 5 Aug 2003 19:44:00 +0000 (19:44 +0000)]
* tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.

20 years ago* automake.in (handle_texinfo_helper): Use the user definition
Alexandre Duret-Lutz [Tue, 5 Aug 2003 09:25:17 +0000 (09:25 +0000)]
* automake.in (handle_texinfo_helper): Use the user definition
of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
* tests/txinfo22.test: New file.
* tests/Makefile.am (TESTS): Add txinfo22.test.
Report from Tom Tromey.

20 years ago* lib/Automake/Variable.pm (@EXPORT): Remove
Raja R Harinath [Sun, 3 Aug 2003 21:17:32 +0000 (21:17 +0000)]
* lib/Automake/Variable.pm (@EXPORT): Remove
traverse_variable_recursively and
require_variables_for_variable.
(require_variables_for_variable, traverse_variable_recursively)
(_traverse_variable_recursively_worker): Convert to
Automake::Variable methods, remove support for being
invoked with variable names, and rename to ...
(requires_variables, traverse_recursively)
(_do_recursive_traversal): ... these.
(_value_as_list_recursive_worker, transform_variable_recursively):
Update to reflect changes.
* automake.in (handle_LIBOBJS, handle_ALLOCA)
(handle_libraries, handle_ltlibraries, am_primary_prefixes):
Likewise.
(define_objects_from_sources): Fix typo in comment.

20 years ago(handle_source_transform): Replace 'grep' with 'map'.
Raja R Harinath [Sat, 2 Aug 2003 14:14:59 +0000 (14:14 +0000)]
(handle_source_transform): Replace 'grep' with 'map'.
(register_language): Replace 'grep' with 'foreach' modifier.

20 years ago* lib/Automake/Variables.pm (variables): Return a list of
Raja R Harinath [Sat, 2 Aug 2003 04:27:03 +0000 (04:27 +0000)]
* lib/Automake/Variables.pm (variables): Return a list of
Automake::Variable instances, not a list of strings.
(dump): Remove support for being invoked with a string.
(variables_dump): Adapt to these changes.
* automake.in (check_typos): Likewise.
(am_primary_prefixes): Likewise.

20 years ago* lib/depcomp (aix): Support AIX Compiler version 6.
Alexandre Duret-Lutz [Thu, 31 Jul 2003 21:18:25 +0000 (21:18 +0000)]
* lib/depcomp (aix): Support AIX Compiler version 6.

20 years ago* automake.texi (A Shared Library): Rewrite and split into
Alexandre Duret-Lutz [Thu, 31 Jul 2003 20:28:00 +0000 (20:28 +0000)]
* automake.texi (A Shared Library): Rewrite and split into
subsections.  Valuable comments from Norman Gray, Harlan Stenn,
Tim Van Holder, and Guido Draheim.
* tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
* tests/Makefile.am (TESTS): Add them.

20 years ago* automake.in (handle_single_transform_list): Complain about
Alexandre Duret-Lutz [Wed, 30 Jul 2003 16:45:22 +0000 (16:45 +0000)]
* automake.in (handle_single_transform_list): Complain about
foo.$(OBJEXT) being created both with libtool and without, not
about foo.lo.
Report from Tim Van Holder.

20 years ago* Makefile.am (FETCHFILES, fetch): Add config-ml.in and
Alexandre Duret-Lutz [Tue, 29 Jul 2003 20:32:32 +0000 (20:32 +0000)]
* Makefile.am (FETCHFILES, fetch): Add config-ml.in and
symlink-tree.
* lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
upstream versions.

21 years ago* automake.in (handle_configure): Cosmetic change to avoid
Alexandre Duret-Lutz [Mon, 28 Jul 2003 06:44:33 +0000 (06:44 +0000)]
* automake.in (handle_configure): Cosmetic change to avoid
a maintainer-check complaint.

21 years ago* lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
Alexandre Duret-Lutz [Sun, 27 Jul 2003 21:25:17 +0000 (21:25 +0000)]
* lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
(variable_dump): Replace by ...
(dump): ... this method.
(rdef, _check_ambiguous_condition): Adjust to use ->dump.
(define, variables_dump): Adjust to use Automake::Variable::dump

21 years ago* lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
Alexandre Duret-Lutz [Sun, 27 Jul 2003 12:58:38 +0000 (12:58 +0000)]
* lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
* automake.texi (Built sources example): Adjust example.

21 years ago* automake.in (get_object_extension, handle_languages)
Alexandre Duret-Lutz [Sat, 26 Jul 2003 11:00:36 +0000 (11:00 +0000)]
* automake.in (get_object_extension, handle_languages)
(handle_single_transform_list, handle_compile, handle_compile)
(handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
(handle_tests, handle_minor_options, check_gnu_standards)
(lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
Simplify "if (defined $options{'X'})" into "if ($options{'X'})".

21 years agoComplete changes from 2003-07-08.
Alexandre Duret-Lutz [Sat, 26 Jul 2003 10:12:03 +0000 (10:12 +0000)]
Complete changes from 2003-07-08.
* automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
replaced by $options{'no-dependencies'}.
($global_options): Remove.
(%global_options): New variable.
(initialize_per_input): Empty %options.
(process_option_list): Take a location and %options ref argument,
process no-dependencies as other options.
(handle_options): Do not reparse the global options, just initialize
%options from %global_options and fill it with local options.
(handle_languages, handle_single_transform_list)
(handle_configure, check_cygnus): Adjust usage of
$options{'no-dependencies'}.
(make_paragraphs): Adjust usage of $options{'cygnus'}.
(parse_arguments): Set cygnus and no-dependencies in %global_options.
(scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
to fill %global_options.

21 years ago* tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
Alexandre Duret-Lutz [Fri, 25 Jul 2003 06:41:06 +0000 (06:41 +0000)]
* tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
avoid the use of tar.

21 years ago* tests/gnuwarn2.test: Typo.
Alexandre Duret-Lutz [Thu, 24 Jul 2003 21:33:11 +0000 (21:33 +0000)]
* tests/gnuwarn2.test: Typo.

21 years ago* tests/insthook.test: Use $MAKE, not make.
Alexandre Duret-Lutz [Thu, 24 Jul 2003 21:29:11 +0000 (21:29 +0000)]
* tests/insthook.test: Use $MAKE, not make.

21 years agoFix missing rebuilds during `make dist' with BSD make.
Alexandre Duret-Lutz [Thu, 24 Jul 2003 21:26:56 +0000 (21:26 +0000)]
Fix missing rebuilds during `make dist' with BSD make.
* automake.in (generate_makefile): Do not push Makefile.in, and
Makefile.am into DIST_COMMON here.
* lib/am/configure.am (DIST_COMMON): Do it here, and use
%MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
actually match the targets.   Prefix `configure' with `$(srcdir)/'
to match the target.
* tests/remake4.test: New file.
* tests/Makefile.am (TESTS): Add remake4.test.
Report from Akim Demaille.

21 years agoregen
Alexandre Duret-Lutz [Thu, 24 Jul 2003 08:05:03 +0000 (08:05 +0000)]
regen

21 years ago* automake.in (handle_multilib): Register all-multi.
Alexandre Duret-Lutz [Wed, 23 Jul 2003 21:04:17 +0000 (21:04 +0000)]
* automake.in (handle_multilib): Register all-multi.
(file_contents_internal): Insert n when concatenating actions
from "factored" rules.
* lib/config-ml.in: New file, from GCC, including a patch
from Ralf Corsepius (see GCC's PR 11526).
* lib/symlink-tree.in: New file, from GCC.
* lib/Makefile.am (dist_script_DATA): Add config-ml.in and
symlink-tree.
* lib/am/clean.am (distclean-generic): Do not delete Makefile here...
(distclean, maintainer-clean): ... do it here.
* lib/am/depend.am (distclean-depend): Likewise, replace by
(distclean, maintainer-clean): ... these.
* lib/am/multilib.am (all-recursive, install-recursive,
mostlyclean-recursive, clean-recursive, distclean-recursive,
maintainer-clean-recursive): Remove these rules.
(mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
by ...
(mostlyclean, clean, distclean, maintainer-clean): ... these.
(all-am): Remove, done in handle_multilib.
(install-am): Replace by ...
(install-exec-am): ... this.
* tests/Makefile.am (TESTS): Add multlib.test.
* tests/multlib.test: New file, based on a test case by
Ralf Corsepius

21 years ago* lib/missing (autom4te): Typo.
Alexandre Duret-Lutz [Wed, 23 Jul 2003 19:34:03 +0000 (19:34 +0000)]
* lib/missing (autom4te): Typo.

21 years agoadd to CVS, since it's distributed
Alexandre Duret-Lutz [Wed, 23 Jul 2003 17:25:26 +0000 (17:25 +0000)]
add to CVS, since it's distributed

21 years agoremove superfluous entry about regenerated files
Alexandre Duret-Lutz [Sun, 20 Jul 2003 21:57:36 +0000 (21:57 +0000)]
remove superfluous entry about regenerated files

21 years agoupdate paragraph about non-maintainer files
Alexandre Duret-Lutz [Sun, 20 Jul 2003 21:51:41 +0000 (21:51 +0000)]
update paragraph about non-maintainer files

21 years ago* automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
Derek R. Price [Wed, 16 Jul 2003 19:10:07 +0000 (19:10 +0000)]
* automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
(handle_configure): Handle adding AC_CONFIG_LINKS arguments to
distclean targets (CONFIG_CLEAN_FILES makefile var).
* NEWS: Note new handling of AC_CONFIG_LINKS.
* automake.texi (Other things Automake recognizes): Ditto.
* tests/Makefile.am (TESTS): Add new tests.
* tests/conflnk.test: New test that links are cleaned on distclean.
* tests/conflnk2.test: New test that source files for links are
distributed.

* Makefile.in: Regenerated.
* aclocal.m4: Ditto.
* configure: Ditto.
* stamp-vti: Ditto.
* version.texi: Ditto.
* lib/Makefile.in: Ditto.
* lib/Automake/Makefile.in: Ditto.
* lib/Automake/tests/Makefile.in: Ditto.
* lib/am/Makefile.in: Ditto.
* m4/Makefile.in: Ditto.
* tests/Makefile.in: Ditto.