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>
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>
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>
bootstrap: fix Autoconf version typo.

* build-aux/options-parses: s/2\.62/2.68/

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
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>
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>
Deleted unneeded gitlog-to-changelog patch

* gl/build-aux/gitlog-to-changelog.diff: Delete.
Improve debug error reporting in ltdl.

* libltdl/ltdl.c: Print the error message if loading fails.
Fixing -shared error message for nagfor compiler.

* m4/libtool.m4: Fix -shared.
Enable nagfor fortran compiler support

* build-aux/ltmain.m4sh: nagfor compatible version string.
* m4/libtool.m4: nagfor support.
Accept clang's -stdlib linker flag.

build-aux/ltmain.m4sh: Don't drop the -stdlib= flag.
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/libtool
Improve GNU/Hurd support.

* m4/libtool.m4: Add gnu* match where it was missing.
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>
bootstrap: delete unneeded README-release patch

* gl/top/README-release.diff: Delete.
Handle getconf returning "undefined".

* m4/libtool.m4: Check for "undefined" from `getconf`.
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.
Update/simplify OpenBSD support

* m4/libtool.m4: Forget about 11 year old releases.
AIX PIC shared library support

* m4/libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.
Pass through -g* so that debugging information is not dropped

* ltmain.m4sh (func_mode_link): Pass through -g*.