Lines Matching +full:binutils +full:- +full:powerpc64 +full:- +full:linux +full:- +full:gnu
1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
18 # This file is part of GNU Libtool.
20 # GNU Libtool is free software; you can redistribute it and/or
21 # modify it under the terms of the GNU General Public License as
25 # As a special exception to the GNU General Public License,
27 # is built using GNU Libtool, you may include this file under the
30 # GNU Libtool is distributed in the hope that it will be useful,
33 # GNU General Public License for more details.
35 # You should have received a copy of the GNU General Public License
36 # along with GNU Libtool; see the file COPYING. If not, a copy
37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46 # ------------------
49 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
57 # ------------------
68 # ------------------
78 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
109 dnl aclocal-1.4 backwards compatibility:
115 # -------------------
116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
122 \-*) ;;
126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
131 # ----------------------
135 [: ${CP="cp -f"}
136 : ${MV="mv -f"}
137 : ${RM="rm -f"}
142 # ---------
164 test -z "$LN_S" && LN_S="ln -s"
184 if test -n "\${ZSH_VERSION+set}" ; then
188 if test -n "${ZSH_VERSION+set}" ; then
222 test -z "$CC" && CC=cc
223 test -z "$LTCC" && LTCC=$CC
224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
225 test -z "$LD" && LD=ld
226 test -z "$ac_objext" && ac_objext=o
231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
249 # --------------------------
253 # double-quoted strings.
271 # ---------------
283 ## ------------------------------------- ##
285 ## ------------------------------------- ##
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
307 # ------------------------------
320 # -----------------------------------------------------
328 # -----------------------------
330 # full-stop to the whole comment if one is not present already.
339 ## ------------------------ ##
341 ## ------------------------ ##
344 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
345 # -------------------------------------------------------------------
363 # --------------------------------------------------------
368 # ------------------------------------------------
374 # ---------------------------------------------------------
386 # --------------------------------------------------
392 # ---------------------------------------------------
398 # ---------------------------------------------------
409 # ------------------------------------------------
423 # ------------------------------------
432 # ------------------------------
445 # ----------------
454 # -----------------------------------
475 # -----------------------
476 # Produce commented declarations of non-tagged libtool config variables
487 # -------------------------
494 # ------------------------------
499 # -------------------
525 # The HP-UX ksh and POSIX shell print the target directory to stdout
558 # Double-quote double-evaled strings.
563 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
575 # ------------------------------------
581 # the child script. The macro ends with non-zero status if the
593 SHELL=\${CONFIG_SHELL-$SHELL}
605 # ---------
630 -h, --help print this help, then exit
631 -V, --version print version number, then exit
632 -q, --quiet do not print progress messages
633 -d, --debug don't remove temporary files
635 Report bugs to <bug-libtool@gnu.org>."
649 --version | --v* | -V )
651 --help | --h* | -h )
653 --debug | --d* | -d )
655 --quiet | --q* | --silent | --s* | -q )
658 -*) AC_MSG_ERROR([unrecognized option: $[1]
659 Try \`$[0] --help' for more information.]) ;;
662 Try \`$[0] --help' for more information.]) ;;
689 lt_config_lt_args="$lt_config_lt_args --quiet"
698 # ---------------
699 # If TAG is the built-in tag, create an initial libtool script with a
710 if test -n "${ZSH_VERSION+set}" ; then
721 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
723 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
757 || (rm -f "$cfgfile"; exit 1)
761 mv -f "$cfgfile" "$ofile" ||
762 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
786 # ---------------------
788 # --tag option, using:
789 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
793 # C support is built-in for now
799 # -------------
818 # ------------------
831 # GNU Autoconf as AC_PROG_GO. When it is available in #
841 if test -z "$GOC"; then
842 if test -n "$ac_tool_prefix"; then
846 if test -z "$GOC"; then
854 # -----------------------
898 dnl aclocal-1.4 backwards compatibility:
907 # ----------------
914 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
917 LTCC=${LTCC-"$CC"}
920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
928 # ------------------------
942 # ----------------------
951 $RM -r conftest*
955 # -------------------------
971 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
973 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
975 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
977 if test -z "${LT_MULTI_MODULE}"; then
978 # By default we will add the -single_module flag. You can override
980 # non-empty at configure time, or by adding -multi_module to the
982 rm -rf libconftest.dylib*
984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
985 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
989 # If there is a non-empty error log, and "single_module"
991 if test -s conftest.err && $GREP single_module conftest.err; then
995 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1000 rm -rf libconftest.dylib*
1001 rm -f conftest.*
1004 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1009 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1016 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1021 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1022 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1030 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1031 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1033 if test -s conftest.err && $GREP force_load conftest.err; then
1035 …elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; th…
1040 rm -f conftest.err libconftest.a conftest conftest.c
1041 rm -rf conftest.dSYM
1045 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1052 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1053 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1066 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1068 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1081 # ---------------------------------
1091 …c, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience…
1105 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1106 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1107 …output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1108 …sym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$C…
1111 …-r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefine…
1112 …-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynami…
1121 # ----------------------------------
1144 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1145 # Check for a 64-bit object if we didn't find anything.
1146 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1147 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1149 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1159 # -------------------
1161 [m4_divert_text([M4SH-INIT], [$1
1167 # -----------------------
1179 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1180 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1181 ECHO='print -r --'
1196 # Invoke $ECHO with all args, space-separated.
1204 print*) AC_MSG_RESULT([print -r]) ;;
1210 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1216 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1224 # ----------------
1228 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1238 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1242 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1252 AC_MSG_RESULT([${lt_sysroot:-no}])
1257 # ---------------
1259 [AC_ARG_ENABLE([libtool-lock],
1260 [AS_HELP_STRING([--disable-libtool-lock],
1267 ia64-*-hpux*)
1272 *ELF-32*)
1275 *ELF-64*)
1280 rm -rf conftest*
1282 *-*-irix6*)
1288 *32-bit*)
1289 LD="${LD-ld} -melf32bsmip"
1292 LD="${LD-ld} -melf32bmipn32"
1294 *64-bit*)
1295 LD="${LD-ld} -melf64bmip"
1300 *32-bit*)
1301 LD="${LD-ld} -32"
1304 LD="${LD-ld} -n32"
1306 *64-bit*)
1307 LD="${LD-ld} -64"
1312 rm -rf conftest*
1315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1321 *32-bit*)
1323 x86_64-*kfreebsd*-gnu)
1324 LD="${LD-ld} -m elf_i386_fbsd"
1326 x86_64-*linux*)
1327 LD="${LD-ld} -m elf_i386"
1329 ppc64-*linux*|powerpc64-*linux*)
1330 LD="${LD-ld} -m elf32ppclinux"
1332 s390x-*linux*)
1333 LD="${LD-ld} -m elf_s390"
1335 sparc64-*linux*)
1336 LD="${LD-ld} -m elf32_sparc"
1340 *64-bit*)
1342 x86_64-*kfreebsd*-gnu)
1343 LD="${LD-ld} -m elf_x86_64_fbsd"
1345 x86_64-*linux*)
1346 LD="${LD-ld} -m elf_x86_64"
1348 ppc*-*linux*|powerpc*-*linux*)
1349 LD="${LD-ld} -m elf64ppc"
1351 s390*-*linux*|s390*-*tpf*)
1352 LD="${LD-ld} -m elf64_s390"
1354 sparc*-*linux*)
1355 LD="${LD-ld} -m elf64_sparc"
1361 rm -rf conftest*
1364 *-*-sco3.2v5*)
1365 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1367 CFLAGS="$CFLAGS -belf"
1368 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1373 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1377 *-*solaris*)
1382 *64-bit*)
1386 i?86-*-solaris*)
1387 LD="${LD-ld} -m elf_x86_64"
1389 sparc*-*-solaris*)
1390 LD="${LD-ld} -m elf64_sparc"
1393 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1394 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1395 LD="${LD-ld}_sol2"
1399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1400 LD="${LD-ld} -64"
1407 rm -rf conftest*
1416 # -----------
1430 if test "$ac_status" -eq 0; then
1432 rm -f conftest.$ac_objext libconftest.a
1434 if test "$ac_status" -ne 0; then
1438 rm -f conftest.* libconftest.a
1453 # -------------------
1458 test -z "$STRIP" && STRIP=:
1462 test -z "$RANLIB" && RANLIB=:
1464 [Commands used to install an old-style archive])
1466 # Determine commands to create old-style static archives.
1471 if test -n "$RANLIB"; then
1474 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1492 [Commands used to build an old-style archive])
1498 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1499 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1500 # ----------------------------------------------------------------
1516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1517 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1518 -e 's:$: $lt_compiler_flag:'`
1524 if (exit $ac_status) && test -s "$ac_outfile"; then
1529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1545 dnl aclocal-1.4 backwards compatibility:
1549 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1550 # [ACTION-SUCCESS], [ACTION-FAILURE])
1551 # ----------------------------------------------------
1561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1564 if test -s conftest.err; then
1576 $RM -r conftest*
1589 dnl aclocal-1.4 backwards compatibility:
1594 #---------------
1612 gnu*)
1613 # Under GNU Hurd, this test is not required because there is
1615 # Libtool will interpret -1 as no limit whatsoever
1616 lt_cv_sys_max_cmd_len=-1;
1620 # On Win9x/ME, this test blows up -- it succeeds, but takes
1622 # Worse, since 9x/ME are not pre-emptively multitasking,
1643 if test -x /sbin/sysctl; then
1644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1645 elif test -x /usr/sbin/sysctl; then
1646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1672 if test -x /sbin/sysconfig; then
1673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1674 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1683 if test -n "$kargmax"; then
1691 if test -n "$lt_cv_sys_max_cmd_len"; then
1700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1701 # If test is not a shell built-in, we'll probably end up computing a
1722 if test -n $lt_cv_sys_max_cmd_len ; then
1734 dnl aclocal-1.4 backwards compatibility:
1739 # ----------------
1745 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1746 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1747 # ----------------------------------------------------------------
1797 /* When -fvisbility=hidden is used, assume the code has been annotated
1825 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1838 rm -fr conftest*
1843 # ------------------
1874 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1885 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1889 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1891 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1893 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1962 dnl aclocal-1.4 backwards compatibility:
1967 # ---------------------------
1968 # Check to see if options -c and -o are simultaneously supported by compiler.
1974 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1977 $RM -r conftest 2>/dev/null
1983 lt_compiler_flag="-o out/conftest2.$ac_objext"
1989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1990 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1991 -e 's:$: $lt_compiler_flag:'`
1997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2014 $RM -r conftest
2018 [Does compiler simultaneously support -c and -o options?])
2023 # ----------------------------------
2042 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2053 # ----------------
2056 [rm -f .libs 2>/dev/null
2058 if test -d .libs; then
2061 # MS-DOS does not allow filenames that begin with a dot.
2070 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2075 # --------------------------------------
2080 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2081 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2084 # We can hardcode non-existent directories.
2088 # when we should be linking with a yet-to-be-installed one
2119 # ----------------
2125 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2126 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2127 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2130 # FIXME - insert some real tests, host_os isn't really good enough
2133 if test -n "$STRIP" ; then
2134 striplib="$STRIP -x"
2135 old_striplib="$STRIP -S"
2152 # -----------------------------
2170 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2173 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2177 # otherwise default to the standard path separator (i.e. ":") - it is
2189 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2191 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2194 test -d "$lt_sys_path" && \
2202 for (lt_i = NF; lt_i > 0; lt_i--) {
2210 lt_count--;
2222 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2244 # when you set need_version to no, make sure it does not cause -set_version
2250 version_type=linux # correct to gnu/linux during the next big refactor
2258 aix[[4-9]]*)
2259 version_type=linux # correct to gnu/linux during the next big refactor
2277 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2306 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2324 version_type=linux # correct to gnu/linux during the next big refactor
2334 # libtool to hard-code these into programs
2349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2351 test -d \$dldir || mkdir -p \$dldir~
2354 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2365 …soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${ve…
2371 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2375 …library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g…
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2401 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2407 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2408 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2409 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2413 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2417 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2420 # common. (e.g. "Program Files" -> "PROGRA~1")
2426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2428 test -d \$dldir || mkdir -p \$dldir~
2430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2439 …library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $…
2463 version_type=linux # correct to gnu/linux during the next big refactor
2474 if test -x /usr/bin/objformat; then
2482 version_type=freebsd-$objformat
2484 freebsd-elf*)
2489 freebsd-*)
2503 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2504 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2515 gnu*)
2516 version_type=linux # correct to gnu/linux during the next big refactor
2527 version_type=linux # correct to gnu/linux during the next big refactor
2581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2587 interix[[3-9]]*)
2588 version_type=linux # correct to gnu/linux during the next big refactor
2604 version_type=linux # correct to gnu/linux during the next big refactor
2619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2620 libsuff= shlibsuff= libmagic=32-bit;;
2621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2625 *) libsuff= shlibsuff= libmagic=never-match;;
2636 # No shared lib support for Linux oldld, aout, or coff.
2637 linux*oldld* | linux*aout* | linux*coff*)
2642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2643 version_type=linux # correct to gnu/linux during the next big refactor
2648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2652 # Some binutils ld are patched to set DT_RUNPATH
2660 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2673 if test -f /etc/ld.so.conf; then
2674 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2680 # GNU dynamic linker. Since this was broken with cross compilers,
2681 # most powerpc-linux boxes support dynamic linking these days and
2682 # people can always --disable-shared, the test was removed, and we
2683 # assume the GNU/Linux dynamic linker is in use.
2684 dynamic_linker='GNU/Linux ld.so'
2691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2706 version_type=linux # correct to gnu/linux during the next big refactor
2734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2736 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
2775 version_type=linux # correct to gnu/linux during the next big refactor
2800 version_type=linux # correct to gnu/linux during the next big refactor
2823 if test -d /usr/nec ;then
2824 version_type=linux # correct to gnu/linux during the next big refactor
2832 version_type=freebsd-elf
2841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2855 version_type=linux # correct to gnu/linux during the next big refactor
2865 version_type=linux # correct to gnu/linux during the next big refactor
2900 [Is shlibpath searched before the hard-coded library search path?])
2904 The last name is the one that the linker finds with -lNAME]])
2921 [Compile-time system search path for libraries])
2923 [Run-time system search path for libraries])
2928 # --------------------------
2941 dnl $ac_dummy forces splitting on constant user-supplied paths.
2947 test -z "$ac_dir" && ac_dir=.
2948 if test -f $ac_dir/$1; then
2950 if test -n "$file_magic_test_file"; then
2968 *** bug-libtool@gnu.org
2982 if test -n "$MAGIC_CMD"; then
2993 dnl aclocal-1.4 backwards compatibility:
2998 # --------------
3002 if test -z "$lt_cv_path_MAGIC_CMD"; then
3003 if test -n "$ac_tool_prefix"; then
3013 # ----------
3014 # find the pathname to the GNU or non-GNU linker
3023 AC_ARG_WITH([gnu-ld],
3024 [AS_HELP_STRING([--with-gnu-ld],
3025 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3031 # Check if gcc -print-prog-name=ld gives a path.
3034 *-*-mingw*)
3036 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3038 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3049 test -z "$LD" && LD="$ac_prog"
3061 AC_MSG_CHECKING([for GNU ld])
3063 AC_MSG_CHECKING([for non-GNU ld])
3066 [if test -z "$LD"; then
3070 test -z "$ac_dir" && ac_dir=.
3071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3073 # Check to see if the program is GNU ld. I'd rather use --version,
3074 # but apparently some variants of GNU ld only accept -v.
3075 # Break only if it was the GNU/non-GNU ld that we prefer.
3076 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3077 *GNU* | *'with BFD'*)
3091 if test -n "$LD"; then
3096 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3106 dnl aclocal-1.4 backwards compatibility:
3112 #- --------------
3114 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3115 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3116 case `$LD -v 2>&1 </dev/null` in
3117 *GNU* | *'with BFD'*)
3129 # --------------
3131 # -- PORTME Some linkers may need a different reload flag.
3135 [lt_cv_ld_reload_flag='-r'])
3141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3150 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162 # ----------------------
3164 # -- PORTME fill in with the dynamic library characteristics
3175 # 'none' -- dependencies not supported.
3176 # `unknown' -- same as none, but documents that we really don't know.
3177 # 'pass_all' -- all dependencies passed with no checks.
3178 # 'test_compile' -- check by making test program.
3179 # 'file_magic [[regex]]' -- check by looking for files in library path
3185 aix[[4-9]]*)
3194 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3195 lt_cv_file_magic_cmd='/usr/bin/file -L'
3208 # unless we find 'file', for example because we are cross-compiling.
3215 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3216 lt_cv_file_magic_cmd='$OBJDUMP -f'
3222 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3223 lt_cv_file_magic_cmd='$OBJDUMP -f'
3231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3236 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3246 gnu*)
3258 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3262 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3266 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3272 interix[[3-9]]*)
3279 *-32|*"-32 ") libmagic=32-bit;;
3280 *-n32|*"-n32 ") libmagic=N32;;
3281 *-64|*"-64 ") libmagic=64-bit;;
3282 *) libmagic=never-match;;
3288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3294 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3301 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3311 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
3312 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3314 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3337 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3345 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3349 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3375 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3397 # ----------
3398 # find the pathname to a BSD- or MS-compatible name lister
3401 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3402 [if test -n "$NM"; then
3407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3414 test -z "$ac_dir" && ac_dir=.
3416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3417 # Check to see if the nm accepts a BSD-compat flag.
3418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3423 lt_cv_path_NM="$tmp_nm -B"
3427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3429 lt_cv_path_NM="$tmp_nm -p"
3449 if test -n "$DUMPBIN"; then :
3452 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3453 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3455 DUMPBIN="$DUMPBIN -symbols"
3467 test -z "$NM" && NM=nm
3469 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3485 rm -f conftest*])
3491 dnl aclocal-1.4 backwards compatibility:
3496 # --------------------------------
3499 # -- PORTME fill in with the dynamic library characteristics
3512 case `$DLLTOOL --help 2>&1` in
3513 *--identify-strict*)
3528 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3536 # ----------------------
3540 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3543 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3544 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3549 rm -f conftest*])
3558 # --------
3564 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3567 *-ncr-sysv4.3*)
3568 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3569 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3572 AC_CHECK_LIB(m, cos, LIBM="-lm")
3580 dnl aclocal-1.4 backwards compatibility:
3585 # -------------------------------
3594 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3596 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3599 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3601 [-fno-rtti -fno-exceptions], [],
3602 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3610 # ----------------------
3632 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3634 # Define system-specific variables.
3670 # If we're using GNU nm, then use its standard symbol codes.
3671 case `$NM -V 2>&1` in
3672 *GNU* | *'with BFD'*)
3679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .…
3682 …_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *…
3683 …x="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) …
3701 # Fake it for dumpbin and say T for any non-static function
3718 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
3725 rm -f conftest*
3742 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
3745 mv -f "$nlist"T "$nlist"
3747 rm -f "$nlist"T
3757 relocations are performed -- see ld's documentation on pseudo-relocs. */
3772 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3785 …$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main …
3807 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3825 rm -rf conftest* conftst*
3835 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3838 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3847 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3867 # ---------------------------
3877 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3878 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3885 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3893 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3897 # adding the `-m68020' flag to GCC prevents building anything better,
3898 # like `-m68040'.
3899 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3911 # (--disable-auto-import) libraries
3913 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3918 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3926 # The "-static" flag exists, but is broken.
3929 interix[[3-9]]*)
3930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3934 if test -d /usr/nec; then
3935 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3939 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3940 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3946 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3951 # QNX uses GNU C++, but need to define -shared option too, otherwise
3953 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3956 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3961 aix[[4-9]]*)
3965 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3967 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3974 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
3982 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3987 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3991 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3998 # FreeBSD uses GNU C++
4003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4032 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4033 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4034 # CC pic flag -KPIC is the default.
4040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4044 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4045 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4048 # old Intel C++ for x86_64 which still supported -KPIC.
4049 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4055 # ICC 10 doesn't accept -KPIC any more.
4056 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4057 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4062 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4063 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4064 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4069 # Linux and Compaq Tru64 Unix objects are PIC.
4071 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4075 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4077 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4080 case `$CC -V 2>&1 | sed 5q` in
4083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4098 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4107 # QNX uses GNU C++, but need to define -shared option too, otherwise
4109 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4114 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4122 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4124 # Linux and Compaq Tru64 Unix objects are PIC.
4126 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4138 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4139 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4140 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4144 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4154 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4155 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4159 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4168 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4170 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4177 # NonStop-UX NCC 3.20
4178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4194 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4202 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4210 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4214 # adding the `-m68020' flag to GCC prevents building anything better,
4215 # like `-m68040'.
4216 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4229 # (--disable-auto-import) libraries
4231 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4242 # The "-static" flag exists, but is broken.
4247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4255 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4260 interix[[3-9]]*)
4261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4273 # QNX uses GNU C++, but need to define -shared option too, otherwise
4275 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4279 if test -d /usr/nec; then
4280 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4285 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4291 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4292 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4293 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4301 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4304 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4306 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4314 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4318 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4320 # not for PA HP-UX.
4330 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4334 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4335 # PIC (with -KPIC) is the default.
4336 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4339 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4341 # old Intel for x86_64 which still supported -KPIC.
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4348 # ICC 10 doesn't accept -KPIC any more.
4350 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4351 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4352 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4356 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4357 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4358 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4362 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4363 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4364 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4369 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4371 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4385 case `$CC -V 2>&1 | sed 5q` in
4386 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4401 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4406 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4409 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4424 # QNX uses GNU C++, but need to define -shared option too, otherwise
4426 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4430 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4432 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4440 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4441 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4444 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4446 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4451 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4453 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4458 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4459 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4463 if test -d /usr/nec ;then
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4482 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4492 # For platforms which do not support PIC, -DPIC is meaningless:
4497 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4509 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4512 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4540 # ----------------------------
4556 aix[[4-9]]*)
4557 # If we're using GNU nm, then we don't want the "-C" option.
4558 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4560 # symbols, whereas GNU nm marks them as "W".
4561 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4564 …-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4576 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4577 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4610 # include_expsyms should be a list of space-separated symbols to be *always*
4647 # On some targets, GNU ld is compatible enough with the native linker
4653 # The AIX port of GNU ld has always aspired to compatibility
4654 # with the native linker. However, as the warning in the GNU ld
4657 case `$LD -v 2>&1` in
4658 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4659 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4660 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4676 # Set some defaults for GNU ld with shared library support. These
4680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4681 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4682 # ancient GNU ld didn't support --whole-archive et. al.
4683 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4684 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
4689 case `$LD -v 2>&1` in
4690 *GNU\ gold*) supports_anon_versioning=yes ;;
4691 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4698 # See if GNU ld supports shared libraries.
4700 aix[[3-9]]*)
4701 # On AIX/PPC, the GNU linker is very broken
4706 *** Warning: the GNU linker, at least up to release 2.19, is reported
4709 *** really care for shared libraries, you may want to install binutils
4710 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4721 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4725 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4736 # support --undefined. This deserves some investigation. FIXME
4737 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
4746 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4747 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4751 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4752 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4754 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4755 …_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-…
4756 # If the export-symbols file already is a .def file (1st line
4764 …C -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $…
4771 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4775 interix[[3-9]]*)
4778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4786 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
4787 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
4790 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4792 if test "$host_os" = linux-dietlibc; then
4794 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4797 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4801 tmp_sharedflag='-shared'
4804 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4809 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4810 tmp_addflag=' $pic_flag -Mnomain' ;;
4812 tmp_addflag=' -i_dynamic' ;;
4814 tmp_addflag=' -i_dynamic -nofor_main' ;;
4816 tmp_addflag=' -nofor_main' ;;
4819 tmp_sharedflag='--shared' ;;
4821 tmp_sharedflag='-qmkshrobj'
4824 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4828 case `$CC -V 2>&1 | sed 5q` in
4830 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
4832 tmp_sharedflag='-G' ;;
4834 tmp_sharedflag='-G' ;;
4836 …"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4842 …$libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir…
4848 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4850 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4855 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
4865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4866 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4869 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4870 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4875 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4879 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4881 *** is disabling shared libraries support. We urge you to upgrade GNU
4882 *** binutils to release 2.9.1 or newer. Another option is to modify
4887 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4888 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4889 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4896 case `$LD -v 2>&1` in
4897 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4901 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4903 *** is disabling shared libraries support. We urge you to upgrade GNU
4904 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4917 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4918 …psym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain…
4927 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
4934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4935 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4936 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4950 # PORTME fill in a description of your system's linker (not GNU ld)
4955 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
4957 # are no directories specified by -L.
4959 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4966 aix[[4-9]]*)
4971 exp_sym_flag='-Bexport'
4974 # If we're using GNU nm, then we don't want the "-C" option.
4975 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4977 # defined symbols, whereas GNU nm marks them as "W".
4978 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4979 …-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4981 …-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4988 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4990 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4998 exp_sym_flag='-bexport'
4999 no_entry_flag='-bnoentry'
5004 # or program results in "error TOC overflow" add -mminimal-toc to
5006 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5013 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5019 collect2name=`${CC} -print-prog-name=collect2`
5020 if test -f "$collect2name" &&
5032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5037 shared_flag='-shared'
5039 shared_flag="$shared_flag "'${wl}-G'
5044 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5045 # chokes on -Wl,-G. The following line is correct:
5046 shared_flag='-G'
5049 shared_flag='${wl}-G'
5051 shared_flag='${wl}-bM:SRE'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5057 # It seems that -bexpall does not export symbols beginning with
5061 # Warning - without using the other runtime loading flags (-brtl),
5062 # -berok will link without error, but may produce a broken library.
5063 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5067 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5068 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
5071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5072 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5073 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5078 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5079 # Warning - without using the other run time loading flags,
5080 # -berok will link without error, but may produce a broken library.
5081 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5082 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5084 # We only use this code for GNU lds that support --whole-archive.
5085 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5092 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
5101 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
5105 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5113 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5133 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
5135 …sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outpu…
5137 …sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sonam…
5139 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5145 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5157 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5158 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5171 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5175 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5186 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5196 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5197 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5204 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5210 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5212 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5213 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5220 …R(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir…
5222 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5231 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5236 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5238 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5256 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler…
5259 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $…
5262 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5268 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flag…
5271 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $d…
5275 # Older versions of the 11.00 compiler do not understand -b yet
5276 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5277 _LT_LINKER_OPTION([if $CC understands -b],
5278 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5279 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5280 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5281 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5297 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5309 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5310 # Try to use the -exported_symbol ld option, if it does not
5311 # work, assume that -exports_file does not work either and
5313 # This should be the same for all languages, so no per-tag cache variable.
5314 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5317 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5332 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5335 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5336 …-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "…
5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5347 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5349 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5351 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5357 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5368 if test -f /usr/libexec/ld.so; then
5372 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-…
5373 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5374 …AGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${…
5375 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5376 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5379 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5380 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5395 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5398 …dir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobj…
5399 …_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$lib…
5404 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5405 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -…
5407 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5408 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstr…
5411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5415 osf4* | osf5*) # as osf3* with the addition of -msym flag
5417 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5418 …-shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname…
5419 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5421 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5422 …-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$…
5423 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5424 …-shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname…
5426 # Both c and cxx compiler support -rpath directly
5427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5434 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5437 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib…
5438 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5439 …$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj…
5441 case `$CC -V 2>&1` in
5444 …_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5445 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5446 …$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $…
5450 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5451 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5452 …$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM…
5456 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5459 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5462 # but understands `-z linker_flag'. GCC discards it without `$wl',
5466 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
5468 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5479 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5481 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5492 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5498 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5499 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5503 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5512 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5514 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5518 if test -d /usr/nec; then
5519 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5528 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5534 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5535 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5537 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5538 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5543 # Note: We can NOT use -z defs as we might desire, because we do not
5544 # link with -lc, and that would cause any symbols used from libc to
5546 # ever link correctly. If we're not using GNU ld we use -z text
5547 # though, which does catch some bad symbols but isn't as heavy-handed
5548 # as -z defs.
5549 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5550 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5553 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5556 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5560 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5561 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5563 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5564 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5569 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5582 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5603 # Assume -lc should be added
5609 # FIXME: we may have to deal with multi-command sequences.
5612 # Test whether the compiler implicitly links with -lc since on some
5613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5614 # to ld, don't add -lc before -lgcc.
5615 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5627 compiler_flags=-v
5628 linker_flags=-v
5634 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5654 [Whether or not to add -lc for building shared libraries])
5665 [Create an old-style archive from a shared archive])
5667 [Create a temporary old-style archive to link instead of a shared archive])
5675 [Whether we are building with GNU ld or not])
5684 [Whether we need a single "-rpath" flag with a separated argument])
5694 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5729 # ------------------------
5764 if test -n "$compiler"; then
5787 if test -n "$RANLIB"; then
5793 aix[[4-9]]*)
5814 # --------------------------
5822 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5823 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5865 # and will be corrupted by setting them based on a non-working compiler.
5888 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5893 if test -n "${lt_cv_path_LDCXX+set}"; then
5898 test -z "${LDCXX+set}" || LD=$LDCXX
5899 CC=${CXX-"c++"}
5905 if test -n "$compiler"; then
5906 # We don't want -fno-exception when compiling C++ code, so set the
5909 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5915 # Set up default GNU C++ configuration
5919 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5920 # archiving commands below assume that GNU ld is being used.
5922 …, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compile…
5923 …-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
5925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5926 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5929 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5933 # ancient GNU ld didn't support --whole-archive et. al.
5934 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5935 $GREP 'no-whole-archive' > /dev/null; then
5936 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
5945 # command for GNU C++ for the case where it uses the native
5946 # linker, instead of GNU ld. If possible, this setting should
5949 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
5955 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
5971 aix[[4-9]]*)
5976 exp_sym_flag='-Bexport'
5982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5984 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5987 *-brtl*)
5996 exp_sym_flag='-bexport'
5997 no_entry_flag='-bnoentry'
6002 # or program results in "error TOC overflow" add -mminimal-toc to
6004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6011 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6017 collect2name=`${CC} -print-prog-name=collect2`
6018 if test -f "$collect2name" &&
6030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6034 shared_flag='-shared'
6036 shared_flag="$shared_flag "'${wl}-G'
6041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6042 # chokes on -Wl,-G. The following line is correct:
6043 shared_flag='-G'
6046 shared_flag='${wl}-G'
6048 shared_flag='${wl}-bM:SRE'
6053 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6054 # It seems that -bexpall does not export symbols beginning with
6059 # Warning - without using the other runtime loading flags (-brtl),
6060 # -berok will link without error, but may produce a broken library.
6061 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6065 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6067 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
6070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6071 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6072 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6078 # Warning - without using the other run time loading flags,
6079 # -berok will link without error, but may produce a broken library.
6080 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6081 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6083 # We only use this code for GNU lds that support --whole-archive.
6084 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6092 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
6098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6101 # support --undefined. This deserves some investigation. FIXME
6102 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
6132 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,…
6134 …$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outp…
6136 …$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sona…
6138 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6155 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6156 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6164 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6165 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6171 …-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6172 # If the export-symbols file already is a .def file (1st line
6180 …-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6215 freebsd-elf*)
6220 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6225 gnu*)
6229 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
6236 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6248 …LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $ou…
6257 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6261 …hive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_l…
6279 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6305 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplib…
6308 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_obj…
6311 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $pr…
6322 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6329 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_obj…
6332 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefault…
6335 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i…
6347 interix[[3-9]]*)
6350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6351 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6358 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
6359 …-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
6365 …-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6368 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6371 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6376 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6378 …-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6397 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6398 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6407 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6409 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6410 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6414 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6422 case `$CC -V 2>&1` in
6424 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6425 …$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$so…
6430 ia64*) tmp_idyn=' -i_dynamic';;
6432 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-son…
6433 …mds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}…
6437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6439 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6443 case `$CC -V` in
6444 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6446 rm -rf $tpldir~
6447 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6448 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6450 rm -rf $tpldir~
6451 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6452 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6455 rm -rf $tpldir~
6456 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6457 …-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6459 rm -rf $tpldir~
6460 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6461 …-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6464 …hive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler…
6465 …-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
6469 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6470 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6471 …--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
6475 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6476 …s, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam…
6479 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6490 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
6493 # IBM XL 8.0 on PPC, with GNU ld
6494 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6495 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6496 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$so…
6499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6501 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl…
6505 case `$CC -V 2>&1 | sed 5q` in
6508 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6509 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $lib…
6510 … $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
6511 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6512 …--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
6516 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6521 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6524 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6556 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
6558 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6562 # Workaround some broken pre-1.5 toolchains
6563 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
6576 if test -f /usr/libexec/ld.so; then
6580 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
6581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6582 …if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-p…
6583 …s, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $…
6584 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6585 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-…
6599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6601 …-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.…
6603 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6609 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6610 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6621 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6622 …-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6626 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6627 …-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6628 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
6629 echo "-hidden">> $lib.exp~
6630 …-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6646 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
6650 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6653 …-shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp…
6656 …-shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obj…
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6666 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6705 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6706 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $li…
6707 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
6708 …$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $de…
6710 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6713 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6716 # but understands `-z linker_flag'.
6718 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6726 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6729 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6733 …AGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_…
6736 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6739 # GNU C++ compiler with Solaris linker
6741 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6742 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6743 …mds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_obje…
6744 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6745 …$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $pos…
6750 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6752 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6754 …rchive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $co…
6755 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6756 …$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c…
6761 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
6764 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6766 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6768 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
6777 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6784 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6785 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6788 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6789 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6795 # Note: We can NOT use -z defs as we might desire, because we do not
6796 # link with -lc, and that would cause any symbols used from libc to
6798 # ever link correctly. If we're not using GNU ld we use -z text
6799 # though, which does catch some bad symbols but isn't as heavy-handed
6800 # as -z defs.
6801 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6802 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6808 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6813 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6814 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6815 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6817 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6821 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6822 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6830 # NonStop-UX NCC 3.20
6871 fi # test -n "$compiler"
6890 # ----------------------
6897 # This function is identical to the (non-XSI) version of func_stripname,
6913 # ---------------------------------
6979 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6980 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6981 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6997 -L* | -R* | -l*)
6998 # Some compilers place space between "-{L,R}" and the path.
7000 if test $p = "-L" ||
7001 test $p = "-R"; then
7007 if test -z "$prev"; then
7009 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7010 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7011 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7019 -L | -R)
7023 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7029 # The "-l" case would never come before the object being
7033 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7052 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7058 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7072 rm -f a.out a.exe
7077 $RM -f confest.$objext
7083 interix[[3-9]]*)
7091 linux*)
7092 case `$CC -V 2>&1 | sed 5q` in
7096 # The more standards-conforming stlport4 library is
7099 # -library=stlport4 depends on it.
7101 *" -library=stlport4 "*)
7107 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7116 # The more standards-conforming stlport4 library is
7119 # -library=stlport4 depends on it.
7121 *" -library=stlport4 "*)
7126 # Adding this requires a known-good setup of shared libraries for
7130 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7139 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7142 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7143 …dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7160 # --------------------------
7166 if test -z "$F77" || test "X$F77" = "Xno"; then
7202 # and will be corrupted by setting them based on a non-working compiler.
7228 CC=${F77-"f77"}
7234 if test -n "$compiler"; then
7246 if test -n "$RANLIB"; then
7251 aix[[4-9]]*)
7279 fi # test -n "$compiler"
7291 # -------------------------
7298 if test -z "$FC" || test "X$FC" = "Xno"; then
7325 ac_ext=${ac_fc_srcext-f}
7334 # and will be corrupted by setting them based on a non-working compiler.
7360 CC=${FC-"f95"}
7368 if test -n "$compiler"; then
7380 if test -n "$RANLIB"; then
7385 aix[[4-9]]*)
7414 fi # test -n "$compiler"
7426 # --------------------------
7427 # Ensure that the configuration variables for the GNU Java Compiler compiler
7459 CC=${GCJ-"gcj"}
7477 if test -n "$compiler"; then
7497 # --------------------------
7498 # Ensure that the configuration variables for the GNU Go compiler
7530 CC=${GOC-"gccgo"}
7548 if test -n "$compiler"; then
7568 # -------------------------
7601 CC=${RC-"windres"}
7608 if test -n "$compiler"; then
7621 # -----------
7626 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7632 dnl aclocal-1.4 backwards compatibility:
7637 # ----------
7644 # ----------
7651 dnl aclocal-1.4 backwards compatibility:
7656 # --------------
7662 test -z "$GREP" && GREP=grep
7666 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7672 # --------------
7677 test -z "$OBJDUMP" && OBJDUMP=objdump
7683 # ----------------
7687 test -z "$DLLTOOL" && DLLTOOL=dlltool
7693 # ------------
7694 # Check for a fully-functional sed program, that truncates
7695 # as few characters as possible. Prefer GNU sed if found.
7698 test -z "$SED" && SED=sed
7699 Xsed="$SED -e 1s/^X//"
7701 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7702 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7708 # GNU Autoconf as AC_PROG_SED. When it is available in #
7722 test -z "$as_dir" && as_dir=.
7737 test ! -f $lt_ac_sed && continue
7741 # Check for GNU sed and select it if it is found.
7742 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7751 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7752 cmp -s conftest.out conftest.nl || break
7754 test $lt_ac_count -gt 10 && break
7756 if test $lt_ac_count -gt $lt_ac_max; then
7771 dnl aclocal-1.4 backwards compatibility:
7776 # ------------------------
7786 && eval 'test $(( 1 + 1 )) -eq 2 \
7787 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7824 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7825 # ------------------------------------------------------
7827 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7830 sed -e '/^$1 ()$/,/^} # $1 /c\
7834 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7835 && mv -f "$cfgfile.tmp" "$cfgfile" \
7836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7837 test 0 -eq $? || _lt_function_replace_fail=:
7842 # -------------------------
7900 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7901 && mv -f "$cfgfile.tmp" "$cfgfile" \
7902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7903 test 0 -eq $? || _lt_function_replace_fail=:
7906 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7907 && mv -f "$cfgfile.tmp" "$cfgfile" \
7908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7909 test 0 -eq $? || _lt_function_replace_fail=:
7918 # -----------------------------
7921 # for certain cross-compile configurations and native mingw.
7928 *-*-mingw* )
7930 *-*-mingw* ) # actually msys
7933 *-*-cygwin* )
7941 *-*-cygwin* )
7943 *-*-mingw* ) # actually msys
7946 *-*-cygwin* )
7969 *-*-mingw* )
7971 *-*-mingw* ) # actually msys