]> sourceware.org Git - automake.git/log
automake.git
21 years agoRetain all variable definitions until the whole Makefile.am has
Alexandre Duret-Lutz [Thu, 10 Apr 2003 19:50:19 +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:11 +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:38 +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:19 +0000 (20:05 +0000)]
tests/yacc8.test: Add a sleep before modifying Makefile.am so
that timestamp will change.

21 years ago* lib/am/tags.am (TAGS): Use --etags-include instead of --include,
Alexandre Duret-Lutz [Sun, 23 Mar 2003 20:37:20 +0000 (20:37 +0000)]
* lib/am/tags.am (TAGS): Use --etags-include instead of --include,
when supported by etags (Exuberant Ctags).
* tests/tagsub.test: Rewrite to _run_ the `tags' rule.

21 years agoFor Debian Bug #185388:
Alexandre Duret-Lutz [Thu, 20 Mar 2003 22:44:33 +0000 (22:44 +0000)]
For Debian Bug #185388:
* automake.texi (Extending): Augment the install-exec-hook
discussion with an example how to symlink a versioned binary.
* tests/insthook.test: Rewrite to test the above example.
Report from James R. Van Zandt.

21 years ago* Makefile.am (maintainer-check): Allow `automake:' tokens,
Alexandre Duret-Lutz [Wed, 19 Mar 2003 21:14:56 +0000 (21:14 +0000)]
* Makefile.am (maintainer-check): Allow `automake:' tokens,
occuring in location.test.  Automake now has 5 legitimate
unsubstituted @strings@.

21 years ago* tests/aclocal4.test: Require GNU make.
Alexandre Duret-Lutz [Wed, 19 Mar 2003 20:41:02 +0000 (20:41 +0000)]
* tests/aclocal4.test: Require GNU make.

21 years agoregen
Alexandre Duret-Lutz [Fri, 14 Mar 2003 21:57:48 +0000 (21:57 +0000)]
regen

21 years ago* tests/aclocal4.test: New file. Test for the ACLOCAL_M4 bug below.
Alexandre Duret-Lutz [Fri, 14 Mar 2003 21:55:00 +0000 (21:55 +0000)]
* tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
* tests/Makefile.am (TESTS): Add aclocal4.test.

21 years ago* automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
Alexandre Duret-Lutz [Fri, 14 Mar 2003 21:46:56 +0000 (21:46 +0000)]
* automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
subdirectories.  Makefile.in depends on that variable.

21 years ago* m4/init.m4: Remove a leftover comment from the pre-1.7 era.
Alexandre Duret-Lutz [Thu, 13 Mar 2003 21:43:47 +0000 (21:43 +0000)]
* m4/init.m4: Remove a leftover comment from the pre-1.7 era.

21 years agoFix for PR automake/386:
Alexandre Duret-Lutz [Thu, 13 Mar 2003 21:33:59 +0000 (21:33 +0000)]
Fix for PR automake/386:
* m4/init.m4: Require Autoconf 2.55.
Reported by Owen Taylor.

21 years ago* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
Alexandre Duret-Lutz [Thu, 13 Mar 2003 20:50:58 +0000 (20:50 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
(?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
Suggested by Matthias Andree.

21 years ago* tests/README: Typo.
Alexandre Duret-Lutz [Thu, 13 Mar 2003 20:33:05 +0000 (20:33 +0000)]
* tests/README: Typo.

21 years ago* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
Alexandre Duret-Lutz [Sat, 8 Mar 2003 09:02:15 +0000 (09:02 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
(?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
Just echo the gcc command.
Suggested by Karl Berry.

21 years ago* lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
Alexandre Duret-Lutz [Thu, 6 Mar 2003 21:18:57 +0000 (21:18 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
`test -f foo || echo $(srcdir)/` to emulate a VPATH search when
outputing suffix rules.  This follows 2003-02-25's change.
* lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
* lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.

21 years ago* lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
Alexandre Duret-Lutz [Thu, 6 Mar 2003 21:11:48 +0000 (21:11 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
`test -f foo || echo $(srcdir)/` to emulate a VPATH search when
outputing suffix rules.  This follows 2003-02-25's change.
* lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
* lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.

21 years ago* automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
Alexandre Duret-Lutz [Wed, 5 Mar 2003 22:22:50 +0000 (22:22 +0000)]
* automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
pretend otherwise.
Reported by Rafael Laboissiere.

21 years ago* lib/mdate-sh: Find out which column of the ls -l output contains
Alexandre Duret-Lutz [Tue, 4 Mar 2003 21:26:05 +0000 (21:26 +0000)]
* lib/mdate-sh: Find out which column of the ls -l output contains
the month. Do not assume it is at least the fifth column.

21 years ago* automake.texi (Emacs Lisp): Mention that `dist_' can be used.
Alexandre Duret-Lutz [Wed, 26 Feb 2003 21:05:12 +0000 (21:05 +0000)]
* automake.texi (Emacs Lisp): Mention that `dist_' can be used.

21 years ago* automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
Alexandre Duret-Lutz [Wed, 26 Feb 2003 20:53:47 +0000 (20:53 +0000)]
* automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
instead of lisp_LISP when they don't want byte-compilation.
Don't mention ELCFILES anymore.
* automake.in (handle_data): Allow lisp_DATA.
* tests/lisp5.test: New file.
* tests/Makefile.am (TESTS): Add lisp5.test.

21 years ago* automake.in (handle_emacs_lisp): Don't build *.elc files
Alexandre Duret-Lutz [Wed, 26 Feb 2003 20:11:17 +0000 (20:11 +0000)]
* automake.in (handle_emacs_lisp): Don't build *.elc files
if ELCFILES was set empty.
* tests/lisp4.test: New file.
* tests/Makefile.am (TESTS): Add lisp4.test.
Reported by Simon Josefsson.

21 years ago* tests/lex3.test, tests/lex5.test: Require flex.
Alexandre Duret-Lutz [Wed, 26 Feb 2003 12:17:13 +0000 (12:17 +0000)]
* tests/lex3.test, tests/lex5.test: Require flex.
Reported by Leo Davis.

21 years ago* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
Alexandre Duret-Lutz [Tue, 25 Feb 2003 20:07:33 +0000 (20:07 +0000)]
* lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
when outputing suffix rules.
* lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
(?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
Suggested by Bruno Haible.

21 years ago* automake.in (read_am_file): Catch trailing backslashes on last line.
Alexandre Duret-Lutz [Tue, 25 Feb 2003 17:30:52 +0000 (17:30 +0000)]
* automake.in (read_am_file): Catch trailing backslashes on last line.
* tests/backsl3.test: New file.
* tests/Makefile.am (TESTS): Add backsl3.test.
Reported by Akim Demaille.

21 years ago* ChangeLog: Move 2002's entries to ...
Alexandre Duret-Lutz [Mon, 24 Feb 2003 22:58:40 +0000 (22:58 +0000)]
* ChangeLog: Move 2002's entries to ...
* ChangeLog.02: ... this new file.
* Makefile.am (EXTRA_DIST): Add ChangeLog.02.

21 years agoignore Makefile
Alexandre Duret-Lutz [Mon, 24 Feb 2003 22:13:47 +0000 (22:13 +0000)]
ignore Makefile

21 years ago2003-02-24 Richard Dawe <rich@phekda.freeserve.co.uk>
Alexandre Duret-Lutz [Mon, 24 Feb 2003 22:12:18 +0000 (22:12 +0000)]
2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>

* tests/version7.test: Use $sleep to sleep before updating
the version, to work around timestamp inconsistencies in Windows.

21 years ago* lib/am/texibuild.am: Don't remove the target info files. Instead,
Alexandre Duret-Lutz [Mon, 24 Feb 2003 22:09:20 +0000 (22:09 +0000)]
* lib/am/texibuild.am: Don't remove the target info files. Instead,
back up and restore them if makeinfo fails.
* tests/txinfo20.test: New file.
* tests/Makefile.am (TESTS): Add txinfo20.test.

21 years agoauto-detect the path separator; patch from Richard Dawe
Alexandre Duret-Lutz [Mon, 24 Feb 2003 14:34:58 +0000 (14:34 +0000)]
auto-detect the path separator; patch from Richard Dawe

21 years ago* automake.texi (FAQ, CVS, maintainer-mode, wildcards)
Alexandre Duret-Lutz [Sun, 23 Feb 2003 18:51:57 +0000 (18:51 +0000)]
* automake.texi (FAQ, CVS, maintainer-mode, wildcards)
(distcleancheck): Fix typos and other errors reported by Karl
Berry.

21 years agomissing file from 2003-02-19
Alexandre Duret-Lutz [Thu, 20 Feb 2003 17:16:20 +0000 (17:16 +0000)]
missing file from 2003-02-19

21 years ago* lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
Alexandre Duret-Lutz [Thu, 20 Feb 2003 16:49:44 +0000 (16:49 +0000)]
* lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
instead of ${...}.

21 years ago* tests/defs.in: Handle required=ro-dir.
Alexandre Duret-Lutz [Thu, 20 Feb 2003 12:28:37 +0000 (12:28 +0000)]
* tests/defs.in: Handle required=ro-dir.
* tests/destdir.test: Use this.

21 years ago* lib/am/distdir.am (distcheck): Strip any leading DOS drive
Alexandre Duret-Lutz [Wed, 19 Feb 2003 20:06:39 +0000 (20:06 +0000)]
* lib/am/distdir.am (distcheck): Strip any leading DOS drive
from dc_install_base.

21 years ago* lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
Alexandre Duret-Lutz [Wed, 19 Feb 2003 19:12:55 +0000 (19:12 +0000)]
* lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
DJGPP-style *.iNN info files.
(maintainer-clean-aminfo): Rewrite using the same pattern
as in uninstall-info-am.
* lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
DJGPP-style *.iNN info files before running $(MAKEINFO).
* tests/txinfo19.test: New file.
* tests/Makefile.am (TESTS): Add txinfo19.test.

21 years ago* lib/depcomp (dashmstdout): Cope with DOS filenames in
Alexandre Duret-Lutz [Tue, 18 Feb 2003 23:28:42 +0000 (23:28 +0000)]
* lib/depcomp (dashmstdout): Cope with DOS filenames in
dependencies.

21 years ago* lib/depcomp (makedepend): Don't pass $object to makedepend.
Alexandre Duret-Lutz [Mon, 17 Feb 2003 14:55:05 +0000 (14:55 +0000)]
* lib/depcomp (makedepend): Don't pass $object to makedepend.
Reported by Stepan Kasal.

21 years ago* tests/defs.in: Handle required=makedepend.
Alexandre Duret-Lutz [Wed, 12 Feb 2003 16:26:41 +0000 (16:26 +0000)]
* tests/defs.in: Handle required=makedepend.

21 years ago* Makefile.am (maintainer-check): Update the diff check
Alexandre Duret-Lutz [Wed, 12 Feb 2003 15:01:57 +0000 (15:01 +0000)]
* Makefile.am (maintainer-check): Update the diff check
to account for the recent @SHELL@ substitution.

21 years ago* lib/depcomp: Do not put comments on the `icc)' line.
Alexandre Duret-Lutz [Tue, 11 Feb 2003 21:06:38 +0000 (21:06 +0000)]
* lib/depcomp: Do not put comments on the `icc)' line.

21 years ago* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
Alexandre Duret-Lutz [Tue, 11 Feb 2003 20:48:31 +0000 (20:48 +0000)]
* lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
versions.

21 years agoFix for PR automake/381:
Alexandre Duret-Lutz [Tue, 11 Feb 2003 19:32:36 +0000 (19:32 +0000)]
Fix for PR automake/381:
* automake.in (handle_gettext): Do not print diagnostics
about po/ and intl/ missing from SUBDIRS if po/ does not
exist.  Warn if `SUBDIRS = intl' is used although libintl
is 'external'.
* tests/gettext.test: Make sure diagnostics are not output
when po/ does not exist.
* tests/gettext2.test: Test for unwanted intl/.
PR from Alexander Turbov, fix suggested by Bruno Haible.

