libtool.m4   libtool.m4 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
# #
# Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
# Foundation, Inc.
# Written by Gordon Matzigkeit, 1996 # Written by Gordon Matzigkeit, 1996
# #
# This file is free software; the Free Software Foundation gives # This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without # unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved. # modifications, as long as this notice is preserved.
m4_define([_LT_COPYING], [dnl m4_define([_LT_COPYING], [dnl
# Copyright (C) 2014 Free Software Foundation, Inc. # Copyright (C) 2014 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is N O # This is free software; see the source for copying conditions. There is N O
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS E. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS E.
skipping to change at line 35 skipping to change at line 34
# #
# GNU Libtool is distributed in the hope that it will be useful, but # GNU Libtool is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of # WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
]) ])
# serial 59 LT_INIT # serial 58 LT_INIT
# LT_PREREQ(VERSION) # LT_PREREQ(VERSION)
# ------------------ # ------------------
# Complain and exit if this libtool version is less that VERSION. # Complain and exit if this libtool version is less that VERSION.
m4_defun([LT_PREREQ], m4_defun([LT_PREREQ],
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
[m4_default([$3], [m4_default([$3],
[m4_fatal([Libtool version $1 or higher is required], [m4_fatal([Libtool version $1 or higher is required],
63)])], 63)])],
[$2])]) [$2])])
skipping to change at line 178 skipping to change at line 177
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
dnl dnl
AC_REQUIRE([LT_CMD_MAX_LEN])dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dn l
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
dnl dnl
m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl
m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl
m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CMD_RELOAD])dnl
m4_require([_LT_DECL_FILECMD])dnl
m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl
m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_WITH_SYSROOT])dnl
m4_require([_LT_CMD_TRUNCATE])dnl m4_require([_LT_CMD_TRUNCATE])dnl
_LT_CONFIG_LIBTOOL_INIT([ _LT_CONFIG_LIBTOOL_INIT([
# See if we are running on zsh, and set the options that allow our # See if we are running on zsh, and set the options that allow our
# commands through without removal of \ escapes INIT. # commands through without removal of \ escapes INIT.
skipping to change at line 217 skipping to change at line 215
COLLECT_NAMES= COLLECT_NAMES=
export COLLECT_NAMES export COLLECT_NAMES
fi fi
;; ;;
esac esac
# Global variables: # Global variables:
ofile=libtool ofile=libtool
can_build_shared=yes can_build_shared=yes
# All known linkers require a '.a' archive for static linking (except MSVC # All known linkers require a '.a' archive for static linking (except MSVC,
and # which needs '.lib').
# ICC, which need '.lib').
libext=a libext=a
with_gnu_ld=$lt_cv_prog_gnu_ld with_gnu_ld=$lt_cv_prog_gnu_ld
old_CC=$CC old_CC=$CC
old_CFLAGS=$CFLAGS old_CFLAGS=$CFLAGS
# Set sane defaults for various variables # Set sane defaults for various variables
test -z "$CC" && CC=cc test -z "$CC" && CC=cc
test -z "$LTCC" && LTCC=$CC test -z "$LTCC" && LTCC=$CC
skipping to change at line 749 skipping to change at line 747
_LT_EOF _LT_EOF
;; ;;
esac esac
_LT_PROG_LTMAIN _LT_PROG_LTMAIN
# We use sed instead of cat because bash on DJGPP gets confused if # We use sed instead of cat because bash on DJGPP gets confused if
# if finds mixed CR/LF and LF-only lines. Since sed operates in # 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 # text mode, it properly converts lines to CR/LF. This bash problem
# is reportedly fixed, but why not run on old versions too? # is reportedly fixed, but why not run on old versions too?
$SED '$q' "$ltmain" >> "$cfgfile" \ sed '$q' "$ltmain" >> "$cfgfile" \
|| (rm -f "$cfgfile"; exit 1) || (rm -f "$cfgfile"; exit 1)
mv -f "$cfgfile" "$ofile" || mv -f "$cfgfile" "$ofile" ||
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
chmod +x "$ofile" chmod +x "$ofile"
], ],
[cat <<_LT_EOF >> "$ofile" [cat <<_LT_EOF >> "$ofile"
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
dnl in a comment (ie after a #). dnl in a comment (ie after a #).
skipping to change at line 1004 skipping to change at line 1002
LDFLAGS=$save_LDFLAGS LDFLAGS=$save_LDFLAGS
]) ])
AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
[lt_cv_ld_force_load=no [lt_cv_ld_force_load=no
cat > conftest.c << _LT_EOF cat > conftest.c << _LT_EOF
int forced_loaded() { return 2;} int forced_loaded() { return 2;}
_LT_EOF _LT_EOF
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_F D echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_F D
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
$AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
cat > conftest.c << _LT_EOF cat > conftest.c << _LT_EOF
int main() { return 0;} int main() { return 0;}
_LT_EOF _LT_EOF
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load ,./libconftest.a" >&AS_MESSAGE_LOG_FD echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load ,./libconftest.a" >&AS_MESSAGE_LOG_FD
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./lib conftest.a 2>conftest.err $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./lib conftest.a 2>conftest.err
_lt_result=$? _lt_result=$?
if test -s conftest.err && $GREP force_load conftest.err; then if test -s conftest.err && $GREP force_load conftest.err; then
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
skipping to change at line 1029 skipping to change at line 1027
cat conftest.err >&AS_MESSAGE_LOG_FD cat conftest.err >&AS_MESSAGE_LOG_FD
fi fi
rm -f conftest.err libconftest.a conftest conftest.c rm -f conftest.err libconftest.a conftest conftest.c
rm -rf conftest.dSYM rm -rf conftest.dSYM
]) ])
case $host_os in case $host_os in
rhapsody* | darwin1.[[012]]) rhapsody* | darwin1.[[012]])
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
darwin1.*) darwin1.*)
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppre ss' ;; _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppre ss' ;;
darwin*) darwin*) # darwin 5.x on
case $MACOSX_DEPLOYMENT_TARGET,$host in # if running on 10.5 or later, the deployment target defaults
10.[[012]],*|,*powerpc*-darwin[[5-8]]*) # to the OS version, if on x86, and 10.4, the deployment
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}su # target defaults to 10.4. Don't you love it?
ppress' ;; case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
*) 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10.[[012]][[,.]]*)
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}sup
press' ;;
10.*)
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
esac esac
;; ;;
esac esac
if test yes = "$lt_cv_apple_cc_single_mod"; then if test yes = "$lt_cv_apple_cc_single_mod"; then
_lt_dar_single_mod='$single_module' _lt_dar_single_mod='$single_module'
fi fi
if test yes = "$lt_cv_ld_exported_symbols_list"; then if test yes = "$lt_cv_ld_exported_symbols_list"; then
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libna me-symbols.expsym' _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libna me-symbols.expsym'
else else
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.exps ym $lib' _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.exps ym $lib'
skipping to change at line 1082 skipping to change at line 1085
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
_LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
case $cc_basename in case $cc_basename in
ifort*|nagfor*) _lt_dar_can_shared=yes ;; ifort*|nagfor*) _lt_dar_can_shared=yes ;;
*) _lt_dar_can_shared=$GCC ;; *) _lt_dar_can_shared=$GCC ;;
esac esac
if test yes = "$_lt_dar_can_shared"; then if test yes = "$_lt_dar_can_shared"; then
output_verbose_link_cmd=func_echo_all output_verbose_link_cmd=func_echo_all
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag - o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag - o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bund le \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bund le \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
_LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols >
\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefine \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined
d_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/ _flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\
\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" $soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
_LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols
> \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \
\$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_ $lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_d
dsymutil" symutil"
m4_if([$1], [CXX], m4_if([$1], [CXX],
[ if test yes != "$lt_cv_apple_cc_single_mod"; then [ if test yes != "$lt_cv_apple_cc_single_mod"; then
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$l ib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$l ib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
_LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs - nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_fla g -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/ \$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -n ostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\ $soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
fi fi
],[]) ],[])
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
]) ])
# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
# ---------------------------------- # ----------------------------------
# Links a minimal program and checks the executable # Links a minimal program and checks the executable
skipping to change at line 1197 skipping to change at line 1200
test "X`printf %s $ECHO`" = "X$ECHO" \ test "X`printf %s $ECHO`" = "X$ECHO" \
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])]) || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
])# _LT_PROG_ECHO_BACKSLASH ])# _LT_PROG_ECHO_BACKSLASH
# _LT_WITH_SYSROOT # _LT_WITH_SYSROOT
# ---------------- # ----------------
AC_DEFUN([_LT_WITH_SYSROOT], AC_DEFUN([_LT_WITH_SYSROOT],
[m4_require([_LT_DECL_SED])dnl [AC_MSG_CHECKING([for sysroot])
AC_MSG_CHECKING([for sysroot])
AC_ARG_WITH([sysroot], AC_ARG_WITH([sysroot],
[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
[Search for dependent libraries within DIR (or the compiler's sysroot [Search for dependent libraries within DIR (or the compiler's sysroot
if not specified).])], if not specified).])],
[], [with_sysroot=no]) [], [with_sysroot=no])
dnl lt_sysroot will always be passed unquoted. We quote it here dnl lt_sysroot will always be passed unquoted. We quote it here
dnl in case the user passed a directory name. dnl in case the user passed a directory name.
lt_sysroot= lt_sysroot=
case $with_sysroot in #( case $with_sysroot in #(
yes) yes)
if test yes = "$GCC"; then if test yes = "$GCC"; then
lt_sysroot=`$CC --print-sysroot 2>/dev/null` lt_sysroot=`$CC --print-sysroot 2>/dev/null`
fi fi
;; #( ;; #(
/*) /*)
lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
;; #( ;; #(
no|'') no|'')
;; #( ;; #(
*) *)
AC_MSG_RESULT([$with_sysroot]) AC_MSG_RESULT([$with_sysroot])
AC_MSG_ERROR([The sysroot must be an absolute path.]) AC_MSG_ERROR([The sysroot must be an absolute path.])
;; ;;
esac esac
AC_MSG_RESULT([${lt_sysroot:-no}]) AC_MSG_RESULT([${lt_sysroot:-no}])
skipping to change at line 1245 skipping to change at line 1247
test no = "$enable_libtool_lock" || enable_libtool_lock=yes test no = "$enable_libtool_lock" || enable_libtool_lock=yes
# Some flags need to be propagated to the compiler or linker for good # Some flags need to be propagated to the compiler or linker for good
# libtool support. # libtool support.
case $host in case $host in
ia64-*-hpux*) ia64-*-hpux*)
# Find out what ABI is being produced by ac_compile, and set mode # Find out what ABI is being produced by ac_compile, and set mode
# options accordingly. # options accordingly.
echo 'int i;' > conftest.$ac_ext echo 'int i;' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*ELF-32*) *ELF-32*)
HPUX_IA64_MODE=32 HPUX_IA64_MODE=32
;; ;;
*ELF-64*) *ELF-64*)
HPUX_IA64_MODE=64 HPUX_IA64_MODE=64
;; ;;
esac esac
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
*-*-irix6*) *-*-irix6*)
# Find out what ABI is being produced by ac_compile, and set linker # Find out what ABI is being produced by ac_compile, and set linker
# options accordingly. # options accordingly.
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
if test yes = "$lt_cv_prog_gnu_ld"; then if test yes = "$lt_cv_prog_gnu_ld"; then
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*32-bit*) *32-bit*)
LD="${LD-ld} -melf32bsmip" LD="${LD-ld} -melf32bsmip"
;; ;;
*N32*) *N32*)
LD="${LD-ld} -melf32bmipn32" LD="${LD-ld} -melf32bmipn32"
;; ;;
*64-bit*) *64-bit*)
LD="${LD-ld} -melf64bmip" LD="${LD-ld} -melf64bmip"
;; ;;
esac esac
else else
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*32-bit*) *32-bit*)
LD="${LD-ld} -32" LD="${LD-ld} -32"
;; ;;
*N32*) *N32*)
LD="${LD-ld} -n32" LD="${LD-ld} -n32"
;; ;;
*64-bit*) *64-bit*)
LD="${LD-ld} -64" LD="${LD-ld} -64"
;; ;;
esac esac
skipping to change at line 1296 skipping to change at line 1298
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
mips64*-*linux*) mips64*-*linux*)
# Find out what ABI is being produced by ac_compile, and set linker # Find out what ABI is being produced by ac_compile, and set linker
# options accordingly. # options accordingly.
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
emul=elf emul=elf
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*32-bit*) *32-bit*)
emul="${emul}32" emul="${emul}32"
;; ;;
*64-bit*) *64-bit*)
emul="${emul}64" emul="${emul}64"
;; ;;
esac esac
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*MSB*) *MSB*)
emul="${emul}btsmip" emul="${emul}btsmip"
;; ;;
*LSB*) *LSB*)
emul="${emul}ltsmip" emul="${emul}ltsmip"
;; ;;
esac esac
case `$FILECMD conftest.$ac_objext` in case `/usr/bin/file conftest.$ac_objext` in
*N32*) *N32*)
emul="${emul}n32" emul="${emul}n32"
;; ;;
esac esac
LD="${LD-ld} -m $emul" LD="${LD-ld} -m $emul"
fi fi
rm -rf conftest* rm -rf conftest*
;; ;;
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
# Find out what ABI is being produced by ac_compile, and set linker # Find out what ABI is being produced by ac_compile, and set linker
# options accordingly. Note that the listed cases only cover the # options accordingly. Note that the listed cases only cover the
# situations where additional linker options are needed (such as when # situations where additional linker options are needed (such as when
# doing 32-bit compilation for a host where ld defaults to 64-bit, or # doing 32-bit compilation for a host where ld defaults to 64-bit, or
# vice versa); the common cases where no linker options are needed do # vice versa); the common cases where no linker options are needed do
# not appear in the list. # not appear in the list.
echo 'int i;' > conftest.$ac_ext echo 'int i;' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
case `$FILECMD conftest.o` in case `/usr/bin/file conftest.o` in
*32-bit*) *32-bit*)
case $host in case $host in
x86_64-*kfreebsd*-gnu) x86_64-*kfreebsd*-gnu)
LD="${LD-ld} -m elf_i386_fbsd" LD="${LD-ld} -m elf_i386_fbsd"
;; ;;
x86_64-*linux*) x86_64-*linux*)
case `$FILECMD conftest.o` in case `/usr/bin/file conftest.o` in
*x86-64*) *x86-64*)
LD="${LD-ld} -m elf32_x86_64" LD="${LD-ld} -m elf32_x86_64"
;; ;;
*) *)
LD="${LD-ld} -m elf_i386" LD="${LD-ld} -m elf_i386"
;; ;;
esac esac
;; ;;
powerpc64le-*linux*) powerpc64le-*linux*)
LD="${LD-ld} -m elf32lppclinux" LD="${LD-ld} -m elf32lppclinux"
skipping to change at line 1407 skipping to change at line 1409
if test yes != "$lt_cv_cc_needs_belf"; then if test yes != "$lt_cv_cc_needs_belf"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS=$SAVE_CFLAGS CFLAGS=$SAVE_CFLAGS
fi fi
;; ;;
*-*solaris*) *-*solaris*)
# Find out what ABI is being produced by ac_compile, and set linker # Find out what ABI is being produced by ac_compile, and set linker
# options accordingly. # options accordingly.
echo 'int i;' > conftest.$ac_ext echo 'int i;' > conftest.$ac_ext
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
case `$FILECMD conftest.o` in case `/usr/bin/file conftest.o` in
*64-bit*) *64-bit*)
case $lt_cv_prog_gnu_ld in case $lt_cv_prog_gnu_ld in
yes*) yes*)
case $host in case $host in
i?86-*-solaris*|x86_64-*-solaris*) i?86-*-solaris*|x86_64-*-solaris*)
LD="${LD-ld} -m elf_x86_64" LD="${LD-ld} -m elf_x86_64"
;; ;;
sparc*-*-solaris*) sparc*-*-solaris*)
LD="${LD-ld} -m elf64_sparc" LD="${LD-ld} -m elf64_sparc"
;; ;;
skipping to change at line 1445 skipping to change at line 1447
esac esac
need_locks=$enable_libtool_lock need_locks=$enable_libtool_lock
])# _LT_ENABLE_LOCK ])# _LT_ENABLE_LOCK
# _LT_PROG_AR # _LT_PROG_AR
# ----------- # -----------
m4_defun([_LT_PROG_AR], m4_defun([_LT_PROG_AR],
[AC_CHECK_TOOLS(AR, [ar], false) [AC_CHECK_TOOLS(AR, [ar], false)
: ${AR=ar} : ${AR=ar}
: ${AR_FLAGS=cru}
_LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR], [1], [The archiver])
_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
# Use ARFLAGS variable as AR's operation code to sync the variable naming w
ith
# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should ha
ve
# higher priority because thats what people were doing historically (settin
g
# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
# variable obsoleted/removed.
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
lt_ar_flags=$AR_FLAGS
_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)
])
# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time over
ride
# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
[Flags to create an archive])
AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
[lt_cv_ar_at_file=no [lt_cv_ar_at_file=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM], AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
[echo conftest.$ac_objext > conftest.lst [echo conftest.$ac_objext > conftest.lst
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG _FD' lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG _FD'
AC_TRY_EVAL([lt_ar_try]) AC_TRY_EVAL([lt_ar_try])
if test 0 -eq "$ac_status"; then if test 0 -eq "$ac_status"; then
# Ensure the archiver fails upon bogus file names. # Ensure the archiver fails upon bogus file names.
rm -f conftest.$ac_objext libconftest.a rm -f conftest.$ac_objext libconftest.a
skipping to change at line 1675 skipping to change at line 1664
# On MiNT this can take a long time and run out of memory. # On MiNT this can take a long time and run out of memory.
lt_cv_sys_max_cmd_len=8192; lt_cv_sys_max_cmd_len=8192;
;; ;;
amigaos*) amigaos*)
# On AmigaOS with pdksh, this test takes hours, literally. # On AmigaOS with pdksh, this test takes hours, literally.
# So we just punt and use a minimum line length of 8192. # So we just punt and use a minimum line length of 8192.
lt_cv_sys_max_cmd_len=8192; lt_cv_sys_max_cmd_len=8192;
;; ;;
bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | open bsd*) bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
# This has been around since 386BSD, at least. Likely further. # This has been around since 386BSD, at least. Likely further.
if test -x /sbin/sysctl; then if test -x /sbin/sysctl; then
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
elif test -x /usr/sbin/sysctl; then elif test -x /usr/sbin/sysctl; then
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
else else
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
fi fi
# And add a safety zone # And add a safety zone
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
skipping to change at line 1718 skipping to change at line 1707
*1*) lt_cv_sys_max_cmd_len=-1 ;; *1*) lt_cv_sys_max_cmd_len=-1 ;;
esac esac
fi fi
;; ;;
sco3.2v5*) sco3.2v5*)
lt_cv_sys_max_cmd_len=102400 lt_cv_sys_max_cmd_len=102400
;; ;;
sysv5* | sco5v6* | sysv4.2uw2*) sysv5* | sco5v6* | sysv4.2uw2*)
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
if test -n "$kargmax"; then if test -n "$kargmax"; then
lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
else else
lt_cv_sys_max_cmd_len=32768 lt_cv_sys_max_cmd_len=32768
fi fi
;; ;;
*) *)
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
if test -n "$lt_cv_sys_max_cmd_len" && \ if test -n "$lt_cv_sys_max_cmd_len" && \
test undefined != "$lt_cv_sys_max_cmd_len"; then test undefined != "$lt_cv_sys_max_cmd_len"; then
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
skipping to change at line 2160 skipping to change at line 2149
[How to hardcode a shared library path into an executable]) [How to hardcode a shared library path into an executable])
])# _LT_LINKER_HARDCODE_LIBPATH ])# _LT_LINKER_HARDCODE_LIBPATH
# _LT_CMD_STRIPLIB # _LT_CMD_STRIPLIB
# ---------------- # ----------------
m4_defun([_LT_CMD_STRIPLIB], m4_defun([_LT_CMD_STRIPLIB],
[m4_require([_LT_DECL_EGREP]) [m4_require([_LT_DECL_EGREP])
striplib= striplib=
old_striplib= old_striplib=
AC_MSG_CHECKING([whether stripping libraries is possible]) AC_MSG_CHECKING([whether stripping libraries is possible])
if test -z "$STRIP"; then if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
AC_MSG_RESULT([no]) test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
AC_MSG_RESULT([yes])
else else
if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then # FIXME - insert some real tests, host_os isn't really good enough
old_striplib="$STRIP --strip-debug" case $host_os in
striplib="$STRIP --strip-unneeded" darwin*)
AC_MSG_RESULT([yes]) if test -n "$STRIP"; then
else
case $host_os in
darwin*)
# FIXME - insert some real tests, host_os isn't really good enough
striplib="$STRIP -x" striplib="$STRIP -x"
old_striplib="$STRIP -S" old_striplib="$STRIP -S"
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
;; else
freebsd*)
if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
old_striplib="$STRIP --strip-debug"
striplib="$STRIP --strip-unneeded"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
;;
*)
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
;; fi
esac ;;
fi *)
AC_MSG_RESULT([no])
;;
esac
fi fi
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
_LT_DECL([], [striplib], [1]) _LT_DECL([], [striplib], [1])
])# _LT_CMD_STRIPLIB ])# _LT_CMD_STRIPLIB
# _LT_PREPARE_MUNGE_PATH_LIST # _LT_PREPARE_MUNGE_PATH_LIST
# --------------------------- # ---------------------------
# Make sure func_munge_path_list() is defined correctly. # Make sure func_munge_path_list() is defined correctly.
m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
[[# func_munge_path_list VARIABLE PATH [[# func_munge_path_list VARIABLE PATH
skipping to change at line 2509 skipping to change at line 2489
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
fi' fi'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~
dlpath=$dir/\$dldll~ dlpath=$dir/\$dldll~
$RM \$dlpath' $RM \$dlpath'
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
case $host_os in case $host_os in
cygwin*) cygwin*)
# Cygwin DLLs use 'cyg' prefix rather than 'lib' # Cygwin DLLs use 'cyg' prefix rather than 'lib'
soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $ SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
m4_if([$1], [],[ m4_if([$1], [],[
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"] ) sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"] )
;; ;;
mingw* | cegcc*) mingw* | cegcc*)
# MinGW DLLs use traditional 'lib' prefix # MinGW DLLs use traditional 'lib' prefix
soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffi x$shared_ext' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffi x$shared_ext'
;; ;;
pw32*) pw32*)
# pw32 DLLs use 'pw' prefix rather than 'lib' # pw32 DLLs use 'pw' prefix rather than 'lib'
library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $rele ase | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $relea se | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
;; ;;
esac esac
dynamic_linker='Win32 ld.exe' dynamic_linker='Win32 ld.exe'
;; ;;
*,cl* | *,icl*) *,cl*)
# Native MSVC or ICC # Native MSVC
libname_spec='$name' libname_spec='$name'
soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$ shared_ext' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$ shared_ext'
library_names_spec='$libname.dll.lib' library_names_spec='$libname.dll.lib'
case $build_os in case $build_os in
mingw*) mingw*)
sys_lib_search_path_spec= sys_lib_search_path_spec=
lt_save_ifs=$IFS lt_save_ifs=$IFS
IFS=';' IFS=';'
for lt_path in $LIB for lt_path in $LIB
do do
IFS=$lt_save_ifs IFS=$lt_save_ifs
# Let DOS variable expansion print the short 8.3 style file name. # 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"` 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" sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
done done
IFS=$lt_save_ifs IFS=$lt_save_ifs
# Convert to MSYS style. # 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|^ ||'` 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*) cygwin*)
# Convert to unix form, then to dos form, then back to unix form # 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 # but this time dos style (no spaces!) so that the unix form looks
# like /cygdrive/c/PROGRA~1:/cygdr... # like /cygdrive/c/PROGRA~1:/cygdr...
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 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 --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=`cygpath --path --unix "$sys_lib_search_path _spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
;; ;;
*) *)
skipping to change at line 2582 skipping to change at line 2562
test -d \$dldir || mkdir -p \$dldir~ test -d \$dldir || mkdir -p \$dldir~
$install_prog $dir/$dlname \$dldir/$dlname' $install_prog $dir/$dlname \$dldir/$dlname'
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\' '`~
dlpath=$dir/\$dldll~ dlpath=$dir/\$dldll~
$RM \$dlpath' $RM \$dlpath'
shlibpath_overrides_runpath=yes shlibpath_overrides_runpath=yes
dynamic_linker='Win32 link.exe' dynamic_linker='Win32 link.exe'
;; ;;
*) *)
# Assume MSVC and ICC wrapper # Assume MSVC wrapper
library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$ver suffix$shared_ext $libname.lib' library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$ver suffix$shared_ext $libname.lib'
dynamic_linker='Win32 ld.exe' dynamic_linker='Win32 ld.exe'
;; ;;
esac esac
# FIXME: first we should search . and the directory the executable is in # FIXME: first we should search . and the directory the executable is in
shlibpath_var=PATH shlibpath_var=PATH
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
dynamic_linker="$host_os dyld" dynamic_linker="$host_os dyld"
skipping to change at line 2615 skipping to change at line 2595
dgux*) dgux*)
version_type=linux # correct to gnu/linux during the next big refactor version_type=linux # correct to gnu/linux during the next big refactor
need_lib_prefix=no need_lib_prefix=no
need_version=no need_version=no
library_names_spec='$libname$release$shared_ext$versuffix $libname$releas e$shared_ext$major $libname$shared_ext' library_names_spec='$libname$release$shared_ext$versuffix $libname$releas e$shared_ext$major $libname$shared_ext'
soname_spec='$libname$release$shared_ext$major' soname_spec='$libname$release$shared_ext$major'
shlibpath_var=LD_LIBRARY_PATH shlibpath_var=LD_LIBRARY_PATH
;; ;;
freebsd* | dragonfly* | midnightbsd*) freebsd* | dragonfly*)
# DragonFly does not have aout. When/if they implement a new # DragonFly does not have aout. When/if they implement a new
# versioning mechanism, adjust this. # versioning mechanism, adjust this.
if test -x /usr/bin/objformat; then if test -x /usr/bin/objformat; then
objformat=`/usr/bin/objformat` objformat=`/usr/bin/objformat`
else else
case $host_os in case $host_os in
freebsd[[23]].*) objformat=aout ;; freebsd[[23]].*) objformat=aout ;;
*) objformat=elf ;; *) objformat=elf ;;
esac esac
fi fi
skipping to change at line 3418 skipping to change at line 3398
aix[[4-9]]*) aix[[4-9]]*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
beos*) beos*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
bsdi[[45]]*) bsdi[[45]]*)
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( shared object|dynamic lib)' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( shared object|dynamic lib)'
lt_cv_file_magic_cmd='$FILECMD -L' lt_cv_file_magic_cmd='/usr/bin/file -L'
lt_cv_file_magic_test_file=/shlib/libc.so lt_cv_file_magic_test_file=/shlib/libc.so
;; ;;
cygwin*) cygwin*)
# func_win32_libid is a shell function defined in ltmain.sh # func_win32_libid is a shell function defined in ltmain.sh
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
lt_cv_file_magic_cmd='func_win32_libid' lt_cv_file_magic_cmd='func_win32_libid'
;; ;;
mingw* | pw32*) mingw* | pw32*)
skipping to change at line 3452 skipping to change at line 3432
cegcc*) cegcc*)
# use the weaker test based on 'objdump'. See mingw*. # use the weaker test based on 'objdump'. See mingw*.
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*arch itecture: arm)?' lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*arch itecture: arm)?'
lt_cv_file_magic_cmd='$OBJDUMP -f' lt_cv_file_magic_cmd='$OBJDUMP -f'
;; ;;
darwin* | rhapsody*) darwin* | rhapsody*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
freebsd* | dragonfly* | midnightbsd*) freebsd* | dragonfly*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
case $host_cpu in case $host_cpu in
i*86 ) i*86 )
# Not sure whether the presence of OpenBSD here was a mistake. # Not sure whether the presence of OpenBSD here was a mistake.
# Let's accept both of them until this is cleared up. # Let's accept both of them until this is cleared up.
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[ [3-9]]86 (compact )?demand paged shared library' lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[ [3-9]]86 (compact )?demand paged shared library'
lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
;; ;;
esac esac
else else
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
fi fi
;; ;;
haiku*) haiku*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
hpux10.20* | hpux11*) hpux10.20* | hpux11*)
lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_cmd=/usr/bin/file
case $host_cpu in case $host_cpu in
ia64*) ia64*)
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0- 9]][[0-9]]) shared object file - IA64' lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0- 9]][[0-9]]) shared object file - IA64'
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
;; ;;
hppa*64*) hppa*64*)
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][ 0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][ 0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
;; ;;
*) *)
skipping to change at line 3520 skipping to change at line 3500
netbsd* | netbsdelf*-gnu) netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|_pic\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|_pic\.a)$'
else else
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
fi fi
;; ;;
newos6*) newos6*)
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( executable|dynamic lib)' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB ( executable|dynamic lib)'
lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_cmd=/usr/bin/file
lt_cv_file_magic_test_file=/usr/lib/libnls.so lt_cv_file_magic_test_file=/usr/lib/libnls.so
;; ;;
*nto* | *qnx*) *nto* | *qnx*)
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
;; ;;
openbsd* | bitrig*) openbsd* | bitrig*)
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|\.so|_pic\.a)$' lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[ [0-9]]+|\.so|_pic\.a)$'
skipping to change at line 3646 skipping to change at line 3626
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
# Check to see if the nm accepts a BSD-compat flag. # Check to see if the nm accepts a BSD-compat flag.
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored # nm: unknown option "B" ignored
# Tru64's nm complains that /dev/null is an invalid object file # Tru64's nm complains that /dev/null is an invalid object file
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
case $build_os in case $build_os in
mingw*) lt_bad_file=conftest.nm/nofile ;; mingw*) lt_bad_file=conftest.nm/nofile ;;
*) lt_bad_file=/dev/null ;; *) lt_bad_file=/dev/null ;;
esac esac
case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
*$lt_bad_file* | *'Invalid file or object type'*) *$lt_bad_file* | *'Invalid file or object type'*)
lt_cv_path_NM="$tmp_nm -B" lt_cv_path_NM="$tmp_nm -B"
break 2 break 2
;; ;;
*) *)
case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
*/dev/null*) */dev/null*)
lt_cv_path_NM="$tmp_nm -p" lt_cv_path_NM="$tmp_nm -p"
break 2 break 2
;; ;;
*) *)
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flag s continue # so that we can try to find one that supports BSD flag s
;; ;;
esac esac
;; ;;
skipping to change at line 3678 skipping to change at line 3658
: ${lt_cv_path_NM=no} : ${lt_cv_path_NM=no}
fi]) fi])
if test no != "$lt_cv_path_NM"; then if test no != "$lt_cv_path_NM"; then
NM=$lt_cv_path_NM NM=$lt_cv_path_NM
else else
# Didn't find any BSD compatible name lister, look for dumpbin. # Didn't find any BSD compatible name lister, look for dumpbin.
if test -n "$DUMPBIN"; then : if test -n "$DUMPBIN"; then :
# Let the user override the test. # Let the user override the test.
else else
AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
*COFF*) *COFF*)
DUMPBIN="$DUMPBIN -symbols -headers" DUMPBIN="$DUMPBIN -symbols -headers"
;; ;;
*) *)
DUMPBIN=: DUMPBIN=:
;; ;;
esac esac
fi fi
AC_SUBST([DUMPBIN]) AC_SUBST([DUMPBIN])
if test : != "$DUMPBIN"; then if test : != "$DUMPBIN"; then
skipping to change at line 3913 skipping to change at line 3893
esac esac
# If we're using GNU nm, then use its standard symbol codes. # If we're using GNU nm, then use its standard symbol codes.
case `$NM -V 2>&1` in case `$NM -V 2>&1` in
*GNU* | *'with BFD'*) *GNU* | *'with BFD'*)
symcode='[[ABCDGIRSTW]]' ;; symcode='[[ABCDGIRSTW]]' ;;
esac esac
if test "$lt_cv_nm_interface" = "MS dumpbin"; then if test "$lt_cv_nm_interface" = "MS dumpbin"; then
# Gets list of data symbols to import. # Gets list of data symbols to import.
lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
# Adjust the below global symbol transforms to fixup imported variables. # Adjust the below global symbol transforms to fixup imported variables.
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1; /p'" lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1; /p'"
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
lt_c_name_lib_hook="\ lt_c_name_lib_hook="\
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
else else
# Disable hooks by default. # Disable hooks by default.
lt_cv_sys_global_symbol_to_import= lt_cv_sys_global_symbol_to_import=
lt_cdecl_hook= lt_cdecl_hook=
lt_c_name_hook= lt_c_name_hook=
lt_c_name_lib_hook= lt_c_name_lib_hook=
fi fi
# Transform an extracted symbol line into a proper C declaration. # Transform an extracted symbol line into a proper C declaration.
# Some systems (esp. on ia64) link data and code symbols differently, # Some systems (esp. on ia64) link data and code symbols differently,
# so use this general approach. # so use this general approach.
lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ lt_cv_sys_global_symbol_to_cdecl="sed -n"\
$lt_cdecl_hook\ $lt_cdecl_hook\
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
# Transform an extracted symbol line into symbol name and symbol address # Transform an extracted symbol line into symbol name and symbol address
lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
$lt_c_name_hook\ $lt_c_name_hook\
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
# Transform an extracted symbol line into symbol name with lib prefix and # Transform an extracted symbol line into symbol name with lib prefix and
# symbol address. # symbol address.
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
$lt_c_name_lib_hook\ $lt_c_name_lib_hook\
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
# Handle CRLF in mingw tool chain # Handle CRLF in mingw tool chain
opt_cr= opt_cr=
case $build_os in case $build_os in
mingw*) mingw*)
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
skipping to change at line 3968 skipping to change at line 3948
# Try without a prefix underscore, then with it. # Try without a prefix underscore, then with it.
for ac_symprfx in "" "_"; do for ac_symprfx in "" "_"; do
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol . # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol .
symxfrm="\\1 $ac_symprfx\\2 \\2" symxfrm="\\1 $ac_symprfx\\2 \\2"
# Write the raw and C identifiers. # Write the raw and C identifiers.
if test "$lt_cv_nm_interface" = "MS dumpbin"; then if test "$lt_cv_nm_interface" = "MS dumpbin"; then
# Fake it for dumpbin and say T for any non-static function, # Fake it for dumpbin and say T for any non-static function,
# D for any global variable and I for any imported variable. # D for any global variable and I for any imported variable.
# Also find C++ and __fastcall symbols from MSVC++ or ICC, # Also find C++ and __fastcall symbols from MSVC++,
# which start with @ or ?. # which start with @ or ?.
lt_cv_sys_global_symbol_pipe="$AWK ['"\ lt_cv_sys_global_symbol_pipe="$AWK ['"\
" {last_section=section; section=\$ 3};"\ " {last_section=section; section=\$ 3};"\
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
" \$ 0!~/External *\|/{next};"\ " \$ 0!~/External *\|/{next};"\
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
" {if(hide[section]) next};"\ " {if(hide[section]) next};"\
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx) )}"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx) )}"\
" ' prfx=^$ac_symprfx]" " ' prfx=^$ac_symprfx]"
else else
lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcod e*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
fi fi
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __g nu_lto/d'" lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gn u_lto/d'"
# Check to see that the pipe works correctly. # Check to see that the pipe works correctly.
pipe_works=no pipe_works=no
rm -f conftest* rm -f conftest*
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
char nm_test_var; char nm_test_var;
skipping to change at line 4010 skipping to change at line 3990
void nm_test_func(void){} void nm_test_func(void){}
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
int main(){nm_test_var='a';nm_test_func();return(0);} int main(){nm_test_var='a';nm_test_func();return(0);}
_LT_EOF _LT_EOF
if AC_TRY_EVAL(ac_compile); then if AC_TRY_EVAL(ac_compile); then
# Now try to grab the symbols. # Now try to grab the symbols.
nlist=conftest.nm nlist=conftest.nm
$ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symb if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe
ol_pipe > $nlist" >&AS_MESSAGE_LOG_FD " \> $nlist) && test -s "$nlist"; then
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \>
$nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
# Try sorting and uniquifying the output. # Try sorting and uniquifying the output.
if sort "$nlist" | uniq > "$nlist"T; then if sort "$nlist" | uniq > "$nlist"T; then
mv -f "$nlist"T "$nlist" mv -f "$nlist"T "$nlist"
else else
rm -f "$nlist"T rm -f "$nlist"T
fi fi
# Make sure that we snagged all the symbols we need. # Make sure that we snagged all the symbols we need.
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
skipping to change at line 4275 skipping to change at line 4254
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
;; ;;
ghcx*) ghcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
;; ;;
*) *)
;; ;;
esac esac
;; ;;
freebsd* | dragonfly* | midnightbsd*) freebsd* | dragonfly*)
# FreeBSD uses GNU C++ # FreeBSD uses GNU C++
;; ;;
hpux9* | hpux10* | hpux11*) hpux9* | hpux10* | hpux11*)
case $cc_basename in case $cc_basename in
CC*) CC*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
if test ia64 != "$host_cpu"; then if test ia64 != "$host_cpu"; then
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
fi fi
skipping to change at line 4358 skipping to change at line 4337
_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)=
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;; ;;
xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
# IBM XL 8.0, 9.0 on PPC and BlueGene # IBM XL 8.0, 9.0 on PPC and BlueGene
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
;; ;;
*) *)
case `$CC -V 2>&1 | $SED 5q` in case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*) *Sun\ C*)
# Sun C++ 5.9 # Sun C++ 5.9
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
;; ;;
esac esac
;; ;;
esac esac
;; ;;
skipping to change at line 4650 skipping to change at line 4629
;; ;;
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
case $cc_basename in case $cc_basename in
# old Intel for x86_64, which still supported -KPIC. # old Intel for x86_64, which still supported -KPIC.
ecc*) ecc*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;; ;;
# flang / f18. f95 an alias for gfortran or flang on Debian
flang* | f18* | f95*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;;
# icc used to be incompatible with GCC. # icc used to be incompatible with GCC.
# ICC 10 doesn't accept -KPIC any more. # ICC 10 doesn't accept -KPIC any more.
icc* | ifort*) icc* | ifort*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;; ;;
# Lahey Fortran 8.1. # Lahey Fortran 8.1.
lf95*) lf95*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
skipping to change at line 4700 skipping to change at line 4673
# All Alpha code is PIC. # All Alpha code is PIC.
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
;; ;;
xl* | bgxl* | bgf* | mpixl*) xl* | bgxl* | bgf* | mpixl*)
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
;; ;;
*) *)
case `$CC -V 2>&1 | $SED 5q` in case `$CC -V 2>&1 | sed 5q` in
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8. [[0-3]]*) *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8. [[0-3]]*)
# Sun Fortran 8.3 passes all unrecognized flags to the linker # Sun Fortran 8.3 passes all unrecognized flags to the linker
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='' _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
;; ;;
*Sun\ F* | *Sun*Fortran*) *Sun\ F* | *Sun*Fortran*)
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
skipping to change at line 4882 skipping to change at line 4855
# -C means demangle to GNU nm, but means don't demangle to AIX nm. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
# Without the "-l" option, or with the "-B" option, AIX nm treats # Without the "-l" option, or with the "-B" option, AIX nm treats
# weak defined symbols like other global defined symbols, whereas # weak defined symbols like other global defined symbols, whereas
# GNU nm marks them as "W". # GNU nm marks them as "W".
# While the 'weak' keyword is ignored in the Export File, we need # While the 'weak' keyword is ignored in the Export File, we need
# it in the Import File for the 'aix-soname' feature, so we have # it in the Import File for the 'aix-soname' feature, so we have
# to replace the "-B" option with "-P" for AIX nm. # to replace the "-B" option with "-P" for AIX nm.
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " we ak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " we ak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
else else
_LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\' 's/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\ $ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { i f ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\' 's/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\ $ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
fi fi
;; ;;
pw32*) pw32*)
_LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
;; ;;
cygwin* | mingw* | cegcc*) cygwin* | mingw* | cegcc*)
case $cc_basename in case $cc_basename in
cl* | icl*) cl*)
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESC RIPTOR_.*' _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESC RIPTOR_.*'
;; ;;
*) *)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT A/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $glo bal_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DAT A/;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'] _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL __[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
;; ;;
esac esac
;; ;;
linux* | k*bsd*-gnu | gnu*) linux* | k*bsd*-gnu | gnu*)
_LT_TAGVAR(link_all_deplibs, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=no
skipping to change at line 4950 skipping to change at line 4923
# platforms (ab)use it in PIC code, but their linkers get confused if # platforms (ab)use it in PIC code, but their linkers get confused if
# the symbol is explicitly referenced. Since portable code cannot # the symbol is explicitly referenced. Since portable code cannot
# rely on this symbol name, it's probably fine to never include it in # rely on this symbol name, it's probably fine to never include it in
# preloaded symbol tables. # preloaded symbol tables.
# Exclude shared library initialization/finalization symbols. # Exclude shared library initialization/finalization symbols.
dnl Note also adjust exclude_expsyms for C++ above. dnl Note also adjust exclude_expsyms for C++ above.
extract_expsyms_cmds= extract_expsyms_cmds=
case $host_os in case $host_os in
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using # When not using gcc, we currently assume that we are using
# Microsoft Visual C++ or Intel C++ Compiler. # Microsoft Visual C++.
if test yes != "$GCC"; then if test yes != "$GCC"; then
with_gnu_ld=no with_gnu_ld=no
fi fi
;; ;;
interix*) interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) # we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes with_gnu_ld=yes
;; ;;
openbsd* | bitrig*) openbsd* | bitrig*)
with_gnu_ld=no with_gnu_ld=no
;; ;;
linux* | k*bsd*-gnu | gnu*) linux* | k*bsd*-gnu | gnu*)
_LT_TAGVAR(link_all_deplibs, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=no
;; ;;
esac esac
skipping to change at line 5013 skipping to change at line 4986
runpath_var=LD_RUN_PATH runpath_var=LD_RUN_PATH
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
# ancient GNU ld didn't support --whole-archive et. al. # ancient GNU ld didn't support --whole-archive et. al.
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conven ience '$wlarc'--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$conven ience '$wlarc'--no-whole-archive'
else else
_LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)=
fi fi
supports_anon_versioning=no supports_anon_versioning=no
case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
*GNU\ gold*) supports_anon_versioning=yes ;; *GNU\ gold*) supports_anon_versioning=yes ;;
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 .. . *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 .. .
*\ 2.11.*) ;; # other 2.11 versions *\ 2.11.*) ;; # other 2.11 versions
*) supports_anon_versioning=yes ;; *) supports_anon_versioning=yes ;;
esac esac
# See if GNU ld supports shared libraries. # See if GNU ld supports shared libraries.
case $host_os in case $host_os in
skipping to change at line 5125 skipping to change at line 5098
prefix_cmds="$SED"~ prefix_cmds="$SED"~
if test EXPORTS = "`$SED 1q $export_symbols`"; then if test EXPORTS = "`$SED 1q $export_symbols`"; then
prefix_cmds="$prefix_cmds -e 1d"; prefix_cmds="$prefix_cmds -e 1d";
fi~ fi~
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $comp iler_flags $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $comp iler_flags $output_objdir/$libname.def~
emximp -o $lib $output_objdir/$libname.def' emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$ {libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$ {libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='@'
;; ;;
interix[[3-9]]*) interix[[3-9]]*)
_LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc . # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc .
# Instead, shared libraries are loaded at an image base (0x10000000 b y # Instead, shared libraries are loaded at an image base (0x10000000 b y
# default) and relocated if they conflict, which is a slow very memor y # default) and relocated if they conflict, which is a slow very memor y
# consuming and fragmenting process. To avoid this, we pick a random , # consuming and fragmenting process. To avoid this, we pick a random ,
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at lin k # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at lin k
# time. Moving up from 0x10000000 also allows more sbrk(2) space. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$ output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compi ler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.exp sym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` - o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$o utput_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compil er_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.exps ym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
;; ;;
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
tmp_diet=no tmp_diet=no
if test linux-dietlibc = "$host_os"; then if test linux-dietlibc = "$host_os"; then
case $cc_basename in case $cc_basename in
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
esac esac
fi fi
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
skipping to change at line 5183 skipping to change at line 5155
nagfor*) # NAGFOR 5.3 nagfor*) # NAGFOR 5.3
tmp_sharedflag='-Wl,-shared' ;; tmp_sharedflag='-Wl,-shared' ;;
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
tmp_sharedflag='-qmkshrobj' tmp_sharedflag='-qmkshrobj'
tmp_addflag= ;; tmp_addflag= ;;
nvcc*) # Cuda Compiler Driver 2.2 nvcc*) # Cuda Compiler Driver 2.2
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for co nv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_con venience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-a rchive' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for co nv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_con venience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-a rchive'
_LT_TAGVAR(compiler_needs_object, $1)=yes _LT_TAGVAR(compiler_needs_object, $1)=yes
;; ;;
esac esac
case `$CC -V 2>&1 | $SED 5q` in case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*) # Sun C 5.9 *Sun\ C*) # Sun C 5.9
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_co nvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conve nience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\" ` $wl--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_co nvenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conve nience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\" ` $wl--no-whole-archive'
_LT_TAGVAR(compiler_needs_object, $1)=yes _LT_TAGVAR(compiler_needs_object, $1)=yes
tmp_sharedflag='-G' ;; tmp_sharedflag='-G' ;;
*Sun\ F*) # Sun Fortran 8.3 *Sun\ F*) # Sun Fortran 8.3
tmp_sharedflag='-G' ;; tmp_sharedflag='-G' ;;
esac esac
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
if test yes = "$supports_anon_versioning"; then if test yes = "$supports_anon_versioning"; then
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_o bjdir/$libname.ver~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_o bjdir/$libname.ver~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir /$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/ $libname.ver~
echo "local: *; };" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compil er_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libnam e.ver -o $lib' $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compil er_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libnam e.ver -o $lib'
fi fi
case $cc_basename in case $cc_basename in
tcc*) tcc*)
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
;; ;;
xlf* | bgf* | bgxlf* | mpixlf*) xlf* | bgf* | bgxlf* | mpixlf*)
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenien ce --no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenien ce --no-whole-archive'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linke r_flags -soname $soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linke r_flags -soname $soname -o $lib'
if test yes = "$supports_anon_versioning"; then if test yes = "$supports_anon_versioning"; then
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ objdir/$libname.ver~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_ objdir/$libname.ver~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objd ir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdi r/$libname.ver~
echo "local: *; };" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~
$LD -shared $libobjs $deplibs $linker_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 fi
;; ;;
esac esac
else else
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
skipping to change at line 5344 skipping to change at line 5315
# -C means demangle to GNU nm, but means don't demangle to AIX nm. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
# Without the "-l" option, or with the "-B" option, AIX nm treats # Without the "-l" option, or with the "-B" option, AIX nm treats
# weak defined symbols like other global defined symbols, whereas # weak defined symbols like other global defined symbols, whereas
# GNU nm marks them as "W". # GNU nm marks them as "W".
# While the 'weak' keyword is ignored in the Export File, we need # While the 'weak' keyword is ignored in the Export File, we need
# it in the Import File for the 'aix-soname' feature, so we have # it in the Import File for the 'aix-soname' feature, so we have
# to replace the "-B" option with "-P" for AIX nm. # to replace the "-B" option with "-P" for AIX nm.
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenienc e | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenienc e | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
else else
_LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if ( ((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if ( ((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W ") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \ $ 1 } } }'\'' | sort -u > $export_symbols'
fi fi
aix_use_runtimelinking=no aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal # Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we # AIX style linking. If -brtl is somewhere in LDFLAGS, we
# have runtime linking enabled, and use it for executables. # have runtime linking enabled, and use it for executables.
# For shared libraries, we enable/disable runtime linking # For shared libraries, we enable/disable runtime linking
# depending on the kind of the shared library created - # depending on the kind of the shared library created -
# when "with_aix_soname,aix_use_runtimelinking" is: # when "with_aix_soname,aix_use_runtimelinking" is:
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
skipping to change at line 5527 skipping to change at line 5498
;; ;;
esac esac
;; ;;
bsdi[[45]]*) bsdi[[45]]*)
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using # When not using gcc, we currently assume that we are using
# Microsoft Visual C++ or Intel C++ Compiler. # Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is # hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs. # no search path for DLLs.
case $cc_basename in case $cc_basename in
cl* | icl*) cl*)
# Native MSVC or ICC # Native MSVC
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(always_export_symbols, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='@' _LT_TAGVAR(file_list_spec, $1)='@'
# Tell ltmain to make .lib files, not .a files. # Tell ltmain to make .lib files, not .a files.
libext=lib libext=lib
# Tell ltmain to make .dll files, not .so files. # Tell ltmain to make .dll files, not .so files.
shrext_cmds=.dll shrext_cmds=.dll
# FIXME: Setting linknames here is a bad hack. # FIXME: Setting linknames here is a bad hack.
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll .lib"~linknames=' _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll .lib"~linknames='
skipping to change at line 5573 skipping to change at line 5544
lt_outputfile=$lt_outputfile.exe lt_outputfile=$lt_outputfile.exe
lt_tool_outputfile=$lt_tool_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe
;; ;;
esac~ esac~
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest "; then if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest "; then
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -output resource:"$lt_tool_outputfile" || exit 1; $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -output resource:"$lt_tool_outputfile" || exit 1;
$RM "$lt_outputfile.manifest"; $RM "$lt_outputfile.manifest";
fi' fi'
;; ;;
*) *)
# Assume MSVC and ICC wrapper # Assume MSVC wrapper
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
# Tell ltmain to make .lib files, not .a files. # Tell ltmain to make .lib files, not .a files.
libext=lib libext=lib
# Tell ltmain to make .dll files, not .so files. # Tell ltmain to make .dll files, not .so files.
shrext_cmds=.dll shrext_cmds=.dll
# FIXME: Setting linknames here is a bad hack. # 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=' _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. # The linker will automatically build a .lib file if we build a DLL.
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
skipping to change at line 5621 skipping to change at line 5592
# Unfortunately, older versions of FreeBSD 2 do not have this feature. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
freebsd2.*) freebsd2.*)
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags' _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depli bs $linker_flags'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
freebsd* | dragonfly* | midnightbsd*) freebsd* | dragonfly*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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_libdir_flag_spec, $1)='-R$libdir'
_LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
;; ;;
hpux9*) hpux9*)
if test yes = "$GCC"; then if test yes = "$GCC"; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $dep libs $compiler_flags~test "x$output_objdir/$soname" = "x$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 $dep libs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output _objdir/$soname $lib'
else else
skipping to change at line 5762 skipping to change at line 5733
_LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(inherit_rpath, $1)=yes
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
linux*) linux*)
case $cc_basename in case $cc_basename in
tcc*) tcc*)
# Fabrice Bellard et al's Tiny C Compiler # Fabrice Bellard et al's Tiny C Compiler
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -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)='$wl-rpath $wl$libdir'
;; ;;
esac esac
;; ;;
netbsd* | netbsdelf*-gnu) netbsd* | netbsdelf*-gnu)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depl ibs $linker_flags' # a.out _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $depl ibs $linker_flags' # a.out
else else
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
fi fi
skipping to change at line 5834 skipping to change at line 5804
prefix_cmds="$SED"~ prefix_cmds="$SED"~
if test EXPORTS = "`$SED 1q $export_symbols`"; then if test EXPORTS = "`$SED 1q $export_symbols`"; then
prefix_cmds="$prefix_cmds -e 1d"; prefix_cmds="$prefix_cmds -e 1d";
fi~ fi~
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $comp iler_flags $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $comp iler_flags $output_objdir/$libname.def~
emximp -o $lib $output_objdir/$libname.def' emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$ {libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$ {libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='@'
;; ;;
osf3*) osf3*)
if test yes = "$GCC"; then if test yes = "$GCC"; then
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libo bjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$out put_objdir/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libo bjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$out put_objdir/so_locations -o $lib'
else else
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libo bjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_ echo_all "-set_version $verstring"` -update_registry $output_objdir/so_loca tions -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libo bjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_ echo_all "-set_version $verstring"` -update_registry $output_objdir/so_loca tions -o $lib'
fi fi
skipping to change at line 6392 skipping to change at line 6361
# command for GNU C++ for the case where it uses the native # command for GNU C++ for the case where it uses the native
# linker, instead of GNU ld. If possible, this setting should # linker, instead of GNU ld. If possible, this setting should
# overridden to take advantage of the native linker features on # overridden to take advantage of the native linker features on
# the platform it is being used on. # the platform it is being used on.
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
fi fi
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
GXX=no GXX=no
with_gnu_ld=no with_gnu_ld=no
wlarc= wlarc=
fi fi
# PORTME: fill in a description of your system's C++ link characteristi cs # PORTME: fill in a description of your system's C++ link characteristi cs
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared lib raries]) AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared lib raries])
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
skipping to change at line 6603 skipping to change at line 6572
case $cc_basename in case $cc_basename in
*) *)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
esac esac
;; ;;
cygwin* | mingw* | pw32* | cegcc*) cygwin* | mingw* | pw32* | cegcc*)
case $GXX,$cc_basename in case $GXX,$cc_basename in
,cl* | no,cl* | ,icl* | no,icl*) ,cl* | no,cl*)
# Native MSVC or ICC # Native MSVC
# hardcode_libdir_flag_spec is actually meaningless, as there is # hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs. # no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(always_export_symbols, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='@' _LT_TAGVAR(file_list_spec, $1)='@'
# Tell ltmain to make .lib files, not .a files. # Tell ltmain to make .lib files, not .a files.
libext=lib libext=lib
# Tell ltmain to make .dll files, not .so files. # Tell ltmain to make .dll files, not .so files.
shrext_cmds=.dll shrext_cmds=.dll
skipping to change at line 6702 skipping to change at line 6671
prefix_cmds="$SED"~ prefix_cmds="$SED"~
if test EXPORTS = "`$SED 1q $export_symbols`"; then if test EXPORTS = "`$SED 1q $export_symbols`"; then
prefix_cmds="$prefix_cmds -e 1d"; prefix_cmds="$prefix_cmds -e 1d";
fi~ fi~
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $co mpiler_flags $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $co mpiler_flags $output_objdir/$libname.def~
emximp -o $lib $output_objdir/$libname.def' emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/ ${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/ ${libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
_LT_TAGVAR(file_list_spec, $1)='@'
;; ;;
dgux*) dgux*)
case $cc_basename in case $cc_basename in
ec++*) ec++*)
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
ghcx*) ghcx*)
# Green Hills C++ Compiler # Green Hills C++ Compiler
skipping to change at line 6733 skipping to change at line 6701
freebsd2.*) freebsd2.*)
# C++ shared libraries reported to be fairly broken before # C++ shared libraries reported to be fairly broken before
# switch to ELF # switch to ELF
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
;; ;;
freebsd-elf*) freebsd-elf*)
_LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(archive_cmds_need_lc, $1)=no
;; ;;
freebsd* | dragonfly* | midnightbsd*) freebsd* | dragonfly*)
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
# conventions # conventions
_LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(ld_shlibs, $1)=yes
;; ;;
haiku*) haiku*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compil er_flags $wl-soname $wl$soname -o $lib'
_LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes
;; ;;
skipping to change at line 6768 skipping to change at line 6736
aCC*) aCC*)
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobj s $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobj s $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler fro m # There doesn't appear to be a way to prevent this compiler fro m
# explicitly linking system object files so we need to strip th em # explicitly linking system object files so we need to strip th em
# from the output so that they don't get included in the librar y # from the output so that they don't get included in the librar y
# dependencies. # dependencies.
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in c onftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; d one; func_echo_all "$list"' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest. $objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in co nftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; do ne; func_echo_all "$list"'
;; ;;
*) *)
if test yes = "$GXX"; then if test yes = "$GXX"; then
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$son ame $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$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/$son ame $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
skipping to change at line 6833 skipping to change at line 6801
;; ;;
esac esac
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used when # what "hidden" libraries, object files and flags are used when
# linking a shared library. # linking a shared library.
# #
# There doesn't appear to be a way to prevent this compiler from # There doesn't appear to be a way to prevent this compiler from
# explicitly linking system object files so we need to strip the m # explicitly linking system object files so we need to strip the m
# from the output so that they don't get included in the library # from the output so that they don't get included in the library
# dependencies. # dependencies.
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in con ftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; don e; func_echo_all "$list"' output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$ objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conf test.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done ; func_echo_all "$list"'
;; ;;
*) *)
if test yes = "$GXX"; then if test yes = "$GXX"; then
if test no = "$with_gnu_ld"; then if test no = "$with_gnu_ld"; then
case $host_cpu in case $host_cpu in
hppa*64*) hppa*64*)
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objec ts $compiler_flags' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPI C $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objec ts $compiler_flags'
;; ;;
ia64*) ia64*)
_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 $pic _flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
skipping to change at line 6870 skipping to change at line 6838
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gc c. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gc c.
# Instead, shared libraries are loaded at an image base (0x10000000 by # Instead, shared libraries are loaded at an image base (0x10000000 by
# default) and relocated if they conflict, which is a slow very memo ry # default) and relocated if they conflict, which is a slow very memo ry
# consuming and fragmenting process. To avoid this, we pick a rando m, # consuming and fragmenting process. To avoid this, we pick a rando m,
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at li nk # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at li nk
# time. Moving up from 0x10000000 also allows more sbrk(2) space. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib s $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplib s $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
_LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols > $output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $comp iler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.ex psym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$ output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compi ler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.exp sym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` - o $lib'
;; ;;
irix5* | irix6*) irix5* | irix6*)
case $cc_basename in case $cc_basename in
CC*) CC*)
# SGI C++ # SGI C++
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_ registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_ registry $output_objdir/so_locations -o $lib'
# Archives containing C++ object files must be created using # Archives containing C++ object files must be created using
# "CC -ar", where "CC" is the IRIX C++ compiler. This is # "CC -ar", where "CC" is the IRIX C++ compiler. This is
# necessary to make sure instantiated templates are included # necessary to make sure instantiated templates are included
skipping to change at line 7010 skipping to change at line 6978
# dependencies. # dependencies.
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED " s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v confte st.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED " s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
;; ;;
xl* | mpixl* | bgxl*) xl* | mpixl* | bgxl*)
# IBM XL 8.0 on PPC, with GNU ld # IBM XL 8.0 on PPC, with GNU ld
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $ compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $ compiler_flags $wl-soname $wl$soname -o $lib'
if test yes = "$supports_anon_versioning"; then if test yes = "$supports_anon_versioning"; then
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $outpu t_objdir/$libname.ver~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $outpu t_objdir/$libname.ver~
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_ob jdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_obj dir/$libname.ver~
echo "local: *; };" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~
$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
fi fi
;; ;;
*) *)
case `$CC -V 2>&1 | $SED 5q` in case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*) *Sun\ C*)
# Sun C++ 5.9 # Sun C++ 5.9
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$s oname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_ flags' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$s oname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_ flags'
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_fl ag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $co mpiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_fl ag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $co mpiler_flags $wl-retain-symbols-file $wl$export_symbols'
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`ne w_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_c onvenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenien ce\"` $wl--no-whole-archive' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`ne w_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_c onvenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenien ce\"` $wl--no-whole-archive'
_LT_TAGVAR(compiler_needs_object, $1)=yes _LT_TAGVAR(compiler_needs_object, $1)=yes
# Not sure whether something based on # Not sure whether something based on
skipping to change at line 7172 skipping to change at line 7140
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostd lib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_object s $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && f unc_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$outpu t_objdir/so_locations -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostd lib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_object s $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && f unc_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$outpu t_objdir/so_locations -o $lib'
;; ;;
esac esac
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdi r' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdi r'
_LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_libdir_separator, $1)=:
# Commands to make compiler produce verbose output that lists # Commands to make compiler produce verbose output that lists
# what "hidden" libraries, object files and flags are used whe n # what "hidden" libraries, object files and flags are used whe n
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
# FIXME: insert proper C++ library support # FIXME: insert proper C++ library support
_LT_TAGVAR(ld_shlibs, $1)=no _LT_TAGVAR(ld_shlibs, $1)=no
fi fi
;; ;;
esac esac
;; ;;
psos*) psos*)
skipping to change at line 7256 skipping to change at line 7224
if test yes,no = "$GXX,$with_gnu_ld"; then if test yes,no = "$GXX,$with_gnu_ld"; then
_LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
if $CC --version | $GREP -v '^2\.7' > /dev/null; then if $CC --version | $GREP -v '^2\.7' > /dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdli b $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~ _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 $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $ wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags~$RM $lib.exp' $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $ wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compi ler_flags~$RM $lib.exp'
# Commands to make compiler produce verbose output that list s # Commands to make compiler produce verbose output that list s
# what "hidden" libraries, object files and flags are used w hen # what "hidden" libraries, object files and flags are used w hen
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$ob jext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
else else
# g++ 2.7 appears to require '-G' NOT '-shared' on this # g++ 2.7 appears to require '-G' NOT '-shared' on this
# platform. # platform.
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objec ts $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $ lib' _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objec ts $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~ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib .exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $l ib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $ lib.exp' $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $l ib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $ lib.exp'
# Commands to make compiler produce verbose output that list s # Commands to make compiler produce verbose output that list s
# what "hidden" libraries, object files and flags are used w hen # what "hidden" libraries, object files and flags are used w hen
# linking a shared library. # linking a shared library.
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
fi fi
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
case $host_os in case $host_os in
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
*) *)
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allext ract$convenience $wl-z ${wl}defaultextract' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allext ract$convenience $wl-z ${wl}defaultextract'
;; ;;
esac esac
fi fi
skipping to change at line 8150 skipping to change at line 8118
# _LT_DECL_DLLTOOL # _LT_DECL_DLLTOOL
# ---------------- # ----------------
# Ensure DLLTOOL variable is set. # Ensure DLLTOOL variable is set.
m4_defun([_LT_DECL_DLLTOOL], m4_defun([_LT_DECL_DLLTOOL],
[AC_CHECK_TOOL(DLLTOOL, dlltool, false) [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$DLLTOOL" && DLLTOOL=dlltool
_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
AC_SUBST([DLLTOOL]) AC_SUBST([DLLTOOL])
]) ])
# _LT_DECL_FILECMD
# ----------------
# Check for a file(cmd) program that can be used to detect file type and ma
gic
m4_defun([_LT_DECL_FILECMD],
[AC_CHECK_TOOL([FILECMD], [file], [:])
_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
])# _LD_DECL_FILECMD
# _LT_DECL_SED # _LT_DECL_SED
# ------------ # ------------
# Check for a fully-functional sed program, that truncates # Check for a fully-functional sed program, that truncates
# as few characters as possible. Prefer GNU sed if found. # as few characters as possible. Prefer GNU sed if found.
m4_defun([_LT_DECL_SED], m4_defun([_LT_DECL_SED],
[AC_PROG_SED [AC_PROG_SED
test -z "$SED" && SED=sed test -z "$SED" && SED=sed
Xsed="$SED -e 1s/^X//" Xsed="$SED -e 1s/^X//"
_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 End of changes. 86 change blocks. 
161 lines changed or deleted 113 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/