Commit Graph

3791 Commits

Author SHA1 Message Date
Gary V. Vaughan
fa69af3a60 maint: remove unused cvsu script.
* build-aux/cvsu: Remove. This script is not useful now that
Libtool's repository is hosted in git.
* Makefile.am (build_scripts): Remove cvsu reference.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 17:52:15 +07:00
Gary V. Vaughan
387ac2e703 maint: run update-copyright for missing 2011 and 2012 years.
See maintain.texi (Copyright Notices) for rules for maintaining
the years in copyright notices.
* All Files (Copyright): Updated with missing 2011 and 2012.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 17:52:10 +07:00
Gary V. Vaughan
de56e14ea7 bootstrap: use gnulib update-copyright script.
See maintain.texi (Copyright Notices) for rules for maintaining
the years in copyright notices.
* bootstrap.conf (gnulib_modules): Add update-copyright.
* cfg.mk (update-copyright-env): Set environment variables for
update-copyright script.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 17:51:21 +07:00
Gary V. Vaughan
8cbdff9434 bootstrap: update bootstrap script to latest upstream.
* bootstrap, build-aux/options-parser: apply upstream fixes and
enhancements.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 17:08:58 +07:00
Gary V. Vaughan
6527d1aed2 git: don't complain about new parallel tests driver and file droppings.
* build-aux/.gitignore: Ignore parallel `test-driver' script.
* tests/.gitignore: Ignore `test-driver' .trs file droppings.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 14:34:14 +07:00
Gary V. Vaughan
8cbd148e02 gnulib: update local gnulib patches.
* gl/build-aux/announce-gen.diff: Remove hunks adopted upstream.
* gl/build-aux/do-release-commit-and-tag.diff: Refresh this patch
to match current gnulib.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 14:34:14 +07:00
Gary V. Vaughan
88d01e008b gnulib: update gnulib submodule.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 14:34:14 +07:00
Gary V. Vaughan
baae4ef776 bootstrap: ensure there is a ChangeLog before running automake.
Automake refuses to run in GNU-mode unless there is a ChangeLog file
in the top-level directory.
* bootstrap.conf (libtool_force_changelog): Create a dummy ChangeLog.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 14:34:14 +07:00
Gary V. Vaughan
7039315a8c libtoolize: improve verbose mode output.
* libtoolize (func_require_seen_ltdl)
(func_require_seen_libtool): Output success message in verbose
mode.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-09-16 13:23:26 +07:00
Peter O'Gorman
cf86b942c8 Add the 'n' to then.
* m4/libtool.m4: fix typo.
Thanks to Brad Smith for pointing it out.
2012-08-21 21:06:45 -05:00
Andreas Schwab
9b726f35db Pass through -g* so that debugging information is not dropped
* ltmain.m4sh (func_mode_link): Pass through -g*.
2012-08-21 20:17:04 -05:00
David Edelsohn
70bac1d7cc AIX PIC shared library support
* m4/libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.
2012-08-21 20:14:55 -05:00
Brad Smith
c03e516bd2 Update/simplify OpenBSD support
* m4/libtool.m4: Forget about 11 year old releases.
2012-08-21 20:12:01 -05:00
Peter Rosin
00ed0187c1 libtool: quote progpath properly
Attempt to handle spaces in paths better.