21 years ago* m4/depend.m4: Grep depcomp's stderr for icc warnings about
Alexandre Duret-Lutz [Tue, 11 Feb 2003 18:20:54 +0000 (18:20 +0000)]
* m4/depend.m4: Grep depcomp's stderr for icc warnings about
ignored options.
* lib/depcomp (icc): New mode.
* tests/depcomp5.test: New file.
* tests/defs.in: Handle required=icc.
* tests/Makefile.am (TESTS): Add it.

21 years agoTemporary hack for PR automake/381:
Alexandre Duret-Lutz [Tue, 11 Feb 2003 13:30:24 +0000 (13:30 +0000)]
Temporary hack for PR automake/381:
* automake.in (handle_gettext): Turn missing po/ and intl/ errors
into -Wsyntax warnings.

21 years agoalways use cp -rf instead of ln -s, as suggested by Richard Dawe
Alexandre Duret-Lutz [Tue, 11 Feb 2003 12:37:00 +0000 (12:37 +0000)]
always use cp -rf instead of ln -s, as suggested by Richard Dawe

21 years agoredirect ln errors to /dev/null
Alexandre Duret-Lutz [Mon, 10 Feb 2003 23:54:57 +0000 (23:54 +0000)]
redirect ln errors to /dev/null

21 years agoregen
Alexandre Duret-Lutz [Mon, 10 Feb 2003 23:35:50 +0000 (23:35 +0000)]
regen

