mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 03:33:02 +01:00
* Drop the CVE-2024-53589 patch, its included in 2.44
* Package newly rename gp-* to gprofng-* binaries and remove old gp-*
symlinks
* Gold linker is now deprecated and will be removed in future release
its already deleted in tarball releases
* Support for the Nios II target has been removed.
* Assembler:
- Support for new architecture extensions for AArch64, Risc-V and
x86.
* Linker:
The default maximum page size was changed from 16KiB to 64KiB for
LoongArch.
This now supports mixed LTO and non-LTO object files in
relocatable output.
The ELF forms of the linker support a --image-base=<ADDR> option
for compatibility with LLD.
The --build-id= option now accepts an argument of "xx" which
enables the use of the xxhash library. This produces a 128-bit
hash and is 2-4x faster than md5 or sha1.
The ELF linker option --package-metadata supports percent-encoded
and %[string] encoded JSON payloads.
* Disassembler:
The RISC-V disassembler now supports -M,max option like QEMU to
dump instruction without checking architecture support as usual.
* GprofNG:
Support added for hardware event counters for Neoverse-N1,
Ampere-1, and Appliedmicro processors.
Detailed release notes [1]
[1] https://lists.gnu.org/archive/html/info-gnu/2025-02/msg00001.html
(From OE-Core rev: df3c43e69542939a4bec3893f1e927edf2ad7179)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
34385 lines
1.2 MiB
34385 lines
1.2 MiB
From dc3a330d6525c6276930c3175e5c878fe2cd9784 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Sun, 14 Feb 2016 17:04:07 +0000
|
|
Subject: [PATCH] Use libtool 2.4
|
|
|
|
get libtool sysroot support
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
bfd/Makefile.in | 3 +
|
|
bfd/configure | 1333 ++++++++----
|
|
bfd/configure.ac | 2 +-
|
|
binutils/Makefile.in | 3 +
|
|
binutils/configure | 1331 ++++++++----
|
|
gas/Makefile.in | 3 +
|
|
gas/configure | 1331 ++++++++----
|
|
gprof/Makefile.in | 3 +
|
|
gprof/configure | 1331 ++++++++----
|
|
gprofng/Makefile.in | 2 +
|
|
gprofng/configure | 1693 ++++++++++++----
|
|
gprofng/doc/Makefile.in | 2 +
|
|
gprofng/gp-display-html/Makefile.in | 2 +
|
|
gprofng/libcollector/Makefile.in | 2 +
|
|
gprofng/libcollector/configure | 1693 ++++++++++++----
|
|
gprofng/src/Makefile.in | 2 +
|
|
ld/Makefile.in | 3 +
|
|
ld/configure | 1694 ++++++++++++----
|
|
libbacktrace/Makefile.in | 112 +-
|
|
libbacktrace/aclocal.m4 | 73 +-
|
|
libbacktrace/configure | 1441 +++++++++----
|
|
libctf/Makefile.in | 2 +
|
|
libctf/configure | 1330 ++++++++----
|
|
libsframe/Makefile.in | 344 ++--
|
|
libsframe/aclocal.m4 | 220 +-
|
|
libsframe/configure | 1553 ++++++++++----
|
|
libtool.m4 | 1085 ++++++----
|
|
ltmain.sh | 2898 ++++++++++++++++++---------
|
|
ltoptions.m4 | 2 +-
|
|
ltversion.m4 | 12 +-
|
|
lt~obsolete.m4 | 2 +-
|
|
opcodes/Makefile.in | 3 +
|
|
opcodes/configure | 1331 ++++++++----
|
|
zlib/Makefile.in | 3 +
|
|
zlib/configure | 1331 ++++++++----
|
|
35 files changed, 16078 insertions(+), 6097 deletions(-)
|
|
|
|
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
|
|
index ee674a36c5b..130a50d80b0 100644
|
|
--- a/bfd/Makefile.in
|
|
+++ b/bfd/Makefile.in
|
|
@@ -340,6 +340,7 @@ DATADIRNAME = @DATADIRNAME@
|
|
DEBUGDIR = @DEBUGDIR@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -379,6 +380,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -425,6 +427,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
all_backends = @all_backends@
|
|
diff --git a/bfd/configure b/bfd/configure
|
|
index b0f424dffc2..ba3fce10980 100755
|
|
--- a/bfd/configure
|
|
+++ b/bfd/configure
|
|
@@ -712,6 +712,9 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+ac_ct_AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -830,6 +833,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_plugins
|
|
enable_largefile
|
|
@@ -1526,6 +1530,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-mmap try using mmap for BFD input files if available
|
|
--with-separate-debug-dir=DIR
|
|
Look for global separate debug info in DIR
|
|
@@ -5061,8 +5067,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -5102,7 +5108,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5795,8 +5801,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5845,6 +5851,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5861,6 +5941,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -6029,7 +6114,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6188,6 +6274,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6203,6 +6304,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6217,8 +6469,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6234,7 +6488,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6254,11 +6508,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6274,7 +6532,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6293,6 +6551,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6304,25 +6566,20 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
|
|
|
|
|
|
@@ -6333,6 +6590,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
@@ -6673,8 +6987,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -6710,6 +7024,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6751,6 +7066,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6762,7 +7089,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6788,8 +7115,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6799,8 +7126,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6837,6 +7164,14 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6855,6 +7190,47 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7064,6 +7440,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -7627,6 +8120,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8180,8 +8675,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8347,6 +8840,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8409,7 +8908,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8466,13 +8965,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8533,6 +9036,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8883,7 +9391,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8982,12 +9491,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -9001,8 +9510,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -9020,8 +9529,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9067,8 +9576,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9198,7 +9707,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9211,22 +9726,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9238,7 +9760,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9251,22 +9779,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9311,20 +9846,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9385,7 +9963,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9393,7 +9971,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9409,7 +9987,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9433,10 +10011,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9515,23 +10093,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9616,7 +10207,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9635,9 +10226,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10213,8 +10804,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10247,13 +10839,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11155,7 +11805,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11158 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11199,10 +11849,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11261,7 +11911,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11264 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11305,10 +11955,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -15689,7 +16339,7 @@ SHARED_LDFLAGS=
|
|
if test "$enable_shared" = "yes"; then
|
|
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
|
|
if test -n "$x"; then
|
|
- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
|
|
+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
|
|
fi
|
|
fi
|
|
|
|
@@ -18314,13 +18964,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -18335,14 +18992,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -18375,12 +19035,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -18435,8 +19095,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -18446,12 +19111,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -18467,7 +19134,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -18503,6 +19169,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -19279,7 +19946,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -19382,19 +20050,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -19424,6 +20115,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -19433,6 +20130,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -19547,12 +20247,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -19639,9 +20339,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -19657,6 +20354,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -19689,210 +20389,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/bfd/configure.ac b/bfd/configure.ac
|
|
index 90fad5417b3..1d57f289f18 100644
|
|
--- a/bfd/configure.ac
|
|
+++ b/bfd/configure.ac
|
|
@@ -275,7 +275,7 @@ changequote(,)dnl
|
|
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
|
|
changequote([,])dnl
|
|
if test -n "$x"; then
|
|
- SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
|
|
+ SHARED_LIBADD="`pwd`/../libiberty/pic/libiberty.a"
|
|
fi
|
|
fi
|
|
|
|
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
|
|
index 8029bc29d57..5b2b4b81426 100644
|
|
--- a/binutils/Makefile.in
|
|
+++ b/binutils/Makefile.in
|
|
@@ -495,6 +495,7 @@ DEBUGINFOD_LIBS = @DEBUGINFOD_LIBS@
|
|
DEFS = @DEFS@
|
|
DEMANGLER_NAME = @DEMANGLER_NAME@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DLLTOOL_DEFS = @DLLTOOL_DEFS@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
@@ -539,6 +540,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -587,6 +589,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__include = @am__include@
|
|
diff --git a/binutils/configure b/binutils/configure
|
|
index caa7c3679e9..5b5c7b38028 100755
|
|
--- a/binutils/configure
|
|
+++ b/binutils/configure
|
|
@@ -704,8 +704,11 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
RANLIB
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -822,6 +825,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_plugins
|
|
enable_largefile
|
|
@@ -1529,6 +1533,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-debuginfod Enable debuginfo lookups with debuginfod
|
|
(auto/yes/no)
|
|
--with-gnu-ld assume the C compiler uses GNU ld default=no
|
|
@@ -4956,8 +4962,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -4997,7 +5003,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5690,8 +5696,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5740,6 +5746,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5756,6 +5836,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -5924,7 +6009,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6083,6 +6169,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6098,6 +6199,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6112,8 +6364,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6129,7 +6383,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6149,11 +6403,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6169,7 +6427,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6188,6 +6446,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6199,25 +6461,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -6229,6 +6485,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -6568,8 +6882,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -6605,6 +6919,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6646,6 +6961,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6657,7 +6984,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6683,8 +7010,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6694,8 +7021,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6732,6 +7059,18 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6748,6 +7087,43 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -6959,6 +7335,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -7522,6 +8015,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8106,8 +8601,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8273,6 +8766,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8335,7 +8834,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8392,13 +8891,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8459,6 +8962,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8809,7 +9317,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8908,12 +9417,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -8927,8 +9436,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -8946,8 +9455,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8993,8 +9502,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9124,7 +9633,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9137,22 +9652,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9164,7 +9686,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9177,22 +9705,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9237,20 +9772,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9311,7 +9889,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9319,7 +9897,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9335,7 +9913,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9359,10 +9937,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9441,23 +10019,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9542,7 +10133,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9561,9 +10152,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10139,8 +10730,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10173,13 +10765,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11081,7 +11731,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11084 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11125,10 +11775,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11187,7 +11837,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11190 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11231,10 +11881,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -17383,13 +18033,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17404,14 +18061,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17444,12 +18104,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17504,8 +18164,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -17515,12 +18180,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -17536,7 +18203,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -17572,6 +18238,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -18345,7 +19012,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -18448,19 +19116,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -18490,6 +19181,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -18499,6 +19196,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -18613,12 +19313,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -18705,9 +19405,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -18723,6 +19420,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -18755,210 +19455,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/gas/Makefile.in b/gas/Makefile.in
|
|
index 1f24d4a5bbc..0147b491612 100644
|
|
--- a/gas/Makefile.in
|
|
+++ b/gas/Makefile.in
|
|
@@ -384,6 +384,7 @@ CYGPATH_W = @CYGPATH_W@
|
|
DATADIRNAME = @DATADIRNAME@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -425,6 +426,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -468,6 +470,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__include = @am__include@
|
|
diff --git a/gas/configure b/gas/configure
|
|
index 085c87d564c..14b1dc0f121 100755
|
|
--- a/gas/configure
|
|
+++ b/gas/configure
|
|
@@ -692,8 +692,11 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
RANLIB
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -810,6 +813,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_plugins
|
|
enable_largefile
|
|
@@ -1519,6 +1523,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-cpu=CPU default cpu variant is CPU (currently only supported
|
|
on ARC)
|
|
--with-gnu-ld assume the C compiler uses GNU ld default=no
|
|
@@ -4652,8 +4658,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -4693,7 +4699,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5386,8 +5392,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5436,6 +5442,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5452,6 +5532,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -5620,7 +5705,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -5779,6 +5865,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -5794,6 +5895,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -5808,8 +6060,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -5825,7 +6079,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5845,11 +6099,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -5865,7 +6123,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5884,6 +6142,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -5895,29 +6157,81 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
|
|
|
|
|
|
@@ -6264,8 +6578,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -6301,6 +6615,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6342,6 +6657,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6353,7 +6680,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6379,8 +6706,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6390,8 +6717,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6428,6 +6755,19 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6444,6 +6784,42 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -6655,6 +7031,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -7218,6 +7711,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -7802,8 +8297,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -7969,6 +8462,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8031,7 +8530,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8088,13 +8587,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8155,6 +8658,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8505,7 +9013,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8604,12 +9113,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -8623,8 +9132,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -8642,8 +9151,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8689,8 +9198,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8820,7 +9329,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -8833,22 +9348,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -8860,7 +9382,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -8873,22 +9401,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -8933,20 +9468,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9007,7 +9585,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9015,7 +9593,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9031,7 +9609,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9055,10 +9633,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9137,23 +9715,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9238,7 +9829,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9257,9 +9848,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -9835,8 +10426,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -9869,13 +10461,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -10777,7 +11427,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10780 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10821,10 +11471,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -10883,7 +11533,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10886 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10927,10 +11577,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -17049,13 +17699,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17070,14 +17727,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17110,12 +17770,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17170,8 +17830,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -17181,12 +17846,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -17202,7 +17869,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -17238,6 +17904,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -18018,7 +18685,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -18121,19 +18789,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -18163,6 +18854,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -18172,6 +18869,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -18286,12 +18986,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -18378,9 +19078,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -18396,6 +19093,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -18428,210 +19128,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/gprof/Makefile.in b/gprof/Makefile.in
|
|
index 93fb378149a..6744cb1ff8c 100644
|
|
--- a/gprof/Makefile.in
|
|
+++ b/gprof/Makefile.in
|
|
@@ -327,6 +327,7 @@ CYGPATH_W = @CYGPATH_W@
|
|
DATADIRNAME = @DATADIRNAME@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -363,6 +364,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -398,6 +400,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__include = @am__include@
|
|
diff --git a/gprof/configure b/gprof/configure
|
|
index 47ed79d1df4..bfbf4c421f3 100755
|
|
--- a/gprof/configure
|
|
+++ b/gprof/configure
|
|
@@ -669,8 +669,11 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
RANLIB
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -787,6 +790,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_plugins
|
|
enable_largefile
|
|
@@ -1462,6 +1466,8 @@ Optional Packages:
|
|
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
|
|
--without-libintl-prefix don't search for libintl in includedir and libdir
|
|
--with-libintl-type=TYPE type of library to search for (auto/static/shared)
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
@@ -4528,8 +4534,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -4569,7 +4575,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5262,8 +5268,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5312,6 +5318,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5328,6 +5408,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -5496,7 +5581,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -5655,6 +5741,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -5670,6 +5771,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -5684,8 +5936,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -5701,7 +5955,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5721,11 +5975,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -5741,7 +5999,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5760,6 +6018,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -5771,25 +6033,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -5801,6 +6057,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -6140,8 +6454,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -6177,6 +6491,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6218,6 +6533,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6229,7 +6556,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6255,8 +6582,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6266,8 +6593,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6304,6 +6631,18 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6320,6 +6659,43 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -6531,6 +6907,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -7094,6 +7587,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -7678,8 +8173,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -7845,6 +8338,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -7907,7 +8406,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -7964,13 +8463,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8031,6 +8534,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8381,7 +8889,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8480,12 +8989,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -8499,8 +9008,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -8518,8 +9027,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8565,8 +9074,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8696,7 +9205,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -8709,22 +9224,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -8736,7 +9258,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -8749,22 +9277,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -8809,20 +9344,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -8883,7 +9461,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -8891,7 +9469,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -8907,7 +9485,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -8931,10 +9509,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9013,23 +9591,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9114,7 +9705,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9133,9 +9724,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -9711,8 +10302,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -9745,13 +10337,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -10653,7 +11303,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10656 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10697,10 +11347,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -10759,7 +11409,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10762 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10803,10 +11453,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -14726,13 +15376,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -14747,14 +15404,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -14787,12 +15447,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -14847,8 +15507,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -14858,12 +15523,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -14879,7 +15546,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -14915,6 +15581,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -15688,7 +16355,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -15791,19 +16459,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -15833,6 +16524,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -15842,6 +16539,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -15956,12 +16656,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -16048,9 +16748,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -16066,6 +16763,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -16098,210 +16798,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/gprofng/Makefile.in b/gprofng/Makefile.in
|
|
index f770dac57c5..dbdfd96c5ff 100644
|
|
--- a/gprofng/Makefile.in
|
|
+++ b/gprofng/Makefile.in
|
|
@@ -254,6 +254,7 @@ CXXFLAGS = @CXXFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -290,6 +291,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
diff --git a/gprofng/configure b/gprofng/configure
|
|
index 524dbe737ec..6aaed114536 100755
|
|
--- a/gprofng/configure
|
|
+++ b/gprofng/configure
|
|
@@ -672,6 +672,8 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -802,6 +804,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_werror_always
|
|
enable_gprofng_tools
|
|
@@ -1465,6 +1468,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-jdk=PATH specify prefix directory for installed JDK.
|
|
--with-system-zlib use installed libz
|
|
|
|
@@ -6153,8 +6158,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -6194,7 +6199,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -6887,8 +6892,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -6937,6 +6942,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -6953,6 +7032,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -7121,7 +7205,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -7280,6 +7365,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -7295,6 +7395,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -7309,8 +7560,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -7326,7 +7579,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -7346,11 +7599,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -7366,7 +7623,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -7385,6 +7642,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -7396,25 +7657,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -7426,6 +7681,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -7765,8 +8078,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -7802,6 +8115,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -7843,6 +8157,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -7854,7 +8180,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -7880,8 +8206,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -7891,8 +8217,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -7929,6 +8255,14 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7947,6 +8281,47 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -8156,6 +8531,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -8719,6 +9211,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8789,6 +9283,16 @@ done
|
|
|
|
|
|
|
|
+func_stripname_cnf ()
|
|
+{
|
|
+ case ${2} in
|
|
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
+ esac
|
|
+} # func_stripname_cnf
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
# Set options
|
|
@@ -9274,8 +9778,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -9441,6 +9943,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -9503,7 +10011,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -9560,13 +10068,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -9627,6 +10139,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -9977,7 +10494,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -10076,12 +10594,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -10095,8 +10613,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -10114,8 +10632,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -10161,8 +10679,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -10292,7 +10810,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -10305,22 +10829,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -10332,7 +10863,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -10345,22 +10882,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -10405,20 +10949,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -10479,7 +11066,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -10487,7 +11074,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -10503,7 +11090,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -10527,10 +11114,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -10609,23 +11196,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -10710,7 +11310,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -10729,9 +11329,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -11307,8 +11907,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -11341,13 +11942,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -12249,7 +12908,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 12252 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -12293,10 +12952,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12355,7 +13014,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 12358 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -12399,10 +13058,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12794,6 +13453,7 @@ $RM -r conftest*
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC=$CC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
lt_save_LD=$LD
|
|
lt_save_GCC=$GCC
|
|
GCC=$GXX
|
|
@@ -12811,6 +13471,7 @@ $RM -r conftest*
|
|
fi
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
CC=${CXX-"c++"}
|
|
+ CFLAGS=$CXXFLAGS
|
|
compiler=$CC
|
|
compiler_CXX=$CC
|
|
for cc_temp in $compiler""; do
|
|
@@ -13093,7 +13754,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
allow_undefined_flag_CXX='-berok'
|
|
# Determine the default libpath from the value encoded in an empty
|
|
# executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -13106,22 +13773,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
|
@@ -13134,7 +13808,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -13147,22 +13827,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -13205,29 +13892,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
- # as there is no search path for DLLs.
|
|
- hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
- allow_undefined_flag_CXX=unsupported
|
|
- always_export_symbols_CXX=no
|
|
- enable_shared_with_static_runtimes_CXX=yes
|
|
-
|
|
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- # If the export-symbols file already is a .def file (1st line
|
|
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
- cp $export_symbols $output_objdir/$soname.def;
|
|
- else
|
|
- echo EXPORTS > $output_objdir/$soname.def;
|
|
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
- fi~
|
|
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- else
|
|
- ld_shlibs_CXX=no
|
|
- fi
|
|
- ;;
|
|
+ case $GXX,$cc_basename in
|
|
+ ,cl* | no,cl*)
|
|
+ # Native MSVC
|
|
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
+ # no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX=' '
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=yes
|
|
+ file_list_spec_CXX='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
|
|
+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ func_to_tool_file "$lt_outputfile"~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # g++
|
|
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
+ # as there is no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=no
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+
|
|
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ # If the export-symbols file already is a .def file (1st line
|
|
+ # is EXPORTS), use it as is; otherwise, prepend...
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ cp $export_symbols $output_objdir/$soname.def;
|
|
+ else
|
|
+ echo EXPORTS > $output_objdir/$soname.def;
|
|
+ cat $export_symbols >> $output_objdir/$soname.def;
|
|
+ fi~
|
|
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ else
|
|
+ ld_shlibs_CXX=no
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
darwin* | rhapsody*)
|
|
|
|
|
|
@@ -13333,7 +14066,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
# FIXME: insert proper C++ library support
|
|
ld_shlibs_CXX=no
|
|
@@ -13404,10 +14137,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -13448,9 +14181,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
if test "$with_gnu_ld" = no; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
else
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
fi
|
|
fi
|
|
link_all_deplibs_CXX=yes
|
|
@@ -13728,7 +14461,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
esac
|
|
|
|
@@ -13774,7 +14507,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
archive_cmds_need_lc_CXX=yes
|
|
no_undefined_flag_CXX=' -zdefs'
|
|
@@ -13815,9 +14548,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
|
# Commands to make compiler produce verbose output that lists
|
|
# what "hidden" libraries, object files and flags are used when
|
|
@@ -13953,6 +14686,13 @@ private:
|
|
};
|
|
_LT_EOF
|
|
|
|
+
|
|
+_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
+case "$CC $CFLAGS " in #(
|
|
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
+esac
|
|
+
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
@@ -13966,7 +14706,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
pre_test_object_deps_done=no
|
|
|
|
for p in `eval "$output_verbose_link_cmd"`; do
|
|
- case $p in
|
|
+ case ${prev}${p} in
|
|
|
|
-L* | -R* | -l*)
|
|
# Some compilers place space between "-{L,R}" and the path.
|
|
@@ -13975,13 +14715,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
test $p = "-R"; then
|
|
prev=$p
|
|
continue
|
|
- else
|
|
- prev=
|
|
fi
|
|
|
|
+ # Expand the sysroot to ease extracting the directories later.
|
|
+ if test -z "$prev"; then
|
|
+ case $p in
|
|
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
|
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
|
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
|
+ esac
|
|
+ fi
|
|
+ case $p in
|
|
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
|
+ esac
|
|
if test "$pre_test_object_deps_done" = no; then
|
|
- case $p in
|
|
- -L* | -R*)
|
|
+ case ${prev} in
|
|
+ -L | -R)
|
|
# Internal compiler library paths should come after those
|
|
# provided the user. The postdeps already come after the
|
|
# user supplied libs so there is no need to process them.
|
|
@@ -14001,8 +14750,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
|
fi
|
|
fi
|
|
+ prev=
|
|
;;
|
|
|
|
+ *.lto.$objext) ;; # Ignore GCC LTO objects
|
|
*.$objext)
|
|
# This assumes that the test object file only shows up
|
|
# once in the compiler output.
|
|
@@ -14038,6 +14789,7 @@ else
|
|
fi
|
|
|
|
$RM -f confest.$objext
|
|
+CFLAGS=$_lt_libdeps_save_CFLAGS
|
|
|
|
# PORTME: override above test on systems where it is broken
|
|
case $host_os in
|
|
@@ -14073,7 +14825,7 @@ linux*)
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# The more standards-conforming stlport4 library is
|
|
# incompatible with the Cstd library. Avoid specifying
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
@@ -14138,8 +14890,6 @@ fi
|
|
lt_prog_compiler_pic_CXX=
|
|
lt_prog_compiler_static_CXX=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
# C++ specific cases for pic, static, wl, etc.
|
|
if test "$GXX" = yes; then
|
|
@@ -14244,6 +14994,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
esac
|
|
;;
|
|
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
+ # This hack is so that the source file can tell whether it is being
|
|
+ # built for inclusion in a dll (and should export symbols for example).
|
|
+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
|
+ ;;
|
|
dgux*)
|
|
case $cc_basename in
|
|
ec++*)
|
|
@@ -14396,7 +15151,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
|
@@ -14461,10 +15216,17 @@ case $host_os in
|
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
|
|
-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
|
|
+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -14522,6 +15284,8 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -14699,6 +15463,7 @@ fi
|
|
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
|
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
|
@@ -14713,15 +15478,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
;;
|
|
pw32*)
|
|
export_symbols_cmds_CXX="$ltdll_cmds"
|
|
- ;;
|
|
+ ;;
|
|
cygwin* | mingw* | cegcc*)
|
|
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ case $cc_basename in
|
|
+ cl*) ;;
|
|
+ *)
|
|
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
*)
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ ;;
|
|
esac
|
|
- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
|
|
$as_echo "$ld_shlibs_CXX" >&6; }
|
|
@@ -14984,8 +15754,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -15017,13 +15788,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -15587,6 +16416,7 @@ fi
|
|
fi # test -n "$compiler"
|
|
|
|
CC=$lt_save_CC
|
|
+ CFLAGS=$lt_save_CFLAGS
|
|
LDCXX=$LD
|
|
LD=$lt_save_LD
|
|
GCC=$lt_save_GCC
|
|
@@ -17785,13 +18615,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17806,14 +18643,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17846,12 +18686,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17890,8 +18730,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
|
|
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
|
|
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
|
|
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17918,12 +18758,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
|
|
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
|
|
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17961,8 +18801,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -17972,12 +18817,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -17993,7 +18840,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -18015,8 +18861,8 @@ LD_CXX \
|
|
reload_flag_CXX \
|
|
compiler_CXX \
|
|
lt_prog_compiler_no_builtin_flag_CXX \
|
|
-lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_pic_CXX \
|
|
+lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_static_CXX \
|
|
lt_cv_prog_compiler_c_o_CXX \
|
|
export_dynamic_flag_spec_CXX \
|
|
@@ -18028,7 +18874,6 @@ no_undefined_flag_CXX \
|
|
hardcode_libdir_flag_spec_CXX \
|
|
hardcode_libdir_flag_spec_ld_CXX \
|
|
hardcode_libdir_separator_CXX \
|
|
-fix_srcfile_path_CXX \
|
|
exclude_expsyms_CXX \
|
|
include_expsyms_CXX \
|
|
file_list_spec_CXX \
|
|
@@ -18062,6 +18907,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -18076,7 +18922,8 @@ archive_expsym_cmds_CXX \
|
|
module_cmds_CXX \
|
|
module_expsym_cmds_CXX \
|
|
export_symbols_cmds_CXX \
|
|
-prelink_cmds_CXX; do
|
|
+prelink_cmds_CXX \
|
|
+postlink_cmds_CXX; do
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
*[\\\\\\\`\\"\\\$]*)
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
@@ -18833,7 +19680,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -18936,19 +19784,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -18978,6 +19849,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -18987,6 +19864,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -19101,12 +19981,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -19193,9 +20073,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -19211,6 +20088,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -19257,210 +20137,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
@@ -19488,12 +20327,12 @@ with_gcc=$GCC_CXX
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl_CXX
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl_CXX
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
|
|
|
@@ -19580,9 +20419,6 @@ inherit_rpath=$inherit_rpath_CXX
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs_CXX
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path_CXX
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols_CXX
|
|
|
|
@@ -19598,6 +20434,9 @@ include_expsyms=$lt_include_expsyms_CXX
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds_CXX
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds_CXX
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec_CXX
|
|
|
|
diff --git a/gprofng/doc/Makefile.in b/gprofng/doc/Makefile.in
|
|
index 162ae4b19c1..9e6017aa0ff 100644
|
|
--- a/gprofng/doc/Makefile.in
|
|
+++ b/gprofng/doc/Makefile.in
|
|
@@ -238,6 +238,7 @@ CXXFLAGS = @CXXFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -272,6 +273,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
diff --git a/gprofng/gp-display-html/Makefile.in b/gprofng/gp-display-html/Makefile.in
|
|
index 2b8580f40f9..a01e34702d7 100644
|
|
--- a/gprofng/gp-display-html/Makefile.in
|
|
+++ b/gprofng/gp-display-html/Makefile.in
|
|
@@ -198,6 +198,7 @@ CXXFLAGS = @CXXFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -232,6 +233,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
diff --git a/gprofng/libcollector/Makefile.in b/gprofng/libcollector/Makefile.in
|
|
index 4448745f17e..ff20f8f0715 100644
|
|
--- a/gprofng/libcollector/Makefile.in
|
|
+++ b/gprofng/libcollector/Makefile.in
|
|
@@ -316,6 +316,7 @@ CXXFLAGS = @CXXFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -341,6 +342,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
diff --git a/gprofng/libcollector/configure b/gprofng/libcollector/configure
|
|
index b1ba1edb35b..5a20f484c38 100755
|
|
--- a/gprofng/libcollector/configure
|
|
+++ b/gprofng/libcollector/configure
|
|
@@ -640,6 +640,8 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -769,6 +771,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
'
|
|
ac_precious_vars='build_alias
|
|
@@ -1424,6 +1427,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
@@ -5968,8 +5973,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -6009,7 +6014,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -6702,8 +6707,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -6752,6 +6757,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -6768,6 +6847,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -6936,7 +7020,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -7095,6 +7180,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -7110,6 +7210,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -7124,8 +7375,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -7141,7 +7394,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -7161,11 +7414,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -7181,7 +7438,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -7200,6 +7457,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -7211,25 +7472,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -7241,6 +7496,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -7580,8 +7893,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -7617,6 +7930,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -7658,6 +7972,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -7669,7 +7995,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -7695,8 +8021,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -7706,8 +8032,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -7744,6 +8070,13 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
|
|
|
|
|
|
@@ -7763,6 +8096,48 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
# Check whether --enable-libtool-lock was given.
|
|
@@ -7971,6 +8346,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -8534,6 +9026,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8604,6 +9098,16 @@ done
|
|
|
|
|
|
|
|
+func_stripname_cnf ()
|
|
+{
|
|
+ case ${2} in
|
|
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
+ esac
|
|
+} # func_stripname_cnf
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
# Set options
|
|
@@ -9119,8 +9623,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -9286,6 +9788,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -9348,7 +9856,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -9405,13 +9913,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -9472,6 +9984,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -9822,7 +10339,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -9921,12 +10439,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -9940,8 +10458,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -9959,8 +10477,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -10006,8 +10524,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -10137,7 +10655,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -10150,22 +10674,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -10177,7 +10708,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -10190,22 +10727,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -10250,20 +10794,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -10324,7 +10911,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -10332,7 +10919,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -10348,7 +10935,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -10372,10 +10959,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -10454,23 +11041,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -10555,7 +11155,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -10574,9 +11174,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -11152,8 +11752,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -11186,13 +11787,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -12094,7 +12753,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 12097 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -12138,10 +12797,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12200,7 +12859,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 12203 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -12244,10 +12903,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12639,6 +13298,7 @@ $RM -r conftest*
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC=$CC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
lt_save_LD=$LD
|
|
lt_save_GCC=$GCC
|
|
GCC=$GXX
|
|
@@ -12656,6 +13316,7 @@ $RM -r conftest*
|
|
fi
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
CC=${CXX-"c++"}
|
|
+ CFLAGS=$CXXFLAGS
|
|
compiler=$CC
|
|
compiler_CXX=$CC
|
|
for cc_temp in $compiler""; do
|
|
@@ -12938,7 +13599,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
allow_undefined_flag_CXX='-berok'
|
|
# Determine the default libpath from the value encoded in an empty
|
|
# executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -12951,22 +13618,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
|
@@ -12979,7 +13653,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -12992,22 +13672,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -13050,29 +13737,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
- # as there is no search path for DLLs.
|
|
- hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
- allow_undefined_flag_CXX=unsupported
|
|
- always_export_symbols_CXX=no
|
|
- enable_shared_with_static_runtimes_CXX=yes
|
|
-
|
|
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- # If the export-symbols file already is a .def file (1st line
|
|
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
- cp $export_symbols $output_objdir/$soname.def;
|
|
- else
|
|
- echo EXPORTS > $output_objdir/$soname.def;
|
|
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
- fi~
|
|
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- else
|
|
- ld_shlibs_CXX=no
|
|
- fi
|
|
- ;;
|
|
+ case $GXX,$cc_basename in
|
|
+ ,cl* | no,cl*)
|
|
+ # Native MSVC
|
|
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
+ # no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX=' '
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=yes
|
|
+ file_list_spec_CXX='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
|
|
+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ func_to_tool_file "$lt_outputfile"~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # g++
|
|
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
+ # as there is no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=no
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+
|
|
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ # If the export-symbols file already is a .def file (1st line
|
|
+ # is EXPORTS), use it as is; otherwise, prepend...
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ cp $export_symbols $output_objdir/$soname.def;
|
|
+ else
|
|
+ echo EXPORTS > $output_objdir/$soname.def;
|
|
+ cat $export_symbols >> $output_objdir/$soname.def;
|
|
+ fi~
|
|
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ else
|
|
+ ld_shlibs_CXX=no
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
darwin* | rhapsody*)
|
|
|
|
|
|
@@ -13178,7 +13911,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
# FIXME: insert proper C++ library support
|
|
ld_shlibs_CXX=no
|
|
@@ -13249,10 +13982,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -13293,9 +14026,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
if test "$with_gnu_ld" = no; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
else
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
fi
|
|
fi
|
|
link_all_deplibs_CXX=yes
|
|
@@ -13573,7 +14306,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
esac
|
|
|
|
@@ -13619,7 +14352,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
archive_cmds_need_lc_CXX=yes
|
|
no_undefined_flag_CXX=' -zdefs'
|
|
@@ -13660,9 +14393,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
|
# Commands to make compiler produce verbose output that lists
|
|
# what "hidden" libraries, object files and flags are used when
|
|
@@ -13798,6 +14531,13 @@ private:
|
|
};
|
|
_LT_EOF
|
|
|
|
+
|
|
+_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
+case "$CC $CFLAGS " in #(
|
|
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
+esac
|
|
+
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
@@ -13811,7 +14551,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
pre_test_object_deps_done=no
|
|
|
|
for p in `eval "$output_verbose_link_cmd"`; do
|
|
- case $p in
|
|
+ case ${prev}${p} in
|
|
|
|
-L* | -R* | -l*)
|
|
# Some compilers place space between "-{L,R}" and the path.
|
|
@@ -13820,13 +14560,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
test $p = "-R"; then
|
|
prev=$p
|
|
continue
|
|
- else
|
|
- prev=
|
|
fi
|
|
|
|
+ # Expand the sysroot to ease extracting the directories later.
|
|
+ if test -z "$prev"; then
|
|
+ case $p in
|
|
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
|
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
|
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
|
+ esac
|
|
+ fi
|
|
+ case $p in
|
|
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
|
+ esac
|
|
if test "$pre_test_object_deps_done" = no; then
|
|
- case $p in
|
|
- -L* | -R*)
|
|
+ case ${prev} in
|
|
+ -L | -R)
|
|
# Internal compiler library paths should come after those
|
|
# provided the user. The postdeps already come after the
|
|
# user supplied libs so there is no need to process them.
|
|
@@ -13846,8 +14595,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
|
fi
|
|
fi
|
|
+ prev=
|
|
;;
|
|
|
|
+ *.lto.$objext) ;; # Ignore GCC LTO objects
|
|
*.$objext)
|
|
# This assumes that the test object file only shows up
|
|
# once in the compiler output.
|
|
@@ -13883,6 +14634,7 @@ else
|
|
fi
|
|
|
|
$RM -f confest.$objext
|
|
+CFLAGS=$_lt_libdeps_save_CFLAGS
|
|
|
|
# PORTME: override above test on systems where it is broken
|
|
case $host_os in
|
|
@@ -13918,7 +14670,7 @@ linux*)
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# The more standards-conforming stlport4 library is
|
|
# incompatible with the Cstd library. Avoid specifying
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
@@ -13983,8 +14735,6 @@ fi
|
|
lt_prog_compiler_pic_CXX=
|
|
lt_prog_compiler_static_CXX=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
# C++ specific cases for pic, static, wl, etc.
|
|
if test "$GXX" = yes; then
|
|
@@ -14089,6 +14839,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
esac
|
|
;;
|
|
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
+ # This hack is so that the source file can tell whether it is being
|
|
+ # built for inclusion in a dll (and should export symbols for example).
|
|
+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
|
+ ;;
|
|
dgux*)
|
|
case $cc_basename in
|
|
ec++*)
|
|
@@ -14241,7 +14996,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
|
@@ -14306,10 +15061,17 @@ case $host_os in
|
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
|
|
-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
|
|
+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -14367,6 +15129,8 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -14544,6 +15308,7 @@ fi
|
|
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
|
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
|
@@ -14558,15 +15323,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
;;
|
|
pw32*)
|
|
export_symbols_cmds_CXX="$ltdll_cmds"
|
|
- ;;
|
|
+ ;;
|
|
cygwin* | mingw* | cegcc*)
|
|
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ case $cc_basename in
|
|
+ cl*) ;;
|
|
+ *)
|
|
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
*)
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ ;;
|
|
esac
|
|
- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
|
|
$as_echo "$ld_shlibs_CXX" >&6; }
|
|
@@ -14829,8 +15599,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -14862,13 +15633,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -15432,6 +16261,7 @@ fi
|
|
fi # test -n "$compiler"
|
|
|
|
CC=$lt_save_CC
|
|
+ CFLAGS=$lt_save_CFLAGS
|
|
LDCXX=$LD
|
|
LD=$lt_save_LD
|
|
GCC=$lt_save_GCC
|
|
@@ -16359,13 +17189,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -16380,14 +17217,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -16420,12 +17260,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -16464,8 +17304,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
|
|
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
|
|
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
|
|
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -16492,12 +17332,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
|
|
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
|
|
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -16535,8 +17375,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -16546,12 +17391,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -16567,7 +17414,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -16589,8 +17435,8 @@ LD_CXX \
|
|
reload_flag_CXX \
|
|
compiler_CXX \
|
|
lt_prog_compiler_no_builtin_flag_CXX \
|
|
-lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_pic_CXX \
|
|
+lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_static_CXX \
|
|
lt_cv_prog_compiler_c_o_CXX \
|
|
export_dynamic_flag_spec_CXX \
|
|
@@ -16602,7 +17448,6 @@ no_undefined_flag_CXX \
|
|
hardcode_libdir_flag_spec_CXX \
|
|
hardcode_libdir_flag_spec_ld_CXX \
|
|
hardcode_libdir_separator_CXX \
|
|
-fix_srcfile_path_CXX \
|
|
exclude_expsyms_CXX \
|
|
include_expsyms_CXX \
|
|
file_list_spec_CXX \
|
|
@@ -16636,6 +17481,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -16650,7 +17496,8 @@ archive_expsym_cmds_CXX \
|
|
module_cmds_CXX \
|
|
module_expsym_cmds_CXX \
|
|
export_symbols_cmds_CXX \
|
|
-prelink_cmds_CXX; do
|
|
+prelink_cmds_CXX \
|
|
+postlink_cmds_CXX; do
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
*[\\\\\\\`\\"\\\$]*)
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
@@ -17404,7 +18251,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -17507,19 +18355,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -17549,6 +18420,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -17558,6 +18435,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -17672,12 +18552,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -17764,9 +18644,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -17782,6 +18659,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -17828,210 +18708,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
@@ -18059,12 +18898,12 @@ with_gcc=$GCC_CXX
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl_CXX
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl_CXX
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
|
|
|
@@ -18151,9 +18990,6 @@ inherit_rpath=$inherit_rpath_CXX
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs_CXX
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path_CXX
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols_CXX
|
|
|
|
@@ -18169,6 +19005,9 @@ include_expsyms=$lt_include_expsyms_CXX
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds_CXX
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds_CXX
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec_CXX
|
|
|
|
diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in
|
|
index d0dec12e244..cf2745db706 100644
|
|
--- a/gprofng/src/Makefile.in
|
|
+++ b/gprofng/src/Makefile.in
|
|
@@ -322,6 +322,7 @@ CXXFLAGS = @CXXFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -356,6 +357,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
diff --git a/ld/Makefile.in b/ld/Makefile.in
|
|
index c3d08edbef1..7ee6acd3e03 100644
|
|
--- a/ld/Makefile.in
|
|
+++ b/ld/Makefile.in
|
|
@@ -390,6 +390,7 @@ CYGPATH_W = @CYGPATH_W@
|
|
DATADIRNAME = @DATADIRNAME@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -445,6 +446,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -495,6 +497,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_CXX = @ac_ct_CXX@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
diff --git a/ld/configure b/ld/configure
|
|
index d537ec391d2..de7b61bb612 100755
|
|
--- a/ld/configure
|
|
+++ b/ld/configure
|
|
@@ -705,8 +705,11 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
RANLIB
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -836,6 +839,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_plugins
|
|
enable_largefile
|
|
@@ -1586,6 +1590,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-lib-path=dir1:dir2... set default LIB_PATH
|
|
--with-sysroot=DIR Search for usr/lib et al within DIR.
|
|
--with-gnu-ld assume the C compiler uses GNU ld default=no
|
|
@@ -5565,8 +5571,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -5606,7 +5612,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -6299,8 +6305,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -6349,6 +6355,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -6365,6 +6445,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -6533,7 +6618,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6692,6 +6778,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6707,6 +6808,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6721,8 +6973,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6738,7 +6992,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6758,11 +7012,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6778,7 +7036,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6797,6 +7055,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6808,29 +7070,81 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
|
|
|
|
|
|
@@ -7177,8 +7491,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -7214,6 +7528,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -7255,6 +7570,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -7266,7 +7593,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -7292,8 +7619,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -7303,8 +7630,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -7341,6 +7668,27 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7353,10 +7701,38 @@ fi
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
|
|
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -7568,6 +7944,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -8131,6 +8624,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8201,6 +8696,16 @@ done
|
|
|
|
|
|
|
|
+func_stripname_cnf ()
|
|
+{
|
|
+ case ${2} in
|
|
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
+ esac
|
|
+} # func_stripname_cnf
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
# Set options
|
|
@@ -8716,8 +9221,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8883,6 +9386,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8945,7 +9454,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -9002,13 +9511,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -9069,6 +9582,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -9419,7 +9937,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -9518,12 +10037,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -9537,8 +10056,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -9556,8 +10075,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9603,8 +10122,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9734,7 +10253,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9747,22 +10272,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9774,7 +10306,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9787,22 +10325,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9847,20 +10392,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9921,7 +10509,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9929,7 +10517,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9945,7 +10533,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9969,10 +10557,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -10051,23 +10639,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -10152,7 +10753,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -10171,9 +10772,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10749,8 +11350,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10783,13 +11385,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11691,7 +12351,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11691 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11735,10 +12395,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11797,7 +12457,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11797 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11841,10 +12501,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12236,6 +12896,7 @@ $RM -r conftest*
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC=$CC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
lt_save_LD=$LD
|
|
lt_save_GCC=$GCC
|
|
GCC=$GXX
|
|
@@ -12253,6 +12914,7 @@ $RM -r conftest*
|
|
fi
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
CC=${CXX-"c++"}
|
|
+ CFLAGS=$CXXFLAGS
|
|
compiler=$CC
|
|
compiler_CXX=$CC
|
|
for cc_temp in $compiler""; do
|
|
@@ -12535,7 +13197,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
allow_undefined_flag_CXX='-berok'
|
|
# Determine the default libpath from the value encoded in an empty
|
|
# executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -12548,22 +13216,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
|
@@ -12576,7 +13251,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath__CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -12589,22 +13270,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath__CXX"; then
|
|
+ lt_cv_aix_libpath__CXX="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath__CXX
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -12647,29 +13335,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
- # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
- # as there is no search path for DLLs.
|
|
- hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
- export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
- allow_undefined_flag_CXX=unsupported
|
|
- always_export_symbols_CXX=no
|
|
- enable_shared_with_static_runtimes_CXX=yes
|
|
-
|
|
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- # If the export-symbols file already is a .def file (1st line
|
|
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
- cp $export_symbols $output_objdir/$soname.def;
|
|
- else
|
|
- echo EXPORTS > $output_objdir/$soname.def;
|
|
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
- fi~
|
|
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- else
|
|
- ld_shlibs_CXX=no
|
|
- fi
|
|
- ;;
|
|
+ case $GXX,$cc_basename in
|
|
+ ,cl* | no,cl*)
|
|
+ # Native MSVC
|
|
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
+ # no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX=' '
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=yes
|
|
+ file_list_spec_CXX='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds_CXX='chmod 644 $oldlib'
|
|
+ postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ func_to_tool_file "$lt_outputfile"~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # g++
|
|
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
|
+ # as there is no search path for DLLs.
|
|
+ hardcode_libdir_flag_spec_CXX='-L$libdir'
|
|
+ export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
|
|
+ allow_undefined_flag_CXX=unsupported
|
|
+ always_export_symbols_CXX=no
|
|
+ enable_shared_with_static_runtimes_CXX=yes
|
|
+
|
|
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ # If the export-symbols file already is a .def file (1st line
|
|
+ # is EXPORTS), use it as is; otherwise, prepend...
|
|
+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ cp $export_symbols $output_objdir/$soname.def;
|
|
+ else
|
|
+ echo EXPORTS > $output_objdir/$soname.def;
|
|
+ cat $export_symbols >> $output_objdir/$soname.def;
|
|
+ fi~
|
|
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ else
|
|
+ ld_shlibs_CXX=no
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
darwin* | rhapsody*)
|
|
|
|
|
|
@@ -12775,7 +13509,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
;;
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
- archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
# FIXME: insert proper C++ library support
|
|
ld_shlibs_CXX=no
|
|
@@ -12846,10 +13580,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -12890,9 +13624,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
if test "$with_gnu_ld" = no; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
else
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
fi
|
|
fi
|
|
link_all_deplibs_CXX=yes
|
|
@@ -13170,7 +13904,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
*)
|
|
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
esac
|
|
|
|
@@ -13216,7 +13950,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
archive_cmds_need_lc_CXX=yes
|
|
no_undefined_flag_CXX=' -zdefs'
|
|
@@ -13257,9 +13991,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
|
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
|
# Commands to make compiler produce verbose output that lists
|
|
# what "hidden" libraries, object files and flags are used when
|
|
@@ -13395,6 +14129,13 @@ private:
|
|
};
|
|
_LT_EOF
|
|
|
|
+
|
|
+_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
+case "$CC $CFLAGS " in #(
|
|
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
+esac
|
|
+
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
(eval $ac_compile) 2>&5
|
|
ac_status=$?
|
|
@@ -13408,7 +14149,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
pre_test_object_deps_done=no
|
|
|
|
for p in `eval "$output_verbose_link_cmd"`; do
|
|
- case $p in
|
|
+ case ${prev}${p} in
|
|
|
|
-L* | -R* | -l*)
|
|
# Some compilers place space between "-{L,R}" and the path.
|
|
@@ -13417,13 +14158,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
test $p = "-R"; then
|
|
prev=$p
|
|
continue
|
|
- else
|
|
- prev=
|
|
fi
|
|
|
|
+ # Expand the sysroot to ease extracting the directories later.
|
|
+ if test -z "$prev"; then
|
|
+ case $p in
|
|
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
|
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
|
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
|
+ esac
|
|
+ fi
|
|
+ case $p in
|
|
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
|
+ esac
|
|
if test "$pre_test_object_deps_done" = no; then
|
|
- case $p in
|
|
- -L* | -R*)
|
|
+ case ${prev} in
|
|
+ -L | -R)
|
|
# Internal compiler library paths should come after those
|
|
# provided the user. The postdeps already come after the
|
|
# user supplied libs so there is no need to process them.
|
|
@@ -13443,8 +14193,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
|
|
fi
|
|
fi
|
|
+ prev=
|
|
;;
|
|
|
|
+ *.lto.$objext) ;; # Ignore GCC LTO objects
|
|
*.$objext)
|
|
# This assumes that the test object file only shows up
|
|
# once in the compiler output.
|
|
@@ -13480,6 +14232,7 @@ else
|
|
fi
|
|
|
|
$RM -f confest.$objext
|
|
+CFLAGS=$_lt_libdeps_save_CFLAGS
|
|
|
|
# PORTME: override above test on systems where it is broken
|
|
case $host_os in
|
|
@@ -13515,7 +14268,7 @@ linux*)
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# The more standards-conforming stlport4 library is
|
|
# incompatible with the Cstd library. Avoid specifying
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
@@ -13580,8 +14333,6 @@ fi
|
|
lt_prog_compiler_pic_CXX=
|
|
lt_prog_compiler_static_CXX=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
# C++ specific cases for pic, static, wl, etc.
|
|
if test "$GXX" = yes; then
|
|
@@ -13686,6 +14437,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
esac
|
|
;;
|
|
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
+ # This hack is so that the source file can tell whether it is being
|
|
+ # built for inclusion in a dll (and should export symbols for example).
|
|
+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
|
|
+ ;;
|
|
dgux*)
|
|
case $cc_basename in
|
|
ec++*)
|
|
@@ -13838,7 +14594,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
;;
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
lt_prog_compiler_pic_CXX='-KPIC'
|
|
lt_prog_compiler_static_CXX='-Bstatic'
|
|
@@ -13903,10 +14659,17 @@ case $host_os in
|
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
|
|
-$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
|
|
+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -13964,6 +14727,8 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -14141,6 +14906,7 @@ fi
|
|
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
|
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
case $host_os in
|
|
aix[4-9]*)
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
|
@@ -14155,15 +14921,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
|
|
;;
|
|
pw32*)
|
|
export_symbols_cmds_CXX="$ltdll_cmds"
|
|
- ;;
|
|
+ ;;
|
|
cygwin* | mingw* | cegcc*)
|
|
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ case $cc_basename in
|
|
+ cl*) ;;
|
|
+ *)
|
|
+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
*)
|
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ ;;
|
|
esac
|
|
- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
|
|
$as_echo "$ld_shlibs_CXX" >&6; }
|
|
@@ -14426,8 +15197,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -14459,13 +15231,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -15029,6 +15859,7 @@ fi
|
|
fi # test -n "$compiler"
|
|
|
|
CC=$lt_save_CC
|
|
+ CFLAGS=$lt_save_CFLAGS
|
|
LDCXX=$LD
|
|
LD=$lt_save_LD
|
|
GCC=$lt_save_GCC
|
|
@@ -20389,13 +21220,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -20410,14 +21248,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -20450,12 +21291,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -20494,8 +21335,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
|
|
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
|
|
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
|
|
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -20522,12 +21363,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
|
|
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
|
|
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
|
|
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
|
|
@@ -20565,8 +21406,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -20576,12 +21422,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -20597,7 +21445,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -20619,8 +21466,8 @@ LD_CXX \
|
|
reload_flag_CXX \
|
|
compiler_CXX \
|
|
lt_prog_compiler_no_builtin_flag_CXX \
|
|
-lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_pic_CXX \
|
|
+lt_prog_compiler_wl_CXX \
|
|
lt_prog_compiler_static_CXX \
|
|
lt_cv_prog_compiler_c_o_CXX \
|
|
export_dynamic_flag_spec_CXX \
|
|
@@ -20632,7 +21479,6 @@ no_undefined_flag_CXX \
|
|
hardcode_libdir_flag_spec_CXX \
|
|
hardcode_libdir_flag_spec_ld_CXX \
|
|
hardcode_libdir_separator_CXX \
|
|
-fix_srcfile_path_CXX \
|
|
exclude_expsyms_CXX \
|
|
include_expsyms_CXX \
|
|
file_list_spec_CXX \
|
|
@@ -20666,6 +21512,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -20680,7 +21527,8 @@ archive_expsym_cmds_CXX \
|
|
module_cmds_CXX \
|
|
module_expsym_cmds_CXX \
|
|
export_symbols_cmds_CXX \
|
|
-prelink_cmds_CXX; do
|
|
+prelink_cmds_CXX \
|
|
+postlink_cmds_CXX; do
|
|
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
|
*[\\\\\\\`\\"\\\$]*)
|
|
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
|
|
@@ -21453,7 +22301,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -21556,19 +22405,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -21598,6 +22470,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -21607,6 +22485,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -21721,12 +22602,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -21813,9 +22694,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -21831,6 +22709,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -21877,210 +22758,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
@@ -22108,12 +22948,12 @@ with_gcc=$GCC_CXX
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl_CXX
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic_CXX
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl_CXX
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static_CXX
|
|
|
|
@@ -22200,9 +23040,6 @@ inherit_rpath=$inherit_rpath_CXX
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs_CXX
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path_CXX
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols_CXX
|
|
|
|
@@ -22218,6 +23055,9 @@ include_expsyms=$lt_include_expsyms_CXX
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds_CXX
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds_CXX
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec_CXX
|
|
|
|
diff --git a/libbacktrace/Makefile.in b/libbacktrace/Makefile.in
|
|
index 49852a21d37..d371dda2d34 100644
|
|
--- a/libbacktrace/Makefile.in
|
|
+++ b/libbacktrace/Makefile.in
|
|
@@ -1,7 +1,7 @@
|
|
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
|
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
|
# @configure_input@
|
|
|
|
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
|
|
|
# This Makefile.in is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -190,37 +190,6 @@ CONFIG_HEADER = config.h
|
|
CONFIG_CLEAN_FILES = backtrace-supported.h \
|
|
install-debuginfo-for-buildid.sh
|
|
CONFIG_CLEAN_VPATH_FILES =
|
|
-LTLIBRARIES = $(noinst_LTLIBRARIES)
|
|
-am__DEPENDENCIES_1 =
|
|
-am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
|
|
- print.lo sort.lo state.lo
|
|
-libbacktrace_la_OBJECTS = $(am_libbacktrace_la_OBJECTS)
|
|
-AM_V_lt = $(am__v_lt_@AM_V@)
|
|
-am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
|
-am__v_lt_0 = --silent
|
|
-am__v_lt_1 =
|
|
-am__objects_1 = atomic.lo dwarf.lo fileline.lo posix.lo print.lo \
|
|
- sort.lo state.lo
|
|
-@NATIVE_TRUE@am_libbacktrace_alloc_la_OBJECTS = $(am__objects_1)
|
|
-libbacktrace_alloc_la_OBJECTS = $(am_libbacktrace_alloc_la_OBJECTS)
|
|
-@NATIVE_TRUE@am_libbacktrace_alloc_la_rpath =
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@libbacktrace_elf_for_test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ elf_for_test.lo \
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1) \
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1)
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_OBJECTS = $(am__objects_1)
|
|
-libbacktrace_elf_for_test_la_OBJECTS = \
|
|
- $(am_libbacktrace_elf_for_test_la_OBJECTS)
|
|
-@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_rpath =
|
|
-@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_OBJECTS = \
|
|
-@NATIVE_TRUE@ $(am__objects_1)
|
|
-libbacktrace_instrumented_alloc_la_OBJECTS = \
|
|
- $(am_libbacktrace_instrumented_alloc_la_OBJECTS)
|
|
-@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_rpath =
|
|
-@NATIVE_TRUE@am_libbacktrace_noformat_la_OBJECTS = $(am__objects_1)
|
|
-libbacktrace_noformat_la_OBJECTS = \
|
|
- $(am_libbacktrace_noformat_la_OBJECTS)
|
|
-@NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
|
|
@NATIVE_TRUE@am__EXEEXT_1 = allocfail$(EXEEXT)
|
|
@HAVE_BUILDID_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_2 = b2test$(EXEEXT)
|
|
@HAVE_BUILDID_TRUE@@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_3 = b3test$(EXEEXT)
|
|
@@ -253,6 +222,37 @@ am__EXEEXT_16 = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
|
|
$(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
|
|
$(am__EXEEXT_10) $(am__EXEEXT_11) $(am__EXEEXT_12) \
|
|
$(am__EXEEXT_13) $(am__EXEEXT_14) $(am__EXEEXT_15)
|
|
+LTLIBRARIES = $(noinst_LTLIBRARIES)
|
|
+am__DEPENDENCIES_1 =
|
|
+am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
|
|
+ print.lo sort.lo state.lo
|
|
+libbacktrace_la_OBJECTS = $(am_libbacktrace_la_OBJECTS)
|
|
+AM_V_lt = $(am__v_lt_@AM_V@)
|
|
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
|
+am__v_lt_0 = --silent
|
|
+am__v_lt_1 =
|
|
+am__objects_1 = atomic.lo dwarf.lo fileline.lo posix.lo print.lo \
|
|
+ sort.lo state.lo
|
|
+@NATIVE_TRUE@am_libbacktrace_alloc_la_OBJECTS = $(am__objects_1)
|
|
+libbacktrace_alloc_la_OBJECTS = $(am_libbacktrace_alloc_la_OBJECTS)
|
|
+@NATIVE_TRUE@am_libbacktrace_alloc_la_rpath =
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@libbacktrace_elf_for_test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ elf_for_test.lo \
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1) \
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1)
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_OBJECTS = $(am__objects_1)
|
|
+libbacktrace_elf_for_test_la_OBJECTS = \
|
|
+ $(am_libbacktrace_elf_for_test_la_OBJECTS)
|
|
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_rpath =
|
|
+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_OBJECTS = \
|
|
+@NATIVE_TRUE@ $(am__objects_1)
|
|
+libbacktrace_instrumented_alloc_la_OBJECTS = \
|
|
+ $(am_libbacktrace_instrumented_alloc_la_OBJECTS)
|
|
+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_rpath =
|
|
+@NATIVE_TRUE@am_libbacktrace_noformat_la_OBJECTS = $(am__objects_1)
|
|
+libbacktrace_noformat_la_OBJECTS = \
|
|
+ $(am_libbacktrace_noformat_la_OBJECTS)
|
|
+@NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
|
|
@NATIVE_TRUE@am_allocfail_OBJECTS = allocfail-allocfail.$(OBJEXT) \
|
|
@NATIVE_TRUE@ allocfail-testlib.$(OBJEXT)
|
|
allocfail_OBJECTS = $(am_allocfail_OBJECTS)
|
|
@@ -571,7 +571,7 @@ am__v_at_0 = @
|
|
am__v_at_1 =
|
|
DEFAULT_INCLUDES = -I.@am__isrc@
|
|
depcomp =
|
|
-am__depfiles_maybe =
|
|
+am__maybe_remake_depfiles =
|
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
|
@@ -615,8 +615,8 @@ am__can_run_installinfo = \
|
|
n|no|NO) false;; \
|
|
*) (install-info --version) >/dev/null 2>&1;; \
|
|
esac
|
|
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
|
|
- $(LISP)config.h.in
|
|
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
|
|
+ config.h.in
|
|
# Read a list of newline-separated strings from the standard input,
|
|
# and print each of them once, without duplicates. Input order is
|
|
# *not* preserved.
|
|
@@ -633,9 +633,6 @@ am__define_uniq_tagged_files = \
|
|
unique=`for i in $$list; do \
|
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|
done | $(am__uniquify_input)`
|
|
-ETAGS = etags
|
|
-CTAGS = ctags
|
|
-CSCOPE = cscope
|
|
AM_RECURSIVE_TARGETS = cscope check recheck
|
|
am__tty_colors_dummy = \
|
|
mgn= red= grn= lgn= blu= brg= std=; \
|
|
@@ -819,6 +816,7 @@ am__set_TESTS_bases = \
|
|
bases='$(TEST_LOGS)'; \
|
|
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
|
|
bases=`echo $$bases`
|
|
+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
|
|
RECHECK_LOGS = $(TEST_LOGS)
|
|
TEST_SUITE_LOG = test-suite.log
|
|
TEST_EXTENSIONS = @EXEEXT@ .test
|
|
@@ -861,8 +859,11 @@ CLOCK_GETTIME_LINK = @CLOCK_GETTIME_LINK@
|
|
COMM = @COMM@
|
|
CPP = @CPP@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
+CSCOPE = @CSCOPE@
|
|
+CTAGS = @CTAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
DWZ = @DWZ@
|
|
@@ -870,6 +871,7 @@ ECHO_C = @ECHO_C@
|
|
ECHO_N = @ECHO_N@
|
|
ECHO_T = @ECHO_T@
|
|
EGREP = @EGREP@
|
|
+ETAGS = @ETAGS@
|
|
EXEEXT = @EXEEXT@
|
|
EXTRA_FLAGS = @EXTRA_FLAGS@
|
|
FGREP = @FGREP@
|
|
@@ -890,6 +892,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
@@ -922,6 +925,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__leading_dot = @am__leading_dot@
|
|
@@ -1267,8 +1271,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
echo ' $(SHELL) ./config.status'; \
|
|
$(SHELL) ./config.status;; \
|
|
*) \
|
|
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
|
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
|
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
|
|
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
|
|
esac;
|
|
$(top_srcdir)/../multilib.am $(am__empty):
|
|
|
|
@@ -1300,6 +1304,15 @@ backtrace-supported.h: $(top_builddir)/config.status $(srcdir)/backtrace-support
|
|
install-debuginfo-for-buildid.sh: $(top_builddir)/config.status $(srcdir)/install-debuginfo-for-buildid.sh.in
|
|
cd $(top_builddir) && $(SHELL) ./config.status $@
|
|
|
|
+clean-checkPROGRAMS:
|
|
+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|
+ echo " rm -f" $$list; \
|
|
+ rm -f $$list || exit $$?; \
|
|
+ test -n "$(EXEEXT)" || exit 0; \
|
|
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|
+ echo " rm -f" $$list; \
|
|
+ rm -f $$list
|
|
+
|
|
clean-checkLTLIBRARIES:
|
|
-test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
|
|
@list='$(check_LTLIBRARIES)'; \
|
|
@@ -1337,15 +1350,6 @@ libbacktrace_instrumented_alloc.la: $(libbacktrace_instrumented_alloc_la_OBJECTS
|
|
libbacktrace_noformat.la: $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_DEPENDENCIES) $(EXTRA_libbacktrace_noformat_la_DEPENDENCIES)
|
|
$(AM_V_CCLD)$(LINK) $(am_libbacktrace_noformat_la_rpath) $(libbacktrace_noformat_la_OBJECTS) $(libbacktrace_noformat_la_LIBADD) $(LIBS)
|
|
|
|
-clean-checkPROGRAMS:
|
|
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|
- echo " rm -f" $$list; \
|
|
- rm -f $$list || exit $$?; \
|
|
- test -n "$(EXEEXT)" || exit 0; \
|
|
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|
- echo " rm -f" $$list; \
|
|
- rm -f $$list
|
|
-
|
|
allocfail$(EXEEXT): $(allocfail_OBJECTS) $(allocfail_DEPENDENCIES) $(EXTRA_allocfail_DEPENDENCIES)
|
|
@rm -f allocfail$(EXEEXT)
|
|
$(AM_V_CCLD)$(allocfail_LINK) $(allocfail_OBJECTS) $(allocfail_LDADD) $(LIBS)
|
|
@@ -2096,7 +2100,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
|
|
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
|
|
fi; \
|
|
echo "$${col}$$br$${std}"; \
|
|
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
|
|
+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
|
|
echo "$${col}$$br$${std}"; \
|
|
create_testsuite_report --maybe-color; \
|
|
echo "$$col$$br$$std"; \
|
|
@@ -2109,7 +2113,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
|
|
fi; \
|
|
$$success || exit 1
|
|
|
|
-check-TESTS:
|
|
+check-TESTS: $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
|
|
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
|
|
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
|
|
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
|
|
@@ -2119,7 +2123,7 @@ check-TESTS:
|
|
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
|
|
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
|
|
exit $$?;
|
|
-recheck: all $(check_LTLIBRARIES) $(check_PROGRAMS) $(check_DATA)
|
|
+recheck: all $(check_PROGRAMS) $(check_LTLIBRARIES) $(check_DATA)
|
|
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
|
|
@set +e; $(am__set_TESTS_bases); \
|
|
bases=`for i in $$bases; do echo $$i; done \
|
|
@@ -2439,7 +2443,7 @@ xztest_alloc.log: xztest_alloc$(EXEEXT)
|
|
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
|
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
|
|
check-am: all-am
|
|
- $(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS) \
|
|
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(check_LTLIBRARIES) \
|
|
$(check_DATA)
|
|
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
|
|
check: check-am
|
|
diff --git a/libbacktrace/aclocal.m4 b/libbacktrace/aclocal.m4
|
|
index 528e6173930..d88a5ec84f2 100644
|
|
--- a/libbacktrace/aclocal.m4
|
|
+++ b/libbacktrace/aclocal.m4
|
|
@@ -1,6 +1,6 @@
|
|
-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
|
+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
|
|
If you have problems, you may need to regenerate the build system entirely.
|
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
|
|
-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
|
|
# generated from the m4 files accompanying Automake X.Y.
|
|
# (This private macro should not be called outside this file.)
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
-[am__api_version='1.15'
|
|
+[am__api_version='1.16'
|
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
dnl require some minimum version. Point them to the right macro.
|
|
-m4_if([$1], [1.15.1], [],
|
|
+m4_if([$1], [1.16.5], [],
|
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
])
|
|
|
|
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
-[AM_AUTOMAKE_VERSION([1.15.1])dnl
|
|
+[AM_AUTOMAKE_VERSION([1.16.5])dnl
|
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
|
|
# AM_CONDITIONAL -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -143,7 +143,7 @@ fi])])
|
|
|
|
# Do all the work for Automake. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -171,6 +171,10 @@ m4_defn([AC_PROG_CC])
|
|
# release and drop the old call support.
|
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
[AC_PREREQ([2.65])dnl
|
|
+m4_ifdef([_$0_ALREADY_INIT],
|
|
+ [m4_fatal([$0 expanded multiple times
|
|
+]m4_defn([_$0_ALREADY_INIT]))],
|
|
+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
|
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
dnl the ones we care about.
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
@@ -207,7 +211,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
[_AM_SET_OPTIONS([$1])dnl
|
|
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
m4_if(
|
|
- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
|
|
[ok:ok],,
|
|
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
@@ -230,8 +234,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
# dies out for good. For more background, see:
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
# system "awk" is bad on some platforms.
|
|
@@ -259,6 +263,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
[m4_define([AC_PROG_OBJCXX],
|
|
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
])
|
|
+# Variables for tags utilities; see am/tags.am
|
|
+if test -z "$CTAGS"; then
|
|
+ CTAGS=ctags
|
|
+fi
|
|
+AC_SUBST([CTAGS])
|
|
+if test -z "$ETAGS"; then
|
|
+ ETAGS=etags
|
|
+fi
|
|
+AC_SUBST([ETAGS])
|
|
+if test -z "$CSCOPE"; then
|
|
+ CSCOPE=cscope
|
|
+fi
|
|
+AC_SUBST([CSCOPE])
|
|
+
|
|
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
@@ -298,7 +316,7 @@ END
|
|
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation
|
|
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
|
|
|
If you want to complete the configuration process using your problematic
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
@@ -340,7 +358,7 @@ for _am_header in $config_headers :; do
|
|
done
|
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -364,7 +382,7 @@ AC_SUBST([install_sh])])
|
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
# From Jim Meyering
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -399,7 +417,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
|
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -420,12 +438,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
if test x"${MISSING+set}" != xset; then
|
|
- case $am_aux_dir in
|
|
- *\ * | *\ *)
|
|
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
- *)
|
|
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
- esac
|
|
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
fi
|
|
# Use eval to expand $SHELL
|
|
if eval "$MISSING --is-lightweight"; then
|
|
@@ -438,7 +451,7 @@ fi
|
|
|
|
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -467,7 +480,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
|
|
AC_DEFUN([_AM_IF_OPTION],
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
|
|
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -514,7 +527,7 @@ AC_LANG_POP([C])])
|
|
# For backward compatibility.
|
|
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -533,7 +546,7 @@ AC_DEFUN([AM_RUN_LOG],
|
|
|
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -614,7 +627,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
rm -f conftest.file
|
|
])
|
|
|
|
-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -674,7 +687,7 @@ AC_SUBST([AM_BACKSLASH])dnl
|
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -702,7 +715,7 @@ fi
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
|
-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -721,7 +734,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
|
|
# Check how to create a tarball. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
diff --git a/libbacktrace/configure b/libbacktrace/configure
|
|
index 4ab612dc780..68f6b8566e9 100755
|
|
--- a/libbacktrace/configure
|
|
+++ b/libbacktrace/configure
|
|
@@ -686,7 +686,10 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -707,6 +710,9 @@ AM_BACKSLASH
|
|
AM_DEFAULT_VERBOSITY
|
|
AM_DEFAULT_V
|
|
AM_V
|
|
+CSCOPE
|
|
+ETAGS
|
|
+CTAGS
|
|
am__untar
|
|
am__tar
|
|
AMTAR
|
|
@@ -804,6 +810,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_largefile
|
|
enable_cet
|
|
@@ -1466,6 +1473,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-system-libunwind use installed libunwind
|
|
|
|
Some influential environment variables:
|
|
@@ -4054,7 +4063,7 @@ libtool_VERSION=1:0:0
|
|
# -Wall: Issue all automake warnings.
|
|
# -Wno-portability: Don't warn about constructs supported by GNU make.
|
|
# (because GCC requires GNU make anyhow).
|
|
-am__api_version='1.15'
|
|
+am__api_version='1.16'
|
|
|
|
# Find a good install program. We prefer a C program (faster),
|
|
# so one script is as good as another. But avoid the broken or
|
|
@@ -4227,12 +4236,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
|
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
|
|
|
if test x"${MISSING+set}" != xset; then
|
|
- case $am_aux_dir in
|
|
- *\ * | *\ *)
|
|
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
- *)
|
|
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
- esac
|
|
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
fi
|
|
# Use eval to expand $SHELL
|
|
if eval "$MISSING --is-lightweight"; then
|
|
@@ -4558,8 +4562,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
|
|
|
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
# dies out for good. For more background, see:
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
mkdir_p='$(MKDIR_P)'
|
|
|
|
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
@@ -4578,6 +4582,20 @@ am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
|
|
|
|
|
|
|
+# Variables for tags utilities; see am/tags.am
|
|
+if test -z "$CTAGS"; then
|
|
+ CTAGS=ctags
|
|
+fi
|
|
+
|
|
+if test -z "$ETAGS"; then
|
|
+ ETAGS=etags
|
|
+fi
|
|
+
|
|
+if test -z "$CSCOPE"; then
|
|
+ CSCOPE=cscope
|
|
+fi
|
|
+
|
|
+
|
|
|
|
# POSIX will say in a future version that running "rm -f" with no argument
|
|
# is OK; and we want to be able to make that assumption in our Makefile
|
|
@@ -4610,7 +4628,7 @@ END
|
|
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation
|
|
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
|
|
|
If you want to complete the configuration process using your problematic
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
@@ -5453,8 +5471,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -5494,7 +5512,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -6187,8 +6205,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -6237,6 +6255,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -6253,6 +6345,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -6421,7 +6518,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6580,6 +6678,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6595,6 +6708,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6609,8 +6873,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6626,7 +6892,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6646,11 +6912,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6666,7 +6936,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6685,6 +6955,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6696,31 +6970,83 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7065,8 +7391,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -7102,6 +7428,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -7143,6 +7470,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -7154,7 +7493,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -7180,8 +7519,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -7191,8 +7530,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -7229,6 +7568,18 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7245,6 +7596,43 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -7411,50 +7799,167 @@ _ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
lt_cv_cc_needs_belf=yes
|
|
else
|
|
- lt_cv_cc_needs_belf=no
|
|
+ lt_cv_cc_needs_belf=no
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext \
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
|
+ ac_ext=c
|
|
+ac_cpp='$CPP $CPPFLAGS'
|
|
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
|
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
|
|
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
+ CFLAGS="$SAVE_CFLAGS"
|
|
+ fi
|
|
+ ;;
|
|
+sparc*-*solaris*)
|
|
+ # Find out which ABI we are using.
|
|
+ echo 'int i;' > conftest.$ac_ext
|
|
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
+ (eval $ac_compile) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }; then
|
|
+ case `/usr/bin/file conftest.o` in
|
|
+ *64-bit*)
|
|
+ case $lt_cv_prog_gnu_ld in
|
|
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
+ *)
|
|
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
+ LD="${LD-ld} -64"
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ esac
|
|
+ fi
|
|
+ rm -rf conftest*
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+need_locks="$enable_libtool_lock"
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
fi
|
|
-rm -f core conftest.err conftest.$ac_objext \
|
|
- conftest$ac_exeext conftest.$ac_ext
|
|
- ac_ext=c
|
|
-ac_cpp='$CPP $CPPFLAGS'
|
|
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
-fi
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
|
-$as_echo "$lt_cv_cc_needs_belf" >&6; }
|
|
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
|
|
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
|
- CFLAGS="$SAVE_CFLAGS"
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
fi
|
|
- ;;
|
|
-sparc*-*solaris*)
|
|
- # Find out which ABI we are using.
|
|
- echo 'int i;' > conftest.$ac_ext
|
|
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
|
- (eval $ac_compile) 2>&5
|
|
- ac_status=$?
|
|
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
- test $ac_status = 0; }; then
|
|
- case `/usr/bin/file conftest.o` in
|
|
- *64-bit*)
|
|
- case $lt_cv_prog_gnu_ld in
|
|
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
- *)
|
|
- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
|
- LD="${LD-ld} -64"
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
- ;;
|
|
- esac
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
fi
|
|
- rm -rf conftest*
|
|
- ;;
|
|
-esac
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
|
|
-need_locks="$enable_libtool_lock"
|
|
|
|
|
|
case $host_os in
|
|
@@ -8019,6 +8524,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8603,8 +9110,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8770,6 +9275,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8832,7 +9343,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8889,13 +9400,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8956,6 +9471,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -9306,7 +9826,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -9405,12 +9926,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -9424,8 +9945,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -9443,8 +9964,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9490,8 +10011,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9621,7 +10142,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9634,22 +10161,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9661,7 +10195,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9674,22 +10214,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9734,20 +10281,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9808,7 +10398,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9816,7 +10406,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9832,7 +10422,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9856,10 +10446,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9938,23 +10528,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -10039,7 +10642,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -10058,9 +10661,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10636,8 +11239,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10670,13 +11274,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11578,7 +12240,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11581 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11622,10 +12284,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11684,7 +12346,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11687 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11728,10 +12390,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -15191,13 +15853,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15212,14 +15881,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15252,12 +15924,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15312,8 +15984,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -15323,12 +16000,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -15344,7 +16023,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -15380,6 +16058,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -16078,7 +16757,8 @@ esac ;;
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -16181,19 +16861,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -16223,6 +16926,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -16232,6 +16941,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -16346,12 +17058,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -16438,9 +17150,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -16456,6 +17165,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -16488,210 +17200,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/libctf/Makefile.in b/libctf/Makefile.in
|
|
index 5d9587766dc..146b7a71685 100644
|
|
--- a/libctf/Makefile.in
|
|
+++ b/libctf/Makefile.in
|
|
@@ -442,6 +442,7 @@ CYGPATH_W = @CYGPATH_W@
|
|
DATADIRNAME = @DATADIRNAME@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -481,6 +482,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
diff --git a/libctf/configure b/libctf/configure
|
|
index 7466d56a18b..0325e438a47 100755
|
|
--- a/libctf/configure
|
|
+++ b/libctf/configure
|
|
@@ -669,6 +669,8 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -814,6 +816,7 @@ enable_shared
|
|
enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_largefile
|
|
enable_werror_always
|
|
@@ -1486,6 +1489,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
--with-system-zlib use installed libz
|
|
|
|
Some influential environment variables:
|
|
@@ -7501,8 +7506,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -7542,7 +7547,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -8235,8 +8240,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -8285,6 +8290,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -8301,6 +8380,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -8469,7 +8553,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -8628,6 +8713,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -8643,6 +8743,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -8657,8 +8908,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -8674,7 +8927,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -8694,11 +8947,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -8714,7 +8971,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -8733,6 +8990,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -8744,25 +9005,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -8774,6 +9029,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -9113,8 +9426,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -9150,6 +9463,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -9191,6 +9505,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -9202,7 +9528,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -9228,8 +9554,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -9239,8 +9565,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -9277,6 +9603,17 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -9293,6 +9630,44 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -9504,6 +9879,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -10067,6 +10559,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -10621,8 +11115,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -10788,6 +11280,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -10850,7 +11348,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -10907,13 +11405,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -10974,6 +11476,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -11324,7 +11831,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -11423,12 +11931,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -11442,8 +11950,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -11461,8 +11969,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -11508,8 +12016,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -11639,7 +12147,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -11652,22 +12166,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -11679,7 +12200,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -11692,22 +12219,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -11752,20 +12286,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -11826,7 +12403,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -11834,7 +12411,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -11850,7 +12427,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -11874,10 +12451,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -11956,23 +12533,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -12057,7 +12647,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -12076,9 +12666,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -12654,8 +13244,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -12688,13 +13279,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -13596,7 +14245,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 13599 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -13640,10 +14289,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -13702,7 +14351,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 13705 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -13746,10 +14395,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -17813,13 +18462,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17834,14 +18490,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17874,12 +18533,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -17934,8 +18593,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -17945,12 +18609,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -17966,7 +18632,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -18002,6 +18667,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -18861,7 +19527,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -18964,19 +19631,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -19006,6 +19696,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -19015,6 +19711,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -19129,12 +19828,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -19221,9 +19920,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -19239,6 +19935,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -19271,210 +19970,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/libsframe/Makefile.in b/libsframe/Makefile.in
|
|
index 13f4c26e2f1..e6e05b80d0e 100644
|
|
--- a/libsframe/Makefile.in
|
|
+++ b/libsframe/Makefile.in
|
|
@@ -1,7 +1,7 @@
|
|
-# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
|
+# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
|
# @configure_input@
|
|
|
|
-# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
|
|
|
# This Makefile.in is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -144,6 +144,13 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
|
CONFIG_HEADER = config.h
|
|
CONFIG_CLEAN_FILES =
|
|
CONFIG_CLEAN_VPATH_FILES =
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
|
|
+@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
|
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
|
am__vpath_adj = case $$p in \
|
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
|
@@ -187,45 +194,44 @@ libsframe_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
|
$(libsframe_la_LDFLAGS) $(LDFLAGS) -o $@
|
|
@INSTALL_LIBBFD_FALSE@am_libsframe_la_rpath =
|
|
@INSTALL_LIBBFD_TRUE@am_libsframe_la_rpath = -rpath $(libdir)
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@am__EXEEXT_1 = testsuite/libsframe.decode/be-flipping$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-1$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.decode/frecnt-2$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.encode/encode-1$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfre-1$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/findfunc-1$(EXEEXT) \
|
|
-@HAVE_COMPAT_DEJAGNU_TRUE@ testsuite/libsframe.find/plt-findfre-1$(EXEEXT)
|
|
am__dirstamp = $(am__leading_dot)dirstamp
|
|
-am_testsuite_libsframe_decode_be_flipping_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT)
|
|
+am_testsuite_libsframe_decode_be_flipping_OBJECTS = \
|
|
+ testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT)
|
|
testsuite_libsframe_decode_be_flipping_OBJECTS = \
|
|
$(am_testsuite_libsframe_decode_be_flipping_OBJECTS)
|
|
testsuite_libsframe_decode_be_flipping_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_decode_frecnt_1_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT)
|
|
+am_testsuite_libsframe_decode_frecnt_1_OBJECTS = \
|
|
+ testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT)
|
|
testsuite_libsframe_decode_frecnt_1_OBJECTS = \
|
|
$(am_testsuite_libsframe_decode_frecnt_1_OBJECTS)
|
|
testsuite_libsframe_decode_frecnt_1_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_decode_frecnt_2_OBJECTS = testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT)
|
|
+am_testsuite_libsframe_decode_frecnt_2_OBJECTS = \
|
|
+ testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT)
|
|
testsuite_libsframe_decode_frecnt_2_OBJECTS = \
|
|
$(am_testsuite_libsframe_decode_frecnt_2_OBJECTS)
|
|
testsuite_libsframe_decode_frecnt_2_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_encode_encode_1_OBJECTS = testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT)
|
|
+am_testsuite_libsframe_encode_encode_1_OBJECTS = \
|
|
+ testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT)
|
|
testsuite_libsframe_encode_encode_1_OBJECTS = \
|
|
$(am_testsuite_libsframe_encode_encode_1_OBJECTS)
|
|
testsuite_libsframe_encode_encode_1_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_find_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT)
|
|
+am_testsuite_libsframe_find_findfre_1_OBJECTS = \
|
|
+ testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT)
|
|
testsuite_libsframe_find_findfre_1_OBJECTS = \
|
|
$(am_testsuite_libsframe_find_findfre_1_OBJECTS)
|
|
testsuite_libsframe_find_findfre_1_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_find_findfunc_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT)
|
|
+am_testsuite_libsframe_find_findfunc_1_OBJECTS = \
|
|
+ testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT)
|
|
testsuite_libsframe_find_findfunc_1_OBJECTS = \
|
|
$(am_testsuite_libsframe_find_findfunc_1_OBJECTS)
|
|
testsuite_libsframe_find_findfunc_1_DEPENDENCIES = \
|
|
${top_builddir}/libsframe.la
|
|
-am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT)
|
|
+am_testsuite_libsframe_find_plt_findfre_1_OBJECTS = testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT)
|
|
testsuite_libsframe_find_plt_findfre_1_OBJECTS = \
|
|
$(am_testsuite_libsframe_find_plt_findfre_1_OBJECTS)
|
|
testsuite_libsframe_find_plt_findfre_1_DEPENDENCIES = \
|
|
@@ -244,7 +250,17 @@ am__v_at_0 = @
|
|
am__v_at_1 =
|
|
DEFAULT_INCLUDES = -I.@am__isrc@
|
|
depcomp = $(SHELL) $(top_srcdir)/../depcomp
|
|
-am__depfiles_maybe = depfiles
|
|
+am__maybe_remake_depfiles = depfiles
|
|
+am__depfiles_remade = ./$(DEPDIR)/libsframe_la-sframe-dump.Plo \
|
|
+ ./$(DEPDIR)/libsframe_la-sframe-error.Plo \
|
|
+ ./$(DEPDIR)/libsframe_la-sframe.Plo \
|
|
+ testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po \
|
|
+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po \
|
|
+ testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po \
|
|
+ testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po \
|
|
+ testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po \
|
|
+ testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po \
|
|
+ testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
|
|
am__mv = mv -f
|
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
@@ -327,8 +343,8 @@ am__can_run_installinfo = \
|
|
esac
|
|
am__include_HEADERS_DIST = $(INCDIR)/sframe.h $(INCDIR)/sframe-api.h
|
|
HEADERS = $(include_HEADERS)
|
|
-am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
|
|
- $(LISP)config.h.in
|
|
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
|
|
+ config.h.in
|
|
# Read a list of newline-separated strings from the standard input,
|
|
# and print each of them once, without duplicates. Input order is
|
|
# *not* preserved.
|
|
@@ -345,9 +361,6 @@ am__define_uniq_tagged_files = \
|
|
unique=`for i in $$list; do \
|
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|
done | $(am__uniquify_input)`
|
|
-ETAGS = etags
|
|
-CTAGS = ctags
|
|
-CSCOPE = cscope
|
|
AM_RECURSIVE_TARGETS = cscope
|
|
DEJATOOL = $(PACKAGE)
|
|
RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
|
|
@@ -374,6 +387,8 @@ am__post_remove_distdir = $(am__remove_distdir)
|
|
DIST_ARCHIVES = $(distdir).tar.gz
|
|
GZIP_ENV = --best
|
|
DIST_TARGETS = dist-gzip
|
|
+# Exists only to be overridden by the user if desired.
|
|
+AM_DISTCHECK_DVI_TARGET = dvi
|
|
distuninstallcheck_listfiles = find . -type f -print
|
|
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
|
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
|
|
@@ -392,15 +407,19 @@ CFLAGS = @CFLAGS@
|
|
COMPAT_DEJAGNU = @COMPAT_DEJAGNU@
|
|
CPP = @CPP@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
+CSCOPE = @CSCOPE@
|
|
+CTAGS = @CTAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
ECHO_N = @ECHO_N@
|
|
ECHO_T = @ECHO_T@
|
|
EGREP = @EGREP@
|
|
+ETAGS = @ETAGS@
|
|
EXEEXT = @EXEEXT@
|
|
FGREP = @FGREP@
|
|
GREP = @GREP@
|
|
@@ -419,6 +438,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
@@ -595,8 +615,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
echo ' $(SHELL) ./config.status'; \
|
|
$(SHELL) ./config.status;; \
|
|
*) \
|
|
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
|
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
|
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
|
|
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
|
|
esac;
|
|
$(srcdir)/doc/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/libsframe.decode/local.mk $(srcdir)/testsuite/libsframe.encode/local.mk $(srcdir)/testsuite/libsframe.find/local.mk $(am__empty):
|
|
|
|
@@ -624,6 +644,15 @@ $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
distclean-hdr:
|
|
-rm -f config.h stamp-h1
|
|
|
|
+clean-checkPROGRAMS:
|
|
+ @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|
+ echo " rm -f" $$list; \
|
|
+ rm -f $$list || exit $$?; \
|
|
+ test -n "$(EXEEXT)" || exit 0; \
|
|
+ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|
+ echo " rm -f" $$list; \
|
|
+ rm -f $$list
|
|
+
|
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
|
@$(NORMAL_INSTALL)
|
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
|
@@ -672,36 +701,27 @@ clean-noinstLTLIBRARIES:
|
|
|
|
libsframe.la: $(libsframe_la_OBJECTS) $(libsframe_la_DEPENDENCIES) $(EXTRA_libsframe_la_DEPENDENCIES)
|
|
$(AM_V_CCLD)$(libsframe_la_LINK) $(am_libsframe_la_rpath) $(libsframe_la_OBJECTS) $(libsframe_la_LIBADD) $(LIBS)
|
|
-
|
|
-clean-checkPROGRAMS:
|
|
- @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
|
|
- echo " rm -f" $$list; \
|
|
- rm -f $$list || exit $$?; \
|
|
- test -n "$(EXEEXT)" || exit 0; \
|
|
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
|
- echo " rm -f" $$list; \
|
|
- rm -f $$list
|
|
testsuite/libsframe.decode/$(am__dirstamp):
|
|
@$(MKDIR_P) testsuite/libsframe.decode
|
|
@: > testsuite/libsframe.decode/$(am__dirstamp)
|
|
testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp):
|
|
@$(MKDIR_P) testsuite/libsframe.decode/$(DEPDIR)
|
|
@: > testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.$(OBJEXT): \
|
|
+testsuite/libsframe.decode/be_flipping-be-flipping.$(OBJEXT): \
|
|
testsuite/libsframe.decode/$(am__dirstamp) \
|
|
testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
testsuite/libsframe.decode/be-flipping$(EXEEXT): $(testsuite_libsframe_decode_be_flipping_OBJECTS) $(testsuite_libsframe_decode_be_flipping_DEPENDENCIES) $(EXTRA_testsuite_libsframe_decode_be_flipping_DEPENDENCIES) testsuite/libsframe.decode/$(am__dirstamp)
|
|
@rm -f testsuite/libsframe.decode/be-flipping$(EXEEXT)
|
|
$(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_be_flipping_OBJECTS) $(testsuite_libsframe_decode_be_flipping_LDADD) $(LIBS)
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.$(OBJEXT): \
|
|
+testsuite/libsframe.decode/frecnt_1-frecnt-1.$(OBJEXT): \
|
|
testsuite/libsframe.decode/$(am__dirstamp) \
|
|
testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
testsuite/libsframe.decode/frecnt-1$(EXEEXT): $(testsuite_libsframe_decode_frecnt_1_OBJECTS) $(testsuite_libsframe_decode_frecnt_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_decode_frecnt_1_DEPENDENCIES) testsuite/libsframe.decode/$(am__dirstamp)
|
|
@rm -f testsuite/libsframe.decode/frecnt-1$(EXEEXT)
|
|
$(AM_V_CCLD)$(LINK) $(testsuite_libsframe_decode_frecnt_1_OBJECTS) $(testsuite_libsframe_decode_frecnt_1_LDADD) $(LIBS)
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.$(OBJEXT): \
|
|
+testsuite/libsframe.decode/frecnt_2-frecnt-2.$(OBJEXT): \
|
|
testsuite/libsframe.decode/$(am__dirstamp) \
|
|
testsuite/libsframe.decode/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
@@ -714,7 +734,7 @@ testsuite/libsframe.encode/$(am__dirstamp):
|
|
testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp):
|
|
@$(MKDIR_P) testsuite/libsframe.encode/$(DEPDIR)
|
|
@: > testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
|
|
-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.$(OBJEXT): \
|
|
+testsuite/libsframe.encode/encode_1-encode-1.$(OBJEXT): \
|
|
testsuite/libsframe.encode/$(am__dirstamp) \
|
|
testsuite/libsframe.encode/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
@@ -727,21 +747,21 @@ testsuite/libsframe.find/$(am__dirstamp):
|
|
testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp):
|
|
@$(MKDIR_P) testsuite/libsframe.find/$(DEPDIR)
|
|
@: > testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.$(OBJEXT): \
|
|
+testsuite/libsframe.find/findfre_1-findfre-1.$(OBJEXT): \
|
|
testsuite/libsframe.find/$(am__dirstamp) \
|
|
testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
testsuite/libsframe.find/findfre-1$(EXEEXT): $(testsuite_libsframe_find_findfre_1_OBJECTS) $(testsuite_libsframe_find_findfre_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_find_findfre_1_DEPENDENCIES) testsuite/libsframe.find/$(am__dirstamp)
|
|
@rm -f testsuite/libsframe.find/findfre-1$(EXEEXT)
|
|
$(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfre_1_OBJECTS) $(testsuite_libsframe_find_findfre_1_LDADD) $(LIBS)
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.$(OBJEXT): \
|
|
+testsuite/libsframe.find/findfunc_1-findfunc-1.$(OBJEXT): \
|
|
testsuite/libsframe.find/$(am__dirstamp) \
|
|
testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
testsuite/libsframe.find/findfunc-1$(EXEEXT): $(testsuite_libsframe_find_findfunc_1_OBJECTS) $(testsuite_libsframe_find_findfunc_1_DEPENDENCIES) $(EXTRA_testsuite_libsframe_find_findfunc_1_DEPENDENCIES) testsuite/libsframe.find/$(am__dirstamp)
|
|
@rm -f testsuite/libsframe.find/findfunc-1$(EXEEXT)
|
|
$(AM_V_CCLD)$(LINK) $(testsuite_libsframe_find_findfunc_1_OBJECTS) $(testsuite_libsframe_find_findfunc_1_LDADD) $(LIBS)
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.$(OBJEXT): \
|
|
+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.$(OBJEXT): \
|
|
testsuite/libsframe.find/$(am__dirstamp) \
|
|
testsuite/libsframe.find/$(DEPDIR)/$(am__dirstamp)
|
|
|
|
@@ -758,16 +778,22 @@ mostlyclean-compile:
|
|
distclean-compile:
|
|
-rm -f *.tab.c
|
|
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po@am__quote@
|
|
-@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po@am__quote@
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-dump.Plo@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe-error.Plo@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libsframe_la-sframe.Plo@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po@am__quote@ # am--include-marker
|
|
+@AMDEP_TRUE@@am__include@ @am__quote@testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po@am__quote@ # am--include-marker
|
|
+
|
|
+$(am__depfiles_remade):
|
|
+ @$(MKDIR_P) $(@D)
|
|
+ @echo '# dummy' >$@-t && $(am__mv) $@-t $@
|
|
+
|
|
+am--depfiles: $(am__depfiles_remade)
|
|
|
|
.c.o:
|
|
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
|
@@ -814,103 +840,103 @@ libsframe_la-sframe-error.lo: sframe-error.c
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libsframe_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libsframe_la-sframe-error.lo `test -f 'sframe-error.c' || echo '$(srcdir)/'`sframe-error.c
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/be_flipping-be-flipping.o: testsuite/libsframe.decode/be-flipping.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/be_flipping-be-flipping.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/be_flipping-be-flipping.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/be_flipping-be-flipping.o `test -f 'testsuite/libsframe.decode/be-flipping.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/be-flipping.c
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_be_flipping-be-flipping.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/be_flipping-be-flipping.obj: testsuite/libsframe.decode/be-flipping.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/be_flipping-be-flipping.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo -c -o testsuite/libsframe.decode/be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Tpo testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/be-flipping.c' object='testsuite/libsframe.decode/be_flipping-be-flipping.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_be_flipping_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/be_flipping-be-flipping.obj `if test -f 'testsuite/libsframe.decode/be-flipping.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/be-flipping.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/be-flipping.c'; fi`
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/frecnt_1-frecnt-1.o: testsuite/libsframe.decode/frecnt-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_1-frecnt-1.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/frecnt_1-frecnt-1.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.o `test -f 'testsuite/libsframe.decode/frecnt-1.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-1.c
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_1-frecnt-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/frecnt_1-frecnt-1.obj: testsuite/libsframe.decode/frecnt-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_1-frecnt-1.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-1.c' object='testsuite/libsframe.decode/frecnt_1-frecnt-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_1-frecnt-1.obj `if test -f 'testsuite/libsframe.decode/frecnt-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-1.c'; fi`
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/frecnt_2-frecnt-2.o: testsuite/libsframe.decode/frecnt-2.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_2-frecnt-2.o -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/frecnt_2-frecnt-2.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.o `test -f 'testsuite/libsframe.decode/frecnt-2.c' || echo '$(srcdir)/'`testsuite/libsframe.decode/frecnt-2.c
|
|
|
|
-testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/testsuite_libsframe_decode_frecnt_2-frecnt-2.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.decode/frecnt_2-frecnt-2.obj: testsuite/libsframe.decode/frecnt-2.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.decode/frecnt_2-frecnt-2.obj -MD -MP -MF testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Tpo testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.decode/frecnt-2.c' object='testsuite/libsframe.decode/frecnt_2-frecnt-2.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/testsuite_libsframe_decode_frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_decode_frecnt_2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.decode/frecnt_2-frecnt-2.obj `if test -f 'testsuite/libsframe.decode/frecnt-2.c'; then $(CYGPATH_W) 'testsuite/libsframe.decode/frecnt-2.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.decode/frecnt-2.c'; fi`
|
|
|
|
-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.encode/encode_1-encode-1.o: testsuite/libsframe.encode/encode-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/encode_1-encode-1.o -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/encode_1-encode-1.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/encode_1-encode-1.o `test -f 'testsuite/libsframe.encode/encode-1.c' || echo '$(srcdir)/'`testsuite/libsframe.encode/encode-1.c
|
|
|
|
-testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/testsuite_libsframe_encode_encode_1-encode-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.encode/encode_1-encode-1.obj: testsuite/libsframe.encode/encode-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.encode/encode_1-encode-1.obj -MD -MP -MF testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo -c -o testsuite/libsframe.encode/encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Tpo testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.encode/encode-1.c' object='testsuite/libsframe.encode/encode_1-encode-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/testsuite_libsframe_encode_encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_encode_encode_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.encode/encode_1-encode-1.obj `if test -f 'testsuite/libsframe.encode/encode-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.encode/encode-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.encode/encode-1.c'; fi`
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/findfre_1-findfre-1.o: testsuite/libsframe.find/findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfre_1-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/findfre_1-findfre-1.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfre_1-findfre-1.o `test -f 'testsuite/libsframe.find/findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfre-1.c
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfre_1-findfre-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/findfre_1-findfre-1.obj: testsuite/libsframe.find/findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfre_1-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo -c -o testsuite/libsframe.find/findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfre-1.c' object='testsuite/libsframe.find/findfre_1-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfre_1-findfre-1.obj `if test -f 'testsuite/libsframe.find/findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfre-1.c'; fi`
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/findfunc_1-findfunc-1.o: testsuite/libsframe.find/findfunc-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfunc_1-findfunc-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/findfunc_1-findfunc-1.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.o `test -f 'testsuite/libsframe.find/findfunc-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/findfunc-1.c
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_findfunc_1-findfunc-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/findfunc_1-findfunc-1.obj: testsuite/libsframe.find/findfunc-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/findfunc_1-findfunc-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Tpo testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/findfunc-1.c' object='testsuite/libsframe.find/findfunc_1-findfunc-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_findfunc_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/findfunc_1-findfunc-1.obj `if test -f 'testsuite/libsframe.find/findfunc-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/findfunc-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/findfunc-1.c'; fi`
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o: testsuite/libsframe.find/plt-findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.o `test -f 'testsuite/libsframe.find/plt-findfre-1.c' || echo '$(srcdir)/'`testsuite/libsframe.find/plt-findfre-1.c
|
|
|
|
-testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
|
|
-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
|
|
-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.Po
|
|
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
+testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj: testsuite/libsframe.find/plt-findfre-1.c
|
|
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj -MD -MP -MF testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
|
|
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Tpo testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
|
|
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='testsuite/libsframe.find/plt-findfre-1.c' object='testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj' libtool=no @AMDEPBACKSLASH@
|
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/testsuite_libsframe_find_plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
|
|
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(testsuite_libsframe_find_plt_findfre_1_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o testsuite/libsframe.find/plt_findfre_1-plt-findfre-1.obj `if test -f 'testsuite/libsframe.find/plt-findfre-1.c'; then $(CYGPATH_W) 'testsuite/libsframe.find/plt-findfre-1.c'; else $(CYGPATH_W) '$(srcdir)/testsuite/libsframe.find/plt-findfre-1.c'; fi`
|
|
|
|
mostlyclean-libtool:
|
|
-rm -f *.lo
|
|
@@ -1148,7 +1174,7 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
|
|
@echo '# Do not edit here. If you wish to override these values' >>site.tmp
|
|
@echo '# edit the last section' >>site.tmp
|
|
@echo 'set srcdir "$(srcdir)"' >>site.tmp
|
|
- @echo "set objdir `pwd`" >>site.tmp
|
|
+ @echo "set objdir \"`pwd`\"" >>site.tmp
|
|
@echo 'set build_alias "$(build_alias)"' >>site.tmp
|
|
@echo 'set build_triplet $(build_triplet)' >>site.tmp
|
|
@echo 'set host_alias "$(host_alias)"' >>site.tmp
|
|
@@ -1174,8 +1200,10 @@ distclean-DEJAGNU:
|
|
-l='$(DEJATOOL)'; for tool in $$l; do \
|
|
rm -f $$tool.sum $$tool.log; \
|
|
done
|
|
+distdir: $(BUILT_SOURCES)
|
|
+ $(MAKE) $(AM_MAKEFLAGS) distdir-am
|
|
|
|
-distdir: $(DISTFILES)
|
|
+distdir-am: $(DISTFILES)
|
|
$(am__remove_distdir)
|
|
test -d "$(distdir)" || mkdir "$(distdir)"
|
|
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
|
@@ -1233,6 +1261,10 @@ dist-xz: distdir
|
|
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
|
$(am__post_remove_distdir)
|
|
|
|
+dist-zstd: distdir
|
|
+ tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
|
|
+ $(am__post_remove_distdir)
|
|
+
|
|
dist-tarZ: distdir
|
|
@echo WARNING: "Support for distribution archives compressed with" \
|
|
"legacy program 'compress' is deprecated." >&2
|
|
@@ -1275,6 +1307,8 @@ distcheck: dist
|
|
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
|
|
*.zip*) \
|
|
unzip $(distdir).zip ;;\
|
|
+ *.tar.zst*) \
|
|
+ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
|
|
esac
|
|
chmod -R a-w $(distdir)
|
|
chmod u+w $(distdir)
|
|
@@ -1290,7 +1324,7 @@ distcheck: dist
|
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
|
--srcdir=../.. --prefix="$$dc_install_base" \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
|
- && $(MAKE) $(AM_MAKEFLAGS) dvi \
|
|
+ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
|
@@ -1346,6 +1380,8 @@ check-am: all-am
|
|
$(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
|
|
check: check-am
|
|
all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) $(HEADERS) config.h
|
|
+install-checkPROGRAMS: install-libLTLIBRARIES
|
|
+
|
|
installdirs:
|
|
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(includedir)"; do \
|
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
|
@@ -1398,7 +1434,16 @@ clean-am: clean-aminfo clean-checkPROGRAMS clean-generic \
|
|
|
|
distclean: distclean-am
|
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
|
- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
|
|
+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
|
|
-rm -f Makefile
|
|
distclean-am: clean-am distclean-DEJAGNU distclean-compile \
|
|
distclean-generic distclean-hdr distclean-libtool \
|
|
@@ -1538,7 +1583,16 @@ installcheck-am:
|
|
maintainer-clean: maintainer-clean-am
|
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
|
-rm -rf $(top_srcdir)/autom4te.cache
|
|
- -rm -rf ./$(DEPDIR) testsuite/libsframe.decode/$(DEPDIR) testsuite/libsframe.encode/$(DEPDIR) testsuite/libsframe.find/$(DEPDIR)
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-dump.Plo
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe-error.Plo
|
|
+ -rm -f ./$(DEPDIR)/libsframe_la-sframe.Plo
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/be_flipping-be-flipping.Po
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_1-frecnt-1.Po
|
|
+ -rm -f testsuite/libsframe.decode/$(DEPDIR)/frecnt_2-frecnt-2.Po
|
|
+ -rm -f testsuite/libsframe.encode/$(DEPDIR)/encode_1-encode-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfre_1-findfre-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/findfunc_1-findfunc-1.Po
|
|
+ -rm -f testsuite/libsframe.find/$(DEPDIR)/plt_findfre_1-plt-findfre-1.Po
|
|
-rm -f Makefile
|
|
maintainer-clean-am: distclean-am maintainer-clean-aminfo \
|
|
maintainer-clean-generic
|
|
@@ -1562,28 +1616,28 @@ uninstall-am: uninstall-dvi-am uninstall-html-am \
|
|
|
|
.MAKE: all check-am install-am install-strip
|
|
|
|
-.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-DEJAGNU \
|
|
- check-am clean clean-aminfo clean-checkPROGRAMS clean-cscope \
|
|
- clean-generic clean-libLTLIBRARIES clean-libtool \
|
|
+.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
|
|
+ check-DEJAGNU check-am clean clean-aminfo clean-checkPROGRAMS \
|
|
+ clean-cscope clean-generic clean-libLTLIBRARIES clean-libtool \
|
|
clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
|
|
dist dist-all dist-bzip2 dist-gzip dist-info dist-lzip \
|
|
- dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
|
|
- distclean-DEJAGNU distclean-compile distclean-generic \
|
|
- distclean-hdr distclean-libtool distclean-tags distcleancheck \
|
|
- distdir distuninstallcheck dvi dvi-am html html-am html-local \
|
|
- info info-am install install-am install-data install-data-am \
|
|
- install-dvi install-dvi-am install-exec install-exec-am \
|
|
- install-html install-html-am install-includeHEADERS \
|
|
- install-info install-info-am install-libLTLIBRARIES \
|
|
- install-man install-pdf install-pdf-am install-ps \
|
|
- install-ps-am install-strip installcheck installcheck-am \
|
|
- installdirs maintainer-clean maintainer-clean-aminfo \
|
|
- maintainer-clean-generic mostlyclean mostlyclean-aminfo \
|
|
- mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
|
|
- pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
|
|
- uninstall-dvi-am uninstall-html-am uninstall-includeHEADERS \
|
|
- uninstall-info-am uninstall-libLTLIBRARIES uninstall-pdf-am \
|
|
- uninstall-ps-am
|
|
+ dist-shar dist-tarZ dist-xz dist-zip dist-zstd distcheck \
|
|
+ distclean distclean-DEJAGNU distclean-compile \
|
|
+ distclean-generic distclean-hdr distclean-libtool \
|
|
+ distclean-tags distcleancheck distdir distuninstallcheck dvi \
|
|
+ dvi-am html html-am html-local info info-am install install-am \
|
|
+ install-data install-data-am install-dvi install-dvi-am \
|
|
+ install-exec install-exec-am install-html install-html-am \
|
|
+ install-includeHEADERS install-info install-info-am \
|
|
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
|
+ install-ps install-ps-am install-strip installcheck \
|
|
+ installcheck-am installdirs maintainer-clean \
|
|
+ maintainer-clean-aminfo maintainer-clean-generic mostlyclean \
|
|
+ mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \
|
|
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
|
|
+ uninstall-am uninstall-dvi-am uninstall-html-am \
|
|
+ uninstall-includeHEADERS uninstall-info-am \
|
|
+ uninstall-libLTLIBRARIES uninstall-pdf-am uninstall-ps-am
|
|
|
|
.PRECIOUS: Makefile
|
|
|
|
diff --git a/libsframe/aclocal.m4 b/libsframe/aclocal.m4
|
|
index 8804d9fb42b..f4974423bd6 100644
|
|
--- a/libsframe/aclocal.m4
|
|
+++ b/libsframe/aclocal.m4
|
|
@@ -1,6 +1,6 @@
|
|
-# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
|
|
+# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
|
|
If you have problems, you may need to regenerate the build system entirely.
|
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
|
|
-# Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
|
|
# generated from the m4 files accompanying Automake X.Y.
|
|
# (This private macro should not be called outside this file.)
|
|
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
-[am__api_version='1.15'
|
|
+[am__api_version='1.16'
|
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
dnl require some minimum version. Point them to the right macro.
|
|
-m4_if([$1], [1.15.1], [],
|
|
+m4_if([$1], [1.16.5], [],
|
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
])
|
|
|
|
@@ -51,12 +51,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
-[AM_AUTOMAKE_VERSION([1.15.1])dnl
|
|
+[AM_AUTOMAKE_VERSION([1.16.5])dnl
|
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
|
|
-# Copyright (C) 2011-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2011-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -118,7 +118,7 @@ AC_SUBST([AR])dnl
|
|
|
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -170,7 +170,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
|
|
# AM_CONDITIONAL -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -201,7 +201,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
Usually this means the macro was only invoked conditionally.]])
|
|
fi])])
|
|
|
|
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -392,13 +392,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
|
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
-
|
|
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
# ------------------------------
|
|
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
@@ -406,49 +405,43 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
# are listed without --file. Let's play safe and only enable the eval
|
|
# if we detect the quoting.
|
|
- case $CONFIG_FILES in
|
|
- *\'*) eval set x "$CONFIG_FILES" ;;
|
|
- *) set x $CONFIG_FILES ;;
|
|
- esac
|
|
+ # TODO: see whether this extra hack can be removed once we start
|
|
+ # requiring Autoconf 2.70 or later.
|
|
+ AS_CASE([$CONFIG_FILES],
|
|
+ [*\'*], [eval set x "$CONFIG_FILES"],
|
|
+ [*], [set x $CONFIG_FILES])
|
|
shift
|
|
- for mf
|
|
+ # Used to flag and report bootstrapping failures.
|
|
+ am_rc=0
|
|
+ for am_mf
|
|
do
|
|
# Strip MF so we end up with the name of the file.
|
|
- mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
- # Check whether this is an Automake generated Makefile or not.
|
|
- # We used to match only the files named 'Makefile.in', but
|
|
- # some people rename them; so instead we look at the file content.
|
|
- # Grep'ing the first line is not enough: some people post-process
|
|
- # each Makefile.in and add a new line on top of each file to say so.
|
|
- # Grep'ing the whole file is not good either: AIX grep has a line
|
|
+ am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
|
|
+ # Check whether this is an Automake generated Makefile which includes
|
|
+ # dependency-tracking related rules and includes.
|
|
+ # Grep'ing the whole file directly is not great: AIX grep has a line
|
|
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
- dirpart=`AS_DIRNAME("$mf")`
|
|
- else
|
|
- continue
|
|
- fi
|
|
- # Extract the definition of DEPDIR, am__include, and am__quote
|
|
- # from the Makefile without running 'make'.
|
|
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
- test -z "$DEPDIR" && continue
|
|
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
- test -z "$am__include" && continue
|
|
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
- # Find all dependency output files, they are included files with
|
|
- # $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
- # simplest approach to changing $(DEPDIR) to its actual value in the
|
|
- # expansion.
|
|
- for file in `sed -n "
|
|
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
|
- # Make sure the directory exists.
|
|
- test -f "$dirpart/$file" && continue
|
|
- fdir=`AS_DIRNAME(["$file"])`
|
|
- AS_MKDIR_P([$dirpart/$fdir])
|
|
- # echo "creating $dirpart/$file"
|
|
- echo '# dummy' > "$dirpart/$file"
|
|
- done
|
|
+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
|
+ || continue
|
|
+ am_dirpart=`AS_DIRNAME(["$am_mf"])`
|
|
+ am_filepart=`AS_BASENAME(["$am_mf"])`
|
|
+ AM_RUN_LOG([cd "$am_dirpart" \
|
|
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
|
|
+ | $MAKE -f - am--depfiles]) || am_rc=$?
|
|
done
|
|
+ if test $am_rc -ne 0; then
|
|
+ AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
|
|
+ for automatic dependency tracking. If GNU make was not used, consider
|
|
+ re-running the configure script with MAKE="gmake" (or whatever is
|
|
+ necessary). You can also try re-running configure with the
|
|
+ '--disable-dependency-tracking' option to at least be able to build
|
|
+ the package (albeit without support for automatic dependency tracking).])
|
|
+ fi
|
|
+ AS_UNSET([am_dirpart])
|
|
+ AS_UNSET([am_filepart])
|
|
+ AS_UNSET([am_mf])
|
|
+ AS_UNSET([am_rc])
|
|
+ rm -f conftest-deps.mk
|
|
}
|
|
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
|
|
@@ -457,18 +450,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
# -----------------------------
|
|
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
#
|
|
-# This code is only required when automatic dependency tracking
|
|
-# is enabled. FIXME. This creates each '.P' file that we will
|
|
-# need in order to bootstrap the dependency handling code.
|
|
+# This code is only required when automatic dependency tracking is enabled.
|
|
+# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
|
|
+# order to bootstrap the dependency handling code.
|
|
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
[AC_CONFIG_COMMANDS([depfiles],
|
|
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
-])
|
|
+ [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
|
|
|
|
# Do all the work for Automake. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -496,6 +488,10 @@ m4_defn([AC_PROG_CC])
|
|
# release and drop the old call support.
|
|
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
[AC_PREREQ([2.65])dnl
|
|
+m4_ifdef([_$0_ALREADY_INIT],
|
|
+ [m4_fatal([$0 expanded multiple times
|
|
+]m4_defn([_$0_ALREADY_INIT]))],
|
|
+ [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
|
|
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
dnl the ones we care about.
|
|
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
@@ -532,7 +528,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
[_AM_SET_OPTIONS([$1])dnl
|
|
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
m4_if(
|
|
- m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
|
+ m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
|
|
[ok:ok],,
|
|
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
@@ -555,8 +551,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
# dies out for good. For more background, see:
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
# system "awk" is bad on some platforms.
|
|
@@ -584,6 +580,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
[m4_define([AC_PROG_OBJCXX],
|
|
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
])
|
|
+# Variables for tags utilities; see am/tags.am
|
|
+if test -z "$CTAGS"; then
|
|
+ CTAGS=ctags
|
|
+fi
|
|
+AC_SUBST([CTAGS])
|
|
+if test -z "$ETAGS"; then
|
|
+ ETAGS=etags
|
|
+fi
|
|
+AC_SUBST([ETAGS])
|
|
+if test -z "$CSCOPE"; then
|
|
+ CSCOPE=cscope
|
|
+fi
|
|
+AC_SUBST([CSCOPE])
|
|
+
|
|
AC_REQUIRE([AM_SILENT_RULES])dnl
|
|
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
@@ -623,7 +633,7 @@ END
|
|
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation
|
|
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
|
|
|
If you want to complete the configuration process using your problematic
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
@@ -665,7 +675,7 @@ for _am_header in $config_headers :; do
|
|
done
|
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -689,7 +699,7 @@ AC_SUBST([install_sh])])
|
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
# From Jim Meyering
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -724,7 +734,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
|
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -732,49 +742,42 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
|
|
# AM_MAKE_INCLUDE()
|
|
# -----------------
|
|
-# Check to see how make treats includes.
|
|
+# Check whether make has an 'include' directive that can support all
|
|
+# the idioms we need for our automatic dependency tracking code.
|
|
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
-[am_make=${MAKE-make}
|
|
-cat > confinc << 'END'
|
|
+[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
|
|
+cat > confinc.mk << 'END'
|
|
am__doit:
|
|
- @echo this is the am__doit target
|
|
+ @echo this is the am__doit target >confinc.out
|
|
.PHONY: am__doit
|
|
END
|
|
-# If we don't find an include directive, just comment out the code.
|
|
-AC_MSG_CHECKING([for style of include used by $am_make])
|
|
am__include="#"
|
|
am__quote=
|
|
-_am_result=none
|
|
-# First try GNU make style include.
|
|
-echo "include confinc" > confmf
|
|
-# Ignore all kinds of additional output from 'make'.
|
|
-case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
-*the\ am__doit\ target*)
|
|
- am__include=include
|
|
- am__quote=
|
|
- _am_result=GNU
|
|
- ;;
|
|
-esac
|
|
-# Now try BSD make style include.
|
|
-if test "$am__include" = "#"; then
|
|
- echo '.include "confinc"' > confmf
|
|
- case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
- *the\ am__doit\ target*)
|
|
- am__include=.include
|
|
- am__quote="\""
|
|
- _am_result=BSD
|
|
- ;;
|
|
- esac
|
|
-fi
|
|
-AC_SUBST([am__include])
|
|
-AC_SUBST([am__quote])
|
|
-AC_MSG_RESULT([$_am_result])
|
|
-rm -f confinc confmf
|
|
-])
|
|
+# BSD make does it like this.
|
|
+echo '.include "confinc.mk" # ignored' > confmf.BSD
|
|
+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
|
+echo 'include confinc.mk # ignored' > confmf.GNU
|
|
+_am_result=no
|
|
+for s in GNU BSD; do
|
|
+ AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
|
|
+ AS_CASE([$?:`cat confinc.out 2>/dev/null`],
|
|
+ ['0:this is the am__doit target'],
|
|
+ [AS_CASE([$s],
|
|
+ [BSD], [am__include='.include' am__quote='"'],
|
|
+ [am__include='include' am__quote=''])])
|
|
+ if test "$am__include" != "#"; then
|
|
+ _am_result="yes ($s style)"
|
|
+ break
|
|
+ fi
|
|
+done
|
|
+rm -f confinc.* confmf.*
|
|
+AC_MSG_RESULT([${_am_result}])
|
|
+AC_SUBST([am__include])])
|
|
+AC_SUBST([am__quote])])
|
|
|
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1997-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -795,12 +798,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
if test x"${MISSING+set}" != xset; then
|
|
- case $am_aux_dir in
|
|
- *\ * | *\ *)
|
|
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
- *)
|
|
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
- esac
|
|
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
fi
|
|
# Use eval to expand $SHELL
|
|
if eval "$MISSING --is-lightweight"; then
|
|
@@ -813,7 +811,7 @@ fi
|
|
|
|
# Helper functions for option handling. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -842,7 +840,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
|
|
AC_DEFUN([_AM_IF_OPTION],
|
|
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
|
|
-# Copyright (C) 1999-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1999-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -889,7 +887,7 @@ AC_LANG_POP([C])])
|
|
# For backward compatibility.
|
|
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -908,7 +906,7 @@ AC_DEFUN([AM_RUN_LOG],
|
|
|
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -989,7 +987,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
rm -f conftest.file
|
|
])
|
|
|
|
-# Copyright (C) 2009-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2009-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -1049,7 +1047,7 @@ AC_SUBST([AM_BACKSLASH])dnl
|
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
])
|
|
|
|
-# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2001-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -1077,7 +1075,7 @@ fi
|
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
|
|
-# Copyright (C) 2006-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2006-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
@@ -1096,7 +1094,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
|
|
# Check how to create a tarball. -*- Autoconf -*-
|
|
|
|
-# Copyright (C) 2004-2017 Free Software Foundation, Inc.
|
|
+# Copyright (C) 2004-2021 Free Software Foundation, Inc.
|
|
#
|
|
# This file is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
diff --git a/libsframe/configure b/libsframe/configure
|
|
index 4727eff533a..ca3885ad105 100755
|
|
--- a/libsframe/configure
|
|
+++ b/libsframe/configure
|
|
@@ -658,6 +658,8 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -674,6 +676,9 @@ AM_BACKSLASH
|
|
AM_DEFAULT_VERBOSITY
|
|
AM_DEFAULT_V
|
|
AM_V
|
|
+CSCOPE
|
|
+ETAGS
|
|
+CTAGS
|
|
am__fastdepCC_FALSE
|
|
am__fastdepCC_TRUE
|
|
CCDEPMODE
|
|
@@ -681,7 +686,6 @@ am__nodep
|
|
AMDEPBACKSLASH
|
|
AMDEP_FALSE
|
|
AMDEP_TRUE
|
|
-am__quote
|
|
am__include
|
|
DEPDIR
|
|
am__untar
|
|
@@ -766,7 +770,8 @@ PACKAGE_VERSION
|
|
PACKAGE_TARNAME
|
|
PACKAGE_NAME
|
|
PATH_SEPARATOR
|
|
-SHELL'
|
|
+SHELL
|
|
+am__quote'
|
|
ac_subst_files=''
|
|
ac_user_opts='
|
|
enable_option_checking
|
|
@@ -777,6 +782,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_largefile
|
|
enable_maintainer_mode
|
|
@@ -1433,6 +1439,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
@@ -3727,7 +3735,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
|
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
|
|
|
|
|
-am__api_version='1.15'
|
|
+am__api_version='1.16'
|
|
|
|
# Find a good install program. We prefer a C program (faster),
|
|
# so one script is as good as another. But avoid the broken or
|
|
@@ -3900,12 +3908,7 @@ ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
|
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
|
|
|
if test x"${MISSING+set}" != xset; then
|
|
- case $am_aux_dir in
|
|
- *\ * | *\ *)
|
|
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
- *)
|
|
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
- esac
|
|
+ MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
fi
|
|
# Use eval to expand $SHELL
|
|
if eval "$MISSING --is-lightweight"; then
|
|
@@ -4153,45 +4156,45 @@ DEPDIR="${am__leading_dot}deps"
|
|
|
|
ac_config_commands="$ac_config_commands depfiles"
|
|
|
|
-
|
|
-am_make=${MAKE-make}
|
|
-cat > confinc << 'END'
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
|
+$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
|
+cat > confinc.mk << 'END'
|
|
am__doit:
|
|
- @echo this is the am__doit target
|
|
+ @echo this is the am__doit target >confinc.out
|
|
.PHONY: am__doit
|
|
END
|
|
-# If we don't find an include directive, just comment out the code.
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
|
-$as_echo_n "checking for style of include used by $am_make... " >&6; }
|
|
am__include="#"
|
|
am__quote=
|
|
-_am_result=none
|
|
-# First try GNU make style include.
|
|
-echo "include confinc" > confmf
|
|
-# Ignore all kinds of additional output from 'make'.
|
|
-case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
-*the\ am__doit\ target*)
|
|
- am__include=include
|
|
- am__quote=
|
|
- _am_result=GNU
|
|
- ;;
|
|
-esac
|
|
-# Now try BSD make style include.
|
|
-if test "$am__include" = "#"; then
|
|
- echo '.include "confinc"' > confmf
|
|
- case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
- *the\ am__doit\ target*)
|
|
- am__include=.include
|
|
- am__quote="\""
|
|
- _am_result=BSD
|
|
+# BSD make does it like this.
|
|
+echo '.include "confinc.mk" # ignored' > confmf.BSD
|
|
+# Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
|
+echo 'include confinc.mk # ignored' > confmf.GNU
|
|
+_am_result=no
|
|
+for s in GNU BSD; do
|
|
+ { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
|
+ (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); }
|
|
+ case $?:`cat confinc.out 2>/dev/null` in #(
|
|
+ '0:this is the am__doit target') :
|
|
+ case $s in #(
|
|
+ BSD) :
|
|
+ am__include='.include' am__quote='"' ;; #(
|
|
+ *) :
|
|
+ am__include='include' am__quote='' ;;
|
|
+esac ;; #(
|
|
+ *) :
|
|
;;
|
|
- esac
|
|
-fi
|
|
-
|
|
-
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
|
-$as_echo "$_am_result" >&6; }
|
|
-rm -f confinc confmf
|
|
+esac
|
|
+ if test "$am__include" != "#"; then
|
|
+ _am_result="yes ($s style)"
|
|
+ break
|
|
+ fi
|
|
+done
|
|
+rm -f confinc.* confmf.*
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
|
+$as_echo "${_am_result}" >&6; }
|
|
|
|
# Check whether --enable-dependency-tracking was given.
|
|
if test "${enable_dependency_tracking+set}" = set; then :
|
|
@@ -4303,8 +4306,8 @@ MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
|
|
|
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
# dies out for good. For more background, see:
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
-# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
+# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
mkdir_p='$(MKDIR_P)'
|
|
|
|
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
@@ -4451,6 +4454,20 @@ else
|
|
fi
|
|
|
|
|
|
+# Variables for tags utilities; see am/tags.am
|
|
+if test -z "$CTAGS"; then
|
|
+ CTAGS=ctags
|
|
+fi
|
|
+
|
|
+if test -z "$ETAGS"; then
|
|
+ ETAGS=etags
|
|
+fi
|
|
+
|
|
+if test -z "$CSCOPE"; then
|
|
+ CSCOPE=cscope
|
|
+fi
|
|
+
|
|
+
|
|
|
|
# POSIX will say in a future version that running "rm -f" with no argument
|
|
# is OK; and we want to be able to make that assumption in our Makefile
|
|
@@ -4483,7 +4500,7 @@ END
|
|
Aborting the configuration process, to ensure you take notice of the issue.
|
|
|
|
You can download and install GNU coreutils to get an 'rm' implementation
|
|
-that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
|
+that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
|
|
|
If you want to complete the configuration process using your problematic
|
|
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
|
@@ -5468,8 +5485,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -5509,7 +5526,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -6202,8 +6219,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -6252,6 +6269,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -6268,6 +6359,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -6436,7 +6532,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6595,6 +6692,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6610,6 +6722,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6624,8 +6887,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6641,7 +6906,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6661,11 +6926,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6681,7 +6950,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6700,6 +6969,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6711,29 +6984,81 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
|
|
|
|
|
|
@@ -7080,8 +7405,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -7117,6 +7442,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -7158,6 +7484,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -7169,7 +7507,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -7195,8 +7533,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -7206,8 +7544,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -7244,6 +7582,16 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -7260,6 +7608,45 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -7465,11 +7852,128 @@ sparc*-*solaris*)
|
|
;;
|
|
esac
|
|
fi
|
|
- rm -rf conftest*
|
|
- ;;
|
|
+ rm -rf conftest*
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+need_locks="$enable_libtool_lock"
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
|
|
-need_locks="$enable_libtool_lock"
|
|
|
|
|
|
case $host_os in
|
|
@@ -8034,6 +8538,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8588,8 +9094,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8755,6 +9259,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8817,7 +9327,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8874,13 +9384,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8941,6 +9455,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -9291,7 +9810,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -9390,12 +9910,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -9409,8 +9929,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -9428,8 +9948,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9475,8 +9995,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9606,7 +10126,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9619,22 +10145,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9646,7 +10179,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9659,22 +10198,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9719,20 +10265,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9793,7 +10382,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9801,7 +10390,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9817,7 +10406,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9841,10 +10430,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9923,23 +10512,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -10024,7 +10626,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -10043,9 +10645,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10621,8 +11223,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10655,13 +11258,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11563,7 +12224,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11566 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11607,10 +12268,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11669,7 +12330,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11672 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11713,10 +12374,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -13541,7 +14202,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
|
#
|
|
# INIT-COMMANDS
|
|
#
|
|
-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
|
+AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
|
|
|
|
|
|
# The HP-UX ksh and POSIX shell print the target directory to stdout
|
|
@@ -13579,13 +14240,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -13600,14 +14268,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -13640,12 +14311,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -13700,8 +14371,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -13711,12 +14387,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -13732,7 +14410,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -13768,6 +14445,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -14414,29 +15092,35 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
|
|
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
# are listed without --file. Let's play safe and only enable the eval
|
|
# if we detect the quoting.
|
|
- case $CONFIG_FILES in
|
|
- *\'*) eval set x "$CONFIG_FILES" ;;
|
|
- *) set x $CONFIG_FILES ;;
|
|
- esac
|
|
+ # TODO: see whether this extra hack can be removed once we start
|
|
+ # requiring Autoconf 2.70 or later.
|
|
+ case $CONFIG_FILES in #(
|
|
+ *\'*) :
|
|
+ eval set x "$CONFIG_FILES" ;; #(
|
|
+ *) :
|
|
+ set x $CONFIG_FILES ;; #(
|
|
+ *) :
|
|
+ ;;
|
|
+esac
|
|
shift
|
|
- for mf
|
|
+ # Used to flag and report bootstrapping failures.
|
|
+ am_rc=0
|
|
+ for am_mf
|
|
do
|
|
# Strip MF so we end up with the name of the file.
|
|
- mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
- # Check whether this is an Automake generated Makefile or not.
|
|
- # We used to match only the files named 'Makefile.in', but
|
|
- # some people rename them; so instead we look at the file content.
|
|
- # Grep'ing the first line is not enough: some people post-process
|
|
- # each Makefile.in and add a new line on top of each file to say so.
|
|
- # Grep'ing the whole file is not good either: AIX grep has a line
|
|
+ am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
|
|
+ # Check whether this is an Automake generated Makefile which includes
|
|
+ # dependency-tracking related rules and includes.
|
|
+ # Grep'ing the whole file directly is not great: AIX grep has a line
|
|
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
- dirpart=`$as_dirname -- "$mf" ||
|
|
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
- X"$mf" : 'X\(//\)[^/]' \| \
|
|
- X"$mf" : 'X\(//\)$' \| \
|
|
- X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
|
-$as_echo X"$mf" |
|
|
+ sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
|
+ || continue
|
|
+ am_dirpart=`$as_dirname -- "$am_mf" ||
|
|
+$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
+ X"$am_mf" : 'X\(//\)[^/]' \| \
|
|
+ X"$am_mf" : 'X\(//\)$' \| \
|
|
+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
|
+$as_echo X"$am_mf" |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
s//\1/
|
|
q
|
|
@@ -14454,53 +15138,50 @@ $as_echo X"$mf" |
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
- else
|
|
- continue
|
|
- fi
|
|
- # Extract the definition of DEPDIR, am__include, and am__quote
|
|
- # from the Makefile without running 'make'.
|
|
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
- test -z "$DEPDIR" && continue
|
|
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
- test -z "$am__include" && continue
|
|
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
- # Find all dependency output files, they are included files with
|
|
- # $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
- # simplest approach to changing $(DEPDIR) to its actual value in the
|
|
- # expansion.
|
|
- for file in `sed -n "
|
|
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
|
- # Make sure the directory exists.
|
|
- test -f "$dirpart/$file" && continue
|
|
- fdir=`$as_dirname -- "$file" ||
|
|
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
- X"$file" : 'X\(//\)[^/]' \| \
|
|
- X"$file" : 'X\(//\)$' \| \
|
|
- X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
|
-$as_echo X"$file" |
|
|
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
|
- s//\1/
|
|
- q
|
|
- }
|
|
- /^X\(\/\/\)[^/].*/{
|
|
+ am_filepart=`$as_basename -- "$am_mf" ||
|
|
+$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
|
+ X"$am_mf" : 'X\(//\)$' \| \
|
|
+ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
|
+$as_echo X/"$am_mf" |
|
|
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
- /^X\(\/\/\)$/{
|
|
+ /^X\/\(\/\/\)$/{
|
|
s//\1/
|
|
q
|
|
}
|
|
- /^X\(\/\).*/{
|
|
+ /^X\/\(\/\).*/{
|
|
s//\1/
|
|
q
|
|
}
|
|
s/.*/./; q'`
|
|
- as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
|
- # echo "creating $dirpart/$file"
|
|
- echo '# dummy' > "$dirpart/$file"
|
|
- done
|
|
+ { echo "$as_me:$LINENO: cd "$am_dirpart" \
|
|
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
|
|
+ | $MAKE -f - am--depfiles" >&5
|
|
+ (cd "$am_dirpart" \
|
|
+ && sed -e '/# am--include-marker/d' "$am_filepart" \
|
|
+ | $MAKE -f - am--depfiles) >&5 2>&5
|
|
+ ac_status=$?
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
+ (exit $ac_status); } || am_rc=$?
|
|
done
|
|
+ if test $am_rc -ne 0; then
|
|
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
+as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
|
+ for automatic dependency tracking. If GNU make was not used, consider
|
|
+ re-running the configure script with MAKE=\"gmake\" (or whatever is
|
|
+ necessary). You can also try re-running configure with the
|
|
+ '--disable-dependency-tracking' option to at least be able to build
|
|
+ the package (albeit without support for automatic dependency tracking).
|
|
+See \`config.log' for more details" "$LINENO" 5; }
|
|
+ fi
|
|
+ { am_dirpart=; unset am_dirpart;}
|
|
+ { am_filepart=; unset am_filepart;}
|
|
+ { am_mf=; unset am_mf;}
|
|
+ { am_rc=; unset am_rc;}
|
|
+ rm -f conftest-deps.mk
|
|
}
|
|
;;
|
|
"libtool":C)
|
|
@@ -14524,7 +15205,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -14627,19 +15309,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -14669,6 +15374,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -14678,6 +15389,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -14792,12 +15506,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -14884,9 +15598,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -14902,6 +15613,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -14934,210 +15648,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/libtool.m4 b/libtool.m4
|
|
index e36fdd3c0e2..4acf9d67956 100644
|
|
--- a/libtool.m4
|
|
+++ b/libtool.m4
|
|
@@ -1,7 +1,8 @@
|
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is free software; the Free Software Foundation gives
|
|
@@ -10,7 +11,8 @@
|
|
|
|
m4_define([_LT_COPYING], [dnl
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
])
|
|
|
|
-# serial 56 LT_INIT
|
|
+# serial 57 LT_INIT
|
|
|
|
|
|
# LT_PREREQ(VERSION)
|
|
@@ -166,10 +168,13 @@ _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
|
|
dnl
|
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
|
|
+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
|
|
m4_require([_LT_CMD_RELOAD])dnl
|
|
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
|
|
+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
|
|
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
|
|
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
+m4_require([_LT_WITH_SYSROOT])dnl
|
|
|
|
_LT_CONFIG_LIBTOOL_INIT([
|
|
# See if we are running on zsh, and set the options which allow our
|
|
@@ -632,7 +637,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
|
|
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
|
|
configured by $[0], generated by m4_PACKAGE_STRING.
|
|
|
|
-Copyright (C) 2009 Free Software Foundation, Inc.
|
|
+Copyright (C) 2010 Free Software Foundation, Inc.
|
|
This config.lt script is free software; the Free Software Foundation
|
|
gives unlimited permision to copy, distribute and modify it."
|
|
|
|
@@ -746,15 +751,12 @@ _LT_EOF
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
|
|
- _LT_PROG_XSI_SHELLFNS
|
|
+ _LT_PROG_REPLACE_SHELLFNS
|
|
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
],
|
|
@@ -980,6 +982,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
|
|
echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
|
|
$AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
|
|
+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
|
|
+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -1071,30 +1075,41 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
|
|
fi
|
|
])
|
|
|
|
-# _LT_SYS_MODULE_PATH_AIX
|
|
-# -----------------------
|
|
+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
|
|
+# ----------------------------------
|
|
# Links a minimal program and checks the executable
|
|
# for the system default hardcoded library path. In most cases,
|
|
# this is /usr/lib:/lib, but when the MPI compilers are used
|
|
# the location of the communication and MPI libs are included too.
|
|
# If we don't find anything, use the default library path according
|
|
# to the aix ld manual.
|
|
+# Store the results from the different compilers for each TAGNAME.
|
|
+# Allow to override them for all tags through lt_cv_aix_libpath.
|
|
m4_defun([_LT_SYS_MODULE_PATH_AIX],
|
|
[m4_require([_LT_DECL_SED])dnl
|
|
-AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi],[])
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
|
|
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
|
|
+ lt_aix_libpath_sed='[
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }]'
|
|
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
|
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi],[])
|
|
+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
|
|
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
|
|
+ fi
|
|
+ ])
|
|
+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
|
|
+fi
|
|
])# _LT_SYS_MODULE_PATH_AIX
|
|
|
|
|
|
@@ -1119,7 +1134,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
|
|
AC_MSG_CHECKING([how to print strings])
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -1163,6 +1178,39 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
|
|
])# _LT_PROG_ECHO_BACKSLASH
|
|
|
|
|
|
+# _LT_WITH_SYSROOT
|
|
+# ----------------
|
|
+AC_DEFUN([_LT_WITH_SYSROOT],
|
|
+[AC_MSG_CHECKING([for sysroot])
|
|
+AC_ARG_WITH([libtool-sysroot],
|
|
+[ --with-libtool-sysroot[=DIR] Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).],
|
|
+[], [with_libtool_sysroot=no])
|
|
+
|
|
+dnl lt_sysroot will always be passed unquoted. We quote it here
|
|
+dnl in case the user passed a directory name.
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ AC_MSG_RESULT([${with_libtool_sysroot}])
|
|
+ AC_MSG_ERROR([The sysroot must be an absolute path.])
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ AC_MSG_RESULT([${lt_sysroot:-no}])
|
|
+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
|
|
+[dependent libraries, and in which our libraries should be installed.])])
|
|
+
|
|
# _LT_ENABLE_LOCK
|
|
# ---------------
|
|
m4_defun([_LT_ENABLE_LOCK],
|
|
@@ -1322,6 +1370,51 @@ need_locks="$enable_libtool_lock"
|
|
])# _LT_ENABLE_LOCK
|
|
|
|
|
|
+# _LT_PROG_AR
|
|
+# -----------
|
|
+m4_defun([_LT_PROG_AR],
|
|
+[AC_CHECK_TOOLS(AR, [ar], false)
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ AC_MSG_WARN([Failed: $AR $plugin_option rc])
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
+ fi
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+_LT_DECL([], [AR], [1], [The archiver])
|
|
+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
|
|
+
|
|
+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
|
|
+ [lt_cv_ar_at_file=no
|
|
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
|
|
+ [echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
|
|
+ AC_TRY_EVAL([lt_ar_try])
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ AC_TRY_EVAL([lt_ar_try])
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+ ])
|
|
+ ])
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+_LT_DECL([], [archiver_list_spec], [1],
|
|
+ [How to feed a file listing to the archiver])
|
|
+])# _LT_PROG_AR
|
|
+
|
|
+
|
|
# _LT_CMD_OLD_ARCHIVE
|
|
# -------------------
|
|
m4_defun([_LT_CMD_OLD_ARCHIVE],
|
|
@@ -1338,23 +1431,7 @@ for plugin in $plugin_names; do
|
|
fi
|
|
done
|
|
|
|
-AC_CHECK_TOOL(AR, ar, false)
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- AC_MSG_WARN([Failed: $AR $plugin_option rc])
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
- fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
-_LT_DECL([], [AR], [1], [The archiver])
|
|
-_LT_DECL([], [AR_FLAGS], [1])
|
|
+_LT_PROG_AR
|
|
|
|
AC_CHECK_TOOL(STRIP, strip, :)
|
|
test -z "$STRIP" && STRIP=:
|
|
@@ -1655,7 +1732,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-[#line __oline__ "configure"
|
|
+[#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -1699,10 +1776,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -2242,8 +2319,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -2276,13 +2354,71 @@ m4_if([$1], [],[
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -2996,6 +3132,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -3062,7 +3203,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -3218,6 +3360,21 @@ vxworks*)
|
|
;;
|
|
esac
|
|
])
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -3225,7 +3382,11 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
_LT_DECL([], [deplibs_check_method], [1],
|
|
[Method to check whether dependent libraries are shared objects])
|
|
_LT_DECL([], [file_magic_cmd], [1],
|
|
- [Command to use when deplibs_check_method == "file_magic"])
|
|
+ [Command to use when deplibs_check_method = "file_magic"])
|
|
+_LT_DECL([], [file_magic_glob], [1],
|
|
+ [How to find potential files when deplibs_check_method = "file_magic"])
|
|
+_LT_DECL([], [want_nocaseglob], [1],
|
|
+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
|
|
])# _LT_CHECK_MAGIC_METHOD
|
|
|
|
|
|
@@ -3336,6 +3497,67 @@ dnl aclocal-1.4 backwards compatibility:
|
|
dnl AC_DEFUN([AM_PROG_NM], [])
|
|
dnl AC_DEFUN([AC_PROG_NM], [])
|
|
|
|
+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
|
+# --------------------------------
|
|
+# how to determine the name of the shared library
|
|
+# associated with a specific link library.
|
|
+# -- PORTME fill in with the dynamic library characteristics
|
|
+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
|
|
+[m4_require([_LT_DECL_EGREP])
|
|
+m4_require([_LT_DECL_OBJDUMP])
|
|
+m4_require([_LT_DECL_DLLTOOL])
|
|
+AC_CACHE_CHECK([how to associate runtime and link libraries],
|
|
+lt_cv_sharedlib_from_linklib_cmd,
|
|
+[lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+])
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
|
|
+ [Command to associate shared and link libraries])
|
|
+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
|
|
+
|
|
+
|
|
+# _LT_PATH_MANIFEST_TOOL
|
|
+# ----------------------
|
|
+# locate the manifest tool
|
|
+m4_defun([_LT_PATH_MANIFEST_TOOL],
|
|
+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
|
|
+ [lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&AS_MESSAGE_LOG_FD
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*])
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
|
|
+])# _LT_PATH_MANIFEST_TOOL
|
|
+
|
|
|
|
# LT_LIB_M
|
|
# --------
|
|
@@ -3462,8 +3684,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -3499,6 +3721,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -3532,6 +3755,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT@&t@_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT@&t@_DLSYM_CONST
|
|
+#else
|
|
+# define LT@&t@_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -3543,7 +3778,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT@&t@_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -3569,15 +3804,15 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
|
|
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
|
|
fi
|
|
@@ -3610,6 +3845,13 @@ else
|
|
AC_MSG_RESULT(ok)
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
|
|
[Take the output of nm and produce a listing of raw symbols and C names])
|
|
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
|
|
@@ -3620,6 +3862,8 @@ _LT_DECL([global_symbol_to_c_name_address],
|
|
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
|
|
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
|
|
[Transform the output of nm in a C name address pair when lib prefix is needed])
|
|
+_LT_DECL([], [nm_file_list_spec], [1],
|
|
+ [Specify filename containing input files for $NM])
|
|
]) # _LT_CMD_GLOBAL_SYMBOLS
|
|
|
|
|
|
@@ -3631,7 +3875,6 @@ _LT_TAGVAR(lt_prog_compiler_wl, $1)=
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)=
|
|
|
|
-AC_MSG_CHECKING([for $compiler option to produce PIC])
|
|
m4_if([$1], [CXX], [
|
|
# C++ specific cases for pic, static, wl, etc.
|
|
if test "$GXX" = yes; then
|
|
@@ -3737,6 +3980,12 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
esac
|
|
;;
|
|
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
|
|
+ # This hack is so that the source file can tell whether it is being
|
|
+ # built for inclusion in a dll (and should export symbols for example).
|
|
+ m4_if([$1], [GCJ], [],
|
|
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
|
|
+ ;;
|
|
dgux*)
|
|
case $cc_basename in
|
|
ec++*)
|
|
@@ -3889,7 +4138,7 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
@@ -4112,6 +4361,12 @@ m4_if([$1], [CXX], [
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
|
|
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
|
|
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -4174,7 +4429,7 @@ m4_if([$1], [CXX], [
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
|
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
|
|
*)
|
|
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
|
|
@@ -4231,9 +4486,11 @@ case $host_os in
|
|
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
|
|
;;
|
|
esac
|
|
-AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
|
-_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
|
- [How to pass a linker flag through the compiler])
|
|
+
|
|
+AC_CACHE_CHECK([for $compiler option to produce PIC],
|
|
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
|
|
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
|
|
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -4252,6 +4509,8 @@ fi
|
|
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
|
|
[Additional compiler flags for building library objects])
|
|
|
|
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
|
|
+ [How to pass a linker flag through the compiler])
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -4272,6 +4531,7 @@ _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
|
|
m4_defun([_LT_LINKER_SHLIBS],
|
|
[AC_REQUIRE([LT_PATH_LD])dnl
|
|
AC_REQUIRE([LT_PATH_NM])dnl
|
|
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
|
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
m4_require([_LT_DECL_EGREP])dnl
|
|
m4_require([_LT_DECL_SED])dnl
|
|
@@ -4280,6 +4540,7 @@ m4_require([_LT_TAG_COMPILER])dnl
|
|
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
|
|
m4_if([$1], [CXX], [
|
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
case $host_os in
|
|
aix[[4-9]]*)
|
|
# If we're using GNU nm, then we don't want the "-C" option.
|
|
@@ -4294,15 +4555,20 @@ m4_if([$1], [CXX], [
|
|
;;
|
|
pw32*)
|
|
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
|
- ;;
|
|
+ ;;
|
|
cygwin* | mingw* | cegcc*)
|
|
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ case $cc_basename in
|
|
+ cl*) ;;
|
|
+ *)
|
|
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
*)
|
|
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
|
- ;;
|
|
+ ;;
|
|
esac
|
|
- _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
|
|
], [
|
|
runpath_var=
|
|
_LT_TAGVAR(allow_undefined_flag, $1)=
|
|
@@ -4470,7 +4736,8 @@ _LT_EOF
|
|
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
_LT_TAGVAR(always_export_symbols, $1)=no
|
|
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
|
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -4569,12 +4836,12 @@ _LT_EOF
|
|
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
|
|
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -4588,8 +4855,8 @@ _LT_EOF
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -4607,8 +4874,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
fi
|
|
@@ -4654,8 +4921,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
fi
|
|
@@ -4785,7 +5052,7 @@ _LT_EOF
|
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- _LT_SYS_MODULE_PATH_AIX
|
|
+ _LT_SYS_MODULE_PATH_AIX([$1])
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
else
|
|
@@ -4796,7 +5063,7 @@ _LT_EOF
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- _LT_SYS_MODULE_PATH_AIX
|
|
+ _LT_SYS_MODULE_PATH_AIX([$1])
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
# -berok will link without error, but may produce a broken library.
|
|
@@ -4840,20 +5107,63 @@ _LT_EOF
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
|
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
+ _LT_TAGVAR(always_export_symbols, $1)=yes
|
|
+ _LT_TAGVAR(file_list_spec, $1)='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -4887,7 +5197,7 @@ _LT_EOF
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
|
_LT_TAGVAR(hardcode_direct, $1)=yes
|
|
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
@@ -4895,7 +5205,7 @@ _LT_EOF
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -4911,7 +5221,7 @@ _LT_EOF
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -4935,10 +5245,10 @@ _LT_EOF
|
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -4985,16 +5295,31 @@ _LT_EOF
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
|
|
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
- )
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
|
|
+ [lt_cv_irix_exported_symbol],
|
|
+ [save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ AC_LINK_IFELSE(
|
|
+ [AC_LANG_SOURCE(
|
|
+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
|
|
+ [C++], [[int foo (void) { return 0; }]],
|
|
+ [Fortran 77], [[
|
|
+ subroutine foo
|
|
+ end]],
|
|
+ [Fortran], [[
|
|
+ subroutine foo
|
|
+ end]])])],
|
|
+ [lt_cv_irix_exported_symbol=yes],
|
|
+ [lt_cv_irix_exported_symbol=no])
|
|
+ LDFLAGS="$save_LDFLAGS"])
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -5079,7 +5404,7 @@ _LT_EOF
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
|
|
@@ -5098,9 +5423,9 @@ _LT_EOF
|
|
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -5372,8 +5697,6 @@ _LT_TAGDECL([], [inherit_rpath], [0],
|
|
to runtime path list])
|
|
_LT_TAGDECL([], [link_all_deplibs], [0],
|
|
[Whether libtool must link a program against all its dependency libraries])
|
|
-_LT_TAGDECL([], [fix_srcfile_path], [1],
|
|
- [Fix the shell variable $srcfile for the compiler])
|
|
_LT_TAGDECL([], [always_export_symbols], [0],
|
|
[Set to "yes" if exported symbols are required])
|
|
_LT_TAGDECL([], [export_symbols_cmds], [2],
|
|
@@ -5384,6 +5707,8 @@ _LT_TAGDECL([], [include_expsyms], [1],
|
|
[Symbols that must always be exported])
|
|
_LT_TAGDECL([], [prelink_cmds], [2],
|
|
[Commands necessary for linking programs (against libraries) with templates])
|
|
+_LT_TAGDECL([], [postlink_cmds], [2],
|
|
+ [Commands necessary for finishing linking programs])
|
|
_LT_TAGDECL([], [file_list_spec], [1],
|
|
[Specify filename containing input files])
|
|
dnl FIXME: Not yet implemented
|
|
@@ -5485,6 +5810,7 @@ CC="$lt_save_CC"
|
|
m4_defun([_LT_LANG_CXX_CONFIG],
|
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
m4_require([_LT_DECL_EGREP])dnl
|
|
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
|
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
|
(test "X$CXX" != "Xg++"))) ; then
|
|
@@ -5546,6 +5872,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC=$CC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
lt_save_LD=$LD
|
|
lt_save_GCC=$GCC
|
|
GCC=$GXX
|
|
@@ -5563,6 +5890,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
fi
|
|
test -z "${LDCXX+set}" || LD=$LDCXX
|
|
CC=${CXX-"c++"}
|
|
+ CFLAGS=$CXXFLAGS
|
|
compiler=$CC
|
|
_LT_TAGVAR(compiler, $1)=$CC
|
|
_LT_CC_BASENAME([$compiler])
|
|
@@ -5726,7 +6054,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
|
|
# Determine the default libpath from the value encoded in an empty
|
|
# executable.
|
|
- _LT_SYS_MODULE_PATH_AIX
|
|
+ _LT_SYS_MODULE_PATH_AIX([$1])
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -5738,7 +6066,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- _LT_SYS_MODULE_PATH_AIX
|
|
+ _LT_SYS_MODULE_PATH_AIX([$1])
|
|
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
# -berok will link without error, but may produce a broken library.
|
|
@@ -5780,29 +6108,75 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
;;
|
|
|
|
cygwin* | mingw* | pw32* | cegcc*)
|
|
- # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
- # as there is no search path for DLLs.
|
|
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
|
- _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
- _LT_TAGVAR(always_export_symbols, $1)=no
|
|
- _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
-
|
|
- if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- # If the export-symbols file already is a .def file (1st line
|
|
- # is EXPORTS), use it as is; otherwise, prepend...
|
|
- _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
- cp $export_symbols $output_objdir/$soname.def;
|
|
- else
|
|
- echo EXPORTS > $output_objdir/$soname.def;
|
|
- cat $export_symbols >> $output_objdir/$soname.def;
|
|
- fi~
|
|
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
- else
|
|
- _LT_TAGVAR(ld_shlibs, $1)=no
|
|
- fi
|
|
- ;;
|
|
+ case $GXX,$cc_basename in
|
|
+ ,cl* | no,cl*)
|
|
+ # Native MSVC
|
|
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
+ # no search path for DLLs.
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
|
|
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
+ _LT_TAGVAR(always_export_symbols, $1)=yes
|
|
+ _LT_TAGVAR(file_list_spec, $1)='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
|
|
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
+ # Don't use ranlib
|
|
+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
|
|
+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ func_to_tool_file "$lt_outputfile"~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # g++
|
|
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
|
|
+ # as there is no search path for DLLs.
|
|
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
|
|
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
|
|
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
|
|
+ _LT_TAGVAR(always_export_symbols, $1)=no
|
|
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
|
+
|
|
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ # If the export-symbols file already is a .def file (1st line
|
|
+ # is EXPORTS), use it as is; otherwise, prepend...
|
|
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ cp $export_symbols $output_objdir/$soname.def;
|
|
+ else
|
|
+ echo EXPORTS > $output_objdir/$soname.def;
|
|
+ cat $export_symbols >> $output_objdir/$soname.def;
|
|
+ fi~
|
|
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
+ else
|
|
+ _LT_TAGVAR(ld_shlibs, $1)=no
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
darwin* | rhapsody*)
|
|
_LT_DARWIN_LINKER_FEATURES($1)
|
|
;;
|
|
@@ -5877,7 +6251,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
;;
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
# FIXME: insert proper C++ library support
|
|
_LT_TAGVAR(ld_shlibs, $1)=no
|
|
@@ -5948,10 +6322,10 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -5992,9 +6366,9 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
*)
|
|
if test "$GXX" = yes; then
|
|
if test "$with_gnu_ld" = no; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
else
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
|
|
fi
|
|
fi
|
|
_LT_TAGVAR(link_all_deplibs, $1)=yes
|
|
@@ -6272,7 +6646,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
*)
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
;;
|
|
esac
|
|
|
|
@@ -6318,7 +6692,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# Sun C++ 4.2, 5.x and Centerline C++
|
|
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
|
|
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|
|
@@ -6359,9 +6733,9 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
|
|
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
|
|
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
|
|
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
|
|
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
|
|
|
|
# Commands to make compiler produce verbose output that lists
|
|
# what "hidden" libraries, object files and flags are used when
|
|
@@ -6491,6 +6865,7 @@ if test "$_lt_caught_CXX_error" != yes; then
|
|
fi # test -n "$compiler"
|
|
|
|
CC=$lt_save_CC
|
|
+ CFLAGS=$lt_save_CFLAGS
|
|
LDCXX=$LD
|
|
LD=$lt_save_LD
|
|
GCC=$lt_save_GCC
|
|
@@ -6505,6 +6880,29 @@ AC_LANG_POP
|
|
])# _LT_LANG_CXX_CONFIG
|
|
|
|
|
|
+# _LT_FUNC_STRIPNAME_CNF
|
|
+# ----------------------
|
|
+# func_stripname_cnf prefix suffix name
|
|
+# strip PREFIX and SUFFIX off of NAME.
|
|
+# PREFIX and SUFFIX must not contain globbing or regex special
|
|
+# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
+# dot (in which case that matches only a dot).
|
|
+#
|
|
+# This function is identical to the (non-XSI) version of func_stripname,
|
|
+# except this one can be used by m4 code that may be executed by configure,
|
|
+# rather than the libtool script.
|
|
+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
|
|
+AC_REQUIRE([_LT_DECL_SED])
|
|
+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
|
|
+func_stripname_cnf ()
|
|
+{
|
|
+ case ${2} in
|
|
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
+ esac
|
|
+} # func_stripname_cnf
|
|
+])# _LT_FUNC_STRIPNAME_CNF
|
|
+
|
|
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
|
|
# ---------------------------------
|
|
# Figure out "hidden" library dependencies from verbose
|
|
@@ -6513,6 +6911,7 @@ AC_LANG_POP
|
|
# objects, libraries and library flags.
|
|
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
|
|
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
|
|
+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
|
|
# Dependencies to place before and after the object being linked:
|
|
_LT_TAGVAR(predep_objects, $1)=
|
|
_LT_TAGVAR(postdep_objects, $1)=
|
|
@@ -6563,6 +6962,13 @@ public class foo {
|
|
};
|
|
_LT_EOF
|
|
])
|
|
+
|
|
+_lt_libdeps_save_CFLAGS=$CFLAGS
|
|
+case "$CC $CFLAGS " in #(
|
|
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
|
|
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
|
|
+esac
|
|
+
|
|
dnl Parse the compiler output and extract the necessary
|
|
dnl objects, libraries and library flags.
|
|
if AC_TRY_EVAL(ac_compile); then
|
|
@@ -6574,7 +6980,7 @@ if AC_TRY_EVAL(ac_compile); then
|
|
pre_test_object_deps_done=no
|
|
|
|
for p in `eval "$output_verbose_link_cmd"`; do
|
|
- case $p in
|
|
+ case ${prev}${p} in
|
|
|
|
-L* | -R* | -l*)
|
|
# Some compilers place space between "-{L,R}" and the path.
|
|
@@ -6583,13 +6989,22 @@ if AC_TRY_EVAL(ac_compile); then
|
|
test $p = "-R"; then
|
|
prev=$p
|
|
continue
|
|
- else
|
|
- prev=
|
|
fi
|
|
|
|
+ # Expand the sysroot to ease extracting the directories later.
|
|
+ if test -z "$prev"; then
|
|
+ case $p in
|
|
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
|
|
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
|
|
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
|
|
+ esac
|
|
+ fi
|
|
+ case $p in
|
|
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
|
|
+ esac
|
|
if test "$pre_test_object_deps_done" = no; then
|
|
- case $p in
|
|
- -L* | -R*)
|
|
+ case ${prev} in
|
|
+ -L | -R)
|
|
# Internal compiler library paths should come after those
|
|
# provided the user. The postdeps already come after the
|
|
# user supplied libs so there is no need to process them.
|
|
@@ -6609,8 +7024,10 @@ if AC_TRY_EVAL(ac_compile); then
|
|
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
|
|
fi
|
|
fi
|
|
+ prev=
|
|
;;
|
|
|
|
+ *.lto.$objext) ;; # Ignore GCC LTO objects
|
|
*.$objext)
|
|
# This assumes that the test object file only shows up
|
|
# once in the compiler output.
|
|
@@ -6646,6 +7063,7 @@ else
|
|
fi
|
|
|
|
$RM -f confest.$objext
|
|
+CFLAGS=$_lt_libdeps_save_CFLAGS
|
|
|
|
# PORTME: override above test on systems where it is broken
|
|
m4_if([$1], [CXX],
|
|
@@ -6682,7 +7100,7 @@ linux*)
|
|
|
|
solaris*)
|
|
case $cc_basename in
|
|
- CC*)
|
|
+ CC* | sunCC*)
|
|
# The more standards-conforming stlport4 library is
|
|
# incompatible with the Cstd library. Avoid specifying
|
|
# it if it's in CXXFLAGS. Ignore libCrun as
|
|
@@ -6795,7 +7213,9 @@ if test "$_lt_disable_F77" != yes; then
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC="$CC"
|
|
lt_save_GCC=$GCC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
CC=${F77-"f77"}
|
|
+ CFLAGS=$FFLAGS
|
|
compiler=$CC
|
|
_LT_TAGVAR(compiler, $1)=$CC
|
|
_LT_CC_BASENAME([$compiler])
|
|
@@ -6849,6 +7269,7 @@ if test "$_lt_disable_F77" != yes; then
|
|
|
|
GCC=$lt_save_GCC
|
|
CC="$lt_save_CC"
|
|
+ CFLAGS="$lt_save_CFLAGS"
|
|
fi # test "$_lt_disable_F77" != yes
|
|
|
|
AC_LANG_POP
|
|
@@ -6925,7 +7346,9 @@ if test "$_lt_disable_FC" != yes; then
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC="$CC"
|
|
lt_save_GCC=$GCC
|
|
+ lt_save_CFLAGS=$CFLAGS
|
|
CC=${FC-"f95"}
|
|
+ CFLAGS=$FCFLAGS
|
|
compiler=$CC
|
|
GCC=$ac_cv_fc_compiler_gnu
|
|
|
|
@@ -6981,7 +7404,8 @@ if test "$_lt_disable_FC" != yes; then
|
|
fi # test -n "$compiler"
|
|
|
|
GCC=$lt_save_GCC
|
|
- CC="$lt_save_CC"
|
|
+ CC=$lt_save_CC
|
|
+ CFLAGS=$lt_save_CFLAGS
|
|
fi # test "$_lt_disable_FC" != yes
|
|
|
|
AC_LANG_POP
|
|
@@ -7018,10 +7442,12 @@ _LT_COMPILER_BOILERPLATE
|
|
_LT_LINKER_BOILERPLATE
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
-lt_save_CC="$CC"
|
|
+lt_save_CC=$CC
|
|
+lt_save_CFLAGS=$CFLAGS
|
|
lt_save_GCC=$GCC
|
|
GCC=yes
|
|
CC=${GCJ-"gcj"}
|
|
+CFLAGS=$GCJFLAGS
|
|
compiler=$CC
|
|
_LT_TAGVAR(compiler, $1)=$CC
|
|
_LT_TAGVAR(LD, $1)="$LD"
|
|
@@ -7052,7 +7478,8 @@ fi
|
|
AC_LANG_RESTORE
|
|
|
|
GCC=$lt_save_GCC
|
|
-CC="$lt_save_CC"
|
|
+CC=$lt_save_CC
|
|
+CFLAGS=$lt_save_CFLAGS
|
|
])# _LT_LANG_GCJ_CONFIG
|
|
|
|
|
|
@@ -7087,9 +7514,11 @@ _LT_LINKER_BOILERPLATE
|
|
|
|
# Allow CC to be a program name with arguments.
|
|
lt_save_CC="$CC"
|
|
+lt_save_CFLAGS=$CFLAGS
|
|
lt_save_GCC=$GCC
|
|
GCC=
|
|
CC=${RC-"windres"}
|
|
+CFLAGS=
|
|
compiler=$CC
|
|
_LT_TAGVAR(compiler, $1)=$CC
|
|
_LT_CC_BASENAME([$compiler])
|
|
@@ -7102,7 +7531,8 @@ fi
|
|
|
|
GCC=$lt_save_GCC
|
|
AC_LANG_RESTORE
|
|
-CC="$lt_save_CC"
|
|
+CC=$lt_save_CC
|
|
+CFLAGS=$lt_save_CFLAGS
|
|
])# _LT_LANG_RC_CONFIG
|
|
|
|
|
|
@@ -7161,6 +7591,15 @@ _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
|
|
AC_SUBST([OBJDUMP])
|
|
])
|
|
|
|
+# _LT_DECL_DLLTOOL
|
|
+# ----------------
|
|
+# Ensure DLLTOOL variable is set.
|
|
+m4_defun([_LT_DECL_DLLTOOL],
|
|
+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
|
|
+AC_SUBST([DLLTOOL])
|
|
+])
|
|
|
|
# _LT_DECL_SED
|
|
# ------------
|
|
@@ -7254,8 +7693,8 @@ m4_defun([_LT_CHECK_SHELL_FEATURES],
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -7294,206 +7733,162 @@ _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
|
|
])# _LT_CHECK_SHELL_FEATURES
|
|
|
|
|
|
-# _LT_PROG_XSI_SHELLFNS
|
|
-# ---------------------
|
|
-# Bourne and XSI compatible variants of some useful shell functions.
|
|
-m4_defun([_LT_PROG_XSI_SHELLFNS],
|
|
-[case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $[*] ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
|
|
+# ------------------------------------------------------
|
|
+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
|
|
+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
|
|
+m4_defun([_LT_PROG_FUNCTION_REPLACE],
|
|
+[dnl {
|
|
+sed -e '/^$1 ()$/,/^} # $1 /c\
|
|
+$1 ()\
|
|
+{\
|
|
+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
|
|
+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+])
|
|
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
+# _LT_PROG_REPLACE_SHELLFNS
|
|
+# -------------------------
|
|
+# Replace existing portable implementations of several shell functions with
|
|
+# equivalent extended shell implementations where those features are available..
|
|
+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
|
|
+[if test x"$xsi_shell" = xyes; then
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
|
|
+ case ${1} in
|
|
+ */*) func_dirname_result="${1%/*}${2}" ;;
|
|
+ * ) func_dirname_result="${3}" ;;
|
|
+ esac])
|
|
+
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
|
|
+ func_basename_result="${1##*/}"])
|
|
+
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
|
|
+ case ${1} in
|
|
+ */*) func_dirname_result="${1%/*}${2}" ;;
|
|
+ * ) func_dirname_result="${3}" ;;
|
|
+ esac
|
|
+ func_basename_result="${1##*/}"])
|
|
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
|
|
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
+ # positional parameters, so assign one to ordinary parameter first.
|
|
+ func_stripname_result=${3}
|
|
+ func_stripname_result=${func_stripname_result#"${1}"}
|
|
+ func_stripname_result=${func_stripname_result%"${2}"}])
|
|
|
|
-dnl func_dirname_and_basename
|
|
-dnl A portable version of this function is already defined in general.m4sh
|
|
-dnl so there is no need for it here.
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
|
|
+ func_split_long_opt_name=${1%%=*}
|
|
+ func_split_long_opt_arg=${1#*=}])
|
|
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
|
|
+ func_split_short_opt_arg=${1#??}
|
|
+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
|
|
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[[^=]]*=//'
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
|
|
+ case ${1} in
|
|
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
+ *) func_lo2o_result=${1} ;;
|
|
+ esac])
|
|
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
|
|
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
|
|
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
|
|
+fi
|
|
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$[@]"`
|
|
-}
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
|
|
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
|
|
+ func_quote_for_eval "${2}"
|
|
+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
|
|
+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
|
|
|
|
-_LT_EOF
|
|
-esac
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
|
|
+fi
|
|
+])
|
|
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$[1]+=\$[2]"
|
|
-}
|
|
-_LT_EOF
|
|
+# _LT_PATH_CONVERSION_FUNCTIONS
|
|
+# -----------------------------
|
|
+# Determine which file name conversion functions should be used by
|
|
+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
|
|
+# for certain cross-compile configurations and native mingw.
|
|
+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
|
|
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
|
|
+AC_MSG_CHECKING([how to convert $build file names to $host format])
|
|
+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
|
|
+[case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$[1]=\$$[1]\$[2]"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
- esac
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+])
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
|
|
+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
|
|
+ [0], [convert $build file names to $host format])dnl
|
|
+
|
|
+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
|
|
+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
|
|
+[#assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
])
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
|
+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
|
+ [0], [convert $build files to toolchain format])dnl
|
|
+])# _LT_PATH_CONVERSION_FUNCTIONS
|
|
diff --git a/ltmain.sh b/ltmain.sh
|
|
index 1a710177fb2..09693d7b99b 100644
|
|
--- a/ltmain.sh
|
|
+++ b/ltmain.sh
|
|
@@ -1,10 +1,9 @@
|
|
-# Generated from ltmain.m4sh.
|
|
|
|
-# libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a
|
|
+# libtool (GNU libtool) 2.4
|
|
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
|
|
-# 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
|
# This is free software; see the source for copying conditions. There is NO
|
|
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
@@ -38,7 +37,6 @@
|
|
# -n, --dry-run display commands without modifying any files
|
|
# --features display basic configuration information and exit
|
|
# --mode=MODE use operation mode MODE
|
|
-# --no-finish let install mode avoid finish commands
|
|
# --preserve-dup-deps don't remove duplicate dependency libraries
|
|
# --quiet, --silent don't print informational messages
|
|
# --no-quiet, --no-silent
|
|
@@ -71,17 +69,19 @@
|
|
# compiler: $LTCC
|
|
# compiler flags: $LTCFLAGS
|
|
# linker: $LD (gnu? $with_gnu_ld)
|
|
-# $progname: (GNU libtool 1.3134 2009-11-29) 2.2.7a
|
|
+# $progname: (GNU libtool) 2.4
|
|
# automake: $automake_version
|
|
# autoconf: $autoconf_version
|
|
#
|
|
# Report bugs to <bug-libtool@gnu.org>.
|
|
+# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
|
|
+# General help using GNU software: <http://www.gnu.org/gethelp/>.
|
|
|
|
PROGRAM=libtool
|
|
PACKAGE=libtool
|
|
-VERSION=2.2.7a
|
|
-TIMESTAMP=" 1.3134 2009-11-29"
|
|
-package_revision=1.3134
|
|
+VERSION=2.4
|
|
+TIMESTAMP=""
|
|
+package_revision=1.3293
|
|
|
|
# Be Bourne compatible
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
|
@@ -106,9 +106,6 @@ _LTECHO_EOF'
|
|
}
|
|
|
|
# NLS nuisances: We save the old values to restore during execute mode.
|
|
-# Only set LANG and LC_ALL to C if already set.
|
|
-# These must not be set unconditionally because not all systems understand
|
|
-# e.g. LANG=C (notably SCO).
|
|
lt_user_locale=
|
|
lt_safe_locale=
|
|
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
|
|
@@ -121,15 +118,13 @@ do
|
|
lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
|
|
fi"
|
|
done
|
|
+LC_ALL=C
|
|
+LANGUAGE=C
|
|
+export LANGUAGE LC_ALL
|
|
|
|
$lt_unset CDPATH
|
|
|
|
|
|
-
|
|
-
|
|
-
|
|
-
|
|
-
|
|
# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
|
|
# is ksh but when the shell is invoked as "sh" and the current value of
|
|
# the _XPG environment variable is not equal to 1 (one), the special
|
|
@@ -140,7 +135,7 @@ progpath="$0"
|
|
|
|
|
|
: ${CP="cp -f"}
|
|
-: ${ECHO=$as_echo}
|
|
+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
|
|
: ${EGREP="/bin/grep -E"}
|
|
: ${FGREP="/bin/grep -F"}
|
|
: ${GREP="/bin/grep"}
|
|
@@ -149,7 +144,7 @@ progpath="$0"
|
|
: ${MKDIR="mkdir"}
|
|
: ${MV="mv -f"}
|
|
: ${RM="rm -f"}
|
|
-: ${SED="/mount/endor/wildenhu/local-x86_64/bin/sed"}
|
|
+: ${SED="/bin/sed"}
|
|
: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
|
|
: ${Xsed="$SED -e 1s/^X//"}
|
|
|
|
@@ -169,6 +164,27 @@ IFS=" $lt_nl"
|
|
dirname="s,/[^/]*$,,"
|
|
basename="s,^.*/,,"
|
|
|
|
+# func_dirname file append nondir_replacement
|
|
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
+# otherwise set result to NONDIR_REPLACEMENT.
|
|
+func_dirname ()
|
|
+{
|
|
+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
+ if test "X$func_dirname_result" = "X${1}"; then
|
|
+ func_dirname_result="${3}"
|
|
+ else
|
|
+ func_dirname_result="$func_dirname_result${2}"
|
|
+ fi
|
|
+} # func_dirname may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_basename file
|
|
+func_basename ()
|
|
+{
|
|
+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
+} # func_basename may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
# func_dirname_and_basename file append nondir_replacement
|
|
# perform func_basename and func_dirname in a single function
|
|
# call:
|
|
@@ -183,17 +199,31 @@ basename="s,^.*/,,"
|
|
# those functions but instead duplicate the functionality here.
|
|
func_dirname_and_basename ()
|
|
{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
- func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
|
|
-}
|
|
+ # Extract subdirectory from the argument.
|
|
+ func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
|
|
+ if test "X$func_dirname_result" = "X${1}"; then
|
|
+ func_dirname_result="${3}"
|
|
+ else
|
|
+ func_dirname_result="$func_dirname_result${2}"
|
|
+ fi
|
|
+ func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
|
|
+} # func_dirname_and_basename may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_stripname prefix suffix name
|
|
+# strip PREFIX and SUFFIX off of NAME.
|
|
+# PREFIX and SUFFIX must not contain globbing or regex special
|
|
+# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
+# dot (in which case that matches only a dot).
|
|
+# func_strip_suffix prefix name
|
|
+func_stripname ()
|
|
+{
|
|
+ case ${2} in
|
|
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
+ esac
|
|
+} # func_stripname may be replaced by extended shell implementation
|
|
|
|
-# Generated shell functions inserted here.
|
|
|
|
# These SED scripts presuppose an absolute path with a trailing slash.
|
|
pathcar='s,^/\([^/]*\).*$,\1,'
|
|
@@ -376,6 +406,15 @@ sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
|
|
# Same as above, but do not quote variable references.
|
|
double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
|
|
|
+# Sed substitution that turns a string into a regex matching for the
|
|
+# string literally.
|
|
+sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
|
|
+
|
|
+# Sed substitution that converts a w32 file name or path
|
|
+# which contains forward slashes, into one that contains
|
|
+# (escaped) backslashes. A very naive implementation.
|
|
+lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
|
|
+
|
|
# Re-`\' parameter expansions in output of double_quote_subst that were
|
|
# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
|
|
# in input to double_quote_subst, that '$' was protected from expansion.
|
|
@@ -404,7 +443,7 @@ opt_warning=:
|
|
# name if it has been set yet.
|
|
func_echo ()
|
|
{
|
|
- $ECHO "$progname${mode+: }$mode: $*"
|
|
+ $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
|
|
}
|
|
|
|
# func_verbose arg...
|
|
@@ -430,14 +469,14 @@ func_echo_all ()
|
|
# Echo program name prefixed message to standard error.
|
|
func_error ()
|
|
{
|
|
- $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
|
|
+ $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
|
|
}
|
|
|
|
# func_warning arg...
|
|
# Echo program name prefixed warning message to standard error.
|
|
func_warning ()
|
|
{
|
|
- $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
|
|
+ $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
|
|
|
|
# bash bug again:
|
|
:
|
|
@@ -656,19 +695,35 @@ func_show_eval_locale ()
|
|
fi
|
|
}
|
|
|
|
-
|
|
-
|
|
+# func_tr_sh
|
|
+# Turn $1 into a string suitable for a shell variable name.
|
|
+# Result is stored in $func_tr_sh_result. All characters
|
|
+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
|
|
+# if $1 begins with a digit, a '_' is prepended as well.
|
|
+func_tr_sh ()
|
|
+{
|
|
+ case $1 in
|
|
+ [0-9]* | *[!a-zA-Z0-9_]*)
|
|
+ func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
|
|
+ ;;
|
|
+ * )
|
|
+ func_tr_sh_result=$1
|
|
+ ;;
|
|
+ esac
|
|
+}
|
|
|
|
|
|
# func_version
|
|
# Echo version message to standard output and exit.
|
|
func_version ()
|
|
{
|
|
+ $opt_debug
|
|
+
|
|
$SED -n '/(C)/!b go
|
|
:more
|
|
/\./!{
|
|
N
|
|
- s/\n# //
|
|
+ s/\n# / /
|
|
b more
|
|
}
|
|
:go
|
|
@@ -685,7 +740,9 @@ func_version ()
|
|
# Echo short help message to standard output and exit.
|
|
func_usage ()
|
|
{
|
|
- $SED -n '/^# Usage:/,/^# *-h/ {
|
|
+ $opt_debug
|
|
+
|
|
+ $SED -n '/^# Usage:/,/^# *.*--help/ {
|
|
s/^# //
|
|
s/^# *$//
|
|
s/\$progname/'$progname'/
|
|
@@ -701,7 +758,10 @@ func_usage ()
|
|
# unless 'noexit' is passed as argument.
|
|
func_help ()
|
|
{
|
|
+ $opt_debug
|
|
+
|
|
$SED -n '/^# Usage:/,/# Report bugs to/ {
|
|
+ :print
|
|
s/^# //
|
|
s/^# *$//
|
|
s*\$progname*'$progname'*
|
|
@@ -714,7 +774,11 @@ func_help ()
|
|
s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
|
|
s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
|
|
p
|
|
- }' < "$progpath"
|
|
+ d
|
|
+ }
|
|
+ /^# .* home page:/b print
|
|
+ /^# General help using/b print
|
|
+ ' < "$progpath"
|
|
ret=$?
|
|
if test -z "$1"; then
|
|
exit $ret
|
|
@@ -726,12 +790,39 @@ func_help ()
|
|
# exit_cmd.
|
|
func_missing_arg ()
|
|
{
|
|
- func_error "missing argument for $1"
|
|
+ $opt_debug
|
|
+
|
|
+ func_error "missing argument for $1."
|
|
exit_cmd=exit
|
|
}
|
|
|
|
-exit_cmd=:
|
|
|
|
+# func_split_short_opt shortopt
|
|
+# Set func_split_short_opt_name and func_split_short_opt_arg shell
|
|
+# variables after splitting SHORTOPT after the 2nd character.
|
|
+func_split_short_opt ()
|
|
+{
|
|
+ my_sed_short_opt='1s/^\(..\).*$/\1/;q'
|
|
+ my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
|
|
+
|
|
+ func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
|
|
+ func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
|
|
+} # func_split_short_opt may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_split_long_opt longopt
|
|
+# Set func_split_long_opt_name and func_split_long_opt_arg shell
|
|
+# variables after splitting LONGOPT at the `=' sign.
|
|
+func_split_long_opt ()
|
|
+{
|
|
+ my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
|
|
+ my_sed_long_arg='1s/^--[^=]*=//'
|
|
+
|
|
+ func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
|
|
+ func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
|
|
+} # func_split_long_opt may be replaced by extended shell implementation
|
|
+
|
|
+exit_cmd=:
|
|
|
|
|
|
|
|
@@ -741,26 +832,64 @@ magic="%%%MAGIC variable%%%"
|
|
magic_exe="%%%MAGIC EXE variable%%%"
|
|
|
|
# Global variables.
|
|
-# $mode is unset
|
|
nonopt=
|
|
-execute_dlfiles=
|
|
preserve_args=
|
|
lo2o="s/\\.lo\$/.${objext}/"
|
|
o2lo="s/\\.${objext}\$/.lo/"
|
|
extracted_archives=
|
|
extracted_serial=0
|
|
|
|
-opt_dry_run=false
|
|
-opt_finish=:
|
|
-opt_duplicate_deps=false
|
|
-opt_silent=false
|
|
-opt_debug=:
|
|
-
|
|
# If this variable is set in any of the actions, the command in it
|
|
# will be execed at the end. This prevents here-documents from being
|
|
# left over by shells.
|
|
exec_cmd=
|
|
|
|
+# func_append var value
|
|
+# Append VALUE to the end of shell variable VAR.
|
|
+func_append ()
|
|
+{
|
|
+ eval "${1}=\$${1}\${2}"
|
|
+} # func_append may be replaced by extended shell implementation
|
|
+
|
|
+# func_append_quoted var value
|
|
+# Quote VALUE and append to the end of shell variable VAR, separated
|
|
+# by a space.
|
|
+func_append_quoted ()
|
|
+{
|
|
+ func_quote_for_eval "${2}"
|
|
+ eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
|
|
+} # func_append_quoted may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_arith arithmetic-term...
|
|
+func_arith ()
|
|
+{
|
|
+ func_arith_result=`expr "${@}"`
|
|
+} # func_arith may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_len string
|
|
+# STRING may not start with a hyphen.
|
|
+func_len ()
|
|
+{
|
|
+ func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
+} # func_len may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_lo2o object
|
|
+func_lo2o ()
|
|
+{
|
|
+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
+} # func_lo2o may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
+# func_xform libobj-or-source
|
|
+func_xform ()
|
|
+{
|
|
+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
+} # func_xform may be replaced by extended shell implementation
|
|
+
|
|
+
|
|
# func_fatal_configuration arg...
|
|
# Echo program name prefixed message to standard error, followed by
|
|
# a configuration failure hint, and exit.
|
|
@@ -850,130 +979,204 @@ func_enable_tag ()
|
|
esac
|
|
}
|
|
|
|
-# Parse options once, thoroughly. This comes as soon as possible in
|
|
-# the script to make things like `libtool --version' happen quickly.
|
|
+# func_check_version_match
|
|
+# Ensure that we are using m4 macros, and libtool script from the same
|
|
+# release of libtool.
|
|
+func_check_version_match ()
|
|
{
|
|
+ if test "$package_revision" != "$macro_revision"; then
|
|
+ if test "$VERSION" != "$macro_version"; then
|
|
+ if test -z "$macro_version"; then
|
|
+ cat >&2 <<_LT_EOF
|
|
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
|
|
+$progname: definition of this LT_INIT comes from an older release.
|
|
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
|
|
+$progname: and run autoconf again.
|
|
+_LT_EOF
|
|
+ else
|
|
+ cat >&2 <<_LT_EOF
|
|
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
|
|
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
|
|
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
|
|
+$progname: and run autoconf again.
|
|
+_LT_EOF
|
|
+ fi
|
|
+ else
|
|
+ cat >&2 <<_LT_EOF
|
|
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
|
|
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
|
|
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
|
|
+$progname: of $PACKAGE $VERSION and run autoconf again.
|
|
+_LT_EOF
|
|
+ fi
|
|
|
|
- # Shorthand for --mode=foo, only valid as the first argument
|
|
- case $1 in
|
|
- clean|clea|cle|cl)
|
|
- shift; set dummy --mode clean ${1+"$@"}; shift
|
|
- ;;
|
|
- compile|compil|compi|comp|com|co|c)
|
|
- shift; set dummy --mode compile ${1+"$@"}; shift
|
|
- ;;
|
|
- execute|execut|execu|exec|exe|ex|e)
|
|
- shift; set dummy --mode execute ${1+"$@"}; shift
|
|
- ;;
|
|
- finish|finis|fini|fin|fi|f)
|
|
- shift; set dummy --mode finish ${1+"$@"}; shift
|
|
- ;;
|
|
- install|instal|insta|inst|ins|in|i)
|
|
- shift; set dummy --mode install ${1+"$@"}; shift
|
|
- ;;
|
|
- link|lin|li|l)
|
|
- shift; set dummy --mode link ${1+"$@"}; shift
|
|
- ;;
|
|
- uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
|
|
- shift; set dummy --mode uninstall ${1+"$@"}; shift
|
|
- ;;
|
|
- esac
|
|
+ exit $EXIT_MISMATCH
|
|
+ fi
|
|
+}
|
|
+
|
|
+
|
|
+# Shorthand for --mode=foo, only valid as the first argument
|
|
+case $1 in
|
|
+clean|clea|cle|cl)
|
|
+ shift; set dummy --mode clean ${1+"$@"}; shift
|
|
+ ;;
|
|
+compile|compil|compi|comp|com|co|c)
|
|
+ shift; set dummy --mode compile ${1+"$@"}; shift
|
|
+ ;;
|
|
+execute|execut|execu|exec|exe|ex|e)
|
|
+ shift; set dummy --mode execute ${1+"$@"}; shift
|
|
+ ;;
|
|
+finish|finis|fini|fin|fi|f)
|
|
+ shift; set dummy --mode finish ${1+"$@"}; shift
|
|
+ ;;
|
|
+install|instal|insta|inst|ins|in|i)
|
|
+ shift; set dummy --mode install ${1+"$@"}; shift
|
|
+ ;;
|
|
+link|lin|li|l)
|
|
+ shift; set dummy --mode link ${1+"$@"}; shift
|
|
+ ;;
|
|
+uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
|
|
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
|
|
+ ;;
|
|
+esac
|
|
|
|
- # Parse non-mode specific arguments:
|
|
- while test "$#" -gt 0; do
|
|
+
|
|
+
|
|
+# Option defaults:
|
|
+opt_debug=:
|
|
+opt_dry_run=false
|
|
+opt_config=false
|
|
+opt_preserve_dup_deps=false
|
|
+opt_features=false
|
|
+opt_finish=false
|
|
+opt_help=false
|
|
+opt_help_all=false
|
|
+opt_silent=:
|
|
+opt_verbose=:
|
|
+opt_silent=false
|
|
+opt_verbose=false
|
|
+
|
|
+
|
|
+# Parse options once, thoroughly. This comes as soon as possible in the
|
|
+# script to make things like `--version' happen as quickly as we can.
|
|
+{
|
|
+ # this just eases exit handling
|
|
+ while test $# -gt 0; do
|
|
opt="$1"
|
|
shift
|
|
-
|
|
case $opt in
|
|
- --config) func_config ;;
|
|
-
|
|
- --debug) preserve_args="$preserve_args $opt"
|
|
+ --debug|-x) opt_debug='set -x'
|
|
func_echo "enabling shell trace mode"
|
|
- opt_debug='set -x'
|
|
$opt_debug
|
|
;;
|
|
-
|
|
- -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
|
|
- execute_dlfiles="$execute_dlfiles $1"
|
|
- shift
|
|
+ --dry-run|--dryrun|-n)
|
|
+ opt_dry_run=:
|
|
;;
|
|
-
|
|
- --dry-run | -n) opt_dry_run=: ;;
|
|
- --features) func_features ;;
|
|
- --finish) mode="finish" ;;
|
|
- --no-finish) opt_finish=false ;;
|
|
-
|
|
- --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
|
|
- case $1 in
|
|
- # Valid mode arguments:
|
|
- clean) ;;
|
|
- compile) ;;
|
|
- execute) ;;
|
|
- finish) ;;
|
|
- install) ;;
|
|
- link) ;;
|
|
- relink) ;;
|
|
- uninstall) ;;
|
|
-
|
|
- # Catch anything else as an error
|
|
- *) func_error "invalid argument for $opt"
|
|
- exit_cmd=exit
|
|
- break
|
|
- ;;
|
|
- esac
|
|
-
|
|
- mode="$1"
|
|
+ --config)
|
|
+ opt_config=:
|
|
+func_config
|
|
+ ;;
|
|
+ --dlopen|-dlopen)
|
|
+ optarg="$1"
|
|
+ opt_dlopen="${opt_dlopen+$opt_dlopen
|
|
+}$optarg"
|
|
shift
|
|
;;
|
|
-
|
|
--preserve-dup-deps)
|
|
- opt_duplicate_deps=: ;;
|
|
-
|
|
- --quiet|--silent) preserve_args="$preserve_args $opt"
|
|
- opt_silent=:
|
|
- opt_verbose=false
|
|
+ opt_preserve_dup_deps=:
|
|
;;
|
|
-
|
|
- --no-quiet|--no-silent)
|
|
- preserve_args="$preserve_args $opt"
|
|
- opt_silent=false
|
|
+ --features)
|
|
+ opt_features=:
|
|
+func_features
|
|
;;
|
|
-
|
|
- --verbose| -v) preserve_args="$preserve_args $opt"
|
|
+ --finish)
|
|
+ opt_finish=:
|
|
+set dummy --mode finish ${1+"$@"}; shift
|
|
+ ;;
|
|
+ --help)
|
|
+ opt_help=:
|
|
+ ;;
|
|
+ --help-all)
|
|
+ opt_help_all=:
|
|
+opt_help=': help-all'
|
|
+ ;;
|
|
+ --mode)
|
|
+ test $# = 0 && func_missing_arg $opt && break
|
|
+ optarg="$1"
|
|
+ opt_mode="$optarg"
|
|
+case $optarg in
|
|
+ # Valid mode arguments:
|
|
+ clean|compile|execute|finish|install|link|relink|uninstall) ;;
|
|
+
|
|
+ # Catch anything else as an error
|
|
+ *) func_error "invalid argument for $opt"
|
|
+ exit_cmd=exit
|
|
+ break
|
|
+ ;;
|
|
+esac
|
|
+ shift
|
|
+ ;;
|
|
+ --no-silent|--no-quiet)
|
|
opt_silent=false
|
|
- opt_verbose=:
|
|
+func_append preserve_args " $opt"
|
|
;;
|
|
-
|
|
- --no-verbose) preserve_args="$preserve_args $opt"
|
|
+ --no-verbose)
|
|
opt_verbose=false
|
|
+func_append preserve_args " $opt"
|
|
;;
|
|
-
|
|
- --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
|
|
- preserve_args="$preserve_args $opt $1"
|
|
- func_enable_tag "$1" # tagname is set here
|
|
+ --silent|--quiet)
|
|
+ opt_silent=:
|
|
+func_append preserve_args " $opt"
|
|
+ opt_verbose=false
|
|
+ ;;
|
|
+ --verbose|-v)
|
|
+ opt_verbose=:
|
|
+func_append preserve_args " $opt"
|
|
+opt_silent=false
|
|
+ ;;
|
|
+ --tag)
|
|
+ test $# = 0 && func_missing_arg $opt && break
|
|
+ optarg="$1"
|
|
+ opt_tag="$optarg"
|
|
+func_append preserve_args " $opt $optarg"
|
|
+func_enable_tag "$optarg"
|
|
shift
|
|
;;
|
|
|
|
+ -\?|-h) func_usage ;;
|
|
+ --help) func_help ;;
|
|
+ --version) func_version ;;
|
|
+
|
|
# Separate optargs to long options:
|
|
- -dlopen=*|--mode=*|--tag=*)
|
|
- func_opt_split "$opt"
|
|
- set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
|
|
+ --*=*)
|
|
+ func_split_long_opt "$opt"
|
|
+ set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
|
|
shift
|
|
;;
|
|
|
|
- -\?|-h) func_usage ;;
|
|
- --help) opt_help=: ;;
|
|
- --help-all) opt_help=': help-all' ;;
|
|
- --version) func_version ;;
|
|
-
|
|
- -*) func_fatal_help "unrecognized option \`$opt'" ;;
|
|
-
|
|
- *) nonopt="$opt"
|
|
- break
|
|
+ # Separate non-argument short options:
|
|
+ -\?*|-h*|-n*|-v*)
|
|
+ func_split_short_opt "$opt"
|
|
+ set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
|
|
+ shift
|
|
;;
|
|
+
|
|
+ --) break ;;
|
|
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
|
|
+ *) set dummy "$opt" ${1+"$@"}; shift; break ;;
|
|
esac
|
|
done
|
|
|
|
+ # Validate options:
|
|
+
|
|
+ # save first non-option argument
|
|
+ if test "$#" -gt 0; then
|
|
+ nonopt="$opt"
|
|
+ shift
|
|
+ fi
|
|
+
|
|
+ # preserve --debug
|
|
+ test "$opt_debug" = : || func_append preserve_args " --debug"
|
|
|
|
case $host in
|
|
*cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* )
|
|
@@ -981,82 +1184,44 @@ func_enable_tag ()
|
|
opt_duplicate_compiler_generated_deps=:
|
|
;;
|
|
*)
|
|
- opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
|
|
+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
|
|
;;
|
|
esac
|
|
|
|
- # Having warned about all mis-specified options, bail out if
|
|
- # anything was wrong.
|
|
- $exit_cmd $EXIT_FAILURE
|
|
-}
|
|
+ $opt_help || {
|
|
+ # Sanity checks first:
|
|
+ func_check_version_match
|
|
|
|
-# func_check_version_match
|
|
-# Ensure that we are using m4 macros, and libtool script from the same
|
|
-# release of libtool.
|
|
-func_check_version_match ()
|
|
-{
|
|
- if test "$package_revision" != "$macro_revision"; then
|
|
- if test "$VERSION" != "$macro_version"; then
|
|
- if test -z "$macro_version"; then
|
|
- cat >&2 <<_LT_EOF
|
|
-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
|
|
-$progname: definition of this LT_INIT comes from an older release.
|
|
-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
|
|
-$progname: and run autoconf again.
|
|
-_LT_EOF
|
|
- else
|
|
- cat >&2 <<_LT_EOF
|
|
-$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
|
|
-$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
|
|
-$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
|
|
-$progname: and run autoconf again.
|
|
-_LT_EOF
|
|
- fi
|
|
- else
|
|
- cat >&2 <<_LT_EOF
|
|
-$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
|
|
-$progname: but the definition of this LT_INIT comes from revision $macro_revision.
|
|
-$progname: You should recreate aclocal.m4 with macros from revision $package_revision
|
|
-$progname: of $PACKAGE $VERSION and run autoconf again.
|
|
-_LT_EOF
|
|
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
|
|
+ func_fatal_configuration "not configured to build any kind of library"
|
|
fi
|
|
|
|
- exit $EXIT_MISMATCH
|
|
- fi
|
|
-}
|
|
-
|
|
+ # Darwin sucks
|
|
+ eval std_shrext=\"$shrext_cmds\"
|
|
|
|
-## ----------- ##
|
|
-## Main. ##
|
|
-## ----------- ##
|
|
-
|
|
-$opt_help || {
|
|
- # Sanity checks first:
|
|
- func_check_version_match
|
|
-
|
|
- if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
|
|
- func_fatal_configuration "not configured to build any kind of library"
|
|
- fi
|
|
+ # Only execute mode is allowed to have -dlopen flags.
|
|
+ if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
|
|
+ func_error "unrecognized option \`-dlopen'"
|
|
+ $ECHO "$help" 1>&2
|
|
+ exit $EXIT_FAILURE
|
|
+ fi
|
|
|
|
- test -z "$mode" && func_fatal_error "error: you must specify a MODE."
|
|
+ # Change the help message to a mode-specific one.
|
|
+ generic_help="$help"
|
|
+ help="Try \`$progname --help --mode=$opt_mode' for more information."
|
|
+ }
|
|
|
|
|
|
- # Darwin sucks
|
|
- eval "std_shrext=\"$shrext_cmds\""
|
|
+ # Bail if the options were screwed
|
|
+ $exit_cmd $EXIT_FAILURE
|
|
+}
|
|
|
|
|
|
- # Only execute mode is allowed to have -dlopen flags.
|
|
- if test -n "$execute_dlfiles" && test "$mode" != execute; then
|
|
- func_error "unrecognized option \`-dlopen'"
|
|
- $ECHO "$help" 1>&2
|
|
- exit $EXIT_FAILURE
|
|
- fi
|
|
|
|
- # Change the help message to a mode-specific one.
|
|
- generic_help="$help"
|
|
- help="Try \`$progname --help --mode=$mode' for more information."
|
|
-}
|
|
|
|
+## ----------- ##
|
|
+## Main. ##
|
|
+## ----------- ##
|
|
|
|
# func_lalib_p file
|
|
# True iff FILE is a libtool `.la' library or `.lo' object file.
|
|
@@ -1121,12 +1286,9 @@ func_ltwrapper_executable_p ()
|
|
# temporary ltwrapper_script.
|
|
func_ltwrapper_scriptname ()
|
|
{
|
|
- func_ltwrapper_scriptname_result=""
|
|
- if func_ltwrapper_executable_p "$1"; then
|
|
- func_dirname_and_basename "$1" "" "."
|
|
- func_stripname '' '.exe' "$func_basename_result"
|
|
- func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
|
|
- fi
|
|
+ func_dirname_and_basename "$1" "" "."
|
|
+ func_stripname '' '.exe' "$func_basename_result"
|
|
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
|
|
}
|
|
|
|
# func_ltwrapper_p file
|
|
@@ -1149,7 +1311,7 @@ func_execute_cmds ()
|
|
save_ifs=$IFS; IFS='~'
|
|
for cmd in $1; do
|
|
IFS=$save_ifs
|
|
- eval "cmd=\"$cmd\""
|
|
+ eval cmd=\"$cmd\"
|
|
func_show_eval "$cmd" "${2-:}"
|
|
done
|
|
IFS=$save_ifs
|
|
@@ -1172,6 +1334,37 @@ func_source ()
|
|
}
|
|
|
|
|
|
+# func_resolve_sysroot PATH
|
|
+# Replace a leading = in PATH with a sysroot. Store the result into
|
|
+# func_resolve_sysroot_result
|
|
+func_resolve_sysroot ()
|
|
+{
|
|
+ func_resolve_sysroot_result=$1
|
|
+ case $func_resolve_sysroot_result in
|
|
+ =*)
|
|
+ func_stripname '=' '' "$func_resolve_sysroot_result"
|
|
+ func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
|
|
+ ;;
|
|
+ esac
|
|
+}
|
|
+
|
|
+# func_replace_sysroot PATH
|
|
+# If PATH begins with the sysroot, replace it with = and
|
|
+# store the result into func_replace_sysroot_result.
|
|
+func_replace_sysroot ()
|
|
+{
|
|
+ case "$lt_sysroot:$1" in
|
|
+ ?*:"$lt_sysroot"*)
|
|
+ func_stripname "$lt_sysroot" '' "$1"
|
|
+ func_replace_sysroot_result="=$func_stripname_result"
|
|
+ ;;
|
|
+ *)
|
|
+ # Including no sysroot.
|
|
+ func_replace_sysroot_result=$1
|
|
+ ;;
|
|
+ esac
|
|
+}
|
|
+
|
|
# func_infer_tag arg
|
|
# Infer tagged configuration to use if any are available and
|
|
# if one wasn't chosen via the "--tag" command line option.
|
|
@@ -1184,8 +1377,7 @@ func_infer_tag ()
|
|
if test -n "$available_tags" && test -z "$tagname"; then
|
|
CC_quoted=
|
|
for arg in $CC; do
|
|
- func_quote_for_eval "$arg"
|
|
- CC_quoted="$CC_quoted $func_quote_for_eval_result"
|
|
+ func_append_quoted CC_quoted "$arg"
|
|
done
|
|
CC_expanded=`func_echo_all $CC`
|
|
CC_quoted_expanded=`func_echo_all $CC_quoted`
|
|
@@ -1204,8 +1396,7 @@ func_infer_tag ()
|
|
CC_quoted=
|
|
for arg in $CC; do
|
|
# Double-quote args containing other shell metacharacters.
|
|
- func_quote_for_eval "$arg"
|
|
- CC_quoted="$CC_quoted $func_quote_for_eval_result"
|
|
+ func_append_quoted CC_quoted "$arg"
|
|
done
|
|
CC_expanded=`func_echo_all $CC`
|
|
CC_quoted_expanded=`func_echo_all $CC_quoted`
|
|
@@ -1274,6 +1465,486 @@ EOF
|
|
}
|
|
}
|
|
|
|
+
|
|
+##################################################
|
|
+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
|
|
+##################################################
|
|
+
|
|
+# func_convert_core_file_wine_to_w32 ARG
|
|
+# Helper function used by file name conversion functions when $build is *nix,
|
|
+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
|
|
+# correctly configured wine environment available, with the winepath program
|
|
+# in $build's $PATH.
|
|
+#
|
|
+# ARG is the $build file name to be converted to w32 format.
|
|
+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
|
|
+# be empty on error (or when ARG is empty)
|
|
+func_convert_core_file_wine_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_convert_core_file_wine_to_w32_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # Unfortunately, winepath does not exit with a non-zero error code, so we
|
|
+ # are forced to check the contents of stdout. On the other hand, if the
|
|
+ # command is not found, the shell will set an exit code of 127 and print
|
|
+ # *an error message* to stdout. So we must check for both error code of
|
|
+ # zero AND non-empty stdout, which explains the odd construction:
|
|
+ func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
|
|
+ if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
|
|
+ func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
|
|
+ $SED -e "$lt_sed_naive_backslashify"`
|
|
+ else
|
|
+ func_convert_core_file_wine_to_w32_result=
|
|
+ fi
|
|
+ fi
|
|
+}
|
|
+# end: func_convert_core_file_wine_to_w32
|
|
+
|
|
+
|
|
+# func_convert_core_path_wine_to_w32 ARG
|
|
+# Helper function used by path conversion functions when $build is *nix, and
|
|
+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
|
|
+# configured wine environment available, with the winepath program in $build's
|
|
+# $PATH. Assumes ARG has no leading or trailing path separator characters.
|
|
+#
|
|
+# ARG is path to be converted from $build format to win32.
|
|
+# Result is available in $func_convert_core_path_wine_to_w32_result.
|
|
+# Unconvertible file (directory) names in ARG are skipped; if no directory names
|
|
+# are convertible, then the result may be empty.
|
|
+func_convert_core_path_wine_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ # unfortunately, winepath doesn't convert paths, only file names
|
|
+ func_convert_core_path_wine_to_w32_result=""
|
|
+ if test -n "$1"; then
|
|
+ oldIFS=$IFS
|
|
+ IFS=:
|
|
+ for func_convert_core_path_wine_to_w32_f in $1; do
|
|
+ IFS=$oldIFS
|
|
+ func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
|
|
+ if test -n "$func_convert_core_file_wine_to_w32_result" ; then
|
|
+ if test -z "$func_convert_core_path_wine_to_w32_result"; then
|
|
+ func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
|
|
+ else
|
|
+ func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
|
|
+ fi
|
|
+ fi
|
|
+ done
|
|
+ IFS=$oldIFS
|
|
+ fi
|
|
+}
|
|
+# end: func_convert_core_path_wine_to_w32
|
|
+
|
|
+
|
|
+# func_cygpath ARGS...
|
|
+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
|
|
+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
|
|
+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
|
|
+# (2), returns the Cygwin file name or path in func_cygpath_result (input
|
|
+# file name or path is assumed to be in w32 format, as previously converted
|
|
+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
|
|
+# or path in func_cygpath_result (input file name or path is assumed to be in
|
|
+# Cygwin format). Returns an empty string on error.
|
|
+#
|
|
+# ARGS are passed to cygpath, with the last one being the file name or path to
|
|
+# be converted.
|
|
+#
|
|
+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
|
|
+# environment variable; do not put it in $PATH.
|
|
+func_cygpath ()
|
|
+{
|
|
+ $opt_debug
|
|
+ if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
|
|
+ func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
|
|
+ if test "$?" -ne 0; then
|
|
+ # on failure, ensure result is empty
|
|
+ func_cygpath_result=
|
|
+ fi
|
|
+ else
|
|
+ func_cygpath_result=
|
|
+ func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
|
|
+ fi
|
|
+}
|
|
+#end: func_cygpath
|
|
+
|
|
+
|
|
+# func_convert_core_msys_to_w32 ARG
|
|
+# Convert file name or path ARG from MSYS format to w32 format. Return
|
|
+# result in func_convert_core_msys_to_w32_result.
|
|
+func_convert_core_msys_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ # awkward: cmd appends spaces to result
|
|
+ func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
|
|
+ $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
|
|
+}
|
|
+#end: func_convert_core_msys_to_w32
|
|
+
|
|
+
|
|
+# func_convert_file_check ARG1 ARG2
|
|
+# Verify that ARG1 (a file name in $build format) was converted to $host
|
|
+# format in ARG2. Otherwise, emit an error message, but continue (resetting
|
|
+# func_to_host_file_result to ARG1).
|
|
+func_convert_file_check ()
|
|
+{
|
|
+ $opt_debug
|
|
+ if test -z "$2" && test -n "$1" ; then
|
|
+ func_error "Could not determine host file name corresponding to"
|
|
+ func_error " \`$1'"
|
|
+ func_error "Continuing, but uninstalled executables may not work."
|
|
+ # Fallback:
|
|
+ func_to_host_file_result="$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_file_check
|
|
+
|
|
+
|
|
+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
|
|
+# Verify that FROM_PATH (a path in $build format) was converted to $host
|
|
+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
|
|
+# func_to_host_file_result to a simplistic fallback value (see below).
|
|
+func_convert_path_check ()
|
|
+{
|
|
+ $opt_debug
|
|
+ if test -z "$4" && test -n "$3"; then
|
|
+ func_error "Could not determine the host path corresponding to"
|
|
+ func_error " \`$3'"
|
|
+ func_error "Continuing, but uninstalled executables may not work."
|
|
+ # Fallback. This is a deliberately simplistic "conversion" and
|
|
+ # should not be "improved". See libtool.info.
|
|
+ if test "x$1" != "x$2"; then
|
|
+ lt_replace_pathsep_chars="s|$1|$2|g"
|
|
+ func_to_host_path_result=`echo "$3" |
|
|
+ $SED -e "$lt_replace_pathsep_chars"`
|
|
+ else
|
|
+ func_to_host_path_result="$3"
|
|
+ fi
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_check
|
|
+
|
|
+
|
|
+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
|
|
+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
|
|
+# and appending REPL if ORIG matches BACKPAT.
|
|
+func_convert_path_front_back_pathsep ()
|
|
+{
|
|
+ $opt_debug
|
|
+ case $4 in
|
|
+ $1 ) func_to_host_path_result="$3$func_to_host_path_result"
|
|
+ ;;
|
|
+ esac
|
|
+ case $4 in
|
|
+ $2 ) func_append func_to_host_path_result "$3"
|
|
+ ;;
|
|
+ esac
|
|
+}
|
|
+# end func_convert_path_front_back_pathsep
|
|
+
|
|
+
|
|
+##################################################
|
|
+# $build to $host FILE NAME CONVERSION FUNCTIONS #
|
|
+##################################################
|
|
+# invoked via `$to_host_file_cmd ARG'
|
|
+#
|
|
+# In each case, ARG is the path to be converted from $build to $host format.
|
|
+# Result will be available in $func_to_host_file_result.
|
|
+
|
|
+
|
|
+# func_to_host_file ARG
|
|
+# Converts the file name ARG from $build format to $host format. Return result
|
|
+# in func_to_host_file_result.
|
|
+func_to_host_file ()
|
|
+{
|
|
+ $opt_debug
|
|
+ $to_host_file_cmd "$1"
|
|
+}
|
|
+# end func_to_host_file
|
|
+
|
|
+
|
|
+# func_to_tool_file ARG LAZY
|
|
+# converts the file name ARG from $build format to toolchain format. Return
|
|
+# result in func_to_tool_file_result. If the conversion in use is listed
|
|
+# in (the comma separated) LAZY, no conversion takes place.
|
|
+func_to_tool_file ()
|
|
+{
|
|
+ $opt_debug
|
|
+ case ,$2, in
|
|
+ *,"$to_tool_file_cmd",*)
|
|
+ func_to_tool_file_result=$1
|
|
+ ;;
|
|
+ *)
|
|
+ $to_tool_file_cmd "$1"
|
|
+ func_to_tool_file_result=$func_to_host_file_result
|
|
+ ;;
|
|
+ esac
|
|
+}
|
|
+# end func_to_tool_file
|
|
+
|
|
+
|
|
+# func_convert_file_noop ARG
|
|
+# Copy ARG to func_to_host_file_result.
|
|
+func_convert_file_noop ()
|
|
+{
|
|
+ func_to_host_file_result="$1"
|
|
+}
|
|
+# end func_convert_file_noop
|
|
+
|
|
+
|
|
+# func_convert_file_msys_to_w32 ARG
|
|
+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
|
|
+# conversion to w32 is not available inside the cwrapper. Returns result in
|
|
+# func_to_host_file_result.
|
|
+func_convert_file_msys_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_file_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ func_convert_core_msys_to_w32 "$1"
|
|
+ func_to_host_file_result="$func_convert_core_msys_to_w32_result"
|
|
+ fi
|
|
+ func_convert_file_check "$1" "$func_to_host_file_result"
|
|
+}
|
|
+# end func_convert_file_msys_to_w32
|
|
+
|
|
+
|
|
+# func_convert_file_cygwin_to_w32 ARG
|
|
+# Convert file name ARG from Cygwin to w32 format. Returns result in
|
|
+# func_to_host_file_result.
|
|
+func_convert_file_cygwin_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_file_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
|
|
+ # LT_CYGPATH in this case.
|
|
+ func_to_host_file_result=`cygpath -m "$1"`
|
|
+ fi
|
|
+ func_convert_file_check "$1" "$func_to_host_file_result"
|
|
+}
|
|
+# end func_convert_file_cygwin_to_w32
|
|
+
|
|
+
|
|
+# func_convert_file_nix_to_w32 ARG
|
|
+# Convert file name ARG from *nix to w32 format. Requires a wine environment
|
|
+# and a working winepath. Returns result in func_to_host_file_result.
|
|
+func_convert_file_nix_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_file_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ func_convert_core_file_wine_to_w32 "$1"
|
|
+ func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
|
|
+ fi
|
|
+ func_convert_file_check "$1" "$func_to_host_file_result"
|
|
+}
|
|
+# end func_convert_file_nix_to_w32
|
|
+
|
|
+
|
|
+# func_convert_file_msys_to_cygwin ARG
|
|
+# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
|
|
+# Returns result in func_to_host_file_result.
|
|
+func_convert_file_msys_to_cygwin ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_file_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ func_convert_core_msys_to_w32 "$1"
|
|
+ func_cygpath -u "$func_convert_core_msys_to_w32_result"
|
|
+ func_to_host_file_result="$func_cygpath_result"
|
|
+ fi
|
|
+ func_convert_file_check "$1" "$func_to_host_file_result"
|
|
+}
|
|
+# end func_convert_file_msys_to_cygwin
|
|
+
|
|
+
|
|
+# func_convert_file_nix_to_cygwin ARG
|
|
+# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
|
|
+# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
|
|
+# in func_to_host_file_result.
|
|
+func_convert_file_nix_to_cygwin ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_file_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
|
|
+ func_convert_core_file_wine_to_w32 "$1"
|
|
+ func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
|
|
+ func_to_host_file_result="$func_cygpath_result"
|
|
+ fi
|
|
+ func_convert_file_check "$1" "$func_to_host_file_result"
|
|
+}
|
|
+# end func_convert_file_nix_to_cygwin
|
|
+
|
|
+
|
|
+#############################################
|
|
+# $build to $host PATH CONVERSION FUNCTIONS #
|
|
+#############################################
|
|
+# invoked via `$to_host_path_cmd ARG'
|
|
+#
|
|
+# In each case, ARG is the path to be converted from $build to $host format.
|
|
+# The result will be available in $func_to_host_path_result.
|
|
+#
|
|
+# Path separators are also converted from $build format to $host format. If
|
|
+# ARG begins or ends with a path separator character, it is preserved (but
|
|
+# converted to $host format) on output.
|
|
+#
|
|
+# All path conversion functions are named using the following convention:
|
|
+# file name conversion function : func_convert_file_X_to_Y ()
|
|
+# path conversion function : func_convert_path_X_to_Y ()
|
|
+# where, for any given $build/$host combination the 'X_to_Y' value is the
|
|
+# same. If conversion functions are added for new $build/$host combinations,
|
|
+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
|
|
+# will break.
|
|
+
|
|
+
|
|
+# func_init_to_host_path_cmd
|
|
+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
|
|
+# appropriate value, based on the value of $to_host_file_cmd.
|
|
+to_host_path_cmd=
|
|
+func_init_to_host_path_cmd ()
|
|
+{
|
|
+ $opt_debug
|
|
+ if test -z "$to_host_path_cmd"; then
|
|
+ func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
|
|
+ to_host_path_cmd="func_convert_path_${func_stripname_result}"
|
|
+ fi
|
|
+}
|
|
+
|
|
+
|
|
+# func_to_host_path ARG
|
|
+# Converts the path ARG from $build format to $host format. Return result
|
|
+# in func_to_host_path_result.
|
|
+func_to_host_path ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_init_to_host_path_cmd
|
|
+ $to_host_path_cmd "$1"
|
|
+}
|
|
+# end func_to_host_path
|
|
+
|
|
+
|
|
+# func_convert_path_noop ARG
|
|
+# Copy ARG to func_to_host_path_result.
|
|
+func_convert_path_noop ()
|
|
+{
|
|
+ func_to_host_path_result="$1"
|
|
+}
|
|
+# end func_convert_path_noop
|
|
+
|
|
+
|
|
+# func_convert_path_msys_to_w32 ARG
|
|
+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
|
|
+# conversion to w32 is not available inside the cwrapper. Returns result in
|
|
+# func_to_host_path_result.
|
|
+func_convert_path_msys_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_path_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # Remove leading and trailing path separator characters from ARG. MSYS
|
|
+ # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
|
|
+ # and winepath ignores them completely.
|
|
+ func_stripname : : "$1"
|
|
+ func_to_host_path_tmp1=$func_stripname_result
|
|
+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
|
|
+ func_to_host_path_result="$func_convert_core_msys_to_w32_result"
|
|
+ func_convert_path_check : ";" \
|
|
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
|
|
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_msys_to_w32
|
|
+
|
|
+
|
|
+# func_convert_path_cygwin_to_w32 ARG
|
|
+# Convert path ARG from Cygwin to w32 format. Returns result in
|
|
+# func_to_host_file_result.
|
|
+func_convert_path_cygwin_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_path_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # See func_convert_path_msys_to_w32:
|
|
+ func_stripname : : "$1"
|
|
+ func_to_host_path_tmp1=$func_stripname_result
|
|
+ func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
|
|
+ func_convert_path_check : ";" \
|
|
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
|
|
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_cygwin_to_w32
|
|
+
|
|
+
|
|
+# func_convert_path_nix_to_w32 ARG
|
|
+# Convert path ARG from *nix to w32 format. Requires a wine environment and
|
|
+# a working winepath. Returns result in func_to_host_file_result.
|
|
+func_convert_path_nix_to_w32 ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_path_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # See func_convert_path_msys_to_w32:
|
|
+ func_stripname : : "$1"
|
|
+ func_to_host_path_tmp1=$func_stripname_result
|
|
+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
|
|
+ func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
|
|
+ func_convert_path_check : ";" \
|
|
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
|
|
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_nix_to_w32
|
|
+
|
|
+
|
|
+# func_convert_path_msys_to_cygwin ARG
|
|
+# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
|
|
+# Returns result in func_to_host_file_result.
|
|
+func_convert_path_msys_to_cygwin ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_path_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # See func_convert_path_msys_to_w32:
|
|
+ func_stripname : : "$1"
|
|
+ func_to_host_path_tmp1=$func_stripname_result
|
|
+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
|
|
+ func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
|
|
+ func_to_host_path_result="$func_cygpath_result"
|
|
+ func_convert_path_check : : \
|
|
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
|
|
+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_msys_to_cygwin
|
|
+
|
|
+
|
|
+# func_convert_path_nix_to_cygwin ARG
|
|
+# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
|
|
+# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
|
|
+# func_to_host_file_result.
|
|
+func_convert_path_nix_to_cygwin ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_host_path_result="$1"
|
|
+ if test -n "$1"; then
|
|
+ # Remove leading and trailing path separator characters from
|
|
+ # ARG. msys behavior is inconsistent here, cygpath turns them
|
|
+ # into '.;' and ';.', and winepath ignores them completely.
|
|
+ func_stripname : : "$1"
|
|
+ func_to_host_path_tmp1=$func_stripname_result
|
|
+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
|
|
+ func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
|
|
+ func_to_host_path_result="$func_cygpath_result"
|
|
+ func_convert_path_check : : \
|
|
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
|
|
+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
|
|
+ fi
|
|
+}
|
|
+# end func_convert_path_nix_to_cygwin
|
|
+
|
|
+
|
|
# func_mode_compile arg...
|
|
func_mode_compile ()
|
|
{
|
|
@@ -1314,12 +1985,12 @@ func_mode_compile ()
|
|
;;
|
|
|
|
-pie | -fpie | -fPIE)
|
|
- pie_flag="$pie_flag $arg"
|
|
+ func_append pie_flag " $arg"
|
|
continue
|
|
;;
|
|
|
|
-shared | -static | -prefer-pic | -prefer-non-pic)
|
|
- later="$later $arg"
|
|
+ func_append later " $arg"
|
|
continue
|
|
;;
|
|
|
|
@@ -1340,15 +2011,14 @@ func_mode_compile ()
|
|
save_ifs="$IFS"; IFS=','
|
|
for arg in $args; do
|
|
IFS="$save_ifs"
|
|
- func_quote_for_eval "$arg"
|
|
- lastarg="$lastarg $func_quote_for_eval_result"
|
|
+ func_append_quoted lastarg "$arg"
|
|
done
|
|
IFS="$save_ifs"
|
|
func_stripname ' ' '' "$lastarg"
|
|
lastarg=$func_stripname_result
|
|
|
|
# Add the arguments to base_compile.
|
|
- base_compile="$base_compile $lastarg"
|
|
+ func_append base_compile " $lastarg"
|
|
continue
|
|
;;
|
|
|
|
@@ -1364,8 +2034,7 @@ func_mode_compile ()
|
|
esac # case $arg_mode
|
|
|
|
# Aesthetically quote the previous argument.
|
|
- func_quote_for_eval "$lastarg"
|
|
- base_compile="$base_compile $func_quote_for_eval_result"
|
|
+ func_append_quoted base_compile "$lastarg"
|
|
done # for arg
|
|
|
|
case $arg_mode in
|
|
@@ -1496,17 +2165,16 @@ compiler."
|
|
$opt_dry_run || $RM $removelist
|
|
exit $EXIT_FAILURE
|
|
fi
|
|
- removelist="$removelist $output_obj"
|
|
+ func_append removelist " $output_obj"
|
|
$ECHO "$srcfile" > "$lockfile"
|
|
fi
|
|
|
|
$opt_dry_run || $RM $removelist
|
|
- removelist="$removelist $lockfile"
|
|
+ func_append removelist " $lockfile"
|
|
trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
|
|
|
|
- if test -n "$fix_srcfile_path"; then
|
|
- eval "srcfile=\"$fix_srcfile_path\""
|
|
- fi
|
|
+ func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
|
|
+ srcfile=$func_to_tool_file_result
|
|
func_quote_for_eval "$srcfile"
|
|
qsrcfile=$func_quote_for_eval_result
|
|
|
|
@@ -1526,7 +2194,7 @@ compiler."
|
|
|
|
if test -z "$output_obj"; then
|
|
# Place PIC objects in $objdir
|
|
- command="$command -o $lobj"
|
|
+ func_append command " -o $lobj"
|
|
fi
|
|
|
|
func_show_eval_locale "$command" \
|
|
@@ -1573,11 +2241,11 @@ compiler."
|
|
command="$base_compile $qsrcfile $pic_flag"
|
|
fi
|
|
if test "$compiler_c_o" = yes; then
|
|
- command="$command -o $obj"
|
|
+ func_append command " -o $obj"
|
|
fi
|
|
|
|
# Suppress compiler output if we already did a PIC compilation.
|
|
- command="$command$suppress_output"
|
|
+ func_append command "$suppress_output"
|
|
func_show_eval_locale "$command" \
|
|
'$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
|
|
|
|
@@ -1622,13 +2290,13 @@ compiler."
|
|
}
|
|
|
|
$opt_help || {
|
|
- test "$mode" = compile && func_mode_compile ${1+"$@"}
|
|
+ test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
|
|
}
|
|
|
|
func_mode_help ()
|
|
{
|
|
# We need to display help for each of the modes.
|
|
- case $mode in
|
|
+ case $opt_mode in
|
|
"")
|
|
# Generic help is extracted from the usage comments
|
|
# at the start of this file.
|
|
@@ -1659,8 +2327,8 @@ This mode accepts the following additional options:
|
|
|
|
-o OUTPUT-FILE set the output file name to OUTPUT-FILE
|
|
-no-suppress do not suppress compiler output for multiple passes
|
|
- -prefer-pic try to building PIC objects only
|
|
- -prefer-non-pic try to building non-PIC objects only
|
|
+ -prefer-pic try to build PIC objects only
|
|
+ -prefer-non-pic try to build non-PIC objects only
|
|
-shared do not build a \`.o' file suitable for static linking
|
|
-static only build a \`.o' file suitable for static linking
|
|
-Wc,FLAG pass FLAG directly to the compiler
|
|
@@ -1804,7 +2472,7 @@ Otherwise, only FILE itself is deleted using RM."
|
|
;;
|
|
|
|
*)
|
|
- func_fatal_help "invalid operation mode \`$mode'"
|
|
+ func_fatal_help "invalid operation mode \`$opt_mode'"
|
|
;;
|
|
esac
|
|
|
|
@@ -1819,13 +2487,13 @@ if $opt_help; then
|
|
else
|
|
{
|
|
func_help noexit
|
|
- for mode in compile link execute install finish uninstall clean; do
|
|
+ for opt_mode in compile link execute install finish uninstall clean; do
|
|
func_mode_help
|
|
done
|
|
} | sed -n '1p; 2,$s/^Usage:/ or: /p'
|
|
{
|
|
func_help noexit
|
|
- for mode in compile link execute install finish uninstall clean; do
|
|
+ for opt_mode in compile link execute install finish uninstall clean; do
|
|
echo
|
|
func_mode_help
|
|
done
|
|
@@ -1854,13 +2522,16 @@ func_mode_execute ()
|
|
func_fatal_help "you must specify a COMMAND"
|
|
|
|
# Handle -dlopen flags immediately.
|
|
- for file in $execute_dlfiles; do
|
|
+ for file in $opt_dlopen; do
|
|
test -f "$file" \
|
|
|| func_fatal_help "\`$file' is not a file"
|
|
|
|
dir=
|
|
case $file in
|
|
*.la)
|
|
+ func_resolve_sysroot "$file"
|
|
+ file=$func_resolve_sysroot_result
|
|
+
|
|
# Check to see that this really is a libtool archive.
|
|
func_lalib_unsafe_p "$file" \
|
|
|| func_fatal_help "\`$lib' is not a valid libtool archive"
|
|
@@ -1882,7 +2553,7 @@ func_mode_execute ()
|
|
dir="$func_dirname_result"
|
|
|
|
if test -f "$dir/$objdir/$dlname"; then
|
|
- dir="$dir/$objdir"
|
|
+ func_append dir "/$objdir"
|
|
else
|
|
if test ! -f "$dir/$dlname"; then
|
|
func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
|
|
@@ -1907,10 +2578,10 @@ func_mode_execute ()
|
|
test -n "$absdir" && dir="$absdir"
|
|
|
|
# Now add the directory to shlibpath_var.
|
|
- if eval test -z \"\$$shlibpath_var\"; then
|
|
- eval $shlibpath_var=\$dir
|
|
+ if eval "test -z \"\$$shlibpath_var\""; then
|
|
+ eval "$shlibpath_var=\"\$dir\""
|
|
else
|
|
- eval $shlibpath_var=\$dir:\$$shlibpath_var
|
|
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
|
|
fi
|
|
done
|
|
|
|
@@ -1939,8 +2610,7 @@ func_mode_execute ()
|
|
;;
|
|
esac
|
|
# Quote arguments (to preserve shell metacharacters).
|
|
- func_quote_for_eval "$file"
|
|
- args="$args $func_quote_for_eval_result"
|
|
+ func_append_quoted args "$file"
|
|
done
|
|
|
|
if test "X$opt_dry_run" = Xfalse; then
|
|
@@ -1972,22 +2642,59 @@ func_mode_execute ()
|
|
fi
|
|
}
|
|
|
|
-test "$mode" = execute && func_mode_execute ${1+"$@"}
|
|
+test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
|
|
|
|
|
|
# func_mode_finish arg...
|
|
func_mode_finish ()
|
|
{
|
|
$opt_debug
|
|
- libdirs="$nonopt"
|
|
+ libs=
|
|
+ libdirs=
|
|
admincmds=
|
|
|
|
- if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
|
- for dir
|
|
- do
|
|
- libdirs="$libdirs $dir"
|
|
- done
|
|
+ for opt in "$nonopt" ${1+"$@"}
|
|
+ do
|
|
+ if test -d "$opt"; then
|
|
+ func_append libdirs " $opt"
|
|
|
|
+ elif test -f "$opt"; then
|
|
+ if func_lalib_unsafe_p "$opt"; then
|
|
+ func_append libs " $opt"
|
|
+ else
|
|
+ func_warning "\`$opt' is not a valid libtool archive"
|
|
+ fi
|
|
+
|
|
+ else
|
|
+ func_fatal_error "invalid argument \`$opt'"
|
|
+ fi
|
|
+ done
|
|
+
|
|
+ if test -n "$libs"; then
|
|
+ if test -n "$lt_sysroot"; then
|
|
+ sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
|
|
+ sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
|
|
+ else
|
|
+ sysroot_cmd=
|
|
+ fi
|
|
+
|
|
+ # Remove sysroot references
|
|
+ if $opt_dry_run; then
|
|
+ for lib in $libs; do
|
|
+ echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
|
|
+ done
|
|
+ else
|
|
+ tmpdir=`func_mktempdir`
|
|
+ for lib in $libs; do
|
|
+ sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
|
|
+ > $tmpdir/tmp-la
|
|
+ mv -f $tmpdir/tmp-la $lib
|
|
+ done
|
|
+ ${RM}r "$tmpdir"
|
|
+ fi
|
|
+ fi
|
|
+
|
|
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
|
for libdir in $libdirs; do
|
|
if test -n "$finish_cmds"; then
|
|
# Do each command in the finish commands.
|
|
@@ -1997,7 +2704,7 @@ func_mode_finish ()
|
|
if test -n "$finish_eval"; then
|
|
# Do the single finish_eval.
|
|
eval cmds=\"$finish_eval\"
|
|
- $opt_dry_run || eval "$cmds" || admincmds="$admincmds
|
|
+ $opt_dry_run || eval "$cmds" || func_append admincmds "
|
|
$cmds"
|
|
fi
|
|
done
|
|
@@ -2006,53 +2713,55 @@ func_mode_finish ()
|
|
# Exit here if they wanted silent mode.
|
|
$opt_silent && exit $EXIT_SUCCESS
|
|
|
|
- echo "----------------------------------------------------------------------"
|
|
- echo "Libraries have been installed in:"
|
|
- for libdir in $libdirs; do
|
|
- $ECHO " $libdir"
|
|
- done
|
|
- echo
|
|
- echo "If you ever happen to want to link against installed libraries"
|
|
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
|
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
|
|
- echo "flag during linking and do at least one of the following:"
|
|
- if test -n "$shlibpath_var"; then
|
|
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
|
- echo " during execution"
|
|
- fi
|
|
- if test -n "$runpath_var"; then
|
|
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
|
- echo " during linking"
|
|
- fi
|
|
- if test -n "$hardcode_libdir_flag_spec"; then
|
|
- libdir=LIBDIR
|
|
- eval "flag=\"$hardcode_libdir_flag_spec\""
|
|
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
|
|
+ echo "----------------------------------------------------------------------"
|
|
+ echo "Libraries have been installed in:"
|
|
+ for libdir in $libdirs; do
|
|
+ $ECHO " $libdir"
|
|
+ done
|
|
+ echo
|
|
+ echo "If you ever happen to want to link against installed libraries"
|
|
+ echo "in a given directory, LIBDIR, you must either use libtool, and"
|
|
+ echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
|
|
+ echo "flag during linking and do at least one of the following:"
|
|
+ if test -n "$shlibpath_var"; then
|
|
+ echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
|
+ echo " during execution"
|
|
+ fi
|
|
+ if test -n "$runpath_var"; then
|
|
+ echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
|
+ echo " during linking"
|
|
+ fi
|
|
+ if test -n "$hardcode_libdir_flag_spec"; then
|
|
+ libdir=LIBDIR
|
|
+ eval flag=\"$hardcode_libdir_flag_spec\"
|
|
|
|
- $ECHO " - use the \`$flag' linker flag"
|
|
- fi
|
|
- if test -n "$admincmds"; then
|
|
- $ECHO " - have your system administrator run these commands:$admincmds"
|
|
- fi
|
|
- if test -f /etc/ld.so.conf; then
|
|
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
|
- fi
|
|
- echo
|
|
+ $ECHO " - use the \`$flag' linker flag"
|
|
+ fi
|
|
+ if test -n "$admincmds"; then
|
|
+ $ECHO " - have your system administrator run these commands:$admincmds"
|
|
+ fi
|
|
+ if test -f /etc/ld.so.conf; then
|
|
+ echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
|
+ fi
|
|
+ echo
|
|
|
|
- echo "See any operating system documentation about shared libraries for"
|
|
- case $host in
|
|
- solaris2.[6789]|solaris2.1[0-9])
|
|
- echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
|
|
- echo "pages."
|
|
- ;;
|
|
- *)
|
|
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
|
- ;;
|
|
- esac
|
|
- echo "----------------------------------------------------------------------"
|
|
+ echo "See any operating system documentation about shared libraries for"
|
|
+ case $host in
|
|
+ solaris2.[6789]|solaris2.1[0-9])
|
|
+ echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
|
|
+ echo "pages."
|
|
+ ;;
|
|
+ *)
|
|
+ echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
|
+ ;;
|
|
+ esac
|
|
+ echo "----------------------------------------------------------------------"
|
|
+ fi
|
|
exit $EXIT_SUCCESS
|
|
}
|
|
|
|
-test "$mode" = finish && func_mode_finish ${1+"$@"}
|
|
+test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
|
|
|
|
|
|
# func_mode_install arg...
|
|
@@ -2077,7 +2786,7 @@ func_mode_install ()
|
|
# The real first argument should be the name of the installation program.
|
|
# Aesthetically quote it.
|
|
func_quote_for_eval "$arg"
|
|
- install_prog="$install_prog$func_quote_for_eval_result"
|
|
+ func_append install_prog "$func_quote_for_eval_result"
|
|
install_shared_prog=$install_prog
|
|
case " $install_prog " in
|
|
*[\\\ /]cp\ *) install_cp=: ;;
|
|
@@ -2097,7 +2806,7 @@ func_mode_install ()
|
|
do
|
|
arg2=
|
|
if test -n "$dest"; then
|
|
- files="$files $dest"
|
|
+ func_append files " $dest"
|
|
dest=$arg
|
|
continue
|
|
fi
|
|
@@ -2135,11 +2844,11 @@ func_mode_install ()
|
|
|
|
# Aesthetically quote the argument.
|
|
func_quote_for_eval "$arg"
|
|
- install_prog="$install_prog $func_quote_for_eval_result"
|
|
+ func_append install_prog " $func_quote_for_eval_result"
|
|
if test -n "$arg2"; then
|
|
func_quote_for_eval "$arg2"
|
|
fi
|
|
- install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
|
|
+ func_append install_shared_prog " $func_quote_for_eval_result"
|
|
done
|
|
|
|
test -z "$install_prog" && \
|
|
@@ -2151,7 +2860,7 @@ func_mode_install ()
|
|
if test -n "$install_override_mode" && $no_mode; then
|
|
if $install_cp; then :; else
|
|
func_quote_for_eval "$install_override_mode"
|
|
- install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
|
|
+ func_append install_shared_prog " -m $func_quote_for_eval_result"
|
|
fi
|
|
fi
|
|
|
|
@@ -2209,10 +2918,13 @@ func_mode_install ()
|
|
case $file in
|
|
*.$libext)
|
|
# Do the static libraries later.
|
|
- staticlibs="$staticlibs $file"
|
|
+ func_append staticlibs " $file"
|
|
;;
|
|
|
|
*.la)
|
|
+ func_resolve_sysroot "$file"
|
|
+ file=$func_resolve_sysroot_result
|
|
+
|
|
# Check to see that this really is a libtool archive.
|
|
func_lalib_unsafe_p "$file" \
|
|
|| func_fatal_help "\`$file' is not a valid libtool archive"
|
|
@@ -2226,23 +2938,30 @@ func_mode_install ()
|
|
if test "X$destdir" = "X$libdir"; then
|
|
case "$current_libdirs " in
|
|
*" $libdir "*) ;;
|
|
- *) current_libdirs="$current_libdirs $libdir" ;;
|
|
+ *) func_append current_libdirs " $libdir" ;;
|
|
esac
|
|
else
|
|
# Note the libdir as a future libdir.
|
|
case "$future_libdirs " in
|
|
*" $libdir "*) ;;
|
|
- *) future_libdirs="$future_libdirs $libdir" ;;
|
|
+ *) func_append future_libdirs " $libdir" ;;
|
|
esac
|
|
fi
|
|
|
|
func_dirname "$file" "/" ""
|
|
dir="$func_dirname_result"
|
|
- dir="$dir$objdir"
|
|
+ func_append dir "$objdir"
|
|
|
|
if test -n "$relink_command"; then
|
|
+ # Strip any trailing slash from the destination.
|
|
+ func_stripname '' '/' "$libdir"
|
|
+ destlibdir=$func_stripname_result
|
|
+
|
|
+ func_stripname '' '/' "$destdir"
|
|
+ s_destdir=$func_stripname_result
|
|
+
|
|
# Determine the prefix the user has applied to our future dir.
|
|
- inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
|
|
+ inst_prefix_dir=`$ECHO "X$s_destdir" | $Xsed -e "s%$destlibdir\$%%"`
|
|
|
|
# Don't allow the user to place us outside of our expected
|
|
# location b/c this prevents finding dependent libraries that
|
|
@@ -2315,7 +3034,7 @@ func_mode_install ()
|
|
func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
|
|
|
|
# Maybe install the static library, too.
|
|
- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
|
|
+ test -n "$old_library" && func_append staticlibs " $dir/$old_library"
|
|
;;
|
|
|
|
*.lo)
|
|
@@ -2503,7 +3222,7 @@ func_mode_install ()
|
|
test -n "$future_libdirs" && \
|
|
func_warning "remember to run \`$progname --finish$future_libdirs'"
|
|
|
|
- if test -n "$current_libdirs" && $opt_finish; then
|
|
+ if test -n "$current_libdirs"; then
|
|
# Maybe just do a dry run.
|
|
$opt_dry_run && current_libdirs=" -n$current_libdirs"
|
|
exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
|
|
@@ -2512,7 +3231,7 @@ func_mode_install ()
|
|
fi
|
|
}
|
|
|
|
-test "$mode" = install && func_mode_install ${1+"$@"}
|
|
+test "$opt_mode" = install && func_mode_install ${1+"$@"}
|
|
|
|
|
|
# func_generate_dlsyms outputname originator pic_p
|
|
@@ -2559,6 +3278,18 @@ extern \"C\" {
|
|
#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
|
|
#endif
|
|
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
/* External symbol declarations for the compiler. */\
|
|
"
|
|
|
|
@@ -2570,21 +3301,22 @@ extern \"C\" {
|
|
# Add our own program objects to the symbol list.
|
|
progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
|
|
for progfile in $progfiles; do
|
|
- func_verbose "extracting global C symbols from \`$progfile'"
|
|
- $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
|
|
+ func_to_tool_file "$progfile" func_convert_file_msys_to_w32
|
|
+ func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
|
|
+ $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
|
|
done
|
|
|
|
if test -n "$exclude_expsyms"; then
|
|
$opt_dry_run || {
|
|
- $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
|
|
- $MV "$nlist"T "$nlist"
|
|
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
|
|
+ eval '$MV "$nlist"T "$nlist"'
|
|
}
|
|
fi
|
|
|
|
if test -n "$export_symbols_regex"; then
|
|
$opt_dry_run || {
|
|
- $EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T
|
|
- $MV "$nlist"T "$nlist"
|
|
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
|
|
+ eval '$MV "$nlist"T "$nlist"'
|
|
}
|
|
fi
|
|
|
|
@@ -2593,23 +3325,23 @@ extern \"C\" {
|
|
export_symbols="$output_objdir/$outputname.exp"
|
|
$opt_dry_run || {
|
|
$RM $export_symbols
|
|
- ${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' < "$nlist" > "$export_symbols"
|
|
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
|
|
case $host in
|
|
*cygwin* | *mingw* | *cegcc* )
|
|
- echo EXPORTS > "$output_objdir/$outputname.def"
|
|
- cat "$export_symbols" >> "$output_objdir/$outputname.def"
|
|
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
|
|
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
|
|
;;
|
|
esac
|
|
}
|
|
else
|
|
$opt_dry_run || {
|
|
- ${SED} -e 's/\([].[*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/' < "$export_symbols" > "$output_objdir/$outputname.exp"
|
|
- $GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T
|
|
- $MV "$nlist"T "$nlist"
|
|
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
|
|
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
|
|
+ eval '$MV "$nlist"T "$nlist"'
|
|
case $host in
|
|
*cygwin* | *mingw* | *cegcc* )
|
|
- echo EXPORTS > "$output_objdir/$outputname.def"
|
|
- cat "$nlist" >> "$output_objdir/$outputname.def"
|
|
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
|
|
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
|
|
;;
|
|
esac
|
|
}
|
|
@@ -2620,10 +3352,52 @@ extern \"C\" {
|
|
func_verbose "extracting global C symbols from \`$dlprefile'"
|
|
func_basename "$dlprefile"
|
|
name="$func_basename_result"
|
|
- $opt_dry_run || {
|
|
- $ECHO ": $name " >> "$nlist"
|
|
- eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
|
|
- }
|
|
+ case $host in
|
|
+ *cygwin* | *mingw* | *cegcc* )
|
|
+ # if an import library, we need to obtain dlname
|
|
+ if func_win32_import_lib_p "$dlprefile"; then
|
|
+ func_tr_sh "$dlprefile"
|
|
+ eval "curr_lafile=\$libfile_$func_tr_sh_result"
|
|
+ dlprefile_dlbasename=""
|
|
+ if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
|
|
+ # Use subshell, to avoid clobbering current variable values
|
|
+ dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
|
|
+ if test -n "$dlprefile_dlname" ; then
|
|
+ func_basename "$dlprefile_dlname"
|
|
+ dlprefile_dlbasename="$func_basename_result"
|
|
+ else
|
|
+ # no lafile. user explicitly requested -dlpreopen <import library>.
|
|
+ $sharedlib_from_linklib_cmd "$dlprefile"
|
|
+ dlprefile_dlbasename=$sharedlib_from_linklib_result
|
|
+ fi
|
|
+ fi
|
|
+ $opt_dry_run || {
|
|
+ if test -n "$dlprefile_dlbasename" ; then
|
|
+ eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
|
|
+ else
|
|
+ func_warning "Could not compute DLL name from $name"
|
|
+ eval '$ECHO ": $name " >> "$nlist"'
|
|
+ fi
|
|
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
|
|
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
|
|
+ $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
|
|
+ }
|
|
+ else # not an import lib
|
|
+ $opt_dry_run || {
|
|
+ eval '$ECHO ": $name " >> "$nlist"'
|
|
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
|
|
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
|
|
+ }
|
|
+ fi
|
|
+ ;;
|
|
+ *)
|
|
+ $opt_dry_run || {
|
|
+ eval '$ECHO ": $name " >> "$nlist"'
|
|
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
|
|
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
|
|
+ }
|
|
+ ;;
|
|
+ esac
|
|
done
|
|
|
|
$opt_dry_run || {
|
|
@@ -2661,26 +3435,9 @@ typedef struct {
|
|
const char *name;
|
|
void *address;
|
|
} lt_dlsymlist;
|
|
-"
|
|
- case $host in
|
|
- *cygwin* | *mingw* | *cegcc* )
|
|
- echo >> "$output_objdir/$my_dlsyms" "\
|
|
-/* DATA imports from DLLs on WIN32 con't be const, because
|
|
- runtime relocations are performed -- see ld's documentation
|
|
- on pseudo-relocs. */"
|
|
- lt_dlsym_const= ;;
|
|
- *osf5*)
|
|
- echo >> "$output_objdir/$my_dlsyms" "\
|
|
-/* This system does not cope well with relocations in const data */"
|
|
- lt_dlsym_const= ;;
|
|
- *)
|
|
- lt_dlsym_const=const ;;
|
|
- esac
|
|
-
|
|
- echo >> "$output_objdir/$my_dlsyms" "\
|
|
-extern $lt_dlsym_const lt_dlsymlist
|
|
+extern LT_DLSYM_CONST lt_dlsymlist
|
|
lt_${my_prefix}_LTX_preloaded_symbols[];
|
|
-$lt_dlsym_const lt_dlsymlist
|
|
+LT_DLSYM_CONST lt_dlsymlist
|
|
lt_${my_prefix}_LTX_preloaded_symbols[] =
|
|
{\
|
|
{ \"$my_originator\", (void *) 0 },"
|
|
@@ -2736,7 +3493,7 @@ static const void *lt_preloaded_setup() {
|
|
for arg in $LTCFLAGS; do
|
|
case $arg in
|
|
-pie | -fpie | -fPIE) ;;
|
|
- *) symtab_cflags="$symtab_cflags $arg" ;;
|
|
+ *) func_append symtab_cflags " $arg" ;;
|
|
esac
|
|
done
|
|
|
|
@@ -2796,9 +3553,11 @@ func_win32_libid ()
|
|
win32_libid_type="x86 archive import"
|
|
;;
|
|
*ar\ archive*) # could be an import, or static
|
|
- if $OBJDUMP -f "$1" | $SED -e '10q' 2>/dev/null |
|
|
- $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
|
|
- win32_nmres=`$NM -f posix -A "$1" |
|
|
+ # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
|
|
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
|
|
+ $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
|
|
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
|
|
+ win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
|
|
$SED -n -e '
|
|
1,100{
|
|
/ I /{
|
|
@@ -2827,6 +3586,131 @@ func_win32_libid ()
|
|
$ECHO "$win32_libid_type"
|
|
}
|
|
|
|
+# func_cygming_dll_for_implib ARG
|
|
+#
|
|
+# Platform-specific function to extract the
|
|
+# name of the DLL associated with the specified
|
|
+# import library ARG.
|
|
+# Invoked by eval'ing the libtool variable
|
|
+# $sharedlib_from_linklib_cmd
|
|
+# Result is available in the variable
|
|
+# $sharedlib_from_linklib_result
|
|
+func_cygming_dll_for_implib ()
|
|
+{
|
|
+ $opt_debug
|
|
+ sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
|
|
+}
|
|
+
|
|
+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
|
|
+#
|
|
+# The is the core of a fallback implementation of a
|
|
+# platform-specific function to extract the name of the
|
|
+# DLL associated with the specified import library LIBNAME.
|
|
+#
|
|
+# SECTION_NAME is either .idata$6 or .idata$7, depending
|
|
+# on the platform and compiler that created the implib.
|
|
+#
|
|
+# Echos the name of the DLL associated with the
|
|
+# specified import library.
|
|
+func_cygming_dll_for_implib_fallback_core ()
|
|
+{
|
|
+ $opt_debug
|
|
+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
|
|
+ $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
|
|
+ $SED '/^Contents of section '"$match_literal"':/{
|
|
+ # Place marker at beginning of archive member dllname section
|
|
+ s/.*/====MARK====/
|
|
+ p
|
|
+ d
|
|
+ }
|
|
+ # These lines can sometimes be longer than 43 characters, but
|
|
+ # are always uninteresting
|
|
+ /:[ ]*file format pe[i]\{,1\}-/d
|
|
+ /^In archive [^:]*:/d
|
|
+ # Ensure marker is printed
|
|
+ /^====MARK====/p
|
|
+ # Remove all lines with less than 43 characters
|
|
+ /^.\{43\}/!d
|
|
+ # From remaining lines, remove first 43 characters
|
|
+ s/^.\{43\}//' |
|
|
+ $SED -n '
|
|
+ # Join marker and all lines until next marker into a single line
|
|
+ /^====MARK====/ b para
|
|
+ H
|
|
+ $ b para
|
|
+ b
|
|
+ :para
|
|
+ x
|
|
+ s/\n//g
|
|
+ # Remove the marker
|
|
+ s/^====MARK====//
|
|
+ # Remove trailing dots and whitespace
|
|
+ s/[\. \t]*$//
|
|
+ # Print
|
|
+ /./p' |
|
|
+ # we now have a list, one entry per line, of the stringified
|
|
+ # contents of the appropriate section of all members of the
|
|
+ # archive which possess that section. Heuristic: eliminate
|
|
+ # all those which have a first or second character that is
|
|
+ # a '.' (that is, objdump's representation of an unprintable
|
|
+ # character.) This should work for all archives with less than
|
|
+ # 0x302f exports -- but will fail for DLLs whose name actually
|
|
+ # begins with a literal '.' or a single character followed by
|
|
+ # a '.'.
|
|
+ #
|
|
+ # Of those that remain, print the first one.
|
|
+ $SED -e '/^\./d;/^.\./d;q'
|
|
+}
|
|
+
|
|
+# func_cygming_gnu_implib_p ARG
|
|
+# This predicate returns with zero status (TRUE) if
|
|
+# ARG is a GNU/binutils-style import library. Returns
|
|
+# with nonzero status (FALSE) otherwise.
|
|
+func_cygming_gnu_implib_p ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
|
|
+ func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
|
|
+ test -n "$func_cygming_gnu_implib_tmp"
|
|
+}
|
|
+
|
|
+# func_cygming_ms_implib_p ARG
|
|
+# This predicate returns with zero status (TRUE) if
|
|
+# ARG is an MS-style import library. Returns
|
|
+# with nonzero status (FALSE) otherwise.
|
|
+func_cygming_ms_implib_p ()
|
|
+{
|
|
+ $opt_debug
|
|
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
|
|
+ func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
|
|
+ test -n "$func_cygming_ms_implib_tmp"
|
|
+}
|
|
+
|
|
+# func_cygming_dll_for_implib_fallback ARG
|
|
+# Platform-specific function to extract the
|
|
+# name of the DLL associated with the specified
|
|
+# import library ARG.
|
|
+#
|
|
+# This fallback implementation is for use when $DLLTOOL
|
|
+# does not support the --identify-strict option.
|
|
+# Invoked by eval'ing the libtool variable
|
|
+# $sharedlib_from_linklib_cmd
|
|
+# Result is available in the variable
|
|
+# $sharedlib_from_linklib_result
|
|
+func_cygming_dll_for_implib_fallback ()
|
|
+{
|
|
+ $opt_debug
|
|
+ if func_cygming_gnu_implib_p "$1" ; then
|
|
+ # binutils import library
|
|
+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
|
|
+ elif func_cygming_ms_implib_p "$1" ; then
|
|
+ # ms-generated import library
|
|
+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
|
|
+ else
|
|
+ # unknown
|
|
+ sharedlib_from_linklib_result=""
|
|
+ fi
|
|
+}
|
|
|
|
|
|
# func_extract_an_archive dir oldlib
|
|
@@ -3014,7 +3898,110 @@ func_fallback_echo ()
|
|
_LTECHO_EOF'
|
|
}
|
|
ECHO=\"$qECHO\"
|
|
- fi\
|
|
+ fi
|
|
+
|
|
+# Very basic option parsing. These options are (a) specific to
|
|
+# the libtool wrapper, (b) are identical between the wrapper
|
|
+# /script/ and the wrapper /executable/ which is used only on
|
|
+# windows platforms, and (c) all begin with the string "--lt-"
|
|
+# (application programs are unlikely to have options which match
|
|
+# this pattern).
|
|
+#
|
|
+# There are only two supported options: --lt-debug and
|
|
+# --lt-dump-script. There is, deliberately, no --lt-help.
|
|
+#
|
|
+# The first argument to this parsing function should be the
|
|
+# script's $0 value, followed by "$@".
|
|
+lt_option_debug=
|
|
+func_parse_lt_options ()
|
|
+{
|
|
+ lt_script_arg0=\$0
|
|
+ shift
|
|
+ for lt_opt
|
|
+ do
|
|
+ case \"\$lt_opt\" in
|
|
+ --lt-debug) lt_option_debug=1 ;;
|
|
+ --lt-dump-script)
|
|
+ lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
|
|
+ test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
|
|
+ lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
|
|
+ cat \"\$lt_dump_D/\$lt_dump_F\"
|
|
+ exit 0
|
|
+ ;;
|
|
+ --lt-*)
|
|
+ \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
|
|
+ exit 1
|
|
+ ;;
|
|
+ esac
|
|
+ done
|
|
+
|
|
+ # Print the debug banner immediately:
|
|
+ if test -n \"\$lt_option_debug\"; then
|
|
+ echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
|
|
+ fi
|
|
+}
|
|
+
|
|
+# Used when --lt-debug. Prints its arguments to stdout
|
|
+# (redirection is the responsibility of the caller)
|
|
+func_lt_dump_args ()
|
|
+{
|
|
+ lt_dump_args_N=1;
|
|
+ for lt_arg
|
|
+ do
|
|
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
|
|
+ lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
|
|
+ done
|
|
+}
|
|
+
|
|
+# Core function for launching the target application
|
|
+func_exec_program_core ()
|
|
+{
|
|
+"
|
|
+ case $host in
|
|
+ # Backslashes separate directories on plain windows
|
|
+ *-*-mingw | *-*-os2* | *-cegcc*)
|
|
+ $ECHO "\
|
|
+ if test -n \"\$lt_option_debug\"; then
|
|
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
|
|
+ func_lt_dump_args \${1+\"\$@\"} 1>&2
|
|
+ fi
|
|
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
|
|
+"
|
|
+ ;;
|
|
+
|
|
+ *)
|
|
+ $ECHO "\
|
|
+ if test -n \"\$lt_option_debug\"; then
|
|
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
|
|
+ func_lt_dump_args \${1+\"\$@\"} 1>&2
|
|
+ fi
|
|
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
|
|
+"
|
|
+ ;;
|
|
+ esac
|
|
+ $ECHO "\
|
|
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
|
|
+ exit 1
|
|
+}
|
|
+
|
|
+# A function to encapsulate launching the target application
|
|
+# Strips options in the --lt-* namespace from \$@ and
|
|
+# launches target application with the remaining arguments.
|
|
+func_exec_program ()
|
|
+{
|
|
+ for lt_wr_arg
|
|
+ do
|
|
+ case \$lt_wr_arg in
|
|
+ --lt-*) ;;
|
|
+ *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
|
|
+ esac
|
|
+ shift
|
|
+ done
|
|
+ func_exec_program_core \${1+\"\$@\"}
|
|
+}
|
|
+
|
|
+ # Parse options
|
|
+ func_parse_lt_options \"\$0\" \${1+\"\$@\"}
|
|
|
|
# Find the directory that this script lives in.
|
|
thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
|
|
@@ -3078,7 +4065,7 @@ _LTECHO_EOF'
|
|
|
|
# relink executable if necessary
|
|
if test -n \"\$relink_command\"; then
|
|
- if relink_command_output=\`eval \"\$relink_command\" 2>&1\`; then :
|
|
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
|
|
else
|
|
$ECHO \"\$relink_command_output\" >&2
|
|
$RM \"\$progdir/\$file\"
|
|
@@ -3102,6 +4089,18 @@ _LTECHO_EOF'
|
|
|
|
if test -f \"\$progdir/\$program\"; then"
|
|
|
|
+ # fixup the dll searchpath if we need to.
|
|
+ #
|
|
+ # Fix the DLL searchpath if we need to. Do this before prepending
|
|
+ # to shlibpath, because on Windows, both are PATH and uninstalled
|
|
+ # libraries must come first.
|
|
+ if test -n "$dllsearchpath"; then
|
|
+ $ECHO "\
|
|
+ # Add the dll search path components to the executable PATH
|
|
+ PATH=$dllsearchpath:\$PATH
|
|
+"
|
|
+ fi
|
|
+
|
|
# Export our shlibpath_var if we have one.
|
|
if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
|
|
$ECHO "\
|
|
@@ -3116,35 +4115,10 @@ _LTECHO_EOF'
|
|
"
|
|
fi
|
|
|
|
- # fixup the dll searchpath if we need to.
|
|
- if test -n "$dllsearchpath"; then
|
|
- $ECHO "\
|
|
- # Add the dll search path components to the executable PATH
|
|
- PATH=$dllsearchpath:\$PATH
|
|
-"
|
|
- fi
|
|
-
|
|
$ECHO "\
|
|
if test \"\$libtool_execute_magic\" != \"$magic\"; then
|
|
# Run the actual program with our arguments.
|
|
-"
|
|
- case $host in
|
|
- # Backslashes separate directories on plain windows
|
|
- *-*-mingw | *-*-os2* | *-cegcc*)
|
|
- $ECHO "\
|
|
- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
|
|
-"
|
|
- ;;
|
|
-
|
|
- *)
|
|
- $ECHO "\
|
|
- exec \"\$progdir/\$program\" \${1+\"\$@\"}
|
|
-"
|
|
- ;;
|
|
- esac
|
|
- $ECHO "\
|
|
- \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
|
|
- exit 1
|
|
+ func_exec_program \${1+\"\$@\"}
|
|
fi
|
|
else
|
|
# The program doesn't exist.
|
|
@@ -3158,166 +4132,6 @@ fi\
|
|
}
|
|
|
|
|
|
-# func_to_host_path arg
|
|
-#
|
|
-# Convert paths to host format when used with build tools.
|
|
-# Intended for use with "native" mingw (where libtool itself
|
|
-# is running under the msys shell), or in the following cross-
|
|
-# build environments:
|
|
-# $build $host
|
|
-# mingw (msys) mingw [e.g. native]
|
|
-# cygwin mingw
|
|
-# *nix + wine mingw
|
|
-# where wine is equipped with the `winepath' executable.
|
|
-# In the native mingw case, the (msys) shell automatically
|
|
-# converts paths for any non-msys applications it launches,
|
|
-# but that facility isn't available from inside the cwrapper.
|
|
-# Similar accommodations are necessary for $host mingw and
|
|
-# $build cygwin. Calling this function does no harm for other
|
|
-# $host/$build combinations not listed above.
|
|
-#
|
|
-# ARG is the path (on $build) that should be converted to
|
|
-# the proper representation for $host. The result is stored
|
|
-# in $func_to_host_path_result.
|
|
-func_to_host_path ()
|
|
-{
|
|
- func_to_host_path_result="$1"
|
|
- if test -n "$1"; then
|
|
- case $host in
|
|
- *mingw* )
|
|
- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
|
|
- case $build in
|
|
- *mingw* ) # actually, msys
|
|
- # awkward: cmd appends spaces to result
|
|
- func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
|
|
- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
|
|
- ;;
|
|
- *cygwin* )
|
|
- func_to_host_path_result=`cygpath -w "$1" |
|
|
- $SED -e "$lt_sed_naive_backslashify"`
|
|
- ;;
|
|
- * )
|
|
- # Unfortunately, winepath does not exit with a non-zero
|
|
- # error code, so we are forced to check the contents of
|
|
- # stdout. On the other hand, if the command is not
|
|
- # found, the shell will set an exit code of 127 and print
|
|
- # *an error message* to stdout. So we must check for both
|
|
- # error code of zero AND non-empty stdout, which explains
|
|
- # the odd construction:
|
|
- func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
|
|
- if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
|
|
- func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
|
|
- $SED -e "$lt_sed_naive_backslashify"`
|
|
- else
|
|
- # Allow warning below.
|
|
- func_to_host_path_result=
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
- if test -z "$func_to_host_path_result" ; then
|
|
- func_error "Could not determine host path corresponding to"
|
|
- func_error " \`$1'"
|
|
- func_error "Continuing, but uninstalled executables may not work."
|
|
- # Fallback:
|
|
- func_to_host_path_result="$1"
|
|
- fi
|
|
- ;;
|
|
- esac
|
|
- fi
|
|
-}
|
|
-# end: func_to_host_path
|
|
-
|
|
-# func_to_host_pathlist arg
|
|
-#
|
|
-# Convert pathlists to host format when used with build tools.
|
|
-# See func_to_host_path(), above. This function supports the
|
|
-# following $build/$host combinations (but does no harm for
|
|
-# combinations not listed here):
|
|
-# $build $host
|
|
-# mingw (msys) mingw [e.g. native]
|
|
-# cygwin mingw
|
|
-# *nix + wine mingw
|
|
-#
|
|
-# Path separators are also converted from $build format to
|
|
-# $host format. If ARG begins or ends with a path separator
|
|
-# character, it is preserved (but converted to $host format)
|
|
-# on output.
|
|
-#
|
|
-# ARG is a pathlist (on $build) that should be converted to
|
|
-# the proper representation on $host. The result is stored
|
|
-# in $func_to_host_pathlist_result.
|
|
-func_to_host_pathlist ()
|
|
-{
|
|
- func_to_host_pathlist_result="$1"
|
|
- if test -n "$1"; then
|
|
- case $host in
|
|
- *mingw* )
|
|
- lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
|
|
- # Remove leading and trailing path separator characters from
|
|
- # ARG. msys behavior is inconsistent here, cygpath turns them
|
|
- # into '.;' and ';.', and winepath ignores them completely.
|
|
- func_stripname : : "$1"
|
|
- func_to_host_pathlist_tmp1=$func_stripname_result
|
|
- case $build in
|
|
- *mingw* ) # Actually, msys.
|
|
- # Awkward: cmd appends spaces to result.
|
|
- func_to_host_pathlist_result=`
|
|
- ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
|
|
- $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
|
|
- ;;
|
|
- *cygwin* )
|
|
- func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
|
|
- $SED -e "$lt_sed_naive_backslashify"`
|
|
- ;;
|
|
- * )
|
|
- # unfortunately, winepath doesn't convert pathlists
|
|
- func_to_host_pathlist_result=""
|
|
- func_to_host_pathlist_oldIFS=$IFS
|
|
- IFS=:
|
|
- for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
|
|
- IFS=$func_to_host_pathlist_oldIFS
|
|
- if test -n "$func_to_host_pathlist_f" ; then
|
|
- func_to_host_path "$func_to_host_pathlist_f"
|
|
- if test -n "$func_to_host_path_result" ; then
|
|
- if test -z "$func_to_host_pathlist_result" ; then
|
|
- func_to_host_pathlist_result="$func_to_host_path_result"
|
|
- else
|
|
- func_append func_to_host_pathlist_result ";$func_to_host_path_result"
|
|
- fi
|
|
- fi
|
|
- fi
|
|
- done
|
|
- IFS=$func_to_host_pathlist_oldIFS
|
|
- ;;
|
|
- esac
|
|
- if test -z "$func_to_host_pathlist_result"; then
|
|
- func_error "Could not determine the host path(s) corresponding to"
|
|
- func_error " \`$1'"
|
|
- func_error "Continuing, but uninstalled executables may not work."
|
|
- # Fallback. This may break if $1 contains DOS-style drive
|
|
- # specifications. The fix is not to complicate the expression
|
|
- # below, but for the user to provide a working wine installation
|
|
- # with winepath so that path translation in the cross-to-mingw
|
|
- # case works properly.
|
|
- lt_replace_pathsep_nix_to_dos="s|:|;|g"
|
|
- func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
|
|
- $SED -e "$lt_replace_pathsep_nix_to_dos"`
|
|
- fi
|
|
- # Now, add the leading and trailing path separators back
|
|
- case "$1" in
|
|
- :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
|
|
- ;;
|
|
- esac
|
|
- case "$1" in
|
|
- *: ) func_append func_to_host_pathlist_result ";"
|
|
- ;;
|
|
- esac
|
|
- ;;
|
|
- esac
|
|
- fi
|
|
-}
|
|
-# end: func_to_host_pathlist
|
|
-
|
|
# func_emit_cwrapperexe_src
|
|
# emit the source code for a wrapper executable on stdout
|
|
# Must ONLY be called from within func_mode_link because
|
|
@@ -3334,10 +4148,6 @@ func_emit_cwrapperexe_src ()
|
|
|
|
This wrapper executable should never be moved out of the build directory.
|
|
If it is, it will not operate correctly.
|
|
-
|
|
- Currently, it simply execs the wrapper *script* "$SHELL $output",
|
|
- but could eventually absorb all of the scripts functionality and
|
|
- exec $objdir/$outputname directly.
|
|
*/
|
|
EOF
|
|
cat <<"EOF"
|
|
@@ -3462,22 +4272,13 @@ int setenv (const char *, const char *, int);
|
|
if (stale) { free ((void *) stale); stale = 0; } \
|
|
} while (0)
|
|
|
|
-#undef LTWRAPPER_DEBUGPRINTF
|
|
-#if defined LT_DEBUGWRAPPER
|
|
-# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
|
|
-static void
|
|
-ltwrapper_debugprintf (const char *fmt, ...)
|
|
-{
|
|
- va_list args;
|
|
- va_start (args, fmt);
|
|
- (void) vfprintf (stderr, fmt, args);
|
|
- va_end (args);
|
|
-}
|
|
+#if defined(LT_DEBUGWRAPPER)
|
|
+static int lt_debug = 1;
|
|
#else
|
|
-# define LTWRAPPER_DEBUGPRINTF(args)
|
|
+static int lt_debug = 0;
|
|
#endif
|
|
|
|
-const char *program_name = NULL;
|
|
+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
|
|
|
|
void *xmalloc (size_t num);
|
|
char *xstrdup (const char *string);
|
|
@@ -3487,7 +4288,10 @@ char *chase_symlinks (const char *pathspec);
|
|
int make_executable (const char *path);
|
|
int check_executable (const char *path);
|
|
char *strendzap (char *str, const char *pat);
|
|
-void lt_fatal (const char *message, ...);
|
|
+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
|
|
+void lt_fatal (const char *file, int line, const char *message, ...);
|
|
+static const char *nonnull (const char *s);
|
|
+static const char *nonempty (const char *s);
|
|
void lt_setenv (const char *name, const char *value);
|
|
char *lt_extend_str (const char *orig_value, const char *add, int to_end);
|
|
void lt_update_exe_path (const char *name, const char *value);
|
|
@@ -3497,14 +4301,14 @@ void lt_dump_script (FILE *f);
|
|
EOF
|
|
|
|
cat <<EOF
|
|
-const char * MAGIC_EXE = "$magic_exe";
|
|
+volatile const char * MAGIC_EXE = "$magic_exe";
|
|
const char * LIB_PATH_VARNAME = "$shlibpath_var";
|
|
EOF
|
|
|
|
if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
|
|
- func_to_host_pathlist "$temp_rpath"
|
|
+ func_to_host_path "$temp_rpath"
|
|
cat <<EOF
|
|
-const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
|
|
+const char * LIB_PATH_VALUE = "$func_to_host_path_result";
|
|
EOF
|
|
else
|
|
cat <<"EOF"
|
|
@@ -3513,10 +4317,10 @@ EOF
|
|
fi
|
|
|
|
if test -n "$dllsearchpath"; then
|
|
- func_to_host_pathlist "$dllsearchpath:"
|
|
+ func_to_host_path "$dllsearchpath:"
|
|
cat <<EOF
|
|
const char * EXE_PATH_VARNAME = "PATH";
|
|
-const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
|
|
+const char * EXE_PATH_VALUE = "$func_to_host_path_result";
|
|
EOF
|
|
else
|
|
cat <<"EOF"
|
|
@@ -3539,12 +4343,10 @@ EOF
|
|
cat <<"EOF"
|
|
|
|
#define LTWRAPPER_OPTION_PREFIX "--lt-"
|
|
-#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
|
|
|
|
-static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
|
|
static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
|
|
-
|
|
static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
|
|
+static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
@@ -3561,10 +4363,13 @@ main (int argc, char *argv[])
|
|
int i;
|
|
|
|
program_name = (char *) xstrdup (base_name (argv[0]));
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
|
|
+ newargz = XMALLOC (char *, argc + 1);
|
|
|
|
- /* very simple arg parsing; don't want to rely on getopt */
|
|
+ /* very simple arg parsing; don't want to rely on getopt
|
|
+ * also, copy all non cwrapper options to newargz, except
|
|
+ * argz[0], which is handled differently
|
|
+ */
|
|
+ newargc=0;
|
|
for (i = 1; i < argc; i++)
|
|
{
|
|
if (strcmp (argv[i], dumpscript_opt) == 0)
|
|
@@ -3581,21 +4386,54 @@ EOF
|
|
lt_dump_script (stdout);
|
|
return 0;
|
|
}
|
|
+ if (strcmp (argv[i], debug_opt) == 0)
|
|
+ {
|
|
+ lt_debug = 1;
|
|
+ continue;
|
|
+ }
|
|
+ if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
|
|
+ {
|
|
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
|
|
+ namespace, but it is not one of the ones we know about and
|
|
+ have already dealt with, above (inluding dump-script), then
|
|
+ report an error. Otherwise, targets might begin to believe
|
|
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
|
|
+ namespace. The first time any user complains about this, we'll
|
|
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
|
|
+ or a configure.ac-settable value.
|
|
+ */
|
|
+ lt_fatal (__FILE__, __LINE__,
|
|
+ "unrecognized %s option: '%s'",
|
|
+ ltwrapper_option_prefix, argv[i]);
|
|
+ }
|
|
+ /* otherwise ... */
|
|
+ newargz[++newargc] = xstrdup (argv[i]);
|
|
}
|
|
+ newargz[++newargc] = NULL;
|
|
+
|
|
+EOF
|
|
+ cat <<EOF
|
|
+ /* The GNU banner must be the first non-error debug message */
|
|
+ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
|
|
+EOF
|
|
+ cat <<"EOF"
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
|
|
|
|
- newargz = XMALLOC (char *, argc + 1);
|
|
tmp_pathspec = find_executable (argv[0]);
|
|
if (tmp_pathspec == NULL)
|
|
- lt_fatal ("Couldn't find %s", argv[0]);
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
|
|
- tmp_pathspec));
|
|
+ lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(main) found exe (before symlink chase) at: %s\n",
|
|
+ tmp_pathspec);
|
|
|
|
actual_cwrapper_path = chase_symlinks (tmp_pathspec);
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
|
|
- actual_cwrapper_path));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(main) found exe (after symlink chase) at: %s\n",
|
|
+ actual_cwrapper_path);
|
|
XFREE (tmp_pathspec);
|
|
|
|
- actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
|
|
+ actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
|
|
strendzap (actual_cwrapper_path, actual_cwrapper_name);
|
|
|
|
/* wrapper name transforms */
|
|
@@ -3613,8 +4451,9 @@ EOF
|
|
target_name = tmp_pathspec;
|
|
tmp_pathspec = 0;
|
|
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
|
|
- target_name));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(main) libtool target name: %s\n",
|
|
+ target_name);
|
|
EOF
|
|
|
|
cat <<EOF
|
|
@@ -3664,35 +4503,19 @@ EOF
|
|
|
|
lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
|
|
lt_setenv ("DUALCASE", "1"); /* for MSK sh */
|
|
- lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
|
|
+ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
|
|
+ be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
|
|
+ because on Windows, both *_VARNAMEs are PATH but uninstalled
|
|
+ libraries must come first. */
|
|
lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
|
|
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
|
|
|
|
- newargc=0;
|
|
- for (i = 1; i < argc; i++)
|
|
- {
|
|
- if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
|
|
- {
|
|
- /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
|
|
- namespace, but it is not one of the ones we know about and
|
|
- have already dealt with, above (inluding dump-script), then
|
|
- report an error. Otherwise, targets might begin to believe
|
|
- they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
|
|
- namespace. The first time any user complains about this, we'll
|
|
- need to make LTWRAPPER_OPTION_PREFIX a configure-time option
|
|
- or a configure.ac-settable value.
|
|
- */
|
|
- lt_fatal ("Unrecognized option in %s namespace: '%s'",
|
|
- ltwrapper_option_prefix, argv[i]);
|
|
- }
|
|
- /* otherwise ... */
|
|
- newargz[++newargc] = xstrdup (argv[i]);
|
|
- }
|
|
- newargz[++newargc] = NULL;
|
|
-
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
|
|
+ nonnull (lt_argv_zero));
|
|
for (i = 0; i < newargc; i++)
|
|
{
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
|
|
+ i, nonnull (newargz[i]));
|
|
}
|
|
|
|
EOF
|
|
@@ -3706,7 +4529,9 @@ EOF
|
|
if (rval == -1)
|
|
{
|
|
/* failed to start process */
|
|
- LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(main) failed to launch target \"%s\": %s\n",
|
|
+ lt_argv_zero, nonnull (strerror (errno)));
|
|
return 127;
|
|
}
|
|
return rval;
|
|
@@ -3728,7 +4553,7 @@ xmalloc (size_t num)
|
|
{
|
|
void *p = (void *) malloc (num);
|
|
if (!p)
|
|
- lt_fatal ("Memory exhausted");
|
|
+ lt_fatal (__FILE__, __LINE__, "memory exhausted");
|
|
|
|
return p;
|
|
}
|
|
@@ -3762,8 +4587,8 @@ check_executable (const char *path)
|
|
{
|
|
struct stat st;
|
|
|
|
- LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
|
|
- path ? (*path ? path : "EMPTY!") : "NULL!"));
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
|
|
+ nonempty (path));
|
|
if ((!path) || (!*path))
|
|
return 0;
|
|
|
|
@@ -3780,8 +4605,8 @@ make_executable (const char *path)
|
|
int rval = 0;
|
|
struct stat st;
|
|
|
|
- LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
|
|
- path ? (*path ? path : "EMPTY!") : "NULL!"));
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
|
|
+ nonempty (path));
|
|
if ((!path) || (!*path))
|
|
return 0;
|
|
|
|
@@ -3807,8 +4632,8 @@ find_executable (const char *wrapper)
|
|
int tmp_len;
|
|
char *concat_name;
|
|
|
|
- LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
|
|
- wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
|
|
+ lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
|
|
+ nonempty (wrapper));
|
|
|
|
if ((wrapper == NULL) || (*wrapper == '\0'))
|
|
return NULL;
|
|
@@ -3861,7 +4686,8 @@ find_executable (const char *wrapper)
|
|
{
|
|
/* empty path: current directory */
|
|
if (getcwd (tmp, LT_PATHMAX) == NULL)
|
|
- lt_fatal ("getcwd failed");
|
|
+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
|
|
+ nonnull (strerror (errno)));
|
|
tmp_len = strlen (tmp);
|
|
concat_name =
|
|
XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
|
|
@@ -3886,7 +4712,8 @@ find_executable (const char *wrapper)
|
|
}
|
|
/* Relative path | not found in path: prepend cwd */
|
|
if (getcwd (tmp, LT_PATHMAX) == NULL)
|
|
- lt_fatal ("getcwd failed");
|
|
+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
|
|
+ nonnull (strerror (errno)));
|
|
tmp_len = strlen (tmp);
|
|
concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
|
|
memcpy (concat_name, tmp, tmp_len);
|
|
@@ -3912,8 +4739,9 @@ chase_symlinks (const char *pathspec)
|
|
int has_symlinks = 0;
|
|
while (strlen (tmp_pathspec) && !has_symlinks)
|
|
{
|
|
- LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
|
|
- tmp_pathspec));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "checking path component for symlinks: %s\n",
|
|
+ tmp_pathspec);
|
|
if (lstat (tmp_pathspec, &s) == 0)
|
|
{
|
|
if (S_ISLNK (s.st_mode) != 0)
|
|
@@ -3935,8 +4763,9 @@ chase_symlinks (const char *pathspec)
|
|
}
|
|
else
|
|
{
|
|
- char *errstr = strerror (errno);
|
|
- lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
|
|
+ lt_fatal (__FILE__, __LINE__,
|
|
+ "error accessing file \"%s\": %s",
|
|
+ tmp_pathspec, nonnull (strerror (errno)));
|
|
}
|
|
}
|
|
XFREE (tmp_pathspec);
|
|
@@ -3949,7 +4778,8 @@ chase_symlinks (const char *pathspec)
|
|
tmp_pathspec = realpath (pathspec, buf);
|
|
if (tmp_pathspec == 0)
|
|
{
|
|
- lt_fatal ("Could not follow symlinks for %s", pathspec);
|
|
+ lt_fatal (__FILE__, __LINE__,
|
|
+ "could not follow symlinks for %s", pathspec);
|
|
}
|
|
return xstrdup (tmp_pathspec);
|
|
#endif
|
|
@@ -3975,11 +4805,25 @@ strendzap (char *str, const char *pat)
|
|
return str;
|
|
}
|
|
|
|
+void
|
|
+lt_debugprintf (const char *file, int line, const char *fmt, ...)
|
|
+{
|
|
+ va_list args;
|
|
+ if (lt_debug)
|
|
+ {
|
|
+ (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
|
|
+ va_start (args, fmt);
|
|
+ (void) vfprintf (stderr, fmt, args);
|
|
+ va_end (args);
|
|
+ }
|
|
+}
|
|
+
|
|
static void
|
|
-lt_error_core (int exit_status, const char *mode,
|
|
+lt_error_core (int exit_status, const char *file,
|
|
+ int line, const char *mode,
|
|
const char *message, va_list ap)
|
|
{
|
|
- fprintf (stderr, "%s: %s: ", program_name, mode);
|
|
+ fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
|
|
vfprintf (stderr, message, ap);
|
|
fprintf (stderr, ".\n");
|
|
|
|
@@ -3988,20 +4832,32 @@ lt_error_core (int exit_status, const char *mode,
|
|
}
|
|
|
|
void
|
|
-lt_fatal (const char *message, ...)
|
|
+lt_fatal (const char *file, int line, const char *message, ...)
|
|
{
|
|
va_list ap;
|
|
va_start (ap, message);
|
|
- lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
|
|
+ lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
|
|
va_end (ap);
|
|
}
|
|
|
|
+static const char *
|
|
+nonnull (const char *s)
|
|
+{
|
|
+ return s ? s : "(null)";
|
|
+}
|
|
+
|
|
+static const char *
|
|
+nonempty (const char *s)
|
|
+{
|
|
+ return (s && !*s) ? "(empty)" : nonnull (s);
|
|
+}
|
|
+
|
|
void
|
|
lt_setenv (const char *name, const char *value)
|
|
{
|
|
- LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
|
|
- (name ? name : "<NULL>"),
|
|
- (value ? value : "<NULL>")));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(lt_setenv) setting '%s' to '%s'\n",
|
|
+ nonnull (name), nonnull (value));
|
|
{
|
|
#ifdef HAVE_SETENV
|
|
/* always make a copy, for consistency with !HAVE_SETENV */
|
|
@@ -4049,9 +4905,9 @@ lt_extend_str (const char *orig_value, const char *add, int to_end)
|
|
void
|
|
lt_update_exe_path (const char *name, const char *value)
|
|
{
|
|
- LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
|
|
- (name ? name : "<NULL>"),
|
|
- (value ? value : "<NULL>")));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
|
|
+ nonnull (name), nonnull (value));
|
|
|
|
if (name && *name && value && *value)
|
|
{
|
|
@@ -4070,9 +4926,9 @@ lt_update_exe_path (const char *name, const char *value)
|
|
void
|
|
lt_update_lib_path (const char *name, const char *value)
|
|
{
|
|
- LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
|
|
- (name ? name : "<NULL>"),
|
|
- (value ? value : "<NULL>")));
|
|
+ lt_debugprintf (__FILE__, __LINE__,
|
|
+ "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
|
|
+ nonnull (name), nonnull (value));
|
|
|
|
if (name && *name && value && *value)
|
|
{
|
|
@@ -4222,7 +5078,7 @@ EOF
|
|
func_win32_import_lib_p ()
|
|
{
|
|
$opt_debug
|
|
- case `eval "$file_magic_cmd \"\$1\" 2>/dev/null" | $SED -e 10q` in
|
|
+ case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
|
|
*import*) : ;;
|
|
*) false ;;
|
|
esac
|
|
@@ -4401,9 +5257,9 @@ func_mode_link ()
|
|
;;
|
|
*)
|
|
if test "$prev" = dlfiles; then
|
|
- dlfiles="$dlfiles $arg"
|
|
+ func_append dlfiles " $arg"
|
|
else
|
|
- dlprefiles="$dlprefiles $arg"
|
|
+ func_append dlprefiles " $arg"
|
|
fi
|
|
prev=
|
|
continue
|
|
@@ -4427,7 +5283,7 @@ func_mode_link ()
|
|
*-*-darwin*)
|
|
case "$deplibs " in
|
|
*" $qarg.ltframework "*) ;;
|
|
- *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
|
|
+ *) func_append deplibs " $qarg.ltframework" # this is fixed later
|
|
;;
|
|
esac
|
|
;;
|
|
@@ -4446,7 +5302,7 @@ func_mode_link ()
|
|
moreargs=
|
|
for fil in `cat "$save_arg"`
|
|
do
|
|
-# moreargs="$moreargs $fil"
|
|
+# func_append moreargs " $fil"
|
|
arg=$fil
|
|
# A libtool-controlled object.
|
|
|
|
@@ -4475,7 +5331,7 @@ func_mode_link ()
|
|
|
|
if test "$prev" = dlfiles; then
|
|
if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
|
|
- dlfiles="$dlfiles $pic_object"
|
|
+ func_append dlfiles " $pic_object"
|
|
prev=
|
|
continue
|
|
else
|
|
@@ -4487,7 +5343,7 @@ func_mode_link ()
|
|
# CHECK ME: I think I busted this. -Ossama
|
|
if test "$prev" = dlprefiles; then
|
|
# Preload the old-style object.
|
|
- dlprefiles="$dlprefiles $pic_object"
|
|
+ func_append dlprefiles " $pic_object"
|
|
prev=
|
|
fi
|
|
|
|
@@ -4557,12 +5413,12 @@ func_mode_link ()
|
|
if test "$prev" = rpath; then
|
|
case "$rpath " in
|
|
*" $arg "*) ;;
|
|
- *) rpath="$rpath $arg" ;;
|
|
+ *) func_append rpath " $arg" ;;
|
|
esac
|
|
else
|
|
case "$xrpath " in
|
|
*" $arg "*) ;;
|
|
- *) xrpath="$xrpath $arg" ;;
|
|
+ *) func_append xrpath " $arg" ;;
|
|
esac
|
|
fi
|
|
prev=
|
|
@@ -4574,28 +5430,28 @@ func_mode_link ()
|
|
continue
|
|
;;
|
|
weak)
|
|
- weak_libs="$weak_libs $arg"
|
|
+ func_append weak_libs " $arg"
|
|
prev=
|
|
continue
|
|
;;
|
|
xcclinker)
|
|
- linker_flags="$linker_flags $qarg"
|
|
- compiler_flags="$compiler_flags $qarg"
|
|
+ func_append linker_flags " $qarg"
|
|
+ func_append compiler_flags " $qarg"
|
|
prev=
|
|
func_append compile_command " $qarg"
|
|
func_append finalize_command " $qarg"
|
|
continue
|
|
;;
|
|
xcompiler)
|
|
- compiler_flags="$compiler_flags $qarg"
|
|
+ func_append compiler_flags " $qarg"
|
|
prev=
|
|
func_append compile_command " $qarg"
|
|
func_append finalize_command " $qarg"
|
|
continue
|
|
;;
|
|
xlinker)
|
|
- linker_flags="$linker_flags $qarg"
|
|
- compiler_flags="$compiler_flags $wl$qarg"
|
|
+ func_append linker_flags " $qarg"
|
|
+ func_append compiler_flags " $wl$qarg"
|
|
prev=
|
|
func_append compile_command " $wl$qarg"
|
|
func_append finalize_command " $wl$qarg"
|
|
@@ -4686,15 +5542,16 @@ func_mode_link ()
|
|
;;
|
|
|
|
-L*)
|
|
- func_stripname '-L' '' "$arg"
|
|
- dir=$func_stripname_result
|
|
- if test -z "$dir"; then
|
|
+ func_stripname "-L" '' "$arg"
|
|
+ if test -z "$func_stripname_result"; then
|
|
if test "$#" -gt 0; then
|
|
func_fatal_error "require no space between \`-L' and \`$1'"
|
|
else
|
|
func_fatal_error "need path for \`-L' option"
|
|
fi
|
|
fi
|
|
+ func_resolve_sysroot "$func_stripname_result"
|
|
+ dir=$func_resolve_sysroot_result
|
|
# We need an absolute path.
|
|
case $dir in
|
|
[\\/]* | [A-Za-z]:[\\/]*) ;;
|
|
@@ -4706,10 +5563,16 @@ func_mode_link ()
|
|
;;
|
|
esac
|
|
case "$deplibs " in
|
|
- *" -L$dir "*) ;;
|
|
+ *" -L$dir "* | *" $arg "*)
|
|
+ # Will only happen for absolute or sysroot arguments
|
|
+ ;;
|
|
*)
|
|
- deplibs="$deplibs -L$dir"
|
|
- lib_search_path="$lib_search_path $dir"
|
|
+ # Preserve sysroot, but never include relative directories
|
|
+ case $dir in
|
|
+ [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
|
|
+ *) func_append deplibs " -L$dir" ;;
|
|
+ esac
|
|
+ func_append lib_search_path " $dir"
|
|
;;
|
|
esac
|
|
case $host in
|
|
@@ -4718,12 +5581,12 @@ func_mode_link ()
|
|
case :$dllsearchpath: in
|
|
*":$dir:"*) ;;
|
|
::) dllsearchpath=$dir;;
|
|
- *) dllsearchpath="$dllsearchpath:$dir";;
|
|
+ *) func_append dllsearchpath ":$dir";;
|
|
esac
|
|
case :$dllsearchpath: in
|
|
*":$testbindir:"*) ;;
|
|
::) dllsearchpath=$testbindir;;
|
|
- *) dllsearchpath="$dllsearchpath:$testbindir";;
|
|
+ *) func_append dllsearchpath ":$testbindir";;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -4747,7 +5610,7 @@ func_mode_link ()
|
|
;;
|
|
*-*-rhapsody* | *-*-darwin1.[012])
|
|
# Rhapsody C and math libraries are in the System framework
|
|
- deplibs="$deplibs System.ltframework"
|
|
+ func_append deplibs " System.ltframework"
|
|
continue
|
|
;;
|
|
*-*-sco3.2v5* | *-*-sco5v6*)
|
|
@@ -4758,9 +5621,6 @@ func_mode_link ()
|
|
# Compiler inserts libc in the correct place for threads to work
|
|
test "X$arg" = "X-lc" && continue
|
|
;;
|
|
- *-*-linux*)
|
|
- test "X$arg" = "X-lc" && continue
|
|
- ;;
|
|
esac
|
|
elif test "X$arg" = "X-lc_r"; then
|
|
case $host in
|
|
@@ -4770,7 +5630,7 @@ func_mode_link ()
|
|
;;
|
|
esac
|
|
fi
|
|
- deplibs="$deplibs $arg"
|
|
+ func_append deplibs " $arg"
|
|
continue
|
|
;;
|
|
|
|
@@ -4782,8 +5642,8 @@ func_mode_link ()
|
|
# Tru64 UNIX uses -model [arg] to determine the layout of C++
|
|
# classes, name mangling, and exception handling.
|
|
# Darwin uses the -arch flag to determine output architecture.
|
|
- -model|-arch|-isysroot)
|
|
- compiler_flags="$compiler_flags $arg"
|
|
+ -model|-arch|-isysroot|--sysroot)
|
|
+ func_append compiler_flags " $arg"
|
|
func_append compile_command " $arg"
|
|
func_append finalize_command " $arg"
|
|
prev=xcompiler
|
|
@@ -4791,12 +5651,12 @@ func_mode_link ()
|
|
;;
|
|
|
|
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
|
|
- compiler_flags="$compiler_flags $arg"
|
|
+ func_append compiler_flags " $arg"
|
|
func_append compile_command " $arg"
|
|
func_append finalize_command " $arg"
|
|
case "$new_inherited_linker_flags " in
|
|
*" $arg "*) ;;
|
|
- * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
|
|
+ * ) func_append new_inherited_linker_flags " $arg" ;;
|
|
esac
|
|
continue
|
|
;;
|
|
@@ -4863,13 +5723,17 @@ func_mode_link ()
|
|
# We need an absolute path.
|
|
case $dir in
|
|
[\\/]* | [A-Za-z]:[\\/]*) ;;
|
|
+ =*)
|
|
+ func_stripname '=' '' "$dir"
|
|
+ dir=$lt_sysroot$func_stripname_result
|
|
+ ;;
|
|
*)
|
|
func_fatal_error "only absolute run-paths are allowed"
|
|
;;
|
|
esac
|
|
case "$xrpath " in
|
|
*" $dir "*) ;;
|
|
- *) xrpath="$xrpath $dir" ;;
|
|
+ *) func_append xrpath " $dir" ;;
|
|
esac
|
|
continue
|
|
;;
|
|
@@ -4922,8 +5786,8 @@ func_mode_link ()
|
|
for flag in $args; do
|
|
IFS="$save_ifs"
|
|
func_quote_for_eval "$flag"
|
|
- arg="$arg $func_quote_for_eval_result"
|
|
- compiler_flags="$compiler_flags $func_quote_for_eval_result"
|
|
+ func_append arg " $func_quote_for_eval_result"
|
|
+ func_append compiler_flags " $func_quote_for_eval_result"
|
|
done
|
|
IFS="$save_ifs"
|
|
func_stripname ' ' '' "$arg"
|
|
@@ -4938,9 +5802,9 @@ func_mode_link ()
|
|
for flag in $args; do
|
|
IFS="$save_ifs"
|
|
func_quote_for_eval "$flag"
|
|
- arg="$arg $wl$func_quote_for_eval_result"
|
|
- compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
|
|
- linker_flags="$linker_flags $func_quote_for_eval_result"
|
|
+ func_append arg " $wl$func_quote_for_eval_result"
|
|
+ func_append compiler_flags " $wl$func_quote_for_eval_result"
|
|
+ func_append linker_flags " $func_quote_for_eval_result"
|
|
done
|
|
IFS="$save_ifs"
|
|
func_stripname ' ' '' "$arg"
|
|
@@ -4995,8 +5859,10 @@ func_mode_link ()
|
|
# -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
|
|
# -Wa,* Pass flags directly to the assembler
|
|
# -Werror, -Werror=* Report (specified) warnings as errors
|
|
+ # --sysroot=* for sysroot support
|
|
+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
|
|
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
|
|
- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*| \
|
|
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
|
|
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*| \
|
|
-stdlib=*|-rtlib=*|--unwindlib=*| \
|
|
-specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
|
|
@@ -5007,7 +5873,7 @@ func_mode_link ()
|
|
arg="$func_quote_for_eval_result"
|
|
func_append compile_command " $arg"
|
|
func_append finalize_command " $arg"
|
|
- compiler_flags="$compiler_flags $arg"
|
|
+ func_append compiler_flags " $arg"
|
|
continue
|
|
;;
|
|
|
|
@@ -5019,7 +5885,7 @@ func_mode_link ()
|
|
|
|
*.$objext)
|
|
# A standard object.
|
|
- objs="$objs $arg"
|
|
+ func_append objs " $arg"
|
|
;;
|
|
|
|
*.lo)
|
|
@@ -5050,7 +5916,7 @@ func_mode_link ()
|
|
|
|
if test "$prev" = dlfiles; then
|
|
if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
|
|
- dlfiles="$dlfiles $pic_object"
|
|
+ func_append dlfiles " $pic_object"
|
|
prev=
|
|
continue
|
|
else
|
|
@@ -5062,7 +5928,7 @@ func_mode_link ()
|
|
# CHECK ME: I think I busted this. -Ossama
|
|
if test "$prev" = dlprefiles; then
|
|
# Preload the old-style object.
|
|
- dlprefiles="$dlprefiles $pic_object"
|
|
+ func_append dlprefiles " $pic_object"
|
|
prev=
|
|
fi
|
|
|
|
@@ -5107,24 +5973,25 @@ func_mode_link ()
|
|
|
|
*.$libext)
|
|
# An archive.
|
|
- deplibs="$deplibs $arg"
|
|
- old_deplibs="$old_deplibs $arg"
|
|
+ func_append deplibs " $arg"
|
|
+ func_append old_deplibs " $arg"
|
|
continue
|
|
;;
|
|
|
|
*.la)
|
|
# A libtool-controlled library.
|
|
|
|
+ func_resolve_sysroot "$arg"
|
|
if test "$prev" = dlfiles; then
|
|
# This library was specified with -dlopen.
|
|
- dlfiles="$dlfiles $arg"
|
|
+ func_append dlfiles " $func_resolve_sysroot_result"
|
|
prev=
|
|
elif test "$prev" = dlprefiles; then
|
|
# The library was specified with -dlpreopen.
|
|
- dlprefiles="$dlprefiles $arg"
|
|
+ func_append dlprefiles " $func_resolve_sysroot_result"
|
|
prev=
|
|
else
|
|
- deplibs="$deplibs $arg"
|
|
+ func_append deplibs " $func_resolve_sysroot_result"
|
|
fi
|
|
continue
|
|
;;
|
|
@@ -5149,7 +6016,7 @@ func_mode_link ()
|
|
func_fatal_help "the \`$prevarg' option requires an argument"
|
|
|
|
if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
|
|
- eval "arg=\"$export_dynamic_flag_spec\""
|
|
+ eval arg=\"$export_dynamic_flag_spec\"
|
|
func_append compile_command " $arg"
|
|
func_append finalize_command " $arg"
|
|
fi
|
|
@@ -5166,11 +6033,13 @@ func_mode_link ()
|
|
else
|
|
shlib_search_path=
|
|
fi
|
|
- eval "sys_lib_search_path=\"$sys_lib_search_path_spec\""
|
|
- eval "sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\""
|
|
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
|
|
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
|
|
|
|
func_dirname "$output" "/" ""
|
|
output_objdir="$func_dirname_result$objdir"
|
|
+ func_to_tool_file "$output_objdir/"
|
|
+ tool_output_objdir=$func_to_tool_file_result
|
|
# Create the object directory.
|
|
func_mkdir_p "$output_objdir"
|
|
|
|
@@ -5191,12 +6060,12 @@ func_mode_link ()
|
|
# Find all interdependent deplibs by searching for libraries
|
|
# that are linked more than once (e.g. -la -lb -la)
|
|
for deplib in $deplibs; do
|
|
- if $opt_duplicate_deps ; then
|
|
+ if $opt_preserve_dup_deps ; then
|
|
case "$libs " in
|
|
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
|
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
|
|
esac
|
|
fi
|
|
- libs="$libs $deplib"
|
|
+ func_append libs " $deplib"
|
|
done
|
|
|
|
if test "$linkmode" = lib; then
|
|
@@ -5209,9 +6078,9 @@ func_mode_link ()
|
|
if $opt_duplicate_compiler_generated_deps; then
|
|
for pre_post_dep in $predeps $postdeps; do
|
|
case "$pre_post_deps " in
|
|
- *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
|
|
+ *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
|
|
esac
|
|
- pre_post_deps="$pre_post_deps $pre_post_dep"
|
|
+ func_append pre_post_deps " $pre_post_dep"
|
|
done
|
|
fi
|
|
pre_post_deps=
|
|
@@ -5278,8 +6147,9 @@ func_mode_link ()
|
|
for lib in $dlprefiles; do
|
|
# Ignore non-libtool-libs
|
|
dependency_libs=
|
|
+ func_resolve_sysroot "$lib"
|
|
case $lib in
|
|
- *.la) func_source "$lib" ;;
|
|
+ *.la) func_source "$func_resolve_sysroot_result" ;;
|
|
esac
|
|
|
|
# Collect preopened libtool deplibs, except any this library
|
|
@@ -5289,7 +6159,7 @@ func_mode_link ()
|
|
deplib_base=$func_basename_result
|
|
case " $weak_libs " in
|
|
*" $deplib_base "*) ;;
|
|
- *) deplibs="$deplibs $deplib" ;;
|
|
+ *) func_append deplibs " $deplib" ;;
|
|
esac
|
|
done
|
|
done
|
|
@@ -5310,11 +6180,11 @@ func_mode_link ()
|
|
compile_deplibs="$deplib $compile_deplibs"
|
|
finalize_deplibs="$deplib $finalize_deplibs"
|
|
else
|
|
- compiler_flags="$compiler_flags $deplib"
|
|
+ func_append compiler_flags " $deplib"
|
|
if test "$linkmode" = lib ; then
|
|
case "$new_inherited_linker_flags " in
|
|
*" $deplib "*) ;;
|
|
- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
|
|
+ * ) func_append new_inherited_linker_flags " $deplib" ;;
|
|
esac
|
|
fi
|
|
fi
|
|
@@ -5399,7 +6269,7 @@ func_mode_link ()
|
|
if test "$linkmode" = lib ; then
|
|
case "$new_inherited_linker_flags " in
|
|
*" $deplib "*) ;;
|
|
- * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
|
|
+ * ) func_append new_inherited_linker_flags " $deplib" ;;
|
|
esac
|
|
fi
|
|
fi
|
|
@@ -5412,7 +6282,8 @@ func_mode_link ()
|
|
test "$pass" = conv && continue
|
|
newdependency_libs="$deplib $newdependency_libs"
|
|
func_stripname '-L' '' "$deplib"
|
|
- newlib_search_path="$newlib_search_path $func_stripname_result"
|
|
+ func_resolve_sysroot "$func_stripname_result"
|
|
+ func_append newlib_search_path " $func_resolve_sysroot_result"
|
|
;;
|
|
prog)
|
|
if test "$pass" = conv; then
|
|
@@ -5426,7 +6297,8 @@ func_mode_link ()
|
|
finalize_deplibs="$deplib $finalize_deplibs"
|
|
fi
|
|
func_stripname '-L' '' "$deplib"
|
|
- newlib_search_path="$newlib_search_path $func_stripname_result"
|
|
+ func_resolve_sysroot "$func_stripname_result"
|
|
+ func_append newlib_search_path " $func_resolve_sysroot_result"
|
|
;;
|
|
*)
|
|
func_warning "\`-L' is ignored for archives/objects"
|
|
@@ -5437,17 +6309,21 @@ func_mode_link ()
|
|
-R*)
|
|
if test "$pass" = link; then
|
|
func_stripname '-R' '' "$deplib"
|
|
- dir=$func_stripname_result
|
|
+ func_resolve_sysroot "$func_stripname_result"
|
|
+ dir=$func_resolve_sysroot_result
|
|
# Make sure the xrpath contains only unique directories.
|
|
case "$xrpath " in
|
|
*" $dir "*) ;;
|
|
- *) xrpath="$xrpath $dir" ;;
|
|
+ *) func_append xrpath " $dir" ;;
|
|
esac
|
|
fi
|
|
deplibs="$deplib $deplibs"
|
|
continue
|
|
;;
|
|
- *.la) lib="$deplib" ;;
|
|
+ *.la)
|
|
+ func_resolve_sysroot "$deplib"
|
|
+ lib=$func_resolve_sysroot_result
|
|
+ ;;
|
|
*.$libext)
|
|
if test "$pass" = conv; then
|
|
deplibs="$deplib $deplibs"
|
|
@@ -5510,11 +6386,11 @@ func_mode_link ()
|
|
if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
|
|
# If there is no dlopen support or we're linking statically,
|
|
# we need to preload.
|
|
- newdlprefiles="$newdlprefiles $deplib"
|
|
+ func_append newdlprefiles " $deplib"
|
|
compile_deplibs="$deplib $compile_deplibs"
|
|
finalize_deplibs="$deplib $finalize_deplibs"
|
|
else
|
|
- newdlfiles="$newdlfiles $deplib"
|
|
+ func_append newdlfiles " $deplib"
|
|
fi
|
|
fi
|
|
continue
|
|
@@ -5560,7 +6436,7 @@ func_mode_link ()
|
|
for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
|
|
case " $new_inherited_linker_flags " in
|
|
*" $tmp_inherited_linker_flag "*) ;;
|
|
- *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
|
|
+ *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
|
|
esac
|
|
done
|
|
fi
|
|
@@ -5568,8 +6444,8 @@ func_mode_link ()
|
|
if test "$linkmode,$pass" = "lib,link" ||
|
|
test "$linkmode,$pass" = "prog,scan" ||
|
|
{ test "$linkmode" != prog && test "$linkmode" != lib; }; then
|
|
- test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
|
|
- test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
|
|
+ test -n "$dlopen" && func_append dlfiles " $dlopen"
|
|
+ test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
|
|
fi
|
|
|
|
if test "$pass" = conv; then
|
|
@@ -5580,20 +6456,20 @@ func_mode_link ()
|
|
func_fatal_error "cannot find name of link library for \`$lib'"
|
|
fi
|
|
# It is a libtool convenience library, so add in its objects.
|
|
- convenience="$convenience $ladir/$objdir/$old_library"
|
|
- old_convenience="$old_convenience $ladir/$objdir/$old_library"
|
|
+ func_append convenience " $ladir/$objdir/$old_library"
|
|
+ func_append old_convenience " $ladir/$objdir/$old_library"
|
|
elif test "$linkmode" != prog && test "$linkmode" != lib; then
|
|
func_fatal_error "\`$lib' is not a convenience library"
|
|
fi
|
|
tmp_libs=
|
|
for deplib in $dependency_libs; do
|
|
deplibs="$deplib $deplibs"
|
|
- if $opt_duplicate_deps ; then
|
|
+ if $opt_preserve_dup_deps ; then
|
|
case "$tmp_libs " in
|
|
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
|
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
|
|
esac
|
|
fi
|
|
- tmp_libs="$tmp_libs $deplib"
|
|
+ func_append tmp_libs " $deplib"
|
|
done
|
|
continue
|
|
fi # $pass = conv
|
|
@@ -5601,9 +6477,15 @@ func_mode_link ()
|
|
|
|
# Get the name of the library we link against.
|
|
linklib=
|
|
- for l in $old_library $library_names; do
|
|
- linklib="$l"
|
|
- done
|
|
+ if test -n "$old_library" &&
|
|
+ { test "$prefer_static_libs" = yes ||
|
|
+ test "$prefer_static_libs,$installed" = "built,no"; }; then
|
|
+ linklib=$old_library
|
|
+ else
|
|
+ for l in $old_library $library_names; do
|
|
+ linklib="$l"
|
|
+ done
|
|
+ fi
|
|
if test -z "$linklib"; then
|
|
func_fatal_error "cannot find name of link library for \`$lib'"
|
|
fi
|
|
@@ -5620,9 +6502,9 @@ func_mode_link ()
|
|
# statically, we need to preload. We also need to preload any
|
|
# dependent libraries so libltdl's deplib preloader doesn't
|
|
# bomb out in the load deplibs phase.
|
|
- dlprefiles="$dlprefiles $lib $dependency_libs"
|
|
+ func_append dlprefiles " $lib $dependency_libs"
|
|
else
|
|
- newdlfiles="$newdlfiles $lib"
|
|
+ func_append newdlfiles " $lib"
|
|
fi
|
|
continue
|
|
fi # $pass = dlopen
|
|
@@ -5644,14 +6526,14 @@ func_mode_link ()
|
|
|
|
# Find the relevant object directory and library name.
|
|
if test "X$installed" = Xyes; then
|
|
- if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
|
|
+ if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
|
|
func_warning "library \`$lib' was moved."
|
|
dir="$ladir"
|
|
absdir="$abs_ladir"
|
|
libdir="$abs_ladir"
|
|
else
|
|
- dir="$libdir"
|
|
- absdir="$libdir"
|
|
+ dir="$lt_sysroot$libdir"
|
|
+ absdir="$lt_sysroot$libdir"
|
|
fi
|
|
test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
|
|
else
|
|
@@ -5659,12 +6541,12 @@ func_mode_link ()
|
|
dir="$ladir"
|
|
absdir="$abs_ladir"
|
|
# Remove this search path later
|
|
- notinst_path="$notinst_path $abs_ladir"
|
|
+ func_append notinst_path " $abs_ladir"
|
|
else
|
|
dir="$ladir/$objdir"
|
|
absdir="$abs_ladir/$objdir"
|
|
# Remove this search path later
|
|
- notinst_path="$notinst_path $abs_ladir"
|
|
+ func_append notinst_path " $abs_ladir"
|
|
fi
|
|
fi # $installed = yes
|
|
func_stripname 'lib' '.la' "$laname"
|
|
@@ -5675,20 +6557,46 @@ func_mode_link ()
|
|
if test -z "$libdir" && test "$linkmode" = prog; then
|
|
func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
|
|
fi
|
|
- # Prefer using a static library (so that no silly _DYNAMIC symbols
|
|
- # are required to link).
|
|
- if test -n "$old_library"; then
|
|
- newdlprefiles="$newdlprefiles $dir/$old_library"
|
|
- # Keep a list of preopened convenience libraries to check
|
|
- # that they are being used correctly in the link pass.
|
|
- test -z "$libdir" && \
|
|
- dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
|
|
- # Otherwise, use the dlname, so that lt_dlopen finds it.
|
|
- elif test -n "$dlname"; then
|
|
- newdlprefiles="$newdlprefiles $dir/$dlname"
|
|
- else
|
|
- newdlprefiles="$newdlprefiles $dir/$linklib"
|
|
- fi
|
|
+ case "$host" in
|
|
+ # special handling for platforms with PE-DLLs.
|
|
+ *cygwin* | *mingw* | *cegcc* )
|
|
+ # Linker will automatically link against shared library if both
|
|
+ # static and shared are present. Therefore, ensure we extract
|
|
+ # symbols from the import library if a shared library is present
|
|
+ # (otherwise, the dlopen module name will be incorrect). We do
|
|
+ # this by putting the import library name into $newdlprefiles.
|
|
+ # We recover the dlopen module name by 'saving' the la file
|
|
+ # name in a special purpose variable, and (later) extracting the
|
|
+ # dlname from the la file.
|
|
+ if test -n "$dlname"; then
|
|
+ func_tr_sh "$dir/$linklib"
|
|
+ eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
|
|
+ func_append newdlprefiles " $dir/$linklib"
|
|
+ else
|
|
+ func_append newdlprefiles " $dir/$old_library"
|
|
+ # Keep a list of preopened convenience libraries to check
|
|
+ # that they are being used correctly in the link pass.
|
|
+ test -z "$libdir" && \
|
|
+ func_append dlpreconveniencelibs " $dir/$old_library"
|
|
+ fi
|
|
+ ;;
|
|
+ * )
|
|
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
|
|
+ # are required to link).
|
|
+ if test -n "$old_library"; then
|
|
+ func_append newdlprefiles " $dir/$old_library"
|
|
+ # Keep a list of preopened convenience libraries to check
|
|
+ # that they are being used correctly in the link pass.
|
|
+ test -z "$libdir" && \
|
|
+ func_append dlpreconveniencelibs " $dir/$old_library"
|
|
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
|
|
+ elif test -n "$dlname"; then
|
|
+ func_append newdlprefiles " $dir/$dlname"
|
|
+ else
|
|
+ func_append newdlprefiles " $dir/$linklib"
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
fi # $pass = dlpreopen
|
|
|
|
if test -z "$libdir"; then
|
|
@@ -5706,7 +6614,7 @@ func_mode_link ()
|
|
|
|
|
|
if test "$linkmode" = prog && test "$pass" != link; then
|
|
- newlib_search_path="$newlib_search_path $ladir"
|
|
+ func_append newlib_search_path " $ladir"
|
|
deplibs="$lib $deplibs"
|
|
|
|
linkalldeplibs=no
|
|
@@ -5719,7 +6627,8 @@ func_mode_link ()
|
|
for deplib in $dependency_libs; do
|
|
case $deplib in
|
|
-L*) func_stripname '-L' '' "$deplib"
|
|
- newlib_search_path="$newlib_search_path $func_stripname_result"
|
|
+ func_resolve_sysroot "$func_stripname_result"
|
|
+ func_append newlib_search_path " $func_resolve_sysroot_result"
|
|
;;
|
|
esac
|
|
# Need to link against all dependency_libs?
|
|
@@ -5730,12 +6639,12 @@ func_mode_link ()
|
|
# or/and link against static libraries
|
|
newdependency_libs="$deplib $newdependency_libs"
|
|
fi
|
|
- if $opt_duplicate_deps ; then
|
|
+ if $opt_preserve_dup_deps ; then
|
|
case "$tmp_libs " in
|
|
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
|
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
|
|
esac
|
|
fi
|
|
- tmp_libs="$tmp_libs $deplib"
|
|
+ func_append tmp_libs " $deplib"
|
|
done # for deplib
|
|
continue
|
|
fi # $linkmode = prog...
|
|
@@ -5750,7 +6659,7 @@ func_mode_link ()
|
|
# Make sure the rpath contains only unique directories.
|
|
case "$temp_rpath:" in
|
|
*"$absdir:"*) ;;
|
|
- *) temp_rpath="$temp_rpath$absdir:" ;;
|
|
+ *) func_append temp_rpath "$absdir:" ;;
|
|
esac
|
|
fi
|
|
|
|
@@ -5762,7 +6671,7 @@ func_mode_link ()
|
|
*)
|
|
case "$compile_rpath " in
|
|
*" $absdir "*) ;;
|
|
- *) compile_rpath="$compile_rpath $absdir"
|
|
+ *) func_append compile_rpath " $absdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -5771,7 +6680,7 @@ func_mode_link ()
|
|
*)
|
|
case "$finalize_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) finalize_rpath="$finalize_rpath $libdir"
|
|
+ *) func_append finalize_rpath " $libdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -5796,12 +6705,12 @@ func_mode_link ()
|
|
case $host in
|
|
*cygwin* | *mingw* | *cegcc*)
|
|
# No point in relinking DLLs because paths are not encoded
|
|
- notinst_deplibs="$notinst_deplibs $lib"
|
|
+ func_append notinst_deplibs " $lib"
|
|
need_relink=no
|
|
;;
|
|
*)
|
|
if test "$installed" = no; then
|
|
- notinst_deplibs="$notinst_deplibs $lib"
|
|
+ func_append notinst_deplibs " $lib"
|
|
need_relink=yes
|
|
fi
|
|
;;
|
|
@@ -5836,7 +6745,7 @@ func_mode_link ()
|
|
*)
|
|
case "$compile_rpath " in
|
|
*" $absdir "*) ;;
|
|
- *) compile_rpath="$compile_rpath $absdir"
|
|
+ *) func_append compile_rpath " $absdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -5845,7 +6754,7 @@ func_mode_link ()
|
|
*)
|
|
case "$finalize_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) finalize_rpath="$finalize_rpath $libdir"
|
|
+ *) func_append finalize_rpath " $libdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -5857,7 +6766,7 @@ func_mode_link ()
|
|
shift
|
|
realname="$1"
|
|
shift
|
|
- eval "libname=\"$libname_spec\""
|
|
+ libname=`eval "\\$ECHO \"$libname_spec\""`
|
|
# use dlname if we got it. it's perfectly good, no?
|
|
if test -n "$dlname"; then
|
|
soname="$dlname"
|
|
@@ -5870,7 +6779,7 @@ func_mode_link ()
|
|
versuffix="-$major"
|
|
;;
|
|
esac
|
|
- eval "soname=\"$soname_spec\""
|
|
+ eval soname=\"$soname_spec\"
|
|
else
|
|
soname="$realname"
|
|
fi
|
|
@@ -5899,7 +6808,7 @@ func_mode_link ()
|
|
linklib=$newlib
|
|
fi # test -n "$old_archive_from_expsyms_cmds"
|
|
|
|
- if test "$linkmode" = prog || test "$mode" != relink; then
|
|
+ if test "$linkmode" = prog || test "$opt_mode" != relink; then
|
|
add_shlibpath=
|
|
add_dir=
|
|
add=
|
|
@@ -5955,7 +6864,7 @@ func_mode_link ()
|
|
if test -n "$inst_prefix_dir"; then
|
|
case $libdir in
|
|
[\\/]*)
|
|
- add_dir="$add_dir -L$inst_prefix_dir$libdir"
|
|
+ func_append add_dir " -L$inst_prefix_dir$libdir"
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -5977,7 +6886,7 @@ func_mode_link ()
|
|
if test -n "$add_shlibpath"; then
|
|
case :$compile_shlibpath: in
|
|
*":$add_shlibpath:"*) ;;
|
|
- *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
|
|
+ *) func_append compile_shlibpath "$add_shlibpath:" ;;
|
|
esac
|
|
fi
|
|
if test "$linkmode" = prog; then
|
|
@@ -5991,13 +6900,13 @@ func_mode_link ()
|
|
test "$hardcode_shlibpath_var" = yes; then
|
|
case :$finalize_shlibpath: in
|
|
*":$libdir:"*) ;;
|
|
- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
|
|
+ *) func_append finalize_shlibpath "$libdir:" ;;
|
|
esac
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
- if test "$linkmode" = prog || test "$mode" = relink; then
|
|
+ if test "$linkmode" = prog || test "$opt_mode" = relink; then
|
|
add_shlibpath=
|
|
add_dir=
|
|
add=
|
|
@@ -6011,7 +6920,7 @@ func_mode_link ()
|
|
elif test "$hardcode_shlibpath_var" = yes; then
|
|
case :$finalize_shlibpath: in
|
|
*":$libdir:"*) ;;
|
|
- *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
|
|
+ *) func_append finalize_shlibpath "$libdir:" ;;
|
|
esac
|
|
add="-l$name"
|
|
elif test "$hardcode_automatic" = yes; then
|
|
@@ -6023,12 +6932,12 @@ func_mode_link ()
|
|
fi
|
|
else
|
|
# We cannot seem to hardcode it, guess we'll fake it.
|
|
- add_dir="-L$libdir"
|
|
+ add_dir="-L$lt_sysroot$libdir"
|
|
# Try looking first in the location we're being installed to.
|
|
if test -n "$inst_prefix_dir"; then
|
|
case $libdir in
|
|
[\\/]*)
|
|
- add_dir="$add_dir -L$inst_prefix_dir$libdir"
|
|
+ func_append add_dir " -L$inst_prefix_dir$libdir"
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -6105,27 +7014,33 @@ func_mode_link ()
|
|
temp_xrpath=$func_stripname_result
|
|
case " $xrpath " in
|
|
*" $temp_xrpath "*) ;;
|
|
- *) xrpath="$xrpath $temp_xrpath";;
|
|
+ *) func_append xrpath " $temp_xrpath";;
|
|
esac;;
|
|
- *) temp_deplibs="$temp_deplibs $libdir";;
|
|
+ *) func_append temp_deplibs " $libdir";;
|
|
esac
|
|
done
|
|
dependency_libs="$temp_deplibs"
|
|
fi
|
|
|
|
- newlib_search_path="$newlib_search_path $absdir"
|
|
+ func_append newlib_search_path " $absdir"
|
|
# Link against this library
|
|
test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
|
|
# ... and its dependency_libs
|
|
tmp_libs=
|
|
for deplib in $dependency_libs; do
|
|
newdependency_libs="$deplib $newdependency_libs"
|
|
- if $opt_duplicate_deps ; then
|
|
+ case $deplib in
|
|
+ -L*) func_stripname '-L' '' "$deplib"
|
|
+ func_resolve_sysroot "$func_stripname_result";;
|
|
+ *) func_resolve_sysroot "$deplib" ;;
|
|
+ esac
|
|
+ if $opt_preserve_dup_deps ; then
|
|
case "$tmp_libs " in
|
|
- *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
|
|
+ *" $func_resolve_sysroot_result "*)
|
|
+ func_append specialdeplibs " $func_resolve_sysroot_result" ;;
|
|
esac
|
|
fi
|
|
- tmp_libs="$tmp_libs $deplib"
|
|
+ func_append tmp_libs " $func_resolve_sysroot_result"
|
|
done
|
|
|
|
if test "$link_all_deplibs" != no; then
|
|
@@ -6135,8 +7050,10 @@ func_mode_link ()
|
|
case $deplib in
|
|
-L*) path="$deplib" ;;
|
|
*.la)
|
|
+ func_resolve_sysroot "$deplib"
|
|
+ deplib=$func_resolve_sysroot_result
|
|
func_dirname "$deplib" "" "."
|
|
- dir="$func_dirname_result"
|
|
+ dir=$func_dirname_result
|
|
# We need an absolute path.
|
|
case $dir in
|
|
[\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
|
|
@@ -6152,7 +7069,7 @@ func_mode_link ()
|
|
case $host in
|
|
*-*-darwin*)
|
|
depdepl=
|
|
- deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
|
|
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
|
|
if test -n "$deplibrary_names" ; then
|
|
for tmp in $deplibrary_names ; do
|
|
depdepl=$tmp
|
|
@@ -6163,8 +7080,8 @@ func_mode_link ()
|
|
if test -z "$darwin_install_name"; then
|
|
darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
|
|
fi
|
|
- compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
|
|
- linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
|
|
+ func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
|
|
+ func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
|
|
path=
|
|
fi
|
|
fi
|
|
@@ -6174,7 +7091,7 @@ func_mode_link ()
|
|
;;
|
|
esac
|
|
else
|
|
- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
|
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
|
test -z "$libdir" && \
|
|
func_fatal_error "\`$deplib' is not a valid libtool archive"
|
|
test "$absdir" != "$libdir" && \
|
|
@@ -6214,7 +7131,7 @@ func_mode_link ()
|
|
for dir in $newlib_search_path; do
|
|
case "$lib_search_path " in
|
|
*" $dir "*) ;;
|
|
- *) lib_search_path="$lib_search_path $dir" ;;
|
|
+ *) func_append lib_search_path " $dir" ;;
|
|
esac
|
|
done
|
|
newlib_search_path=
|
|
@@ -6227,7 +7144,7 @@ func_mode_link ()
|
|
fi
|
|
for var in $vars dependency_libs; do
|
|
# Add libraries to $var in reverse order
|
|
- eval tmp_libs=\$$var
|
|
+ eval tmp_libs=\"\$$var\"
|
|
new_libs=
|
|
for deplib in $tmp_libs; do
|
|
# FIXME: Pedantically, this is the right thing to do, so
|
|
@@ -6272,13 +7189,13 @@ func_mode_link ()
|
|
-L*)
|
|
case " $tmp_libs " in
|
|
*" $deplib "*) ;;
|
|
- *) tmp_libs="$tmp_libs $deplib" ;;
|
|
+ *) func_append tmp_libs " $deplib" ;;
|
|
esac
|
|
;;
|
|
- *) tmp_libs="$tmp_libs $deplib" ;;
|
|
+ *) func_append tmp_libs " $deplib" ;;
|
|
esac
|
|
done
|
|
- eval $var=\$tmp_libs
|
|
+ eval $var=\"$tmp_libs\"
|
|
done # for var
|
|
fi
|
|
# Last step: remove runtime libs from dependency_libs
|
|
@@ -6291,7 +7208,7 @@ func_mode_link ()
|
|
;;
|
|
esac
|
|
if test -n "$i" ; then
|
|
- tmp_libs="$tmp_libs $i"
|
|
+ func_append tmp_libs " $i"
|
|
fi
|
|
done
|
|
dependency_libs=$tmp_libs
|
|
@@ -6332,7 +7249,7 @@ func_mode_link ()
|
|
# Now set the variables for building old libraries.
|
|
build_libtool_libs=no
|
|
oldlibs="$output"
|
|
- objs="$objs$old_deplibs"
|
|
+ func_append objs "$old_deplibs"
|
|
;;
|
|
|
|
lib)
|
|
@@ -6341,8 +7258,8 @@ func_mode_link ()
|
|
lib*)
|
|
func_stripname 'lib' '.la' "$outputname"
|
|
name=$func_stripname_result
|
|
- eval "shared_ext=\"$shrext_cmds\""
|
|
- eval "libname=\"$libname_spec\""
|
|
+ eval shared_ext=\"$shrext_cmds\"
|
|
+ eval libname=\"$libname_spec\"
|
|
;;
|
|
*)
|
|
test "$module" = no && \
|
|
@@ -6352,8 +7269,8 @@ func_mode_link ()
|
|
# Add the "lib" prefix for modules if required
|
|
func_stripname '' '.la' "$outputname"
|
|
name=$func_stripname_result
|
|
- eval "shared_ext=\"$shrext_cmds\""
|
|
- eval "libname=\"$libname_spec\""
|
|
+ eval shared_ext=\"$shrext_cmds\"
|
|
+ eval libname=\"$libname_spec\"
|
|
else
|
|
func_stripname '' '.la' "$outputname"
|
|
libname=$func_stripname_result
|
|
@@ -6368,7 +7285,7 @@ func_mode_link ()
|
|
echo
|
|
$ECHO "*** Warning: Linking the shared library $output against the non-libtool"
|
|
$ECHO "*** objects $objs is not portable!"
|
|
- libobjs="$libobjs $objs"
|
|
+ func_append libobjs " $objs"
|
|
fi
|
|
fi
|
|
|
|
@@ -6566,7 +7483,7 @@ func_mode_link ()
|
|
done
|
|
|
|
# Make executables depend on our current version.
|
|
- verstring="$verstring:${current}.0"
|
|
+ func_append verstring ":${current}.0"
|
|
;;
|
|
|
|
qnx)
|
|
@@ -6634,10 +7551,10 @@ func_mode_link ()
|
|
fi
|
|
|
|
func_generate_dlsyms "$libname" "$libname" "yes"
|
|
- libobjs="$libobjs $symfileobj"
|
|
+ func_append libobjs " $symfileobj"
|
|
test "X$libobjs" = "X " && libobjs=
|
|
|
|
- if test "$mode" != relink; then
|
|
+ if test "$opt_mode" != relink; then
|
|
# Remove our outputs, but don't remove object files since they
|
|
# may have been created when compiling PIC objects.
|
|
removelist=
|
|
@@ -6653,7 +7570,7 @@ func_mode_link ()
|
|
continue
|
|
fi
|
|
fi
|
|
- removelist="$removelist $p"
|
|
+ func_append removelist " $p"
|
|
;;
|
|
*) ;;
|
|
esac
|
|
@@ -6664,7 +7581,7 @@ func_mode_link ()
|
|
|
|
# Now set the variables for building old libraries.
|
|
if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
|
|
- oldlibs="$oldlibs $output_objdir/$libname.$libext"
|
|
+ func_append oldlibs " $output_objdir/$libname.$libext"
|
|
|
|
# Transform .lo files to .o files.
|
|
oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
|
|
@@ -6681,10 +7598,11 @@ func_mode_link ()
|
|
# If the user specified any rpath flags, then add them.
|
|
temp_xrpath=
|
|
for libdir in $xrpath; do
|
|
- temp_xrpath="$temp_xrpath -R$libdir"
|
|
+ func_replace_sysroot "$libdir"
|
|
+ func_append temp_xrpath " -R$func_replace_sysroot_result"
|
|
case "$finalize_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) finalize_rpath="$finalize_rpath $libdir" ;;
|
|
+ *) func_append finalize_rpath " $libdir" ;;
|
|
esac
|
|
done
|
|
if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
|
|
@@ -6698,7 +7616,7 @@ func_mode_link ()
|
|
for lib in $old_dlfiles; do
|
|
case " $dlprefiles $dlfiles " in
|
|
*" $lib "*) ;;
|
|
- *) dlfiles="$dlfiles $lib" ;;
|
|
+ *) func_append dlfiles " $lib" ;;
|
|
esac
|
|
done
|
|
|
|
@@ -6708,7 +7626,7 @@ func_mode_link ()
|
|
for lib in $old_dlprefiles; do
|
|
case "$dlprefiles " in
|
|
*" $lib "*) ;;
|
|
- *) dlprefiles="$dlprefiles $lib" ;;
|
|
+ *) func_append dlprefiles " $lib" ;;
|
|
esac
|
|
done
|
|
|
|
@@ -6720,7 +7638,7 @@ func_mode_link ()
|
|
;;
|
|
*-*-rhapsody* | *-*-darwin1.[012])
|
|
# Rhapsody C library is in the System framework
|
|
- deplibs="$deplibs System.ltframework"
|
|
+ func_append deplibs " System.ltframework"
|
|
;;
|
|
*-*-netbsd*)
|
|
# Don't link with libc until the a.out ld.so is fixed.
|
|
@@ -6737,7 +7655,7 @@ func_mode_link ()
|
|
*)
|
|
# Add libc to deplibs on all other systems if necessary.
|
|
if test "$build_libtool_need_lc" = "yes"; then
|
|
- deplibs="$deplibs -lc"
|
|
+ func_append deplibs " -lc"
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -6786,18 +7704,18 @@ EOF
|
|
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
case " $predeps $postdeps " in
|
|
*" $i "*)
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
i=""
|
|
;;
|
|
esac
|
|
fi
|
|
if test -n "$i" ; then
|
|
- eval "libname=\"$libname_spec\""
|
|
- eval "deplib_matches=\"$library_names_spec\""
|
|
+ libname=`eval "\\$ECHO \"$libname_spec\""`
|
|
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
|
|
set dummy $deplib_matches; shift
|
|
deplib_match=$1
|
|
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
else
|
|
droppeddeps=yes
|
|
echo
|
|
@@ -6811,7 +7729,7 @@ EOF
|
|
fi
|
|
;;
|
|
*)
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
;;
|
|
esac
|
|
done
|
|
@@ -6829,18 +7747,18 @@ EOF
|
|
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
case " $predeps $postdeps " in
|
|
*" $i "*)
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
i=""
|
|
;;
|
|
esac
|
|
fi
|
|
if test -n "$i" ; then
|
|
- eval "libname=\"$libname_spec\""
|
|
- eval "deplib_matches=\"$library_names_spec\""
|
|
+ libname=`eval "\\$ECHO \"$libname_spec\""`
|
|
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
|
|
set dummy $deplib_matches; shift
|
|
deplib_match=$1
|
|
if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
else
|
|
droppeddeps=yes
|
|
echo
|
|
@@ -6862,7 +7780,7 @@ EOF
|
|
fi
|
|
;;
|
|
*)
|
|
- newdeplibs="$newdeplibs $i"
|
|
+ func_append newdeplibs " $i"
|
|
;;
|
|
esac
|
|
done
|
|
@@ -6879,15 +7797,27 @@ EOF
|
|
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
case " $predeps $postdeps " in
|
|
*" $a_deplib "*)
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
a_deplib=""
|
|
;;
|
|
esac
|
|
fi
|
|
if test -n "$a_deplib" ; then
|
|
- eval "libname=\"$libname_spec\""
|
|
+ libname=`eval "\\$ECHO \"$libname_spec\""`
|
|
+ if test -n "$file_magic_glob"; then
|
|
+ libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
|
|
+ else
|
|
+ libnameglob=$libname
|
|
+ fi
|
|
+ test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
|
|
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
|
|
- potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
|
|
+ if test "$want_nocaseglob" = yes; then
|
|
+ shopt -s nocaseglob
|
|
+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
|
|
+ $nocaseglob
|
|
+ else
|
|
+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
|
|
+ fi
|
|
for potent_lib in $potential_libs; do
|
|
# Follow soft links.
|
|
if ls -lLd "$potent_lib" 2>/dev/null |
|
|
@@ -6907,10 +7837,10 @@ EOF
|
|
*) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
|
|
esac
|
|
done
|
|
- if eval "$file_magic_cmd \"\$potlib\"" 2>/dev/null |
|
|
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
|
|
$SED -e 10q |
|
|
$EGREP "$file_magic_regex" > /dev/null; then
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
a_deplib=""
|
|
break 2
|
|
fi
|
|
@@ -6935,7 +7865,7 @@ EOF
|
|
;;
|
|
*)
|
|
# Add a -L argument.
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
;;
|
|
esac
|
|
done # Gone through all deplibs.
|
|
@@ -6951,20 +7881,20 @@ EOF
|
|
if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
|
|
case " $predeps $postdeps " in
|
|
*" $a_deplib "*)
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
a_deplib=""
|
|
;;
|
|
esac
|
|
fi
|
|
if test -n "$a_deplib" ; then
|
|
- eval "libname=\"$libname_spec\""
|
|
+ libname=`eval "\\$ECHO \"$libname_spec\""`
|
|
for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
|
|
potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
|
|
for potent_lib in $potential_libs; do
|
|
potlib="$potent_lib" # see symlink-check above in file_magic test
|
|
if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
|
|
$EGREP "$match_pattern_regex" > /dev/null; then
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
a_deplib=""
|
|
break 2
|
|
fi
|
|
@@ -6989,7 +7919,7 @@ EOF
|
|
;;
|
|
*)
|
|
# Add a -L argument.
|
|
- newdeplibs="$newdeplibs $a_deplib"
|
|
+ func_append newdeplibs " $a_deplib"
|
|
;;
|
|
esac
|
|
done # Gone through all deplibs.
|
|
@@ -7093,7 +8023,7 @@ EOF
|
|
*)
|
|
case " $deplibs " in
|
|
*" -L$path/$objdir "*)
|
|
- new_libs="$new_libs -L$path/$objdir" ;;
|
|
+ func_append new_libs " -L$path/$objdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -7103,10 +8033,10 @@ EOF
|
|
-L*)
|
|
case " $new_libs " in
|
|
*" $deplib "*) ;;
|
|
- *) new_libs="$new_libs $deplib" ;;
|
|
+ *) func_append new_libs " $deplib" ;;
|
|
esac
|
|
;;
|
|
- *) new_libs="$new_libs $deplib" ;;
|
|
+ *) func_append new_libs " $deplib" ;;
|
|
esac
|
|
done
|
|
deplibs="$new_libs"
|
|
@@ -7123,10 +8053,12 @@ EOF
|
|
hardcode_libdirs=
|
|
dep_rpath=
|
|
rpath="$finalize_rpath"
|
|
- test "$mode" != relink && rpath="$compile_rpath$rpath"
|
|
+ test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
|
|
for libdir in $rpath; do
|
|
if test -n "$hardcode_libdir_flag_spec"; then
|
|
if test -n "$hardcode_libdir_separator"; then
|
|
+ func_replace_sysroot "$libdir"
|
|
+ libdir=$func_replace_sysroot_result
|
|
if test -z "$hardcode_libdirs"; then
|
|
hardcode_libdirs="$libdir"
|
|
else
|
|
@@ -7135,18 +8067,18 @@ EOF
|
|
*"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
|
|
;;
|
|
*)
|
|
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
|
|
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
|
|
;;
|
|
esac
|
|
fi
|
|
else
|
|
- eval "flag=\"$hardcode_libdir_flag_spec\""
|
|
- dep_rpath="$dep_rpath $flag"
|
|
+ eval flag=\"$hardcode_libdir_flag_spec\"
|
|
+ func_append dep_rpath " $flag"
|
|
fi
|
|
elif test -n "$runpath_var"; then
|
|
case "$perm_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) perm_rpath="$perm_rpath $libdir" ;;
|
|
+ *) func_apped perm_rpath " $libdir" ;;
|
|
esac
|
|
fi
|
|
done
|
|
@@ -7155,40 +8087,38 @@ EOF
|
|
test -n "$hardcode_libdirs"; then
|
|
libdir="$hardcode_libdirs"
|
|
if test -n "$hardcode_libdir_flag_spec_ld"; then
|
|
- eval "dep_rpath=\"$hardcode_libdir_flag_spec_ld\""
|
|
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
|
|
else
|
|
- eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
|
|
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
|
|
fi
|
|
fi
|
|
if test -n "$runpath_var" && test -n "$perm_rpath"; then
|
|
# We should set the runpath_var.
|
|
rpath=
|
|
for dir in $perm_rpath; do
|
|
- rpath="$rpath$dir:"
|
|
+ func_append rpath "$dir:"
|
|
done
|
|
- eval $runpath_var=\$rpath\$$runpath_var
|
|
- export $runpath_var
|
|
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
|
|
fi
|
|
test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
|
|
fi
|
|
|
|
shlibpath="$finalize_shlibpath"
|
|
- test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
|
|
+ test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
|
|
if test -n "$shlibpath"; then
|
|
- eval $shlibpath_var=\$shlibpath\$$shlibpath_var
|
|
- export $shlibpath_var
|
|
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
|
|
fi
|
|
|
|
# Get the real and link names of the library.
|
|
- eval "shared_ext=\"$shrext_cmds\""
|
|
- eval "library_names=\"$library_names_spec\""
|
|
+ eval shared_ext=\"$shrext_cmds\"
|
|
+ eval library_names=\"$library_names_spec\"
|
|
set dummy $library_names
|
|
shift
|
|
realname="$1"
|
|
shift
|
|
|
|
if test -n "$soname_spec"; then
|
|
- eval "soname=\"$soname_spec\""
|
|
+ eval soname=\"$soname_spec\"
|
|
else
|
|
soname="$realname"
|
|
fi
|
|
@@ -7200,7 +8130,7 @@ EOF
|
|
linknames=
|
|
for link
|
|
do
|
|
- linknames="$linknames $link"
|
|
+ func_append linknames " $link"
|
|
done
|
|
|
|
# Use standard objects if they are pic
|
|
@@ -7211,7 +8141,7 @@ EOF
|
|
if test -n "$export_symbols" && test -n "$include_expsyms"; then
|
|
$opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
|
|
export_symbols="$output_objdir/$libname.uexp"
|
|
- delfiles="$delfiles $export_symbols"
|
|
+ func_append delfiles " $export_symbols"
|
|
fi
|
|
|
|
orig_export_symbols=
|
|
@@ -7242,13 +8172,45 @@ EOF
|
|
$opt_dry_run || $RM $export_symbols
|
|
cmds=$export_symbols_cmds
|
|
save_ifs="$IFS"; IFS='~'
|
|
- for cmd in $cmds; do
|
|
+ for cmd1 in $cmds; do
|
|
IFS="$save_ifs"
|
|
- eval "cmd=\"$cmd\""
|
|
- func_len " $cmd"
|
|
- len=$func_len_result
|
|
- if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
|
|
+ # Take the normal branch if the nm_file_list_spec branch
|
|
+ # doesn't work or if tool conversion is not needed.
|
|
+ case $nm_file_list_spec~$to_tool_file_cmd in
|
|
+ *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
|
|
+ try_normal_branch=yes
|
|
+ eval cmd=\"$cmd1\"
|
|
+ func_len " $cmd"
|
|
+ len=$func_len_result
|
|
+ ;;
|
|
+ *)
|
|
+ try_normal_branch=no
|
|
+ ;;
|
|
+ esac
|
|
+ if test "$try_normal_branch" = yes \
|
|
+ && { test "$len" -lt "$max_cmd_len" \
|
|
+ || test "$max_cmd_len" -le -1; }
|
|
+ then
|
|
+ func_show_eval "$cmd" 'exit $?'
|
|
+ skipped_export=false
|
|
+ elif test -n "$nm_file_list_spec"; then
|
|
+ func_basename "$output"
|
|
+ output_la=$func_basename_result
|
|
+ save_libobjs=$libobjs
|
|
+ save_output=$output
|
|
+ output=${output_objdir}/${output_la}.nm
|
|
+ func_to_tool_file "$output"
|
|
+ libobjs=$nm_file_list_spec$func_to_tool_file_result
|
|
+ func_append delfiles " $output"
|
|
+ func_verbose "creating $NM input file list: $output"
|
|
+ for obj in $save_libobjs; do
|
|
+ func_to_tool_file "$obj"
|
|
+ $ECHO "$func_to_tool_file_result"
|
|
+ done > "$output"
|
|
+ eval cmd=\"$cmd1\"
|
|
func_show_eval "$cmd" 'exit $?'
|
|
+ output=$save_output
|
|
+ libobjs=$save_libobjs
|
|
skipped_export=false
|
|
else
|
|
# The command line is too long to execute in one step.
|
|
@@ -7270,7 +8232,7 @@ EOF
|
|
if test -n "$export_symbols" && test -n "$include_expsyms"; then
|
|
tmp_export_symbols="$export_symbols"
|
|
test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
|
|
- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
|
|
+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
|
|
fi
|
|
|
|
if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
|
|
@@ -7282,7 +8244,7 @@ EOF
|
|
# global variables. join(1) would be nice here, but unfortunately
|
|
# isn't a blessed tool.
|
|
$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
|
|
- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
|
|
+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
|
|
export_symbols=$output_objdir/$libname.def
|
|
$opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
|
|
fi
|
|
@@ -7292,7 +8254,7 @@ EOF
|
|
case " $convenience " in
|
|
*" $test_deplib "*) ;;
|
|
*)
|
|
- tmp_deplibs="$tmp_deplibs $test_deplib"
|
|
+ func_append tmp_deplibs " $test_deplib"
|
|
;;
|
|
esac
|
|
done
|
|
@@ -7308,43 +8270,43 @@ EOF
|
|
fi
|
|
if test -n "$whole_archive_flag_spec"; then
|
|
save_libobjs=$libobjs
|
|
- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
|
|
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
|
|
test "X$libobjs" = "X " && libobjs=
|
|
else
|
|
gentop="$output_objdir/${outputname}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
|
|
func_extract_archives $gentop $convenience
|
|
- libobjs="$libobjs $func_extract_archives_result"
|
|
+ func_append libobjs " $func_extract_archives_result"
|
|
test "X$libobjs" = "X " && libobjs=
|
|
fi
|
|
fi
|
|
|
|
if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
|
|
- eval "flag=\"$thread_safe_flag_spec\""
|
|
- linker_flags="$linker_flags $flag"
|
|
+ eval flag=\"$thread_safe_flag_spec\"
|
|
+ func_append linker_flags " $flag"
|
|
fi
|
|
|
|
# Make a backup of the uninstalled library when relinking
|
|
- if test "$mode" = relink; then
|
|
- $opt_dry_run || (cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U) || exit $?
|
|
+ if test "$opt_mode" = relink; then
|
|
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
|
|
fi
|
|
|
|
# Do each of the archive commands.
|
|
if test "$module" = yes && test -n "$module_cmds" ; then
|
|
if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
|
|
- eval "test_cmds=\"$module_expsym_cmds\""
|
|
+ eval test_cmds=\"$module_expsym_cmds\"
|
|
cmds=$module_expsym_cmds
|
|
else
|
|
- eval "test_cmds=\"$module_cmds\""
|
|
+ eval test_cmds=\"$module_cmds\"
|
|
cmds=$module_cmds
|
|
fi
|
|
else
|
|
if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
|
|
- eval "test_cmds=\"$archive_expsym_cmds\""
|
|
+ eval test_cmds=\"$archive_expsym_cmds\"
|
|
cmds=$archive_expsym_cmds
|
|
else
|
|
- eval "test_cmds=\"$archive_cmds\""
|
|
+ eval test_cmds=\"$archive_cmds\"
|
|
cmds=$archive_cmds
|
|
fi
|
|
fi
|
|
@@ -7388,10 +8350,13 @@ EOF
|
|
echo 'INPUT (' > $output
|
|
for obj in $save_libobjs
|
|
do
|
|
- $ECHO "$obj" >> $output
|
|
+ func_to_tool_file "$obj"
|
|
+ $ECHO "$func_to_tool_file_result" >> $output
|
|
done
|
|
echo ')' >> $output
|
|
- delfiles="$delfiles $output"
|
|
+ func_append delfiles " $output"
|
|
+ func_to_tool_file "$output"
|
|
+ output=$func_to_tool_file_result
|
|
elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
|
|
output=${output_objdir}/${output_la}.lnk
|
|
func_verbose "creating linker input file list: $output"
|
|
@@ -7405,15 +8370,17 @@ EOF
|
|
fi
|
|
for obj
|
|
do
|
|
- $ECHO "$obj" >> $output
|
|
+ func_to_tool_file "$obj"
|
|
+ $ECHO "$func_to_tool_file_result" >> $output
|
|
done
|
|
- delfiles="$delfiles $output"
|
|
- output=$firstobj\"$file_list_spec$output\"
|
|
+ func_append delfiles " $output"
|
|
+ func_to_tool_file "$output"
|
|
+ output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
|
|
else
|
|
if test -n "$save_libobjs"; then
|
|
func_verbose "creating reloadable object files..."
|
|
output=$output_objdir/$output_la-${k}.$objext
|
|
- eval "test_cmds=\"$reload_cmds\""
|
|
+ eval test_cmds=\"$reload_cmds\"
|
|
func_len " $test_cmds"
|
|
len0=$func_len_result
|
|
len=$len0
|
|
@@ -7433,12 +8400,12 @@ EOF
|
|
if test "$k" -eq 1 ; then
|
|
# The first file doesn't have a previous command to add.
|
|
reload_objs=$objlist
|
|
- eval "concat_cmds=\"$reload_cmds\""
|
|
+ eval concat_cmds=\"$reload_cmds\"
|
|
else
|
|
# All subsequent reloadable object files will link in
|
|
# the last one created.
|
|
reload_objs="$objlist $last_robj"
|
|
- eval "concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\""
|
|
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
|
|
fi
|
|
last_robj=$output_objdir/$output_la-${k}.$objext
|
|
func_arith $k + 1
|
|
@@ -7455,11 +8422,11 @@ EOF
|
|
# files will link in the last one created.
|
|
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
|
|
reload_objs="$objlist $last_robj"
|
|
- eval "concat_cmds=\"\${concat_cmds}$reload_cmds\""
|
|
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
|
|
if test -n "$last_robj"; then
|
|
- eval "concat_cmds=\"\${concat_cmds}~\$RM $last_robj\""
|
|
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
|
|
fi
|
|
- delfiles="$delfiles $output"
|
|
+ func_append delfiles " $output"
|
|
|
|
else
|
|
output=
|
|
@@ -7472,9 +8439,9 @@ EOF
|
|
libobjs=$output
|
|
# Append the command to create the export file.
|
|
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
|
|
- eval "concat_cmds=\"\$concat_cmds$export_symbols_cmds\""
|
|
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
|
|
if test -n "$last_robj"; then
|
|
- eval "concat_cmds=\"\$concat_cmds~\$RM $last_robj\""
|
|
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
|
|
fi
|
|
fi
|
|
|
|
@@ -7493,7 +8460,7 @@ EOF
|
|
lt_exit=$?
|
|
|
|
# Restore the uninstalled library and exit
|
|
- if test "$mode" = relink; then
|
|
+ if test "$opt_mode" = relink; then
|
|
( cd "$output_objdir" && \
|
|
$RM "${realname}T" && \
|
|
$MV "${realname}U" "$realname" )
|
|
@@ -7514,7 +8481,7 @@ EOF
|
|
if test -n "$export_symbols" && test -n "$include_expsyms"; then
|
|
tmp_export_symbols="$export_symbols"
|
|
test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
|
|
- $opt_dry_run || $ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"
|
|
+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
|
|
fi
|
|
|
|
if test -n "$orig_export_symbols"; then
|
|
@@ -7526,7 +8493,7 @@ EOF
|
|
# global variables. join(1) would be nice here, but unfortunately
|
|
# isn't a blessed tool.
|
|
$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
|
|
- delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
|
|
+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
|
|
export_symbols=$output_objdir/$libname.def
|
|
$opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
|
|
fi
|
|
@@ -7537,7 +8504,7 @@ EOF
|
|
output=$save_output
|
|
|
|
if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
|
|
- eval "libobjs=\"\$libobjs $whole_archive_flag_spec\""
|
|
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
|
|
test "X$libobjs" = "X " && libobjs=
|
|
fi
|
|
# Expand the library linking commands again to reset the
|
|
@@ -7561,23 +8528,23 @@ EOF
|
|
|
|
if test -n "$delfiles"; then
|
|
# Append the command to remove temporary files to $cmds.
|
|
- eval "cmds=\"\$cmds~\$RM $delfiles\""
|
|
+ eval cmds=\"\$cmds~\$RM $delfiles\"
|
|
fi
|
|
|
|
# Add any objects from preloaded convenience libraries
|
|
if test -n "$dlprefiles"; then
|
|
gentop="$output_objdir/${outputname}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
|
|
func_extract_archives $gentop $dlprefiles
|
|
- libobjs="$libobjs $func_extract_archives_result"
|
|
+ func_append libobjs " $func_extract_archives_result"
|
|
test "X$libobjs" = "X " && libobjs=
|
|
fi
|
|
|
|
save_ifs="$IFS"; IFS='~'
|
|
for cmd in $cmds; do
|
|
IFS="$save_ifs"
|
|
- eval "cmd=\"$cmd\""
|
|
+ eval cmd=\"$cmd\"
|
|
$opt_silent || {
|
|
func_quote_for_expand "$cmd"
|
|
eval "func_echo $func_quote_for_expand_result"
|
|
@@ -7586,7 +8553,7 @@ EOF
|
|
lt_exit=$?
|
|
|
|
# Restore the uninstalled library and exit
|
|
- if test "$mode" = relink; then
|
|
+ if test "$opt_mode" = relink; then
|
|
( cd "$output_objdir" && \
|
|
$RM "${realname}T" && \
|
|
$MV "${realname}U" "$realname" )
|
|
@@ -7598,8 +8565,8 @@ EOF
|
|
IFS="$save_ifs"
|
|
|
|
# Restore the uninstalled library and exit
|
|
- if test "$mode" = relink; then
|
|
- $opt_dry_run || (cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname) || exit $?
|
|
+ if test "$opt_mode" = relink; then
|
|
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
|
|
|
|
if test -n "$convenience"; then
|
|
if test -z "$whole_archive_flag_spec"; then
|
|
@@ -7678,17 +8645,20 @@ EOF
|
|
|
|
if test -n "$convenience"; then
|
|
if test -n "$whole_archive_flag_spec"; then
|
|
- eval "tmp_whole_archive_flags=\"$whole_archive_flag_spec\""
|
|
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
|
|
reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
|
|
else
|
|
gentop="$output_objdir/${obj}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
|
|
func_extract_archives $gentop $convenience
|
|
reload_conv_objs="$reload_objs $func_extract_archives_result"
|
|
fi
|
|
fi
|
|
|
|
+ # If we're not building shared, we need to use non_pic_objs
|
|
+ test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
|
|
+
|
|
# Create the old-style object.
|
|
reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
|
|
|
|
@@ -7712,7 +8682,7 @@ EOF
|
|
# Create an invalid libtool object if no PIC, so that we don't
|
|
# accidentally link it into a program.
|
|
# $show "echo timestamp > $libobj"
|
|
- # $opt_dry_run || echo timestamp > $libobj || exit $?
|
|
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
|
|
exit $EXIT_SUCCESS
|
|
fi
|
|
|
|
@@ -7762,8 +8732,8 @@ EOF
|
|
if test "$tagname" = CXX ; then
|
|
case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
|
|
10.[0123])
|
|
- compile_command="$compile_command ${wl}-bind_at_load"
|
|
- finalize_command="$finalize_command ${wl}-bind_at_load"
|
|
+ func_append compile_command " ${wl}-bind_at_load"
|
|
+ func_append finalize_command " ${wl}-bind_at_load"
|
|
;;
|
|
esac
|
|
fi
|
|
@@ -7783,7 +8753,7 @@ EOF
|
|
*)
|
|
case " $compile_deplibs " in
|
|
*" -L$path/$objdir "*)
|
|
- new_libs="$new_libs -L$path/$objdir" ;;
|
|
+ func_append new_libs " -L$path/$objdir" ;;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -7793,17 +8763,17 @@ EOF
|
|
-L*)
|
|
case " $new_libs " in
|
|
*" $deplib "*) ;;
|
|
- *) new_libs="$new_libs $deplib" ;;
|
|
+ *) func_append new_libs " $deplib" ;;
|
|
esac
|
|
;;
|
|
- *) new_libs="$new_libs $deplib" ;;
|
|
+ *) func_append new_libs " $deplib" ;;
|
|
esac
|
|
done
|
|
compile_deplibs="$new_libs"
|
|
|
|
|
|
- compile_command="$compile_command $compile_deplibs"
|
|
- finalize_command="$finalize_command $finalize_deplibs"
|
|
+ func_append compile_command " $compile_deplibs"
|
|
+ func_append finalize_command " $finalize_deplibs"
|
|
|
|
if test -n "$rpath$xrpath"; then
|
|
# If the user specified any rpath flags, then add them.
|
|
@@ -7811,7 +8781,7 @@ EOF
|
|
# This is the magic to use -rpath.
|
|
case "$finalize_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) finalize_rpath="$finalize_rpath $libdir" ;;
|
|
+ *) func_append finalize_rpath " $libdir" ;;
|
|
esac
|
|
done
|
|
fi
|
|
@@ -7830,18 +8800,18 @@ EOF
|
|
*"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
|
|
;;
|
|
*)
|
|
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
|
|
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
|
|
;;
|
|
esac
|
|
fi
|
|
else
|
|
- eval "flag=\"$hardcode_libdir_flag_spec\""
|
|
- rpath="$rpath $flag"
|
|
+ eval flag=\"$hardcode_libdir_flag_spec\"
|
|
+ func_append rpath " $flag"
|
|
fi
|
|
elif test -n "$runpath_var"; then
|
|
case "$perm_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) perm_rpath="$perm_rpath $libdir" ;;
|
|
+ *) func_append perm_rpath " $libdir" ;;
|
|
esac
|
|
fi
|
|
case $host in
|
|
@@ -7850,12 +8820,12 @@ EOF
|
|
case :$dllsearchpath: in
|
|
*":$libdir:"*) ;;
|
|
::) dllsearchpath=$libdir;;
|
|
- *) dllsearchpath="$dllsearchpath:$libdir";;
|
|
+ *) func_append dllsearchpath ":$libdir";;
|
|
esac
|
|
case :$dllsearchpath: in
|
|
*":$testbindir:"*) ;;
|
|
::) dllsearchpath=$testbindir;;
|
|
- *) dllsearchpath="$dllsearchpath:$testbindir";;
|
|
+ *) func_append dllsearchpath ":$testbindir";;
|
|
esac
|
|
;;
|
|
esac
|
|
@@ -7864,7 +8834,7 @@ EOF
|
|
if test -n "$hardcode_libdir_separator" &&
|
|
test -n "$hardcode_libdirs"; then
|
|
libdir="$hardcode_libdirs"
|
|
- eval "rpath=\" $hardcode_libdir_flag_spec\""
|
|
+ eval rpath=\" $hardcode_libdir_flag_spec\"
|
|
fi
|
|
compile_rpath="$rpath"
|
|
|
|
@@ -7881,18 +8851,18 @@ EOF
|
|
*"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
|
|
;;
|
|
*)
|
|
- hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
|
|
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
|
|
;;
|
|
esac
|
|
fi
|
|
else
|
|
- eval "flag=\"$hardcode_libdir_flag_spec\""
|
|
- rpath="$rpath $flag"
|
|
+ eval flag=\"$hardcode_libdir_flag_spec\"
|
|
+ func_append rpath " $flag"
|
|
fi
|
|
elif test -n "$runpath_var"; then
|
|
case "$finalize_perm_rpath " in
|
|
*" $libdir "*) ;;
|
|
- *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
|
|
+ *) func_append finalize_perm_rpath " $libdir" ;;
|
|
esac
|
|
fi
|
|
done
|
|
@@ -7900,7 +8870,7 @@ EOF
|
|
if test -n "$hardcode_libdir_separator" &&
|
|
test -n "$hardcode_libdirs"; then
|
|
libdir="$hardcode_libdirs"
|
|
- eval "rpath=\" $hardcode_libdir_flag_spec\""
|
|
+ eval rpath=\" $hardcode_libdir_flag_spec\"
|
|
fi
|
|
finalize_rpath="$rpath"
|
|
|
|
@@ -7943,6 +8913,12 @@ EOF
|
|
exit_status=0
|
|
func_show_eval "$link_command" 'exit_status=$?'
|
|
|
|
+ if test -n "$postlink_cmds"; then
|
|
+ func_to_tool_file "$output"
|
|
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
|
|
+ func_execute_cmds "$postlink_cmds" 'exit $?'
|
|
+ fi
|
|
+
|
|
# Delete the generated files.
|
|
if test -f "$output_objdir/${outputname}S.${objext}"; then
|
|
func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
|
|
@@ -7965,7 +8941,7 @@ EOF
|
|
# We should set the runpath_var.
|
|
rpath=
|
|
for dir in $perm_rpath; do
|
|
- rpath="$rpath$dir:"
|
|
+ func_append rpath "$dir:"
|
|
done
|
|
compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
|
|
fi
|
|
@@ -7973,7 +8949,7 @@ EOF
|
|
# We should set the runpath_var.
|
|
rpath=
|
|
for dir in $finalize_perm_rpath; do
|
|
- rpath="$rpath$dir:"
|
|
+ func_append rpath "$dir:"
|
|
done
|
|
finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
|
|
fi
|
|
@@ -7988,6 +8964,13 @@ EOF
|
|
$opt_dry_run || $RM $output
|
|
# Link the executable and exit
|
|
func_show_eval "$link_command" 'exit $?'
|
|
+
|
|
+ if test -n "$postlink_cmds"; then
|
|
+ func_to_tool_file "$output"
|
|
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
|
|
+ func_execute_cmds "$postlink_cmds" 'exit $?'
|
|
+ fi
|
|
+
|
|
exit $EXIT_SUCCESS
|
|
fi
|
|
|
|
@@ -8021,6 +9004,12 @@ EOF
|
|
|
|
func_show_eval "$link_command" 'exit $?'
|
|
|
|
+ if test -n "$postlink_cmds"; then
|
|
+ func_to_tool_file "$output_objdir/$outputname"
|
|
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
|
|
+ func_execute_cmds "$postlink_cmds" 'exit $?'
|
|
+ fi
|
|
+
|
|
# Now create the wrapper script.
|
|
func_verbose "creating $output"
|
|
|
|
@@ -8118,7 +9107,7 @@ EOF
|
|
else
|
|
oldobjs="$old_deplibs $non_pic_objects"
|
|
if test "$preload" = yes && test -f "$symfileobj"; then
|
|
- oldobjs="$oldobjs $symfileobj"
|
|
+ func_append oldobjs " $symfileobj"
|
|
fi
|
|
fi
|
|
addlibs="$old_convenience"
|
|
@@ -8126,10 +9115,10 @@ EOF
|
|
|
|
if test -n "$addlibs"; then
|
|
gentop="$output_objdir/${outputname}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
|
|
func_extract_archives $gentop $addlibs
|
|
- oldobjs="$oldobjs $func_extract_archives_result"
|
|
+ func_append oldobjs " $func_extract_archives_result"
|
|
fi
|
|
|
|
# Do each command in the archive commands.
|
|
@@ -8140,10 +9129,10 @@ EOF
|
|
# Add any objects from preloaded convenience libraries
|
|
if test -n "$dlprefiles"; then
|
|
gentop="$output_objdir/${outputname}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
|
|
func_extract_archives $gentop $dlprefiles
|
|
- oldobjs="$oldobjs $func_extract_archives_result"
|
|
+ func_append oldobjs " $func_extract_archives_result"
|
|
fi
|
|
|
|
# POSIX demands no paths to be encoded in archives. We have
|
|
@@ -8161,7 +9150,7 @@ EOF
|
|
else
|
|
echo "copying selected object files to avoid basename conflicts..."
|
|
gentop="$output_objdir/${outputname}x"
|
|
- generated="$generated $gentop"
|
|
+ func_append generated " $gentop"
|
|
func_mkdir_p "$gentop"
|
|
save_oldobjs=$oldobjs
|
|
oldobjs=
|
|
@@ -8185,18 +9174,28 @@ EOF
|
|
esac
|
|
done
|
|
func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
|
|
- oldobjs="$oldobjs $gentop/$newobj"
|
|
+ func_append oldobjs " $gentop/$newobj"
|
|
;;
|
|
- *) oldobjs="$oldobjs $obj" ;;
|
|
+ *) func_append oldobjs " $obj" ;;
|
|
esac
|
|
done
|
|
fi
|
|
- eval "cmds=\"$old_archive_cmds\""
|
|
+ eval cmds=\"$old_archive_cmds\"
|
|
|
|
func_len " $cmds"
|
|
len=$func_len_result
|
|
if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
|
|
cmds=$old_archive_cmds
|
|
+ elif test -n "$archiver_list_spec"; then
|
|
+ func_verbose "using command file archive linking..."
|
|
+ for obj in $oldobjs
|
|
+ do
|
|
+ func_to_tool_file "$obj"
|
|
+ $ECHO "$func_to_tool_file_result"
|
|
+ done > $output_objdir/$libname.libcmd
|
|
+ func_to_tool_file "$output_objdir/$libname.libcmd"
|
|
+ oldobjs=" $archiver_list_spec$func_to_tool_file_result"
|
|
+ cmds=$old_archive_cmds
|
|
else
|
|
# the command line is too long to link in one step, link in parts
|
|
func_verbose "using piecewise archive linking..."
|
|
@@ -8211,7 +9210,7 @@ EOF
|
|
do
|
|
last_oldobj=$obj
|
|
done
|
|
- eval "test_cmds=\"$old_archive_cmds\""
|
|
+ eval test_cmds=\"$old_archive_cmds\"
|
|
func_len " $test_cmds"
|
|
len0=$func_len_result
|
|
len=$len0
|
|
@@ -8230,7 +9229,7 @@ EOF
|
|
RANLIB=$save_RANLIB
|
|
fi
|
|
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
|
|
- eval "concat_cmds=\"\${concat_cmds}$old_archive_cmds\""
|
|
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
|
|
objlist=
|
|
len=$len0
|
|
fi
|
|
@@ -8238,9 +9237,9 @@ EOF
|
|
RANLIB=$save_RANLIB
|
|
oldobjs=$objlist
|
|
if test "X$oldobjs" = "X" ; then
|
|
- eval "cmds=\"\$concat_cmds\""
|
|
+ eval cmds=\"\$concat_cmds\"
|
|
else
|
|
- eval "cmds=\"\$concat_cmds~\$old_archive_cmds\""
|
|
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
|
|
fi
|
|
fi
|
|
fi
|
|
@@ -8290,12 +9289,23 @@ EOF
|
|
*.la)
|
|
func_basename "$deplib"
|
|
name="$func_basename_result"
|
|
- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
|
|
+ func_resolve_sysroot "$deplib"
|
|
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
|
|
test -z "$libdir" && \
|
|
func_fatal_error "\`$deplib' is not a valid libtool archive"
|
|
- newdependency_libs="$newdependency_libs $libdir/$name"
|
|
+ func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
|
|
+ ;;
|
|
+ -L*)
|
|
+ func_stripname -L '' "$deplib"
|
|
+ func_replace_sysroot "$func_stripname_result"
|
|
+ func_append newdependency_libs " -L$func_replace_sysroot_result"
|
|
;;
|
|
- *) newdependency_libs="$newdependency_libs $deplib" ;;
|
|
+ -R*)
|
|
+ func_stripname -R '' "$deplib"
|
|
+ func_replace_sysroot "$func_stripname_result"
|
|
+ func_append newdependency_libs " -R$func_replace_sysroot_result"
|
|
+ ;;
|
|
+ *) func_append newdependency_libs " $deplib" ;;
|
|
esac
|
|
done
|
|
dependency_libs="$newdependency_libs"
|
|
@@ -8306,12 +9316,14 @@ EOF
|
|
*.la)
|
|
func_basename "$lib"
|
|
name="$func_basename_result"
|
|
- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
|
+ func_resolve_sysroot "$lib"
|
|
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
|
|
+
|
|
test -z "$libdir" && \
|
|
func_fatal_error "\`$lib' is not a valid libtool archive"
|
|
- newdlfiles="$newdlfiles $libdir/$name"
|
|
+ func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
|
|
;;
|
|
- *) newdlfiles="$newdlfiles $lib" ;;
|
|
+ *) func_append newdlfiles " $lib" ;;
|
|
esac
|
|
done
|
|
dlfiles="$newdlfiles"
|
|
@@ -8325,10 +9337,11 @@ EOF
|
|
# the library:
|
|
func_basename "$lib"
|
|
name="$func_basename_result"
|
|
- libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
|
|
+ func_resolve_sysroot "$lib"
|
|
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
|
|
test -z "$libdir" && \
|
|
func_fatal_error "\`$lib' is not a valid libtool archive"
|
|
- newdlprefiles="$newdlprefiles $libdir/$name"
|
|
+ func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
|
|
;;
|
|
esac
|
|
done
|
|
@@ -8340,7 +9353,7 @@ EOF
|
|
[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
|
|
*) abs=`pwd`"/$lib" ;;
|
|
esac
|
|
- newdlfiles="$newdlfiles $abs"
|
|
+ func_append newdlfiles " $abs"
|
|
done
|
|
dlfiles="$newdlfiles"
|
|
newdlprefiles=
|
|
@@ -8349,7 +9362,7 @@ EOF
|
|
[\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
|
|
*) abs=`pwd`"/$lib" ;;
|
|
esac
|
|
- newdlprefiles="$newdlprefiles $abs"
|
|
+ func_append newdlprefiles " $abs"
|
|
done
|
|
dlprefiles="$newdlprefiles"
|
|
fi
|
|
@@ -8434,7 +9447,7 @@ relink_command=\"$relink_command\""
|
|
exit $EXIT_SUCCESS
|
|
}
|
|
|
|
-{ test "$mode" = link || test "$mode" = relink; } &&
|
|
+{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
|
|
func_mode_link ${1+"$@"}
|
|
|
|
|
|
@@ -8454,9 +9467,9 @@ func_mode_uninstall ()
|
|
for arg
|
|
do
|
|
case $arg in
|
|
- -f) RM="$RM $arg"; rmforce=yes ;;
|
|
- -*) RM="$RM $arg" ;;
|
|
- *) files="$files $arg" ;;
|
|
+ -f) func_append RM " $arg"; rmforce=yes ;;
|
|
+ -*) func_append RM " $arg" ;;
|
|
+ *) func_append files " $arg" ;;
|
|
esac
|
|
done
|
|
|
|
@@ -8465,24 +9478,23 @@ func_mode_uninstall ()
|
|
|
|
rmdirs=
|
|
|
|
- origobjdir="$objdir"
|
|
for file in $files; do
|
|
func_dirname "$file" "" "."
|
|
dir="$func_dirname_result"
|
|
if test "X$dir" = X.; then
|
|
- objdir="$origobjdir"
|
|
+ odir="$objdir"
|
|
else
|
|
- objdir="$dir/$origobjdir"
|
|
+ odir="$dir/$objdir"
|
|
fi
|
|
func_basename "$file"
|
|
name="$func_basename_result"
|
|
- test "$mode" = uninstall && objdir="$dir"
|
|
+ test "$opt_mode" = uninstall && odir="$dir"
|
|
|
|
- # Remember objdir for removal later, being careful to avoid duplicates
|
|
- if test "$mode" = clean; then
|
|
+ # Remember odir for removal later, being careful to avoid duplicates
|
|
+ if test "$opt_mode" = clean; then
|
|
case " $rmdirs " in
|
|
- *" $objdir "*) ;;
|
|
- *) rmdirs="$rmdirs $objdir" ;;
|
|
+ *" $odir "*) ;;
|
|
+ *) func_append rmdirs " $odir" ;;
|
|
esac
|
|
fi
|
|
|
|
@@ -8508,18 +9520,17 @@ func_mode_uninstall ()
|
|
|
|
# Delete the libtool libraries and symlinks.
|
|
for n in $library_names; do
|
|
- rmfiles="$rmfiles $objdir/$n"
|
|
+ func_append rmfiles " $odir/$n"
|
|
done
|
|
- test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
|
|
+ test -n "$old_library" && func_append rmfiles " $odir/$old_library"
|
|
|
|
- case "$mode" in
|
|
+ case "$opt_mode" in
|
|
clean)
|
|
- case " $library_names " in
|
|
- # " " in the beginning catches empty $dlname
|
|
+ case " $library_names " in
|
|
*" $dlname "*) ;;
|
|
- *) rmfiles="$rmfiles $objdir/$dlname" ;;
|
|
+ *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
|
|
esac
|
|
- test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
|
|
+ test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
|
|
;;
|
|
uninstall)
|
|
if test -n "$library_names"; then
|
|
@@ -8547,19 +9558,19 @@ func_mode_uninstall ()
|
|
# Add PIC object to the list of files to remove.
|
|
if test -n "$pic_object" &&
|
|
test "$pic_object" != none; then
|
|
- rmfiles="$rmfiles $dir/$pic_object"
|
|
+ func_append rmfiles " $dir/$pic_object"
|
|
fi
|
|
|
|
# Add non-PIC object to the list of files to remove.
|
|
if test -n "$non_pic_object" &&
|
|
test "$non_pic_object" != none; then
|
|
- rmfiles="$rmfiles $dir/$non_pic_object"
|
|
+ func_append rmfiles " $dir/$non_pic_object"
|
|
fi
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
- if test "$mode" = clean ; then
|
|
+ if test "$opt_mode" = clean ; then
|
|
noexename=$name
|
|
case $file in
|
|
*.exe)
|
|
@@ -8569,7 +9580,7 @@ func_mode_uninstall ()
|
|
noexename=$func_stripname_result
|
|
# $file with .exe has already been added to rmfiles,
|
|
# add $file without .exe
|
|
- rmfiles="$rmfiles $file"
|
|
+ func_append rmfiles " $file"
|
|
;;
|
|
esac
|
|
# Do a test to see if this is a libtool program.
|
|
@@ -8578,7 +9589,7 @@ func_mode_uninstall ()
|
|
func_ltwrapper_scriptname "$file"
|
|
relink_command=
|
|
func_source $func_ltwrapper_scriptname_result
|
|
- rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
|
|
+ func_append rmfiles " $func_ltwrapper_scriptname_result"
|
|
else
|
|
relink_command=
|
|
func_source $dir/$noexename
|
|
@@ -8586,12 +9597,12 @@ func_mode_uninstall ()
|
|
|
|
# note $name still contains .exe if it was in $file originally
|
|
# as does the version of $file that was added into $rmfiles
|
|
- rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
|
|
+ func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
|
|
if test "$fast_install" = yes && test -n "$relink_command"; then
|
|
- rmfiles="$rmfiles $objdir/lt-$name"
|
|
+ func_append rmfiles " $odir/lt-$name"
|
|
fi
|
|
if test "X$noexename" != "X$name" ; then
|
|
- rmfiles="$rmfiles $objdir/lt-${noexename}.c"
|
|
+ func_append rmfiles " $odir/lt-${noexename}.c"
|
|
fi
|
|
fi
|
|
fi
|
|
@@ -8599,7 +9610,6 @@ func_mode_uninstall ()
|
|
esac
|
|
func_show_eval "$RM $rmfiles" 'exit_status=1'
|
|
done
|
|
- objdir="$origobjdir"
|
|
|
|
# Try to remove the ${objdir}s in the directories where we deleted files
|
|
for dir in $rmdirs; do
|
|
@@ -8611,16 +9621,16 @@ func_mode_uninstall ()
|
|
exit $exit_status
|
|
}
|
|
|
|
-{ test "$mode" = uninstall || test "$mode" = clean; } &&
|
|
+{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
|
|
func_mode_uninstall ${1+"$@"}
|
|
|
|
-test -z "$mode" && {
|
|
+test -z "$opt_mode" && {
|
|
help="$generic_help"
|
|
func_fatal_help "you must specify a MODE"
|
|
}
|
|
|
|
test -z "$exec_cmd" && \
|
|
- func_fatal_help "invalid operation mode \`$mode'"
|
|
+ func_fatal_help "invalid operation mode \`$opt_mode'"
|
|
|
|
if test -n "$exec_cmd"; then
|
|
eval exec "$exec_cmd"
|
|
diff --git a/ltoptions.m4 b/ltoptions.m4
|
|
index 5ef12ced2a8..17cfd51c0b3 100644
|
|
--- a/ltoptions.m4
|
|
+++ b/ltoptions.m4
|
|
@@ -8,7 +8,7 @@
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
-# serial 6 ltoptions.m4
|
|
+# serial 7 ltoptions.m4
|
|
|
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
|
diff --git a/ltversion.m4 b/ltversion.m4
|
|
index bf87f77132d..9c7b5d41185 100644
|
|
--- a/ltversion.m4
|
|
+++ b/ltversion.m4
|
|
@@ -7,17 +7,17 @@
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
-# Generated from ltversion.in.
|
|
+# @configure_input@
|
|
|
|
-# serial 3134 ltversion.m4
|
|
+# serial 3293 ltversion.m4
|
|
# This file is part of GNU Libtool
|
|
|
|
-m4_define([LT_PACKAGE_VERSION], [2.2.7a])
|
|
-m4_define([LT_PACKAGE_REVISION], [1.3134])
|
|
+m4_define([LT_PACKAGE_VERSION], [2.4])
|
|
+m4_define([LT_PACKAGE_REVISION], [1.3293])
|
|
|
|
AC_DEFUN([LTVERSION_VERSION],
|
|
-[macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+[macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
_LT_DECL(, macro_revision, 0)
|
|
])
|
|
diff --git a/lt~obsolete.m4 b/lt~obsolete.m4
|
|
index bf92b5e0790..c573da90c5c 100644
|
|
--- a/lt~obsolete.m4
|
|
+++ b/lt~obsolete.m4
|
|
@@ -7,7 +7,7 @@
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
-# serial 4 lt~obsolete.m4
|
|
+# serial 5 lt~obsolete.m4
|
|
|
|
# These exist entirely to fool aclocal when bootstrapping libtool.
|
|
#
|
|
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
|
|
index 4399354e5a9..4b1625febf3 100644
|
|
--- a/opcodes/Makefile.in
|
|
+++ b/opcodes/Makefile.in
|
|
@@ -298,6 +298,7 @@ CYGPATH_W = @CYGPATH_W@
|
|
DATADIRNAME = @DATADIRNAME@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -336,6 +337,7 @@ LTLIBINTL = @LTLIBINTL@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
MKINSTALLDIRS = @MKINSTALLDIRS@
|
|
MSGFMT = @MSGFMT@
|
|
@@ -374,6 +376,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__include = @am__include@
|
|
diff --git a/opcodes/configure b/opcodes/configure
|
|
index b326512ce3c..03f2b1bd64b 100755
|
|
--- a/opcodes/configure
|
|
+++ b/opcodes/configure
|
|
@@ -688,6 +688,9 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
+ac_ct_AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -806,6 +809,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_checking
|
|
enable_targets
|
|
@@ -1487,6 +1491,8 @@ Optional Packages:
|
|
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
|
|
--without-libintl-prefix don't search for libintl in includedir and libdir
|
|
--with-libintl-type=TYPE type of library to search for (auto/static/shared)
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
@@ -4995,8 +5001,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -5036,7 +5042,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5729,8 +5735,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5779,6 +5785,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5795,6 +5875,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -5963,7 +6048,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -6122,6 +6208,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -6137,6 +6238,157 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -6151,8 +6403,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -6168,7 +6422,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6188,11 +6442,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -6208,7 +6466,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -6227,6 +6485,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -6238,25 +6500,20 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
+
|
|
|
|
|
|
|
|
@@ -6267,6 +6524,63 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
@@ -6607,8 +6921,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -6644,6 +6958,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6685,6 +7000,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6696,7 +7023,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6722,8 +7049,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6733,8 +7060,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6771,6 +7098,14 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6789,6 +7124,47 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6998,6 +7374,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -7561,6 +8054,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -8115,8 +8610,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -8282,6 +8775,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -8344,7 +8843,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8401,13 +8900,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8468,6 +8971,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8818,7 +9326,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8917,12 +9426,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -8936,8 +9445,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -8955,8 +9464,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9002,8 +9511,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -9133,7 +9642,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9146,22 +9661,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -9173,7 +9695,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
|
|
int
|
|
@@ -9186,22 +9714,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -9246,20 +9781,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -9320,7 +9898,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -9328,7 +9906,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -9344,7 +9922,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9368,10 +9946,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9450,23 +10028,36 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9551,7 +10142,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9570,9 +10161,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -10148,8 +10739,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -10182,13 +10774,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -11090,7 +11740,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11093 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11134,10 +11784,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -11196,7 +11846,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 11199 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -11240,10 +11890,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -15348,13 +15998,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15369,14 +16026,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15409,12 +16069,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -15469,8 +16129,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -15480,12 +16145,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -15501,7 +16168,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -15537,6 +16203,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -16310,7 +16977,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -16413,19 +17081,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -16455,6 +17146,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -16464,6 +17161,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -16578,12 +17278,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -16670,9 +17370,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -16688,6 +17385,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -16720,210 +17420,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|
|
diff --git a/zlib/Makefile.in b/zlib/Makefile.in
|
|
index 951260ac4c5..9398823cc09 100644
|
|
--- a/zlib/Makefile.in
|
|
+++ b/zlib/Makefile.in
|
|
@@ -281,6 +281,7 @@ CPPFLAGS = @CPPFLAGS@
|
|
CYGPATH_W = @CYGPATH_W@
|
|
DEFS = @DEFS@
|
|
DEPDIR = @DEPDIR@
|
|
+DLLTOOL = @DLLTOOL@
|
|
DSYMUTIL = @DSYMUTIL@
|
|
DUMPBIN = @DUMPBIN@
|
|
ECHO_C = @ECHO_C@
|
|
@@ -305,6 +306,7 @@ LN_S = @LN_S@
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
+MANIFEST_TOOL = @MANIFEST_TOOL@
|
|
MKDIR_P = @MKDIR_P@
|
|
NM = @NM@
|
|
NMEDIT = @NMEDIT@
|
|
@@ -331,6 +333,7 @@ abs_builddir = @abs_builddir@
|
|
abs_srcdir = @abs_srcdir@
|
|
abs_top_builddir = @abs_top_builddir@
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
+ac_ct_AR = @ac_ct_AR@
|
|
ac_ct_CC = @ac_ct_CC@
|
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
|
am__include = @am__include@
|
|
diff --git a/zlib/configure b/zlib/configure
|
|
index cae55c5ca49..24193ee5db7 100755
|
|
--- a/zlib/configure
|
|
+++ b/zlib/configure
|
|
@@ -648,8 +648,11 @@ OTOOL
|
|
LIPO
|
|
NMEDIT
|
|
DSYMUTIL
|
|
+MANIFEST_TOOL
|
|
RANLIB
|
|
+ac_ct_AR
|
|
AR
|
|
+DLLTOOL
|
|
OBJDUMP
|
|
LN_S
|
|
NM
|
|
@@ -776,6 +779,7 @@ enable_static
|
|
with_pic
|
|
enable_fast_install
|
|
with_gnu_ld
|
|
+with_libtool_sysroot
|
|
enable_libtool_lock
|
|
enable_host_shared
|
|
enable_host_pie
|
|
@@ -1432,6 +1436,8 @@ Optional Packages:
|
|
--with-pic try to use only PIC/non-PIC objects [default=use
|
|
both]
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
|
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR
|
|
+ (or the compiler's sysroot if not specified).
|
|
|
|
Some influential environment variables:
|
|
CC C compiler command
|
|
@@ -4189,8 +4195,8 @@ esac
|
|
|
|
|
|
|
|
-macro_version='2.2.7a'
|
|
-macro_revision='1.3134'
|
|
+macro_version='2.4'
|
|
+macro_revision='1.3293'
|
|
|
|
|
|
|
|
@@ -4230,7 +4236,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
|
$as_echo_n "checking how to print strings... " >&6; }
|
|
# Test print first, because it will be a builtin if present.
|
|
-if test "X`print -r -- -n 2>/dev/null`" = X-n && \
|
|
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
|
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
ECHO='print -r --'
|
|
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
|
@@ -5053,8 +5059,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
|
|
# Try some XSI features
|
|
xsi_shell=no
|
|
( _lt_dummy="a/b/c"
|
|
- test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
|
|
- = c,a/b,, \
|
|
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
|
|
+ = c,a/b,b/c, \
|
|
&& eval 'test $(( 1 + 1 )) -eq 2 \
|
|
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
|
|
&& xsi_shell=yes
|
|
@@ -5103,6 +5109,80 @@ esac
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
|
+if ${lt_cv_to_host_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
|
+ ;;
|
|
+ *-*-cygwin* )
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+ * ) # otherwise, assume *nix
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+ * ) # unhandled hosts (and "normal" native builds)
|
|
+ lt_cv_to_host_file_cmd=func_convert_file_noop
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
|
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
|
+if ${lt_cv_to_tool_file_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ #assume ordinary cross tools, or native build.
|
|
+lt_cv_to_tool_file_cmd=func_convert_file_noop
|
|
+case $host in
|
|
+ *-*-mingw* )
|
|
+ case $build in
|
|
+ *-*-mingw* ) # actually msys
|
|
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
|
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
|
$as_echo_n "checking for $LD option to reload object files... " >&6; }
|
|
if ${lt_cv_ld_reload_flag+:} false; then :
|
|
@@ -5119,6 +5199,11 @@ case $reload_flag in
|
|
esac
|
|
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
|
case $host_os in
|
|
+ cygwin* | mingw* | pw32* | cegcc*)
|
|
+ if test "$GCC" != yes; then
|
|
+ reload_cmds=false
|
|
+ fi
|
|
+ ;;
|
|
darwin*)
|
|
if test "$GCC" = yes; then
|
|
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
|
@@ -5287,7 +5372,8 @@ mingw* | pw32*)
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
|
lt_cv_file_magic_cmd='func_win32_libid'
|
|
else
|
|
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
|
|
+ # Keep this pattern in sync with the one in func_win32_libid.
|
|
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f'
|
|
fi
|
|
;;
|
|
@@ -5446,6 +5532,21 @@ esac
|
|
fi
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
|
$as_echo "$lt_cv_deplibs_check_method" >&6; }
|
|
+
|
|
+file_magic_glob=
|
|
+want_nocaseglob=no
|
|
+if test "$build" = "$host"; then
|
|
+ case $host_os in
|
|
+ mingw* | pw32*)
|
|
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
|
+ want_nocaseglob=yes
|
|
+ else
|
|
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
|
+ fi
|
|
+ ;;
|
|
+ esac
|
|
+fi
|
|
+
|
|
file_magic_cmd=$lt_cv_file_magic_cmd
|
|
deplibs_check_method=$lt_cv_deplibs_check_method
|
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
@@ -5461,6 +5562,158 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$DLLTOOL"; then
|
|
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+DLLTOOL=$ac_cv_prog_DLLTOOL
|
|
+if test -n "$DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
|
+$as_echo "$DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_DLLTOOL"; then
|
|
+ ac_ct_DLLTOOL=$DLLTOOL
|
|
+ # Extract the first word of "dlltool", so it can be a program name with args.
|
|
+set dummy dlltool; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_DLLTOOL"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
|
+if test -n "$ac_ct_DLLTOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
|
+$as_echo "$ac_ct_DLLTOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_DLLTOOL" = x; then
|
|
+ DLLTOOL="false"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ DLLTOOL=$ac_ct_DLLTOOL
|
|
+ fi
|
|
+else
|
|
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
|
|
+fi
|
|
+
|
|
+test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
|
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
|
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
|
|
+
|
|
+case $host_os in
|
|
+cygwin* | mingw* | pw32* | cegcc*)
|
|
+ # two different shell functions defined in ltmain.sh
|
|
+ # decide which to use based on capabilities of $DLLTOOL
|
|
+ case `$DLLTOOL --help 2>&1` in
|
|
+ *--identify-strict*)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
|
+ ;;
|
|
+ *)
|
|
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
|
+ ;;
|
|
+ esac
|
|
+ ;;
|
|
+*)
|
|
+ # fallback: assume linklib IS sharedlib
|
|
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
|
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
|
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
|
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
plugin_option=
|
|
plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
|
|
for plugin in $plugin_names; do
|
|
@@ -5475,8 +5728,10 @@ for plugin in $plugin_names; do
|
|
done
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
|
-set dummy ${ac_tool_prefix}ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+ do
|
|
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_AR+:} false; then :
|
|
@@ -5492,7 +5747,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_AR="${ac_tool_prefix}ar"
|
|
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5512,11 +5767,15 @@ $as_echo "no" >&6; }
|
|
fi
|
|
|
|
|
|
+ test -n "$AR" && break
|
|
+ done
|
|
fi
|
|
-if test -z "$ac_cv_prog_AR"; then
|
|
+if test -z "$AR"; then
|
|
ac_ct_AR=$AR
|
|
- # Extract the first word of "ar", so it can be a program name with args.
|
|
-set dummy ar; ac_word=$2
|
|
+ for ac_prog in ar
|
|
+do
|
|
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
+set dummy $ac_prog; ac_word=$2
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
|
@@ -5532,7 +5791,7 @@ do
|
|
test -z "$as_dir" && as_dir=.
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
- ac_cv_prog_ac_ct_AR="ar"
|
|
+ ac_cv_prog_ac_ct_AR="$ac_prog"
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
break 2
|
|
fi
|
|
@@ -5551,6 +5810,10 @@ else
|
|
$as_echo "no" >&6; }
|
|
fi
|
|
|
|
+
|
|
+ test -n "$ac_ct_AR" && break
|
|
+done
|
|
+
|
|
if test "x$ac_ct_AR" = x; then
|
|
AR="false"
|
|
else
|
|
@@ -5562,25 +5825,19 @@ ac_tool_warned=yes ;;
|
|
esac
|
|
AR=$ac_ct_AR
|
|
fi
|
|
-else
|
|
- AR="$ac_cv_prog_AR"
|
|
fi
|
|
|
|
-test -z "$AR" && AR=ar
|
|
-if test -n "$plugin_option"; then
|
|
- if $AR --help 2>&1 | grep -q "\--plugin"; then
|
|
- touch conftest.c
|
|
- $AR $plugin_option rc conftest.a conftest.c
|
|
- if test "$?" != 0; then
|
|
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
+ touch conftest.c
|
|
+ $AR $plugin_option rc conftest.a conftest.c
|
|
+ if test "$?" != 0; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
|
|
$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
|
|
- else
|
|
- AR="$AR $plugin_option"
|
|
- fi
|
|
- rm -f conftest.*
|
|
+ else
|
|
+ AR="$AR $plugin_option"
|
|
fi
|
|
-fi
|
|
-test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
+ rm -f conftest.*
|
|
+: ${AR=ar}
|
|
+: ${AR_FLAGS=cru}
|
|
|
|
|
|
|
|
@@ -5592,6 +5849,64 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
|
|
|
|
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
|
+$as_echo_n "checking for archiver @FILE support... " >&6; }
|
|
+if ${lt_cv_ar_at_file+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_ar_at_file=no
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
+/* end confdefs.h. */
|
|
+
|
|
+int
|
|
+main ()
|
|
+{
|
|
+
|
|
+ ;
|
|
+ return 0;
|
|
+}
|
|
+_ACEOF
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
+ echo conftest.$ac_objext > conftest.lst
|
|
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -eq 0; then
|
|
+ # Ensure the archiver fails upon bogus file names.
|
|
+ rm -f conftest.$ac_objext libconftest.a
|
|
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
|
+ (eval $lt_ar_try) 2>&5
|
|
+ ac_status=$?
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
+ test $ac_status = 0; }
|
|
+ if test "$ac_status" -ne 0; then
|
|
+ lt_cv_ar_at_file=@
|
|
+ fi
|
|
+ fi
|
|
+ rm -f conftest.* libconftest.a
|
|
+
|
|
+fi
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
+
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
|
+$as_echo "$lt_cv_ar_at_file" >&6; }
|
|
+
|
|
+if test "x$lt_cv_ar_at_file" = xno; then
|
|
+ archiver_list_spec=
|
|
+else
|
|
+ archiver_list_spec=$lt_cv_ar_at_file
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
if test -n "$ac_tool_prefix"; then
|
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
|
set dummy ${ac_tool_prefix}strip; ac_word=$2
|
|
@@ -5931,8 +6246,8 @@ esac
|
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address
|
|
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
-lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
|
|
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
|
|
|
|
# Handle CRLF in mingw tool chain
|
|
opt_cr=
|
|
@@ -5968,6 +6283,7 @@ for ac_symprfx in "" "_"; do
|
|
else
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
|
fi
|
|
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
|
|
|
# Check to see that the pipe works correctly.
|
|
pipe_works=no
|
|
@@ -6009,6 +6325,18 @@ _LT_EOF
|
|
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
|
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
|
cat <<_LT_EOF > conftest.$ac_ext
|
|
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
|
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
|
|
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
|
|
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
|
|
+# define LT_DLSYM_CONST
|
|
+#elif defined(__osf__)
|
|
+/* This system does not cope well with relocations in const data. */
|
|
+# define LT_DLSYM_CONST
|
|
+#else
|
|
+# define LT_DLSYM_CONST const
|
|
+#endif
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
@@ -6020,7 +6348,7 @@ _LT_EOF
|
|
cat <<_LT_EOF >> conftest.$ac_ext
|
|
|
|
/* The mapping between symbol names and symbols. */
|
|
-const struct {
|
|
+LT_DLSYM_CONST struct {
|
|
const char *name;
|
|
void *address;
|
|
}
|
|
@@ -6046,8 +6374,8 @@ static const void *lt_preloaded_setup() {
|
|
_LT_EOF
|
|
# Now try linking the two files.
|
|
mv conftest.$ac_objext conftstm.$ac_objext
|
|
- lt_save_LIBS="$LIBS"
|
|
- lt_save_CFLAGS="$CFLAGS"
|
|
+ lt_globsym_save_LIBS=$LIBS
|
|
+ lt_globsym_save_CFLAGS=$CFLAGS
|
|
LIBS="conftstm.$ac_objext"
|
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
|
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
|
@@ -6057,8 +6385,8 @@ _LT_EOF
|
|
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
|
|
pipe_works=yes
|
|
fi
|
|
- LIBS="$lt_save_LIBS"
|
|
- CFLAGS="$lt_save_CFLAGS"
|
|
+ LIBS=$lt_globsym_save_LIBS
|
|
+ CFLAGS=$lt_globsym_save_CFLAGS
|
|
else
|
|
echo "cannot find nm_test_func in $nlist" >&5
|
|
fi
|
|
@@ -6095,6 +6423,17 @@ else
|
|
$as_echo "ok" >&6; }
|
|
fi
|
|
|
|
+# Response file support.
|
|
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
|
+ nm_file_list_spec='@'
|
|
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
|
+ nm_file_list_spec='@'
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
|
|
|
|
@@ -6112,6 +6451,43 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
|
+$as_echo_n "checking for sysroot... " >&6; }
|
|
+
|
|
+# Check whether --with-libtool-sysroot was given.
|
|
+if test "${with_libtool_sysroot+set}" = set; then :
|
|
+ withval=$with_libtool_sysroot;
|
|
+else
|
|
+ with_libtool_sysroot=no
|
|
+fi
|
|
+
|
|
+
|
|
+lt_sysroot=
|
|
+case ${with_libtool_sysroot} in #(
|
|
+ yes)
|
|
+ if test "$GCC" = yes; then
|
|
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
|
+ fi
|
|
+ ;; #(
|
|
+ /*)
|
|
+ lt_sysroot=`echo "$with_libtool_sysroot" | sed -e "$sed_quote_subst"`
|
|
+ ;; #(
|
|
+ no|'')
|
|
+ ;; #(
|
|
+ *)
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libtool_sysroot}" >&5
|
|
+$as_echo "${with_libtool_sysroot}" >&6; }
|
|
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
|
+ ;;
|
|
+esac
|
|
+
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
|
+$as_echo "${lt_sysroot:-no}" >&6; }
|
|
|
|
|
|
|
|
@@ -6326,6 +6702,123 @@ esac
|
|
|
|
need_locks="$enable_libtool_lock"
|
|
|
|
+if test -n "$ac_tool_prefix"; then
|
|
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
|
+set dummy ${ac_tool_prefix}mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
|
+if test -n "$MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
|
+$as_echo "$MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+
|
|
+fi
|
|
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
|
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
|
+ # Extract the first word of "mt", so it can be a program name with args.
|
|
+set dummy mt; ac_word=$2
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
+$as_echo_n "checking for $ac_word... " >&6; }
|
|
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
|
+else
|
|
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
+for as_dir in $PATH
|
|
+do
|
|
+ IFS=$as_save_IFS
|
|
+ test -z "$as_dir" && as_dir=.
|
|
+ for ac_exec_ext in '' $ac_executable_extensions; do
|
|
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
|
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
+ break 2
|
|
+ fi
|
|
+done
|
|
+ done
|
|
+IFS=$as_save_IFS
|
|
+
|
|
+fi
|
|
+fi
|
|
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
|
+if test -n "$ac_ct_MANIFEST_TOOL"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
|
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
|
+else
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
+$as_echo "no" >&6; }
|
|
+fi
|
|
+
|
|
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
|
+ MANIFEST_TOOL=":"
|
|
+ else
|
|
+ case $cross_compiling:$ac_tool_warned in
|
|
+yes:)
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
+ac_tool_warned=yes ;;
|
|
+esac
|
|
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
|
+ fi
|
|
+else
|
|
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
|
+fi
|
|
+
|
|
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
|
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
|
+if ${lt_cv_path_mainfest_tool+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_path_mainfest_tool=no
|
|
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
|
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
|
+ cat conftest.err >&5
|
|
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
|
+ lt_cv_path_mainfest_tool=yes
|
|
+ fi
|
|
+ rm -f conftest*
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
|
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
|
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
|
|
+ MANIFEST_TOOL=:
|
|
+fi
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
|
|
case $host_os in
|
|
rhapsody* | darwin*)
|
|
@@ -6892,6 +7385,8 @@ _LT_EOF
|
|
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
|
echo "$AR cru libconftest.a conftest.o" >&5
|
|
$AR cru libconftest.a conftest.o 2>&5
|
|
+ echo "$RANLIB libconftest.a" >&5
|
|
+ $RANLIB libconftest.a 2>&5
|
|
cat > conftest.c << _LT_EOF
|
|
int main() { return 0;}
|
|
_LT_EOF
|
|
@@ -7743,8 +8238,6 @@ fi
|
|
lt_prog_compiler_pic=
|
|
lt_prog_compiler_static=
|
|
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
-$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
|
|
if test "$GCC" = yes; then
|
|
lt_prog_compiler_wl='-Wl,'
|
|
@@ -7910,6 +8403,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='--shared'
|
|
lt_prog_compiler_static='--static'
|
|
;;
|
|
+ nagfor*)
|
|
+ # NAG Fortran compiler
|
|
+ lt_prog_compiler_wl='-Wl,-Wl,,'
|
|
+ lt_prog_compiler_pic='-PIC'
|
|
+ lt_prog_compiler_static='-Bstatic'
|
|
+ ;;
|
|
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
|
# Portland Group compilers (*not* the Pentium gcc compiler,
|
|
# which looks to be a dead project)
|
|
@@ -7972,7 +8471,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
lt_prog_compiler_pic='-KPIC'
|
|
lt_prog_compiler_static='-Bstatic'
|
|
case $cc_basename in
|
|
- f77* | f90* | f95*)
|
|
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
|
lt_prog_compiler_wl='-Qoption ld ';;
|
|
*)
|
|
lt_prog_compiler_wl='-Wl,';;
|
|
@@ -8029,13 +8528,17 @@ case $host_os in
|
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
|
;;
|
|
esac
|
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
|
|
-$as_echo "$lt_prog_compiler_pic" >&6; }
|
|
-
|
|
-
|
|
-
|
|
-
|
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
|
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
|
+if ${lt_cv_prog_compiler_pic+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
|
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
|
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
|
|
|
#
|
|
# Check to make sure the PIC flag actually works.
|
|
@@ -8096,6 +8599,11 @@ fi
|
|
|
|
|
|
|
|
+
|
|
+
|
|
+
|
|
+
|
|
+
|
|
#
|
|
# Check to make sure the static flag actually works.
|
|
#
|
|
@@ -8446,7 +8954,8 @@ _LT_EOF
|
|
allow_undefined_flag=unsupported
|
|
always_export_symbols=no
|
|
enable_shared_with_static_runtimes=yes
|
|
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
|
|
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
|
|
|
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
|
@@ -8545,12 +9054,12 @@ _LT_EOF
|
|
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
|
hardcode_libdir_flag_spec=
|
|
hardcode_libdir_flag_spec_ld='-rpath $libdir'
|
|
- archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
|
|
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
|
if test "x$supports_anon_versioning" = xyes; then
|
|
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
|
echo "local: *; };" >> $output_objdir/$libname.ver~
|
|
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
|
fi
|
|
;;
|
|
esac
|
|
@@ -8564,8 +9073,8 @@ _LT_EOF
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
fi
|
|
;;
|
|
|
|
@@ -8583,8 +9092,8 @@ _LT_EOF
|
|
|
|
_LT_EOF
|
|
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8630,8 +9139,8 @@ _LT_EOF
|
|
|
|
*)
|
|
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
else
|
|
ld_shlibs=no
|
|
fi
|
|
@@ -8761,7 +9270,13 @@ _LT_EOF
|
|
allow_undefined_flag='-berok'
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- if test x$gcc_no_link = xyes; then
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test x$gcc_no_link = xyes; then
|
|
as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
|
fi
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
@@ -8777,22 +9292,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
@@ -8804,7 +9326,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
else
|
|
# Determine the default libpath from the value encoded in an
|
|
# empty executable.
|
|
- if test x$gcc_no_link = xyes; then
|
|
+ if test "${lt_cv_aix_libpath+set}" = set; then
|
|
+ aix_libpath=$lt_cv_aix_libpath
|
|
+else
|
|
+ if ${lt_cv_aix_libpath_+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ if test x$gcc_no_link = xyes; then
|
|
as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
|
fi
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
@@ -8820,22 +9348,29 @@ main ()
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
-lt_aix_libpath_sed='
|
|
- /Import File Strings/,/^$/ {
|
|
- /^0/ {
|
|
- s/^0 *\(.*\)$/\1/
|
|
- p
|
|
- }
|
|
- }'
|
|
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-# Check for a 64-bit object if we didn't find anything.
|
|
-if test -z "$aix_libpath"; then
|
|
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
-fi
|
|
+ lt_aix_libpath_sed='
|
|
+ /Import File Strings/,/^$/ {
|
|
+ /^0/ {
|
|
+ s/^0 *\([^ ]*\) *$/\1/
|
|
+ p
|
|
+ }
|
|
+ }'
|
|
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ # Check for a 64-bit object if we didn't find anything.
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
|
+ fi
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
+ if test -z "$lt_cv_aix_libpath_"; then
|
|
+ lt_cv_aix_libpath_="/usr/lib:/lib"
|
|
+ fi
|
|
+
|
|
+fi
|
|
+
|
|
+ aix_libpath=$lt_cv_aix_libpath_
|
|
+fi
|
|
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
|
# Warning - without using the other run time loading flags,
|
|
@@ -8880,20 +9415,63 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
# Microsoft Visual C++.
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
|
# no search path for DLLs.
|
|
- hardcode_libdir_flag_spec=' '
|
|
- allow_undefined_flag=unsupported
|
|
- # Tell ltmain to make .lib files, not .a files.
|
|
- libext=lib
|
|
- # Tell ltmain to make .dll files, not .so files.
|
|
- shrext_cmds=".dll"
|
|
- # FIXME: Setting linknames here is a bad hack.
|
|
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
- # The linker will automatically build a .lib file if we build a DLL.
|
|
- old_archive_from_new_cmds='true'
|
|
- # FIXME: Should let the user specify the lib program.
|
|
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
- fix_srcfile_path='`cygpath -w "$srcfile"`'
|
|
- enable_shared_with_static_runtimes=yes
|
|
+ case $cc_basename in
|
|
+ cl*)
|
|
+ # Native MSVC
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ always_export_symbols=yes
|
|
+ file_list_spec='@'
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
|
|
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ else
|
|
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
|
|
+ fi~
|
|
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
|
+ linknames='
|
|
+ # The linker will not automatically build a static lib if we build a DLL.
|
|
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
|
+ # Don't use ranlib
|
|
+ old_postinstall_cmds='chmod 644 $oldlib'
|
|
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
|
|
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
|
|
+ case $lt_outputfile in
|
|
+ *.exe|*.EXE) ;;
|
|
+ *)
|
|
+ lt_outputfile="$lt_outputfile.exe"
|
|
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
|
|
+ ;;
|
|
+ esac~
|
|
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
|
|
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
|
+ $RM "$lt_outputfile.manifest";
|
|
+ fi'
|
|
+ ;;
|
|
+ *)
|
|
+ # Assume MSVC wrapper
|
|
+ hardcode_libdir_flag_spec=' '
|
|
+ allow_undefined_flag=unsupported
|
|
+ # Tell ltmain to make .lib files, not .a files.
|
|
+ libext=lib
|
|
+ # Tell ltmain to make .dll files, not .so files.
|
|
+ shrext_cmds=".dll"
|
|
+ # FIXME: Setting linknames here is a bad hack.
|
|
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
|
+ # The linker will automatically build a .lib file if we build a DLL.
|
|
+ old_archive_from_new_cmds='true'
|
|
+ # FIXME: Should let the user specify the lib program.
|
|
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
|
+ enable_shared_with_static_runtimes=yes
|
|
+ ;;
|
|
+ esac
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
@@ -8954,7 +9532,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
|
freebsd* | dragonfly*)
|
|
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
@@ -8962,7 +9540,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux9*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
else
|
|
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
|
|
fi
|
|
@@ -8978,7 +9556,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
|
|
hpux10*)
|
|
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
else
|
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
fi
|
|
@@ -9002,10 +9580,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
ia64*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
*)
|
|
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
;;
|
|
esac
|
|
else
|
|
@@ -9084,26 +9662,39 @@ fi
|
|
|
|
irix5* | irix6* | nonstopux*)
|
|
if test "$GCC" = yes; then
|
|
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
# Try to use the -exported_symbol ld option, if it does not
|
|
# work, assume that -exports_file does not work either and
|
|
# implicitly export all symbols.
|
|
- save_LDFLAGS="$LDFLAGS"
|
|
- LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
- if test x$gcc_no_link = xyes; then
|
|
+ # This should be the same for all languages, so no per-tag cache variable.
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
|
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
|
+if ${lt_cv_irix_exported_symbol+:} false; then :
|
|
+ $as_echo_n "(cached) " >&6
|
|
+else
|
|
+ save_LDFLAGS="$LDFLAGS"
|
|
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
|
|
+ if test x$gcc_no_link = xyes; then
|
|
as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
|
|
fi
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
/* end confdefs.h. */
|
|
-int foo(void) {}
|
|
+int foo (void) { return 0; }
|
|
_ACEOF
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
-
|
|
+ lt_cv_irix_exported_symbol=yes
|
|
+else
|
|
+ lt_cv_irix_exported_symbol=no
|
|
fi
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
- LDFLAGS="$save_LDFLAGS"
|
|
+ LDFLAGS="$save_LDFLAGS"
|
|
+fi
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
|
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
|
+ if test "$lt_cv_irix_exported_symbol" = yes; then
|
|
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
|
|
+ fi
|
|
else
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
|
|
@@ -9188,7 +9779,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag
|
|
if test "$GCC" = yes; then
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
|
|
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
|
else
|
|
allow_undefined_flag=' -expect_unresolved \*'
|
|
@@ -9207,9 +9798,9 @@ rm -f core conftest.err conftest.$ac_objext \
|
|
no_undefined_flag=' -z defs'
|
|
if test "$GCC" = yes; then
|
|
wlarc='${wl}'
|
|
- archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
|
- $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
|
else
|
|
case `$CC -V 2>&1` in
|
|
*"Compilers 5.0"*)
|
|
@@ -9785,8 +10376,9 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
|
|
- case $GCC,$host_os in
|
|
- yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
|
|
+ case $GCC,$cc_basename in
|
|
+ yes,*)
|
|
+ # gcc
|
|
library_names_spec='$libname.dll.a'
|
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
postinstall_cmds='base_file=`basename \${file}`~
|
|
@@ -9819,13 +10411,71 @@ cygwin* | mingw* | pw32* | cegcc*)
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
;;
|
|
esac
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
+ ;;
|
|
+
|
|
+ *,cl*)
|
|
+ # Native MSVC
|
|
+ libname_spec='$name'
|
|
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
|
+ library_names_spec='${libname}.dll.lib'
|
|
+
|
|
+ case $build_os in
|
|
+ mingw*)
|
|
+ sys_lib_search_path_spec=
|
|
+ lt_save_ifs=$IFS
|
|
+ IFS=';'
|
|
+ for lt_path in $LIB
|
|
+ do
|
|
+ IFS=$lt_save_ifs
|
|
+ # Let DOS variable expansion print the short 8.3 style file name.
|
|
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
|
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
|
+ done
|
|
+ IFS=$lt_save_ifs
|
|
+ # Convert to MSYS style.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
|
+ ;;
|
|
+ cygwin*)
|
|
+ # Convert to unix form, then to dos form, then back to unix form
|
|
+ # but this time dos style (no spaces!) so that the unix form looks
|
|
+ # like /cygdrive/c/PROGRA~1:/cygdr...
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
|
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
|
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ ;;
|
|
+ *)
|
|
+ sys_lib_search_path_spec="$LIB"
|
|
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
|
+ # It is most probably a Windows format PATH.
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
|
+ else
|
|
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
|
+ fi
|
|
+ # FIXME: find the short name or the path components, as spaces are
|
|
+ # common. (e.g. "Program Files" -> "PROGRA~1")
|
|
+ ;;
|
|
+ esac
|
|
+
|
|
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
|
+ postinstall_cmds='base_file=`basename \${file}`~
|
|
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
|
|
+ dldir=$destdir/`dirname \$dlpath`~
|
|
+ test -d \$dldir || mkdir -p \$dldir~
|
|
+ $install_prog $dir/$dlname \$dldir/$dlname'
|
|
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
|
+ dlpath=$dir/\$dldll~
|
|
+ $RM \$dlpath'
|
|
+ shlibpath_overrides_runpath=yes
|
|
+ dynamic_linker='Win32 link.exe'
|
|
;;
|
|
|
|
*)
|
|
+ # Assume MSVC wrapper
|
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
|
|
+ dynamic_linker='Win32 ld.exe'
|
|
;;
|
|
esac
|
|
- dynamic_linker='Win32 ld.exe'
|
|
# FIXME: first we should search . and the directory the executable is in
|
|
shlibpath_var=PATH
|
|
;;
|
|
@@ -10745,7 +11395,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10748 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10789,10 +11439,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -10851,7 +11501,7 @@ else
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
|
lt_status=$lt_dlunknown
|
|
cat > conftest.$ac_ext <<_LT_EOF
|
|
-#line 10854 "configure"
|
|
+#line $LINENO "configure"
|
|
#include "confdefs.h"
|
|
|
|
#if HAVE_DLFCN_H
|
|
@@ -10895,10 +11545,10 @@ else
|
|
/* When -fvisbility=hidden is used, assume the code has been annotated
|
|
correspondingly for the symbols needed. */
|
|
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
-void fnord () __attribute__((visibility("default")));
|
|
+int fnord () __attribute__((visibility("default")));
|
|
#endif
|
|
|
|
-void fnord () { int i=42; }
|
|
+int fnord () { return 42; }
|
|
int main ()
|
|
{
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
|
@@ -12377,13 +13027,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
|
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
|
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
|
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
|
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
|
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
|
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
|
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
|
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
|
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
|
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
|
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
|
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
|
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
|
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
|
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
|
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
|
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
|
@@ -12398,14 +13055,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
|
|
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
|
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
|
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
|
-lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
|
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
|
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
|
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
|
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
|
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
|
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
|
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
|
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
|
@@ -12438,12 +13098,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
|
|
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
|
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
|
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
|
-fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
|
|
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
|
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
|
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
|
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
|
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
|
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
|
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
|
@@ -12498,8 +13158,13 @@ reload_flag \
|
|
OBJDUMP \
|
|
deplibs_check_method \
|
|
file_magic_cmd \
|
|
+file_magic_glob \
|
|
+want_nocaseglob \
|
|
+DLLTOOL \
|
|
+sharedlib_from_linklib_cmd \
|
|
AR \
|
|
AR_FLAGS \
|
|
+archiver_list_spec \
|
|
STRIP \
|
|
RANLIB \
|
|
CC \
|
|
@@ -12509,12 +13174,14 @@ lt_cv_sys_global_symbol_pipe \
|
|
lt_cv_sys_global_symbol_to_cdecl \
|
|
lt_cv_sys_global_symbol_to_c_name_address \
|
|
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
|
+nm_file_list_spec \
|
|
lt_prog_compiler_no_builtin_flag \
|
|
-lt_prog_compiler_wl \
|
|
lt_prog_compiler_pic \
|
|
+lt_prog_compiler_wl \
|
|
lt_prog_compiler_static \
|
|
lt_cv_prog_compiler_c_o \
|
|
need_locks \
|
|
+MANIFEST_TOOL \
|
|
DSYMUTIL \
|
|
NMEDIT \
|
|
LIPO \
|
|
@@ -12530,7 +13197,6 @@ no_undefined_flag \
|
|
hardcode_libdir_flag_spec \
|
|
hardcode_libdir_flag_spec_ld \
|
|
hardcode_libdir_separator \
|
|
-fix_srcfile_path \
|
|
exclude_expsyms \
|
|
include_expsyms \
|
|
file_list_spec \
|
|
@@ -12566,6 +13232,7 @@ module_cmds \
|
|
module_expsym_cmds \
|
|
export_symbols_cmds \
|
|
prelink_cmds \
|
|
+postlink_cmds \
|
|
postinstall_cmds \
|
|
postuninstall_cmds \
|
|
finish_cmds \
|
|
@@ -13164,7 +13831,8 @@ $as_echo X"$file" |
|
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
|
#
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
-# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
+# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
|
|
+# Inc.
|
|
# Written by Gordon Matzigkeit, 1996
|
|
#
|
|
# This file is part of GNU Libtool.
|
|
@@ -13267,19 +13935,42 @@ SP2NL=$lt_lt_SP2NL
|
|
# turn newlines into spaces.
|
|
NL2SP=$lt_lt_NL2SP
|
|
|
|
+# convert \$build file names to \$host format.
|
|
+to_host_file_cmd=$lt_cv_to_host_file_cmd
|
|
+
|
|
+# convert \$build files to toolchain format.
|
|
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
|
+
|
|
# An object symbol dumper.
|
|
OBJDUMP=$lt_OBJDUMP
|
|
|
|
# Method to check whether dependent libraries are shared objects.
|
|
deplibs_check_method=$lt_deplibs_check_method
|
|
|
|
-# Command to use when deplibs_check_method == "file_magic".
|
|
+# Command to use when deplibs_check_method = "file_magic".
|
|
file_magic_cmd=$lt_file_magic_cmd
|
|
|
|
+# How to find potential files when deplibs_check_method = "file_magic".
|
|
+file_magic_glob=$lt_file_magic_glob
|
|
+
|
|
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
|
+want_nocaseglob=$lt_want_nocaseglob
|
|
+
|
|
+# DLL creation program.
|
|
+DLLTOOL=$lt_DLLTOOL
|
|
+
|
|
+# Command to associate shared and link libraries.
|
|
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
|
+
|
|
# The archiver.
|
|
AR=$lt_AR
|
|
+
|
|
+# Flags to create an archive.
|
|
AR_FLAGS=$lt_AR_FLAGS
|
|
|
|
+# How to feed a file listing to the archiver.
|
|
+archiver_list_spec=$lt_archiver_list_spec
|
|
+
|
|
# A symbol stripping program.
|
|
STRIP=$lt_STRIP
|
|
|
|
@@ -13309,6 +14000,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
|
# Transform the output of nm in a C name address pair when lib prefix is needed.
|
|
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
|
|
|
+# Specify filename containing input files for \$NM.
|
|
+nm_file_list_spec=$lt_nm_file_list_spec
|
|
+
|
|
+# The root where to search for dependent libraries,and in which our libraries should be installed.
|
|
+lt_sysroot=$lt_sysroot
|
|
+
|
|
# The name of the directory that contains temporary libtool files.
|
|
objdir=$objdir
|
|
|
|
@@ -13318,6 +14015,9 @@ MAGIC_CMD=$MAGIC_CMD
|
|
# Must we lock files when doing compilation?
|
|
need_locks=$lt_need_locks
|
|
|
|
+# Manifest tool.
|
|
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
|
+
|
|
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
|
DSYMUTIL=$lt_DSYMUTIL
|
|
|
|
@@ -13432,12 +14132,12 @@ with_gcc=$GCC
|
|
# Compiler flag to turn off builtin functions.
|
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
|
|
|
-# How to pass a linker flag through the compiler.
|
|
-wl=$lt_lt_prog_compiler_wl
|
|
-
|
|
# Additional compiler flags for building library objects.
|
|
pic_flag=$lt_lt_prog_compiler_pic
|
|
|
|
+# How to pass a linker flag through the compiler.
|
|
+wl=$lt_lt_prog_compiler_wl
|
|
+
|
|
# Compiler flag to prevent dynamic linking.
|
|
link_static_flag=$lt_lt_prog_compiler_static
|
|
|
|
@@ -13524,9 +14224,6 @@ inherit_rpath=$inherit_rpath
|
|
# Whether libtool must link a program against all its dependency libraries.
|
|
link_all_deplibs=$link_all_deplibs
|
|
|
|
-# Fix the shell variable \$srcfile for the compiler.
|
|
-fix_srcfile_path=$lt_fix_srcfile_path
|
|
-
|
|
# Set to "yes" if exported symbols are required.
|
|
always_export_symbols=$always_export_symbols
|
|
|
|
@@ -13542,6 +14239,9 @@ include_expsyms=$lt_include_expsyms
|
|
# Commands necessary for linking programs (against libraries) with templates.
|
|
prelink_cmds=$lt_prelink_cmds
|
|
|
|
+# Commands necessary for finishing linking programs.
|
|
+postlink_cmds=$lt_postlink_cmds
|
|
+
|
|
# Specify filename containing input files.
|
|
file_list_spec=$lt_file_list_spec
|
|
|
|
@@ -13574,210 +14274,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in
|
|
# text mode, it properly converts lines to CR/LF. This bash problem
|
|
# is reportedly fixed, but why not run on old versions too?
|
|
- sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- case $xsi_shell in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_dirname_and_basename file append nondir_replacement
|
|
-# perform func_basename and func_dirname in a single function
|
|
-# call:
|
|
-# dirname: Compute the dirname of FILE. If nonempty,
|
|
-# add APPEND to the result, otherwise set result
|
|
-# to NONDIR_REPLACEMENT.
|
|
-# value returned in "$func_dirname_result"
|
|
-# basename: Compute filename of FILE.
|
|
-# value retuned in "$func_basename_result"
|
|
-# Implementation must be kept synchronized with func_dirname
|
|
-# and func_basename. For efficiency, we do not delegate to
|
|
-# those functions but instead duplicate the functionality here.
|
|
-func_dirname_and_basename ()
|
|
-{
|
|
- case ${1} in
|
|
- */*) func_dirname_result="${1%/*}${2}" ;;
|
|
- * ) func_dirname_result="${3}" ;;
|
|
- esac
|
|
- func_basename_result="${1##*/}"
|
|
-}
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-func_stripname ()
|
|
-{
|
|
- # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
|
|
- # positional parameters, so assign one to ordinary parameter first.
|
|
- func_stripname_result=${3}
|
|
- func_stripname_result=${func_stripname_result#"${1}"}
|
|
- func_stripname_result=${func_stripname_result%"${2}"}
|
|
-}
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=${1%%=*}
|
|
- func_opt_split_arg=${1#*=}
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- case ${1} in
|
|
- *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
|
|
- *) func_lo2o_result=${1} ;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=${1%.*}.lo
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=$(( $* ))
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=${#1}
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- *) # Bourne compatible functions.
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_dirname file append nondir_replacement
|
|
-# Compute the dirname of FILE. If nonempty, add APPEND to the result,
|
|
-# otherwise set result to NONDIR_REPLACEMENT.
|
|
-func_dirname ()
|
|
-{
|
|
- # Extract subdirectory from the argument.
|
|
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
|
|
- if test "X$func_dirname_result" = "X${1}"; then
|
|
- func_dirname_result="${3}"
|
|
- else
|
|
- func_dirname_result="$func_dirname_result${2}"
|
|
- fi
|
|
-}
|
|
-
|
|
-# func_basename file
|
|
-func_basename ()
|
|
-{
|
|
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
|
|
-}
|
|
-
|
|
-
|
|
-# func_stripname prefix suffix name
|
|
-# strip PREFIX and SUFFIX off of NAME.
|
|
-# PREFIX and SUFFIX must not contain globbing or regex special
|
|
-# characters, hashes, percent signs, but SUFFIX may contain a leading
|
|
-# dot (in which case that matches only a dot).
|
|
-# func_strip_suffix prefix name
|
|
-func_stripname ()
|
|
-{
|
|
- case ${2} in
|
|
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
|
|
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
|
|
- esac
|
|
-}
|
|
-
|
|
-# sed scripts:
|
|
-my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
|
|
-my_sed_long_arg='1s/^-[^=]*=//'
|
|
-
|
|
-# func_opt_split
|
|
-func_opt_split ()
|
|
-{
|
|
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
|
|
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
|
|
-}
|
|
-
|
|
-# func_lo2o object
|
|
-func_lo2o ()
|
|
-{
|
|
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
|
|
-}
|
|
-
|
|
-# func_xform libobj-or-source
|
|
-func_xform ()
|
|
-{
|
|
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
|
|
-}
|
|
-
|
|
-# func_arith arithmetic-term...
|
|
-func_arith ()
|
|
-{
|
|
- func_arith_result=`expr "$@"`
|
|
-}
|
|
-
|
|
-# func_len string
|
|
-# STRING may not start with a hyphen.
|
|
-func_len ()
|
|
-{
|
|
- func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
-esac
|
|
-
|
|
-case $lt_shell_append in
|
|
- yes)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1+=\$2"
|
|
-}
|
|
-_LT_EOF
|
|
- ;;
|
|
- *)
|
|
- cat << \_LT_EOF >> "$cfgfile"
|
|
-
|
|
-# func_append var value
|
|
-# Append VALUE to the end of shell variable VAR.
|
|
-func_append ()
|
|
-{
|
|
- eval "$1=\$$1\$2"
|
|
-}
|
|
-
|
|
-_LT_EOF
|
|
- ;;
|
|
- esac
|
|
-
|
|
-
|
|
- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
|
|
- || (rm -f "$cfgfile"; exit 1)
|
|
-
|
|
- mv -f "$cfgfile" "$ofile" ||
|
|
+ sed '$q' "$ltmain" >> "$cfgfile" \
|
|
+ || (rm -f "$cfgfile"; exit 1)
|
|
+
|
|
+ if test x"$xsi_shell" = xyes; then
|
|
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
|
|
+func_dirname ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
|
|
+func_basename ()\
|
|
+{\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
|
|
+func_dirname_and_basename ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
|
|
+\ * ) func_dirname_result="${3}" ;;\
|
|
+\ esac\
|
|
+\ func_basename_result="${1##*/}"\
|
|
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
|
|
+func_stripname ()\
|
|
+{\
|
|
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
|
|
+\ # positional parameters, so assign one to ordinary parameter first.\
|
|
+\ func_stripname_result=${3}\
|
|
+\ func_stripname_result=${func_stripname_result#"${1}"}\
|
|
+\ func_stripname_result=${func_stripname_result%"${2}"}\
|
|
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
|
|
+func_split_long_opt ()\
|
|
+{\
|
|
+\ func_split_long_opt_name=${1%%=*}\
|
|
+\ func_split_long_opt_arg=${1#*=}\
|
|
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
|
|
+func_split_short_opt ()\
|
|
+{\
|
|
+\ func_split_short_opt_arg=${1#??}\
|
|
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
|
|
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
|
|
+func_lo2o ()\
|
|
+{\
|
|
+\ case ${1} in\
|
|
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
|
|
+\ *) func_lo2o_result=${1} ;;\
|
|
+\ esac\
|
|
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
|
|
+func_xform ()\
|
|
+{\
|
|
+ func_xform_result=${1%.*}.lo\
|
|
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
|
|
+func_arith ()\
|
|
+{\
|
|
+ func_arith_result=$(( $* ))\
|
|
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_len ()$/,/^} # func_len /c\
|
|
+func_len ()\
|
|
+{\
|
|
+ func_len_result=${#1}\
|
|
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+fi
|
|
+
|
|
+if test x"$lt_shell_append" = xyes; then
|
|
+ sed -e '/^func_append ()$/,/^} # func_append /c\
|
|
+func_append ()\
|
|
+{\
|
|
+ eval "${1}+=\\${2}"\
|
|
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
|
|
+func_append_quoted ()\
|
|
+{\
|
|
+\ func_quote_for_eval "${2}"\
|
|
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
|
|
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+test 0 -eq $? || _lt_function_replace_fail=:
|
|
+
|
|
+
|
|
+ # Save a `func_append' function call where possible by direct use of '+='
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+else
|
|
+ # Save a `func_append' function call even when '+=' is not available
|
|
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
|
|
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
|
|
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
|
|
+ test 0 -eq $? || _lt_function_replace_fail=:
|
|
+fi
|
|
+
|
|
+if test x"$_lt_function_replace_fail" = x":"; then
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
|
|
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
|
|
+fi
|
|
+
|
|
+
|
|
+ mv -f "$cfgfile" "$ofile" ||
|
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
|
chmod +x "$ofile"
|
|
|