* build-aux/ltmain.m4sh (func_mode_install, func_mode_link): Quote
$progpath.
* THANKS: Update.
2012-08-19 22:14:13 +02:00
Mike Frysinger
37a284f50a Handle getconf returning "undefined".
* m4/libtool.m4: Check for "undefined" from `getconf`.
2012-04-18 23:14:50 -05:00
Peter Rosin
11cd425e7d bootstrap: delete unneeded README-release patch
* gl/top/README-release.diff: Delete.
2012-03-17 20:17:08 +01:00
Peter O'Gorman
fbe09b44b5 Fix typo that caused sys_lib_search_path_spec to be wrong.
* m4/libtool.m4: s/lt_fooi/lt_foo/.
Reported by Paul Seidler <sepek@lavabit.com>
2012-03-16 16:48:02 -05:00
Samuel Thibault
3b94c2d8e8 Improve GNU/Hurd support.
* m4/libtool.m4: Add gnu* match where it was missing.
2012-02-21 11:10:39 -06:00
Peter O'Gorman
9333e74fc7 Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/libtool 2012-02-19 16:21:00 -06:00
Titus von Boxberg
c0c49f289f Accept clang's -stdlib linker flag.
build-aux/ltmain.m4sh: Don't drop the -stdlib= flag.
2012-02-19 15:33:48 -06:00
Juergen Reuter
96cc27eff3 Enable nagfor fortran compiler support
* build-aux/ltmain.m4sh: nagfor compatible version string.
* m4/libtool.m4: nagfor support.
2012-02-19 14:56:33 -06:00
Juergen Reuter
f16abb06f7 Fixing -shared error message for nagfor compiler.
* m4/libtool.m4: Fix -shared.
2012-02-19 14:55:06 -06:00
Pavel (Pasha) Shamis
e444159cc0 Improve debug error reporting in ltdl.
* libltdl/ltdl.c: Print the error message if loading fails.
2012-02-19 14:18:19 -06:00
Peter O'Gorman
b2ccf68b01 Deleted unneeded gitlog-to-changelog patch
* gl/build-aux/gitlog-to-changelog.diff: Delete.
2012-02-19 14:16:52 -06:00
Roumen Petrov
b804ffabee fixup: restore EXPORTS test
Commit v2.4.2-120-g962aa91
syntax-check: fix violations and implement sc_prohibit_test_const_follows_var
inadvertedly reversed the meaning of the comparison.

* build-aux/ltmain.m4sh (func_mode_link) [cygwin|mingw|cegcc]: Restore
the EXPORTS test.  We need to look at the symbols when it's _not_
already a .def file (in which case we trust the user input blindly).