21 years ago2003-02-10 Richard Dawe <rich@phekda.freeserve.co.uk>
Alexandre Duret-Lutz [Mon, 10 Feb 2003 23:33:49 +0000 (23:33 +0000)]
2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>

       * bootstrap: Don't require support for symlinks - copy instead.
       Override $SHELL with DJGPP's bash, if running DJGPP.  Substitute
       @SHELL@ in automake.in and aclocal.in.  This makes the setting
       of SHELL work for DJGPP.

21 years ago2003-02-10 Richard Dawe <rich@phekda.freeserve.co.uk>
Alexandre Duret-Lutz [Mon, 10 Feb 2003 23:14:14 +0000 (23:14 +0000)]
2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>

* Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
This makes the setting of SHELL work for DJGPP.

21 years agoFor PR automake/385:
Alexandre Duret-Lutz [Mon, 10 Feb 2003 22:15:53 +0000 (22:15 +0000)]
For PR automake/385:
* lib/depcomp (makedepend): Strip any libtool call, before
running makedepends.
* tests/depcomp4.test: New file.
* tests/Makefile.am (TESTS): Add it.
Reported by Jeff Squyres.

21 years agoRelated to PR automake/385:
Alexandre Duret-Lutz [Mon, 10 Feb 2003 21:47:57 +0000 (21:47 +0000)]
Related to PR automake/385:
* lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
write dependencies to /dev/null.  `-o /dev/null' was added
on 2002-06-13 just because I tried to replace `-o foo.o' by something
else and didn't thought about removing it entirely.
* tests/depcomp3.test: New file.
* tests/Makefile.am (TESTS): Add it.