Copyright-paperwork-exempt: Yes
Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2012-02-02 08:39:20 +01:00
Peter Rosin
7b945cfdaa cwrapper: avoid surplus strlen calculations.
* build-aux/ltmain.m4sh (func_emit_cwrapperexe_src:lt_update_exe_path):
Avoid surplus strlen calculations.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2012-01-30 15:49:05 +01:00
Gary V. Vaughan
7a78cca31b bootstrap: fix Autoconf version typo.
* build-aux/options-parses: s/2\.62/2.68/

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-24 09:05:19 +07:00
Gary V. Vaughan
c8e9d169e1 gnulib: update gnulib submodule.
Among others, this fixes the reference to a local commit.
* gnulib: Updated to todays master HEAD revision.
* gl/top/README-release.diff: Update to account for changes to
gnulib/top/README-release since the last gnulib update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-24 09:03:22 +07:00
Gary V. Vaughan
eabd3ad629 libtool: make fork minimisation compatible with dash and zsh.
* build-aub/general.m4sh (lt_HAVE_PLUSEQ_OP): Instead of using
$((..)) arithmetic, which causes an error on dash, use a case
based bash version check.
(lt_HAVE_ARITH_OP, lt_HAVE_XSI_OPS): Also short circuit the
feature probing forks and set these automatically when zsh is
detected.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-18 20:46:47 +07:00
Gary V. Vaughan
51c1877e70 bootstrap: adopt autoconf echo normalization code.
Dash shipped with Ubutu-11.10 as /bin/sh, among others, still
has a crippled echo builtin that mis-handles backslashes.
* build-aux/options-parser (bs_echo): Adopt the autoconf echo
normalization code to find a suitable replacement for buggy echo
commands.
Adjust all uses of echo to $bs_echo.
* build-aux/extract-trace (func_extract_trace, func_main):
Likewise.
* bootstrap: To retain some execution speed on platforms with
buggy builtin echo, replace most occurrences of `echo' with
`$bs_echo' - except where its arguments will obviously never
contain backslashes or be overly long.
Reported by Reuben Thomas.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-18 14:45:20 +07:00
Gary V. Vaughan
4099c121a1 libtool: minimise forks per invocation under bash.
* build-aux/general.m4sh (lt_HAVE_PLUSEQ_OP, lt_HAVE_ARITH_OP)
(lt_HAVE_XSI_OPS): Set these without forking a test script when
running under bash, to avoid a few unnecessary forks.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-18 12:21:18 +07:00
H.J. Lu
88992fe677 Support x32.
* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
2011-12-12 21:24:14 -06:00
Gary V. Vaughan
0009ef8988 maint: disable prohibit_always-defined_macros syntax check.
Aside from Apple grep silently failing to run this test and
report violations, libtool still uses non-gnulib versions of
dirent.h and argz.h which use the same macros, but are not
always-defined.
* cfg.mk (local-checks-to-fix): Move
sc_prohibit_always-defined_macros from here...
(local-checks-to-skip): ...to here.
Reported by Peter O'Gorman.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 21:50:58 +07:00
Gary V. Vaughan
f7bd6bd9cc tests: s/snippit/snippet/.
* tests/demo/foo.h, tests/pdemo/foo.h: Spell `snippet' correctly.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 17:39:40 +07:00
Gary V. Vaughan
ccd0cea1a5 tests: make sure file restore traps are called correctly on AIX.
* tests/demo-noinst-link.test (func_save_files): set the restore
trap outside a function, otherwise AIX 5.3 /bin/sh will run the
trap at the end of the function, instead of when the script
exits.
* tests/demo-relink.test (func_save_files): Ditto.
* tests/depdemo-relink.test (func_save_files): Ditto.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 17:39:40 +07:00
Gary V. Vaughan
2847174910 maint: eliminate some more spurious leading Xs.
* m4/libtool.m4: Reverse argument order to eliminate spurious
leading X's.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 17:15:59 +07:00
Gary V. Vaughan
083d303cb8 bootstrap: put back missing spaces before parens.
* bootstrap (func_require_buildreq_autobuild)
(func_require_buildreq_automake): Vi's delete word command is
too greedy and also eats trailing whitespace before following
non-word-chars. Put back the spaces it ate so that
syntax-checks pass once again.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 17:15:59 +07:00
Gary V. Vaughan
8a59ee7f0a libtoolize: refactor copying filter creation.
Prevent the various require_filter functions from becoming too
long by factoring common code into new functions.
* libtoolize (func_make_relative_dir_filter)
(func_make_relative_ltdl_filter): New functions. Generalize and
consolidate the various similar snippets for concatenating
together the sed scripts for func_copy filtering.
(require_filter_Makefile_am, require_filter_aclocal_m4)
(require_filter_configure_ac): Simplify.
(require_ltdl_relative_aux_dir): Remove.
(require_ltdl_relative_macro_dir): Ditto.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:59:49 +07:00
Gary V. Vaughan
e1f7c41462 maint: pick XSI funcs at runtime, not configure time.
Determine, on a function by function basis, what XSI features
are available in the shell that is actually running the script,
rather than the one that was picked at configure time by the
re-execution engine.
* m4/libtool.m4 (_LT_PROG_FUNCTION_REPLACE)
(_LT_PROG_REPLACE_SHELLFNS): Remove.
(_LT_CHECK_SHELL_FEATURES): Remove tests for XSI and += support.
* build-aux/general.m4sh (func_append, func_append_quoted)
(func_arith, func_len, func_basename, func_dirname)
(func_dirname_and_basename, func_stripname): List both enhanced
and fallback implementations, and choose one based on whether
the enhanced features required by the fastest version are
available.
* build-aux/getopt.m4sh (func_split_short_opt)
(func_split_long_opt): Ditto.
* build-aux/ltmain.m4sh (func_lo2o, func_xform): Ditto.
* tests/getopt-m4sh.at: Add tests for enhanced and fallback
implementations of func_arith, func_len, func_stripname and
func_dirname_and_basename.
* NEWS: Updated.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:56:49 +07:00
Gary V. Vaughan
6bb8312ccf maint: share useful functions from general.m4sh.
* build-aux/ltmain.m4sh (func_append, func_append_quoted)
(func_arith, func_len): Removed from here...
* build-aux/general.m4sh (func_append, func_append_quoted)
(func_arith, func_len): ...and added to here.
(func_dirname, func_dirname_and_basename, func_normal_abspath)
(func_relative_path): Use func_append.
* tests/getopt-m4sh.at (_LT_AT_FALLBACK_FUNC_EXTRACT): Removed.
Fallback functions are now in any m4sh generated file
automatically.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:56:49 +07:00
Gary V. Vaughan
d5bcbf5f85 libtoolize: reorder function definitions to keep func_filter_* together.
* libtoolize: Restore asciibetical order, so that all the
filter function definitions are together.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:34:27 +07:00
Gary V. Vaughan
a1891ef344 libtoolize: use _filter as a prefix for better ordering.
* libtoolize.m4sh (require_Makefile_am_filter)
(require_ltdl_mk_filter, require_aclocal_m4_filter)
(require_configure_ac_filter): Rename these functions from this...
(require_filter_Makefile_am, require_filter_ltdl_mk)
(require_filter_aclocal_m4, require_filter_configure_ac): ...to
this, respectively.  Adjust all callers.
(Makefile_am_filter, ltdl_mk_filter, aclocal_m4_filter)
(configure_ac_filter): Rename these global variables from this...
(filter_Makefile_am, filter_ltdl_mk, filter_aclocal_m4)
(filter_configure_ac): ...to this, respectively.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:26:48 +07:00
Gary V. Vaughan
402abf829e libtoolize: rename ltdl.mk filter function.
* libtoolize.m4sh (require_Makefile_inc_filter): Rename from
this...
(require_ltdl_mk_filter): ...to this. Adjust all callers.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 15:14:44 +07:00
Gary V. Vaughan
aead37d19e bootstrap: escape quotes properly in generated functions.
* bootstrap: Although not a real bug, for consistency, be sure
to correctly escape single quotes inside a single quoted
function generator.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 12:33:28 +07:00
Gary V. Vaughan
daf3f3a7d7 bootstrap: reorder function definitions to keep func_buildreq_* together.
* bootstrap: Restore asciibetical order, so that all the
buildreq function definitions are together.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 12:33:24 +07:00
Gary V. Vaughan
5229af9cef bootstrap: use _buildreq as a prefix for better ordering.
* bootstrap (require_autobuild_buildreq)
(require_autoconf_buildreq, require_automake_buildreq)
(require_autopoint_buildreq, require_libtoolize_buildreq)
(require_patch_buildreq): Rename from these...
(require_buildreq_autobuild, require_buildreq_autoconf)
(require_buildreq_automake, require_buildreq_autopoint)
(require_buildreq_libtoolize, require_buildreq_patch): ...to
these, respectively.  Adjust all callers.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 12:32:38 +07:00
Gary V. Vaughan
44313522fc bootstrap: ensure consistent function header comments.
* bootstrap (require_bootstrap_uptodate)
(require_buildtools_uptodate): Use `require_...' in header
comment for these functions to be consistent with the rest,
rather than `func_require_...'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 12:32:38 +07:00
Gary V. Vaughan
509907a28e bootstrap: make sure patch is available to bootstrap if necessary.
Make sure we're not lacking any functionality provided by the
incumbent gnulib bootstrap script, and where it's easy to do so
(like it is here), provide better functionality!
* bootstrap (require_patch): Make sure that PATCH expands to the
best `patch' command available on the system, honouring
overrides in the users environment.
(require_patch_buildreq): Automatically add a requirement for a
patch command to buildreq when there are diff files in
$local_gl_dir.
(func_require_buildtools_uptodate): Call require_patch_buildreq
before testing build tool versions.
(func_gnulib_tool_copy_file): Make sure PATCH is set before using
gnulib-tool to copy files.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-12-08 12:32:32 +07:00
Gary V. Vaughan
11869b9c9e m4: fix logic error leading to -fno-rtti being added wrongly.
* m4/libtool.m4 (_LT_COMPILER_OPTION): Negate comparison so that
compiler flags are added correctly.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-26 11:06:35 +07:00
Gary V. Vaughan
6a4426ee0a maint: Fix generated ChangeLog typos.
* build-aux/git-log-fix: Spell Stefano Lattarini's name
correctly.
Don't use my home email address for GNU commits.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-26 09:35:30 +07:00