21 years agotypo in last patch
Alexandre Duret-Lutz [Mon, 10 Feb 2003 19:00:16 +0000 (19:00 +0000)]
typo in last patch

21 years ago* automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
Alexandre Duret-Lutz [Mon, 10 Feb 2003 14:10:39 +0000 (14:10 +0000)]
* automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
SHELL for DJGPP.
Suggested by Richard Dawe.

21 years ago* automake.texi (FAQ, CVS, maintainer-mode, wildcards)
Alexandre Duret-Lutz [Sun, 9 Feb 2003 20:59:10 +0000 (20:59 +0000)]
* automake.texi (FAQ, CVS, maintainer-mode, wildcards)
(distcleancheck): New nodes.

21 years ago* automake.in (scan_autoconf_files): Don't complain that
Alexandre Duret-Lutz [Thu, 6 Feb 2003 16:52:36 +0000 (16:52 +0000)]
* automake.in (scan_autoconf_files): Don't complain that
AM_INIT_AUTOMAKE comes from an old version if it was not found.

21 years ago* automake.in (am_install_var): Simplify filtering of
Alexandre Duret-Lutz [Wed, 5 Feb 2003 19:19:13 +0000 (19:19 +0000)]
* automake.in (am_install_var): Simplify filtering of
variable_loc_and_value_as_list_recursive's output.

21 years ago* m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
Alexandre Duret-Lutz [Tue, 4 Feb 2003 20:00:12 +0000 (20:00 +0000)]
* m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
indexes of header files so we create stamp files with
the right numbers when config.status is run on some headers.
* tests/stamph2.test: Check for this.
Reported by Sander Niemeijer.

21 years ago* automake.in (vars_scanned): Move near traverse_variable_recursively.
Alexandre Duret-Lutz [Sun, 2 Feb 2003 23:40:51 +0000 (23:40 +0000)]
* automake.in (vars_scanned): Move near traverse_variable_recursively.
(traverse_variable_recursively,
traverse_variable_recursively_worker): Accept a $COND_FILTER argument
to filter out conditions during recursion.  Don't recurse into
undefined variables.  Don't pass empty results to &FUN_COLLECT.
(value_to_list): Remove, was used by
variable_value_as_list_recursive_worker only.
(variable_value_as_list_recursive_worker): Rewrite using
traverse_variable_recursively.  Remove the $parent argument.
(variable_value_as_list_recursive,
variable_loc_and_value_as_list_recursive): Adjust calls
to variable_value_as_list_recursive_worker.  Don't reset
%vars_scanned.
* tests/cond3.test: Don't expect empty helper variables,
we don't output them anymore.
* tests/cond30.test: Use an undefined variable.

21 years ago* automake.in (handle_programs): Strip $(EXEEXT) before
Alexandre Duret-Lutz [Sun, 2 Feb 2003 17:07:59 +0000 (17:07 +0000)]
* automake.in (handle_programs): Strip $(EXEEXT) before
calling &check_canonical_spelling.
* tests/exeext.test: Make sure we don't use a
maude3__EXEEXT__OBJECTS variable.

21 years agoFor Debian Bug #39542:
Alexandre Duret-Lutz [Sun, 2 Feb 2003 10:45:24 +0000 (10:45 +0000)]
For Debian Bug #39542:
* automake.texi (Invoking Automake, Optional): Document how
AC_CONFIG_AUX_DIR interacts with missing files.

21 years ago* lib/Automake/DisjConditions.pm (_permutations_worker)
Alexandre Duret-Lutz [Sun, 2 Feb 2003 10:09:24 +0000 (10:09 +0000)]
* lib/Automake/DisjConditions.pm (_permutations_worker)
(permutations): Remove, so that people aren't tempted to use it.
* lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.

21 years ago* automake.in (variable_conditions_recursive): Remove.
Alexandre Duret-Lutz [Sun, 2 Feb 2003 10:05:02 +0000 (10:05 +0000)]
* automake.in (variable_conditions_recursive): Remove.
(variable_conditionally_defined): Rewrite using
traverse_variable_recursively.

21 years ago* automake.in (traverse_variable_recursively,
Alexandre Duret-Lutz [Sun, 2 Feb 2003 00:31:43 +0000 (00:31 +0000)]
* automake.in (traverse_variable_recursively,
traverse_variable_recursively_worker): Pass one merged Condition
instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
(transform_variable_recursively, define_objects_from_sources)
(handle_lib_objects, variable_conditions_recursive): Adjust usage.

21 years ago* automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
Alexandre Duret-Lutz [Sat, 1 Feb 2003 23:17:22 +0000 (23:17 +0000)]
* automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
using transform_variable_recursively instead of
variable_conditions_recursive and variable_value_as_list_recursive
to avoid combinatorial explosion.
(handle_lib_objects_cond): Merge into handle_lib_objects.
* tests/cond11.test: Don't grep internal details in Makefile.in,
run $MAKE to make sure the resulting Makefile runs as expected.
* tests/cond29.test: Also exercise conditional _LDADD.
* tests/cond31.test, tests/cond32.test: New files.
* tests/Makefile.am (TESTS): Add tests/cond31.test and
tests/cond32.test.

21 years ago* automake.in (handle_lib_objects_cond): Ignore -dlopen and
Alexandre Duret-Lutz [Fri, 31 Jan 2003 23:40:58 +0000 (23:40 +0000)]
* automake.in (handle_lib_objects_cond): Ignore -dlopen and
-dlpreopen in _LIBADD variables too.
(handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
handle_lib_objects_cond.
* tests/libtool7.test: New file.
* tests/Makefile.am (TESTS): Add libtool7.test.

21 years ago* automake.texi (Program and Library Variables): Clarify that
Alexandre Duret-Lutz [Fri, 31 Jan 2003 23:35:01 +0000 (23:35 +0000)]
* automake.texi (Program and Library Variables): Clarify that
_LIBADD is for libraries and _LDADD for programs.

21 years ago* automake.in (handle_source_transform): Correct typo from 2003-01-23.
Alexandre Duret-Lutz [Fri, 31 Jan 2003 22:57:22 +0000 (22:57 +0000)]
* automake.in (handle_source_transform): Correct typo from 2003-01-23.

21 years agoFix for PR automake/352:
Alexandre Duret-Lutz [Tue, 28 Jan 2003 23:24:25 +0000 (23:24 +0000)]
Fix for PR automake/352:
* automake.in (transform_variable_recursively): If the destination
and the source variables are the same, delete the source variable
before defining the destination variable.
(handle_programs): Strip any $(EXEEXT) suffix from $one_file,
or this will confuse handle_source_transform.
(append_exeext): Rewrite using transform_variable_recursively.
* tests/cond29.test, tests/cond30.test: New files.
* tests/exeext.test: Run ./configure and make, this uncovered
the above handle_programs issue.
* tests/Makefile.am (TESTS): Add cond29.test and cond20.test.

21 years ago* automake.in (%subobjvar): Replace by ...
Alexandre Duret-Lutz [Tue, 28 Jan 2003 20:59:58 +0000 (20:59 +0000)]
* automake.in (%subobjvar): Replace by ...
(%gen_varname): ... this.
(subobjname): Replace by ...
(gen_varname): ... this.
(initialize_per_input): Clean gen_varname instead of subobjname.
(transform_variable_recursively): New function, extracted
from define_objects_from_sources.
(define_objects_from_sources): Use transform_variable_recursively.
Remove the unused $parent argument.
(handle_source_transform): Adjust call to define_objects_from_sources.

21 years ago* automake.in (@substfroms, @substtos): Move near
Alexandre Duret-Lutz [Thu, 23 Jan 2003 23:35:39 +0000 (23:35 +0000)]
* automake.in (@substfroms, @substtos): Move near
traverse_variable_recursively.
(traverse_variable_recursively, traverse_variable_recursively_worker):
New functions, extracted from define_objects_from_sources.
(define_objects_from_sources): Rewrite using
traverse_variable_recursively.
(handle_source_transform): Use variables_conditionally_defined
instead of calling variable_conditions_recursive directly.
Adjust the call to define_objects_from_sources; there is no need
to reset @substtos, @substfroms, and %vars_scanned now.
(variable_conditions_recursive): Rewrite using
traverse_variable_recursively.
(variable_conditions_recursive_sub): Remove.
(variable_conditionally_defined): Fix condition comparison (the
consequence was that DIST_SUBDIRS was always output).
* lib/Automake/Condition.pm (merge): Allow merging several
conditions at once.

21 years ago* automake.texi (Python): Explain that directory variables start
Alexandre Duret-Lutz [Wed, 22 Jan 2003 21:48:26 +0000 (21:48 +0000)]
* automake.texi (Python): Explain that directory variables start
with either ${prefix} or ${exec_prefix}, and point to the
`Installation Directory Variables' section of the Autoconf manual.

21 years ago* lib/am/distdir.am (top_distdir, distdir): Define these
Alexandre Duret-Lutz [Tue, 21 Jan 2003 18:02:32 +0000 (18:02 +0000)]
* lib/am/distdir.am (top_distdir, distdir): Define these
variables only in top level Makefile.  Redefine $(top_distdir)
as $(distdir).
(distdir): Fix passing of $(top_distdir) to sub-makes.
* automake.in (handle_dist): Do not define the DISTDIR and
TOP_DISTDIR transformations.  We don't need them anymore.
* automake.texi (Dist): Reorder the dist-hook section, and move
the DIST_SUBDIRS paragraph earlier.  Document distdir and
top_distdir.
* tests/subpkg.test: Update to check for $(distdir) and
$(top_distdir).

21 years agoRename more files to accomodate 8+3 file systems, and adjust the
Alexandre Duret-Lutz [Sun, 19 Jan 2003 23:01:03 +0000 (23:01 +0000)]
Rename more files to accomodate 8+3 file systems, and adjust the
vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
and we call "condition" a conjunction of "conditionals".
* lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
* lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
* lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
* lib/am/tests/ConditionalSet.pl: Rename to
lib/am/tests/DisjConditions.pl
* lib/am/Conditional.pm (condition_negate): Rename to ...
* lib/am/Condition.pm (conditional_negate): ... this.
* automake.in: Adjust references to Condition and DisjConditions.
(check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
(check_ambiguous_condition, condition_ambiguous_p): ... these.

21 years ago* tests/README: New file.
Alexandre Duret-Lutz [Sun, 19 Jan 2003 15:36:41 +0000 (15:36 +0000)]
* tests/README: New file.

21 years ago* automake.texi (Conditional Programs): Show a sample Makefile.am.
Alexandre Duret-Lutz [Sun, 19 Jan 2003 15:19:26 +0000 (15:19 +0000)]
* automake.texi (Conditional Programs): Show a sample Makefile.am.
Remind $(EXEEXT) must be appended to configure substitutions.
Show how Automake conditionals can be used instead.
* tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
appended to conditionally defined programs.

21 years ago.
Jim Meyering [Fri, 17 Jan 2003 14:51:07 +0000 (14:51 +0000)]
.

21 years agoAccept --help and --version, and lots of syntactic clean-up.
Jim Meyering [Fri, 17 Jan 2003 14:50:42 +0000 (14:50 +0000)]
Accept --help and --version, and lots of syntactic clean-up.

Use consistent indentation, two spaces per level.
(scriptversion): New variable.
Change initializations like `variable=""' to `variable='.
(usage): New variable.
Use `test', not `['.
Use `test -z "$var"', not `[ x"$var" = x ]'.
Use `test -n "$var"', not `[ x"$var" != x ]'.
Alphabetize case entries.
Accept --help and --version options.
Remove unnecessary `else :' clauses.
Add a `Local variables' eval block to help emacs users update
the time-stamp variable added above.
Mostly from Karl Berry.

21 years ago* m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
Alexandre Duret-Lutz [Thu, 16 Jan 2003 11:47:11 +0000 (11:47 +0000)]
* m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
python2.3.

21 years ago* m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
Alexandre Duret-Lutz [Thu, 16 Jan 2003 11:40:15 +0000 (11:40 +0000)]
* m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
or `pyexecdir', for the sake of 64-bit distributions that usually
use lib64/ instead of lib/.  Fall back to the default directory
if it doesn't work.
Suggested by Gwenole Beauchesne.

21 years agoFor PR automake/382:
Alexandre Duret-Lutz [Tue, 14 Jan 2003 07:26:21 +0000 (07:26 +0000)]
For PR automake/382:
* automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
Explain BUILT_SOURCES is usually needed in this case.
Reported by William S Fulton.

21 years agoRename some files for the sake of 8+3 file systems.
Alexandre Duret-Lutz [Tue, 14 Jan 2003 07:22:22 +0000 (07:22 +0000)]
Rename some files for the sake of 8+3 file systems.
* tests/aclocali.test:     Rename to tests/aclocal.test.
* tests/aclocali1.test:    Rename to tests/aclocal2.test.
* tests/aclocalii.test:    Rename to tests/aclocal3.test.
* tests/acoutput.test:     Rename to tests/acoutpt.test.
* tests/acoutput2.test:    Rename to tests/acoutpt2.test.
* tests/acouttbs.test:     Rename to tests/acoutbs.test.
* tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
* tests/autoheader.test:   Rename to tests/autohdr.test.
* tests/autoheader2.test:  Rename to tests/autohdr2.test.
* tests/condincl.test:     Rename to tests/condinc.test.
* tests/condincl2.test:    Rename to tests/condinc2.test.
* tests/distcommon.test:   Rename to tests/distcom.test.
* tests/distcommon2.test:  Rename to tests/distcom2.test.
* tests/distcommon3.test:  Rename to tests/distcom3.test.
* tests/installsh.test:    Rename to tests/instsh.test.
* tests/installsh2.test:   Rename to tests/instsh2.test.
* tests/instdata.test:     Rename to tests/instdat.test.
* tests/instdata2.test:    Rename to tests/instdat2.test.
* tests/libobj12b.test:    Rename to tests/libobj13.test.
* tests/link_f_c.test:     Rename to tests/link_fc.test.
* tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
* tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
* tests/nodefine.test:     Rename to tests/nodef.test.
* tests/nodefine2.test:    Rename to tests/nodef2.test.
* tests/required.test:     Rename to tests/reqd.test.
* tests/required2.test:    Rename to tests/reqd2.test.
* tests/sourcesub.test:    Rename to tests/srcsub.test.
* tests/sourcesub2.test:   Rename to tests/srcsub2.test.
* tests/specflags.test:    Rename to tests/specflg.test.
* tests/specflags2.test:   Rename to tests/specflg2.test.
* tests/specflags3.test:   Rename to tests/specflg3.test.
* tests/specflags6.test:   Rename to tests/specflg6.test.
* tests/specflags7.test:   Rename to tests/specflg7.test.
* tests/specflags8.test:   Rename to tests/specflg8.test.
* tests/specflags9.test:   Rename to tests/specflg9.test.
* tests/subdircond.test:   Rename to tests/subcond.test.
* tests/subdircond2.test:  Rename to tests/subcond2.test.
* tests/subdircond3.test:  Rename to tests/subcond3.test.
* tests/texinfo.test:      Rename to tests/txinfo.test.
* tests/texinfo2.test:     Rename to tests/txinfo2.test.
* tests/texinfo3.test:     Rename to tests/txinfo3.test.
* tests/texinfo4.test:     Rename to tests/txinfo4.test.
* tests/texinfo5.test:     Rename to tests/txinfo5.test.
* tests/texinfo6.test:     Rename to tests/txinfo6.test.
* tests/texinfo7.test:     Rename to tests/txinfo7.test.
* tests/texinfo8.test:     Rename to tests/txinfo8.test.
* tests/texinfo9.test:     Rename to tests/txinfo9.test.
* tests/texinfo10.test:    Rename to tests/txinfo10.test.
* tests/texinfo13.test:    Rename to tests/txinfo13.test.
* tests/texinfo16.test:    Rename to tests/txinfo16.test.
* tests/texinfo17.test:    Rename to tests/txinfo17.test.
* tests/texinfo18.test:    Rename to tests/txinfo18.test.
* tests/Makefile.am (TESTS): Adjust.
* ChangeLog.1996: Rename to ChangeLog.96.
* ChangeLog.1998: Rename to ChangeLog.98.
* ChangeLog.2000: Rename to ChangeLog.00.
* ChangeLog.2001: Rename to ChangeLog.01.
* Makefile.am (EXTRA_DIST): Adjust.
Reported by Richard Dawe.

21 years ago* lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
Alexandre Duret-Lutz [Mon, 13 Jan 2003 19:17:51 +0000 (19:17 +0000)]
* lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
Use '_build' and '_inst' instead of '=build' and '=inst'.
* tests/man2.test: Reflect change automake: check for files in
'_build' and '_inst' directories instead of '=build' and '=inst'.

21 years ago* lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
Alexandre Duret-Lutz [Mon, 13 Jan 2003 14:22:24 +0000 (14:22 +0000)]
* lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
Use '_build' and '_inst' instead of '=build' and '=inst'.
* tests/man2.test: Reflect change automake: check for files in
'_build' and '_inst' directories instead of '=build' and '=inst'.

21 years agoUse `_dirstamp' when the file-system doesn't support `.dirstamp'.
Alexandre Duret-Lutz [Mon, 13 Jan 2003 14:04:38 +0000 (14:04 +0000)]
Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
* m4/lead-dot.m4: New file.
* m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
* m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
* m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
DEPDIR using am__leading_dot.
* automake.in (require_build_directory): Define am__dirstamp, a new
variable for the dirstamp basename, based on am__leading_dot.
* tests/subobj6.test: Move all `test -f' into Makefiles, so we can
use $(am__dirstamp).
Reported by Richard Dawe.

21 years ago* tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
Alexandre Duret-Lutz [Mon, 13 Jan 2003 11:06:38 +0000 (11:06 +0000)]
* tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
testing for programs.
Reported by Richard Dawe.

21 years ago* Makefile.am (maintainer-check): Suggest using $sleep instead of
Alexandre Duret-Lutz [Fri, 10 Jan 2003 19:30:16 +0000 (19:30 +0000)]
* Makefile.am (maintainer-check): Suggest using $sleep instead of
sleep 2.
* tests/defs.in (sleep): New variable.
* tests/asm.test, tests/confsub.test, tests/lisp3.test,
tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
Use $sleep instead of sleep 2, to work around timestamp
inconsistencies in Windows.
Reported by Richard Dawe.

21 years agorevert previous spurious change
Alexandre Duret-Lutz [Fri, 10 Jan 2003 18:17:02 +0000 (18:17 +0000)]
revert previous spurious change

21 years ago* Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
Alexandre Duret-Lutz [Fri, 10 Jan 2003 18:15:18 +0000 (18:15 +0000)]
* Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
after $MAKE -e.
* tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
tests/man2.test, tests/subobj3.test, tests/suffix8.test,
tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
$SHELL is overridden by tests/defs, so it won't hurt even
if $MAKE -e uses the $SHELL envvar.
* tests/ansi.test, tests/insh2.test, tests/texinfo.test,
tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
Reported by Richard Dawe.

21 years agoBuild elisp files all at once instead of one by one.
Alexandre Duret-Lutz [Fri, 10 Jan 2003 17:25:33 +0000 (17:25 +0000)]
Build elisp files all at once instead of one by one.
* automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
elc-stamp to all's dependencies.
* lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
(.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
(clean-lisp): Clean elc-stamp.
* lib/elisp-comp: Reindent.  Erase the temporatry directory
from a trap.  Propagate Emacs's exit status.
* tests/lisp3.test: New file.
* tests/Makefile.am (TESTS): Add lisp3.test.
Reported by Ryan T. Sammartino.

21 years ago* automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
Akim Demaille [Thu, 9 Jan 2003 12:45:33 +0000 (12:45 +0000)]
* automake.texi: Prefer $(FOO) to @FOO@ in the documentation.

21 years agoRegen.
Akim Demaille [Thu, 9 Jan 2003 12:43:34 +0000 (12:43 +0000)]
Regen.

21 years ago* m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
Alexandre Duret-Lutz [Wed, 8 Jan 2003 18:17:03 +0000 (18:17 +0000)]
* m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
variables.  Suggested by Ryan T. Sammartino.

21 years ago* automake.in (macro_define): Add missing `{$cond}' (typo from
Alexandre Duret-Lutz [Sun, 5 Jan 2003 22:51:09 +0000 (22:51 +0000)]
* automake.in (macro_define): Add missing `{$cond}' (typo from
2002-09-18).
($gen_copyright): Append year 2003.
(version): Increase year.

21 years ago* tests/defs.in: Substitute aclocaldir instead of running
Alexandre Duret-Lutz [Sun, 5 Jan 2003 22:41:32 +0000 (22:41 +0000)]
* tests/defs.in: Substitute aclocaldir instead of running
the installed aclocal.  Otherwise Libtool and Gettext
tests get skipped when aclocal doesn't preexist.
Reported by Imacat.
* tests/listval.test, tests/suffix2.test: Remove pointless -I
argument to aclocal.

21 years ago* lib/Automake/ChannelDefs.pm: New file.
Alexandre Duret-Lutz [Tue, 31 Dec 2002 21:31:51 +0000 (21:31 +0000)]
* lib/Automake/ChannelDefs.pm: New file.
* lib/Automake/Makefile.am (dist_perllib_DATA): Add ChannelDefs.pm.
* automake.in: Move all "register_channel" calls to ChannelDefs.pm.
(prog_error, error, fatal, verb, switch_warning, parse_WARNINGS,
parse_warnings): Move to ChannelDefs.pm.
(usage): Move the warning list to Automake::ChannelDefs::usage
and call it.
(set_strictness): Move channel setings to
Automake::ChannelDefs::set_strictness and call it.

This page took 0.061364 seconds and 5 git commands to generate.