• Home
  • Raw
  • Download

Lines Matching +full:binutils +full:- +full:powerpc64 +full:- +full:linux +full:- +full:gnu

1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3 # Copyright (C) 1996-2001, 2003-2019, 2021 Free Software Foundation,
16 # GNU Libtool is free software; you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
21 # As a special exception to the GNU General Public License, if you
23 # using GNU Libtool, you may include this file under the same
26 # GNU Libtool is distributed in the hope that it will be useful, but
29 # GNU General Public License for more details.
31 # You should have received a copy of the GNU General Public License
32 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39 # ------------------
42 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
50 # ------------------
61 # ------------------
71 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
81 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
102 dnl aclocal-1.4 backwards compatibility:
108 # -----------------------
110 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
117 \-*) ;;
121 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
127 # -------------------
141 # ----------------------
145 [: ${CP="cp -f"}
146 : ${MV="mv -f"}
147 : ${RM="rm -f"}
152 # ---------
174 test -z "$LN_S" && LN_S="ln -s"
196 if test -n "\${ZSH_VERSION+set}"; then
200 if test -n "${ZSH_VERSION+set}"; then
234 test -z "$CC" && CC=cc
235 test -z "$LTCC" && LTCC=$CC
236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
237 test -z "$LD" && LD=ld
238 test -z "$ac_objext" && ac_objext=o
243 test -z "$MAGIC_CMD" && MAGIC_CMD=file
261 # --------------------------
265 # double-quoted strings.
283 # ---------------
295 ## ------------------------------------- ##
297 ## ------------------------------------- ##
305 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
306 # ----------------------------------------
307 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
319 # ------------------------------
332 # -----------------------------------------------------
340 # -----------------------------
342 # full-stop to the whole comment if one is not present already.
351 ## ------------------------ ##
353 ## ------------------------ ##
356 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
357 # -------------------------------------------------------------------
375 # --------------------------------------------------------
380 # ------------------------------------------------
386 # ---------------------------------------------------------
398 # --------------------------------------------------
404 # ---------------------------------------------------
410 # ---------------------------------------------------
421 # ------------------------------------------------
435 # ------------------------------------
444 # ------------------------------
457 # ----------------
466 # -----------------------------------
487 # -----------------------
488 # Produce commented declarations of non-tagged libtool config variables
499 # -------------------------
506 # ------------------------------
511 # -------------------
537 # The HP-UX ksh and POSIX shell print the target directory to stdout
570 # Double-quote double-evaled strings.
575 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
587 # ------------------------------------
593 # the child script. The macro ends with non-zero status if the
605 SHELL=\${CONFIG_SHELL-$SHELL}
617 # ---------
642 -h, --help print this help, then exit
643 -V, --version print version number, then exit
644 -q, --quiet do not print progress messages
645 -d, --debug don't remove temporary files
647 Report bugs to <bug-libtool@gnu.org>."
661 --version | --v* | -V )
663 --help | --h* | -h )
665 --debug | --d* | -d )
667 --quiet | --q* | --silent | --s* | -q )
670 -*) AC_MSG_ERROR([unrecognized option: $[1]
671 Try '$[0] --help' for more information.]) ;;
674 Try '$[0] --help' for more information.]) ;;
701 lt_config_lt_args="$lt_config_lt_args --quiet"
710 # ---------------
711 # If TAG is the built-in tag, create an initial libtool script with a
722 if test -n "${ZSH_VERSION+set}"; then
735 # Provide generalized library-building support services.
779 # if finds mixed CR/LF and LF-only lines. Since sed operates in
783 || (rm -f "$cfgfile"; exit 1)
785 mv -f "$cfgfile" "$ofile" ||
786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
809 # ---------------------
811 # --tag option, using:
812 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
816 # C support is built-in for now
822 # -------------
841 # ------------------
854 # GNU Autoconf as AC_PROG_GO. When it is available in #
864 if test -z "$GOC"; then
865 if test -n "$ac_tool_prefix"; then
869 if test -z "$GOC"; then
877 # -----------------------
921 dnl aclocal-1.4 backwards compatibility:
930 # ----------------
937 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
940 LTCC=${LTCC-"$CC"}
943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
951 # ------------------------
965 # ----------------------
974 $RM -r conftest*
978 # -------------------------
994 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
996 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
998 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1000 if test -z "$LT_MULTI_MODULE"; then
1001 # By default we will add the -single_module flag. You can override
1003 # non-empty at configure time, or by adding -multi_module to the
1005 rm -rf libconftest.dylib*
1007 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1008 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1009 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1010 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1012 # If there is a non-empty error log, and "single_module"
1014 if test -s conftest.err && $GREP single_module conftest.err; then
1018 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1023 rm -rf libconftest.dylib*
1024 rm -f conftest.*
1027 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1032 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1039 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1044 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1045 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1053 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1054 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1056 if test -s conftest.err && $GREP force_load conftest.err; then
1058 …elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1063 rm -f conftest.err libconftest.a conftest conftest.c
1064 rm -rf conftest.dSYM
1068 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1070 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1073 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1074 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1076 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1084 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1086 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1099 # ---------------------------------
1109 …ec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc…
1123 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1124 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1125 …\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1126 …sym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC…
1129-r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_…
1130-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamicl…
1139 # ----------------------------------
1162 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1163 # Check for a 64-bit object if we didn't find anything.
1164 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1165 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1167 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1177 # -------------------
1179 [m4_divert_text([M4SH-INIT], [$1
1185 # -----------------------
1197 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1199 ECHO='print -r --'
1214 # Invoke $ECHO with all args, space-separated.
1222 print*) AC_MSG_RESULT([print -r]) ;;
1228 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1234 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1242 # ----------------
1247 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1258 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1262 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1272 AC_MSG_RESULT([${lt_sysroot:-no}])
1277 # ---------------
1279 [AC_ARG_ENABLE([libtool-lock],
1280 [AS_HELP_STRING([--disable-libtool-lock],
1287 ia64-*-hpux*)
1293 *ELF-32*)
1296 *ELF-64*)
1301 rm -rf conftest*
1303 *-*-irix6*)
1310 *32-bit*)
1311 LD="${LD-ld} -melf32bsmip"
1314 LD="${LD-ld} -melf32bmipn32"
1316 *64-bit*)
1317 LD="${LD-ld} -melf64bmip"
1322 *32-bit*)
1323 LD="${LD-ld} -32"
1326 LD="${LD-ld} -n32"
1328 *64-bit*)
1329 LD="${LD-ld} -64"
1334 rm -rf conftest*
1337 mips64*-*linux*)
1344 *32-bit*)
1347 *64-bit*)
1364 LD="${LD-ld} -m $emul"
1366 rm -rf conftest*
1369 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1370 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1374 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1380 *32-bit*)
1382 x86_64-*kfreebsd*-gnu)
1383 LD="${LD-ld} -m elf_i386_fbsd"
1385 x86_64-*linux*)
1387 *x86-64*)
1388 LD="${LD-ld} -m elf32_x86_64"
1391 LD="${LD-ld} -m elf_i386"
1395 powerpc64le-*linux*)
1396 LD="${LD-ld} -m elf32lppclinux"
1398 powerpc64-*linux*)
1399 LD="${LD-ld} -m elf32ppclinux"
1401 s390x-*linux*)
1402 LD="${LD-ld} -m elf_s390"
1404 sparc64-*linux*)
1405 LD="${LD-ld} -m elf32_sparc"
1409 *64-bit*)
1411 x86_64-*kfreebsd*-gnu)
1412 LD="${LD-ld} -m elf_x86_64_fbsd"
1414 x86_64-*linux*)
1415 LD="${LD-ld} -m elf_x86_64"
1417 powerpcle-*linux*)
1418 LD="${LD-ld} -m elf64lppc"
1420 powerpc-*linux*)
1421 LD="${LD-ld} -m elf64ppc"
1423 s390*-*linux*|s390*-*tpf*)
1424 LD="${LD-ld} -m elf64_s390"
1426 sparc*-*linux*)
1427 LD="${LD-ld} -m elf64_sparc"
1433 rm -rf conftest*
1436 *-*-sco3.2v5*)
1437 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1439 CFLAGS="$CFLAGS -belf"
1440 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1445 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1449 *-*solaris*)
1455 *64-bit*)
1459 i?86-*-solaris*|x86_64-*-solaris*)
1460 LD="${LD-ld} -m elf_x86_64"
1462 sparc*-*-solaris*)
1463 LD="${LD-ld} -m elf64_sparc"
1466 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1467 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1468 LD=${LD-ld}_sol2
1472 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1473 LD="${LD-ld} -64"
1480 rm -rf conftest*
1489 # -----------
1501 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1505 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1507 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1516 if test 0 -eq "$ac_status"; then
1518 rm -f conftest.$ac_objext libconftest.a
1520 if test 0 -ne "$ac_status"; then
1524 rm -f conftest.* libconftest.a
1539 # -------------------
1544 test -z "$STRIP" && STRIP=:
1548 test -z "$RANLIB" && RANLIB=:
1550 [Commands used to install an old-style archive])
1552 # Determine commands to create old-style static archives.
1557 if test -n "$RANLIB"; then
1560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1578 [Commands used to build an old-style archive])
1584 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1585 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1586 # ----------------------------------------------------------------
1602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1603 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1604 -e 's:$: $lt_compiler_flag:'`
1610 if (exit $ac_status) && test -s "$ac_outfile"; then
1615 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1631 dnl aclocal-1.4 backwards compatibility:
1635 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1636 # [ACTION-SUCCESS], [ACTION-FAILURE])
1637 # ----------------------------------------------------
1647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1650 if test -s conftest.err; then
1662 $RM -r conftest*
1675 dnl aclocal-1.4 backwards compatibility:
1680 #---------------
1698 gnu*)
1699 # Under GNU Hurd, this test is not required because there is
1701 # Libtool will interpret -1 as no limit whatsoever
1702 lt_cv_sys_max_cmd_len=-1;
1706 # On Win9x/ME, this test blows up -- it succeeds, but takes
1708 # Worse, since 9x/ME are not pre-emptively multitasking,
1729 if test -x /sbin/sysctl; then
1730 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1731 elif test -x /usr/sbin/sysctl; then
1732 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1758 if test -x /sbin/sysconfig; then
1759 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1760 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1769 if test -n "$kargmax"; then
1777 if test -n "$lt_cv_sys_max_cmd_len" && \
1787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1788 # If test is not a shell built-in, we'll probably end up computing a
1809 if test -n "$lt_cv_sys_max_cmd_len"; then
1821 dnl aclocal-1.4 backwards compatibility:
1826 # ----------------
1832 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1833 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1834 # ----------------------------------------------------------------
1884 /* When -fvisibility=hidden is used, assume the code has been annotated
1912 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1925 rm -fr conftest*
1930 # ------------------
1961 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1970 # because TPF is a cross-compiler, and we know how we open DSOs.
1980 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1984 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1986 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1988 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2006 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2057 dnl aclocal-1.4 backwards compatibility:
2062 # ---------------------------
2063 # Check to see if options -c and -o are simultaneously supported by compiler.
2069 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2072 $RM -r conftest 2>/dev/null
2078 lt_compiler_flag="-o out/conftest2.$ac_objext"
2084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2085 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2086 -e 's:$: $lt_compiler_flag:'`
2092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2109 $RM -r conftest
2113 [Does compiler simultaneously support -c and -o options?])
2118 # ----------------------------------
2137 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2148 # ----------------
2151 [rm -f .libs 2>/dev/null
2153 if test -d .libs; then
2156 # MS-DOS does not allow filenames that begin with a dot.
2165 [Define to the sub-directory where libtool stores uninstalled libraries.])
2170 # --------------------------------------
2175 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2176 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2179 # We can hardcode non-existent directories.
2183 # when we should be linking with a yet-to-be-installed one
2214 # ----------------
2220 if test -z "$STRIP"; then
2223 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2224 old_striplib="$STRIP --strip-debug"
2225 striplib="$STRIP --strip-unneeded"
2230 # FIXME - insert some real tests, host_os isn't really good enough
2231 striplib="$STRIP -x"
2232 old_striplib="$STRIP -S"
2236 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2237 old_striplib="$STRIP --strip-debug"
2238 striplib="$STRIP --strip-unneeded"
2256 # ---------------------------
2260 # -----------------------------------
2285 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2286 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2297 # -----------------------------
2316 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2319 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2323 # otherwise default to the standard path separator (i.e. ":") - it is
2335 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2337 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2344 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2346 elif test -n "$lt_multi_os_dir"; then
2347 test -d "$lt_sys_path" && \
2355 for (lt_i = NF; lt_i > 0; lt_i--) {
2363 lt_count--;
2375 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2397 # when you set need_version to no, make sure it does not cause -set_version
2402 [User-defined run-time library search path.])
2406 version_type=linux # correct to gnu/linux during the next big refactor
2414 aix[[4-9]]*)
2415 version_type=linux # correct to gnu/linux during the next big refactor
2433 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2441 # filename-based versioning of shared library archives on AIX. While
2443 # prevent static linking of such archives. So we do filename-based
2448 # versioned .so libs for executables only if there is the -brtl
2449 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2450 # To allow for filename-based versioning support, we need to create
2460 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2490-n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$…
2500-z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z …
2501 …postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_librar…
2512 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2530 version_type=linux # correct to gnu/linux during the next big refactor
2540 # libtool to hard-code these into programs
2555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2557 test -d \$dldir || mkdir -p \$dldir~
2560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2571 …soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuf…
2577 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2581 …library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$…
2590 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2607 …ath_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2613 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2614 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2615 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2619 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2623 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2626 # common. (e.g. "Program Files" -> "PROGRA~1")
2632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2634 test -d \$dldir || mkdir -p \$dldir~
2636 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2645 …library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.…
2669 version_type=linux # correct to gnu/linux during the next big refactor
2680 if test -x /usr/bin/objformat; then
2688 version_type=freebsd-$objformat
2690 freebsd-elf*)
2696 freebsd-*)
2710 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2711 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2723 version_type=linux # correct to gnu/linux during the next big refactor
2778 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2784 interix[[3-9]]*)
2785 version_type=linux # correct to gnu/linux during the next big refactor
2801 version_type=linux # correct to gnu/linux during the next big refactor
2816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2817 libsuff= shlibsuff= libmagic=32-bit;;
2818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2822 *) libsuff= shlibsuff= libmagic=never-match;;
2833 # No shared lib support for Linux oldld, aout, or coff.
2834 linux*oldld* | linux*aout* | linux*coff*)
2838 linux*android*)
2854 # Don't embed -rpath directories since the linker doesn't support them.
2855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2859 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2860 version_type=linux # correct to gnu/linux during the next big refactor
2865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2869 # Some binutils ld are patched to set DT_RUNPATH
2877 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2892 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2893 # even though it is searched at run-time. Try to do the best guess by
2895 if test -f /etc/ld.so.conf; then
2896 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2902 # GNU dynamic linker. Since this was broken with cross compilers,
2903 # most powerpc-linux boxes support dynamic linking these days and
2904 # people can always --disable-shared, the test was removed, and we
2905 # assume the GNU/Linux dynamic linker is in use.
2906 dynamic_linker='GNU/Linux ld.so'
2913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2928 version_type=linux # correct to gnu/linux during the next big refactor
2950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2968 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2969 v=$($ECHO $release$versuffix | tr -d .-);
2970 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2978 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2980 test -d \$dldir || mkdir -p \$dldir~
2983 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3007 version_type=linux # correct to gnu/linux during the next big refactor
3032 version_type=linux # correct to gnu/linux during the next big refactor
3055 if test -d /usr/nec; then
3056 version_type=linux # correct to gnu/linux during the next big refactor
3073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3087 version_type=linux # correct to gnu/linux during the next big refactor
3097 version_type=linux # correct to gnu/linux during the next big refactor
3126 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3142 [Is shlibpath searched before the hard-coded library search path?])
3146 The last name is the one that the linker finds with -lNAME]])
3163 [Compile-time system search path for libraries])
3165 [Detected run-time system search path for libraries])
3172 # --------------------------
3185 dnl $ac_dummy forces splitting on constant user-supplied paths.
3191 test -z "$ac_dir" && ac_dir=.
3192 if test -f "$ac_dir/$1"; then
3194 if test -n "$file_magic_test_file"; then
3212 *** bug-libtool@gnu.org
3226 if test -n "$MAGIC_CMD"; then
3237 dnl aclocal-1.4 backwards compatibility:
3242 # --------------
3246 if test -z "$lt_cv_path_MAGIC_CMD"; then
3247 if test -n "$ac_tool_prefix"; then
3257 # ----------
3258 # find the pathname to the GNU or non-GNU linker
3267 AC_ARG_WITH([gnu-ld],
3268 [AS_HELP_STRING([--with-gnu-ld],
3269 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3275 # Check if gcc -print-prog-name=ld gives a path.
3278 *-*-mingw*)
3280 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3293 test -z "$LD" && LD=$ac_prog
3305 AC_MSG_CHECKING([for GNU ld])
3307 AC_MSG_CHECKING([for non-GNU ld])
3310 [if test -z "$LD"; then
3314 test -z "$ac_dir" && ac_dir=.
3315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3317 # Check to see if the program is GNU ld. I'd rather use --version,
3318 # but apparently some variants of GNU ld only accept -v.
3319 # Break only if it was the GNU/non-GNU ld that we prefer.
3320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3321 *GNU* | *'with BFD'*)
3335 if test -n "$LD"; then
3340 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3350 dnl aclocal-1.4 backwards compatibility:
3356 #- --------------
3358 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3359 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3360 case `$LD -v 2>&1 </dev/null` in
3361 *GNU* | *'with BFD'*)
3373 # --------------
3375 # -- PORTME Some linkers may need a different reload flag.
3379 [lt_cv_ld_reload_flag='-r'])
3385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3394 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3406 # -----------
3415 cmp -s conftest.i conftest.out \
3418 rm -f conftest.i conftest2.i conftest.out])
3423 # ----------------
3432 cmp -s conftest.i conftest.out \
3435 rm -f conftest.i conftest2.i conftest.out
3436 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3443 # ----------------------
3445 # -- PORTME fill in with the dynamic library characteristics
3456 # 'none' -- dependencies not supported.
3457 # 'unknown' -- same as none, but documents that we really don't know.
3458 # 'pass_all' -- all dependencies passed with no checks.
3459 # 'test_compile' -- check by making test program.
3460 # 'file_magic [[regex]]' -- check by looking for files in library path
3466 aix[[4-9]]*)
3475 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3476 lt_cv_file_magic_cmd='$FILECMD -L'
3489 # unless we find 'file', for example because we are cross-compiling.
3495 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3496 lt_cv_file_magic_cmd='$OBJDUMP -f'
3502 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
3511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3516 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3534 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3538 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3542 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3548 interix[[3-9]]*)
3555 *-32|*"-32 ") libmagic=32-bit;;
3556 *-n32|*"-n32 ") libmagic=N32;;
3557 *-64|*"-64 ") libmagic=64-bit;;
3558 *) libmagic=never-match;;
3564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3569 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3570 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3577 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3588 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3590 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3613 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3621 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3625 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3654 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3662 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3676 # ----------
3677 # find the pathname to a BSD- or MS-compatible name lister
3680 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3681 [if test -n "$NM"; then
3686 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3693 test -z "$ac_dir" && ac_dir=.
3695 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3696 # Check to see if the nm accepts a BSD-compat flag.
3697 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3705 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3707 lt_cv_path_NM="$tmp_nm -B"
3711 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3713 lt_cv_path_NM="$tmp_nm -p"
3733 if test -n "$DUMPBIN"; then :
3736 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3737 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3739 DUMPBIN="$DUMPBIN -symbols -headers"
3751 test -z "$NM" && NM=nm
3753 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3769 rm -f conftest*])
3775 dnl aclocal-1.4 backwards compatibility:
3780 # --------------------------------
3783 # -- PORTME fill in with the dynamic library characteristics
3796 case `$DLLTOOL --help 2>&1` in
3797 *--identify-strict*)
3812 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3820 # ----------------------
3824 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3827 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3828 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3833 rm -f conftest*])
3842 # ---------------------
3847 test DEF = "`$SED -n dnl
3848 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3849 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3850 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3851 -e q dnl Only consider the first "real" line
3857 # --------
3863 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3866 *-ncr-sysv4.3*)
3867 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3868 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3871 AC_CHECK_LIB(m, cos, LIBM=-lm)
3879 dnl aclocal-1.4 backwards compatibility:
3884 # -------------------------------
3893 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3895 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3898 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3900 [-fno-rtti -fno-exceptions], [],
3901 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3909 # ----------------------
3931 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3933 # Define system-specific variables.
3969 # If we're using GNU nm, then use its standard symbol codes.
3970 case `$NM -V 2>&1` in
3971 *GNU* | *'with BFD'*)
3977 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3979 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3980 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3982 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3983 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3995 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
3997 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3998 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4001 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
4003 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4004 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4008 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
4010 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4011 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4012 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4030 # Fake it for dumpbin and say T for any non-static function,
4050 …lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx…
4057 rm -f conftest*
4074 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
4077 mv -f "$nlist"T "$nlist"
4079 rm -f "$nlist"T
4089 relocations are performed -- see ld's documentation on pseudo-relocs. */
4104 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4117 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
4139 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4157 rm -rf conftest* conftst*
4167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4170 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4179 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4203 # ---------------------------
4213 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4214 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4221 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4223 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4230 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4234 # adding the '-m68020' flag to GCC prevents building anything better,
4235 # like '-m68040'.
4236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4248 # (--disable-auto-import) libraries
4250 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4253 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4260 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4268 # The "-static" flag exists, but is broken.
4271 interix[[3-9]]*)
4272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4276 if test -d /usr/nec; then
4277 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4281 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4282 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4288 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4293 # QNX uses GNU C++, but need to define -shared option too, otherwise
4295 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4298 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4303 aix[[4-9]]*)
4307 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4309 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4316 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
4324 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4333 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4340 # FreeBSD uses GNU C++
4345 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4346 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4375 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4376 # CC pic flag -KPIC is the default.
4382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4386 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4387 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4390 # old Intel C++ for x86_64, which still supported -KPIC.
4391 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4392 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4393 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4397 # ICC 10 doesn't accept -KPIC any more.
4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
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)='-Bstatic'
4411 # Linux and Compaq Tru64 Unix objects are PIC.
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4422 case `$CC -V 2>&1 | $SED 5q` in
4425 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4426 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4427 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4440 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4449 # QNX uses GNU C++, but need to define -shared option too, otherwise
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4456 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4460 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4464 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4466 # Linux and Compaq Tru64 Unix objects are PIC.
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4482 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4486 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4496 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4497 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4501 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4510 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4511 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4512 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4519 # NonStop-UX NCC 3.20
4520 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4536 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4537 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4544 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4546 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4553 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4557 # adding the '-m68020' flag to GCC prevents building anything better,
4558 # like '-m68040'.
4559 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4572 # (--disable-auto-import) libraries
4574 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4577 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4585 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4590 # The "-static" flag exists, but is broken.
4595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4603 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4608 interix[[3-9]]*)
4609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4621 # QNX uses GNU C++, but need to define -shared option too, otherwise
4623 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4627 if test -d /usr/nec; then
4628 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4633 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4639 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4640 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4641 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4649 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4654 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4661 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4665 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4666 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4667 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4676 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4679 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4685 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4687 # not for PA HP-UX.
4697 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4701 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702 # PIC (with -KPIC) is the default.
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4706 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4708 # old Intel for x86_64, which still supported -KPIC.
4710 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4711 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4712 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4715 # ICC 10 doesn't accept -KPIC any more.
4717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4725 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4742 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4747 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4749 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4754 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4758 case `$CC -V 2>&1 | $SED 5q` in
4759 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4761 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4762 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4766 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4767 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4768 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4774 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4777 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4778 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4779 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4782 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4792 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4793 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4797 # QNX uses GNU C++, but need to define -shared option too, otherwise
4799 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4803 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4805 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4809 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4813 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4814 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4817 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4819 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4824 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4825 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4826 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4830 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4831 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4832 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4836 if test -d /usr/nec; then
4837 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4838 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4843 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4844 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4845 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4854 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4855 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4865 # For platforms that do not support PIC, -DPIC is meaningless:
4870 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4882 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4885 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4913 # ----------------------------
4929 aix[[4-9]]*)
4930 # If we're using GNU nm, then we don't want the "-C" option.
4931 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4932 # Without the "-l" option, or with the "-B" option, AIX nm treats
4934 # GNU nm marks them as "W".
4936 # it in the Import File for the 'aix-soname' feature, so we have
4937 # to replace the "-B" option with "-P" for AIX nm.
4938 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4939-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4941-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
4953 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4954 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4987 # include_expsyms should be a list of space-separated symbols to be *always*
5024 # On some targets, GNU ld is compatible enough with the native linker
5030 # The AIX port of GNU ld has always aspired to compatibility
5031 # with the native linker. However, as the warning in the GNU ld
5034 case `$LD -v 2>&1` in
5035 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5036 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5037 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5053 # Set some defaults for GNU ld with shared library support. These
5057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5058 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5059 # ancient GNU ld didn't support --whole-archive et. al.
5060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5061 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
5066 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5067 *GNU\ gold*) supports_anon_versioning=yes ;;
5068 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5075 # See if GNU ld supports shared libraries.
5077 aix[[3-9]]*)
5078 # On AIX/PPC, the GNU linker is very broken
5083 *** Warning: the GNU linker, at least up to release 2.19, is reported
5086 *** really care for shared libraries, you may want to install binutils
5087 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5098 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5102 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5113 # support --undefined. This deserves some investigation. FIXME
5114 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
5123 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5124 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5128 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
5129 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
5131 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5132 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
5133 # If the export-symbols file already is a .def file, use it as
5141 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
5148 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5153 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5162 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5163 emximp -o $lib $output_objdir/$libname.def'
5170 prefix_cmds="$prefix_cmds -e 1d";
5172 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5174 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5175 emximp -o $lib $output_objdir/$libname.def'
5176 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5181 interix[[3-9]]*)
5184 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5185 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5192 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
5193-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
5196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5198 if test linux-dietlibc = "$host_os"; then
5200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5207 tmp_sharedflag='-shared'
5210--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5215--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5216 tmp_addflag=' $pic_flag -Mnomain' ;;
5218 tmp_addflag=' -i_dynamic' ;;
5220 tmp_addflag=' -i_dynamic -nofor_main' ;;
5222 tmp_addflag=' -nofor_main' ;;
5225 tmp_sharedflag='--shared' ;;
5227 tmp_sharedflag='-Wl,-shared' ;;
5229 tmp_sharedflag='-qmkshrobj'
5232--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5236 case `$CC -V 2>&1 | $SED 5q` in
5238--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
5240 tmp_sharedflag='-G' ;;
5242 tmp_sharedflag='-G' ;;
5244 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5248 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5250 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
5255 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5259 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5260 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5261 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5264 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5266 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5277 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5280 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5281 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5286 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5292 *** is disabling shared libraries support. We urge you to upgrade GNU
5293 *** binutils to release 2.9.1 or newer. Another option is to modify
5298 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5299 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5300 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5307 case `$LD -v 2>&1` in
5308 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5314 *** is disabling shared libraries support. We urge you to upgrade GNU
5315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5327 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5328 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5329 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
5338 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
5345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5346 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5347 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5361 # PORTME fill in a description of your system's linker (not GNU ld)
5366 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
5368 # are no directories specified by -L.
5370 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5377 aix[[4-9]]*)
5382 exp_sym_flag='-Bexport'
5385 # If we're using GNU nm, then we don't want the "-C" option.
5386 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5387 # Without the "-l" option, or with the "-B" option, AIX nm treats
5389 # GNU nm marks them as "W".
5391 # it in the Import File for the 'aix-soname' feature, so we have
5392 # to replace the "-B" option with "-P" for AIX nm.
5393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5394-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
5396-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
5401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5404 # depending on the kind of the shared library created -
5415 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5417 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5423 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5427 LDFLAGS="$LDFLAGS -Wl,-brtl"
5432 exp_sym_flag='-bexport'
5433 no_entry_flag='-bnoentry'
5438 # or program results in "error TOC overflow" add -mminimal-toc to
5440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5447 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5461 collect2name=`$CC -print-prog-name=collect2`
5462 if test -f "$collect2name" &&
5474 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5479 shared_flag='-shared'
5481 shared_flag="$shared_flag "'$wl-G'
5485 # /with/ Import File - we do not want to mix them.
5486 shared_flag_aix='-shared'
5487 shared_flag_svr4='-shared $wl-G'
5491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5492 # chokes on -Wl,-G. The following line is correct:
5493 shared_flag='-G'
5496 shared_flag='$wl-G'
5498 shared_flag='$wl-bM:SRE'
5500 shared_flag_aix='$wl-bM:SRE'
5501 shared_flag_svr4='$wl-G'
5505 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5506 # It seems that -bexpall does not export symbols beginning with
5510 # Warning - without using the other runtime loading flags (-brtl),
5511 # -berok will link without error, but may produce a broken library.
5512 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5516 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5517 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
5520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5521 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5522 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5527 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5528 # Warning - without using the other run time loading flags,
5529 # -berok will link without error, but may produce a broken library.
5530 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5531 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5533 # We only use this code for GNU lds that support --whole-archive.
5534 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5540 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
5541 # -brtl affects multiple linker settings, -berok does not and is overridden later
5542 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
5545 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
5548-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
5550 # used by -dlpreopen to get the symbols
5553 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
5562 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5566 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5574 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5594 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5599 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5601 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5607 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5619 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5620 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5633 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5637 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5648 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5659 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5666 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5674 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5675 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5682 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -
5684 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5693 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5698 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5700 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5707 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5718 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
5721 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
5724 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5730 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5733 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
5737 # Older versions of the 11.00 compiler do not understand -b yet
5738 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5739 _LT_LINKER_OPTION([if $CC understands -b],
5740 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5741 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5742 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5743 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5759 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5771-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5772 # Try to use the -exported_symbol ld option, if it does not
5773 # work, assume that -exports_file does not work either and
5775 # This should be the same for all languages, so no per-tag cache variable.
5776 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5779 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5794-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5797-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5798-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5801 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5807 linux*)
5812 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5819 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5821 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5829 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5840 if test -f /usr/libexec/ld.so; then
5844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5845 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5846 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
5847 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5848 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5850 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5868 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5869 emximp -o $lib $output_objdir/$libname.def'
5876 prefix_cmds="$prefix_cmds -e 1d";
5878 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5880 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5881 emximp -o $lib $output_objdir/$libname.def'
5882 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5889 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5890-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
5892 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5893-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
5896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5900 osf4* | osf5*) # as osf3* with the addition of -msym flag
5902 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5903-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
5904 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5906 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5907-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
5908 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5909-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
5911 # Both c and cxx compiler support -rpath directly
5912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5919 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5922 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
5923 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5924 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
5926 case `$CC -V 2>&1` in
5929 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
5930 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5931 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
5935 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
5936 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5937 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
5941 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5944 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5947 # but understands '-z linker_flag'. GCC discards it without '$wl',
5951 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
5953 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5964 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5966 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5977 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5983 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5984 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5988 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5997 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5999 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6003 if test -d /usr/nec; then
6004 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6019 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6022 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6023 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6028 # Note: We CANNOT use -z defs as we might desire, because we do not
6029 # link with -lc, and that would cause any symbols used from libc to
6031 # ever link correctly. If we're not using GNU ld we use -z text
6032 # though, which does catch some bad symbols but isn't as heavy-handed
6033 # as -z defs.
6034 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6035 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6045 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6048 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6049 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6054 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6067 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6088 # Assume -lc should be added
6094 # FIXME: we may have to deal with multi-command sequences.
6097 # Test whether the compiler implicitly links with -lc since on some
6098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6099 # to ld, don't add -lc before -lgcc.
6100 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6112 compiler_flags=-v
6113 linker_flags=-v
6119 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6139 [Whether or not to add -lc for building shared libraries])
6150 [Create an old-style archive from a shared archive])
6152 [Create a temporary old-style archive to link instead of a shared archive])
6160 [Whether we are building with GNU ld or not])
6169 [Whether we need a single "-rpath" flag with a separated argument])
6179 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6214 # ------------------------
6249 if test -n "$compiler"; then
6272 if test -n "$RANLIB"; then
6278 aix[[4-9]]*)
6303 # --------------------------
6311 if test -n "$CXX" && ( test no != "$CXX" &&
6312 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6354 # and will be corrupted by setting them based on a non-working compiler.
6377 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6382 if test -n "${lt_cv_path_LDCXX+set}"; then
6387 test -z "${LDCXX+set}" || LD=$LDCXX
6388 CC=${CXX-"c++"}
6394 if test -n "$compiler"; then
6395 # We don't want -fno-exception when compiling C++ code, so set the
6398 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6404 # Set up default GNU C++ configuration
6408 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6409 # archiving commands below assume that GNU ld is being used.
6411 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
6412-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
6414 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6415 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6418 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6422 # ancient GNU ld didn't support --whole-archive et. al.
6423 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6424 $GREP 'no-whole-archive' > /dev/null; then
6425 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
6434 # command for GNU C++ for the case where it uses the native
6435 # linker, instead of GNU ld. If possible, this setting should
6438 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
6444 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6460 aix[[4-9]]*)
6465 exp_sym_flag='-Bexport'
6471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6474 # depending on the kind of the shared library created -
6485 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6488 *-brtl*)
6495 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6499 LDFLAGS="$LDFLAGS -Wl,-brtl"
6504 exp_sym_flag='-bexport'
6505 no_entry_flag='-bnoentry'
6510 # or program results in "error TOC overflow" add -mminimal-toc to
6512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6519 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6533 collect2name=`$CC -print-prog-name=collect2`
6534 if test -f "$collect2name" &&
6546 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6550 shared_flag='-shared'
6552 shared_flag=$shared_flag' $wl-G'
6556 # /with/ Import File - we do not want to mix them.
6557 shared_flag_aix='-shared'
6558 shared_flag_svr4='-shared $wl-G'
6562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6563 # chokes on -Wl,-G. The following line is correct:
6564 shared_flag='-G'
6567 shared_flag='$wl-G'
6569 shared_flag='$wl-bM:SRE'
6571 shared_flag_aix='$wl-bM:SRE'
6572 shared_flag_svr4='$wl-G'
6576 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6577 # It seems that -bexpall does not export symbols beginning with
6582 # Warning - without using the other runtime loading flags (-brtl),
6583 # -berok will link without error, but may produce a broken library.
6584 # The "-G" linker flag allows undefined symbols.
6585 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6589 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6591 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
6594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6595 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6596 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6602 # Warning - without using the other run time loading flags,
6603 # -berok will link without error, but may produce a broken library.
6604 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6605 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6607 # We only use this code for GNU lds that support --whole-archive.
6608 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6614 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
6615 # -brtl affects multiple linker settings, -berok does not and is overridden later
6616 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
6619 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6620 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
6623-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
6625 # used by -dlpreopen to get the symbols
6628 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
6634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6637 # support --undefined. This deserves some investigation. FIXME
6638 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
6668 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6673 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6675 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6692 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6693 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6702 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6707 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6708-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6709 # If the export-symbols file already is a .def file, use it as
6717-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6738 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6739 emximp -o $lib $output_objdir/$libname.def'
6746 prefix_cmds="$prefix_cmds -e 1d";
6748 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6750 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6751 emximp -o $lib $output_objdir/$libname.def'
6752 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
6781 freebsd-elf*)
6786 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6792 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
6799 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6811 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
6820 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6824 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
6842 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6868 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
6871 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
6874 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
6885 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6892 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
6895 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath
6898 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
6910 interix[[3-9]]*)
6913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6914 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6921 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
6922-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
6928-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6931 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6934 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6939-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6941-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6952 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6958 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6960-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6961-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6970 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6972 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6973 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6976 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6977 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6985 case `$CC -V 2>&1` in
6987 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
6988 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
6993 ia64*) tmp_idyn=' -i_dynamic';;
6995 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
6996 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
7000 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7001 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7002 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7006 case `$CC -V` in
7007 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7009 rm -rf $tpldir~
7010 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7011 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7013 rm -rf $tpldir~
7014 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7015 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7018 rm -rf $tpldir~
7019 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7020-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $po…
7022 rm -rf $tpldir~
7023 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7024-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
7027 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7028-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
7032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7033 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7034--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7038 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7039 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
7042 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7053 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
7056 # IBM XL 8.0 on PPC, with GNU ld
7057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7058 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7059 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
7062 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7064 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
7068 case `$CC -V 2>&1 | $SED 5q` in
7071 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7072 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7073 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
7074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7075--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7079 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7087 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7119 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
7121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7125 # Workaround some broken pre-1.5 toolchains
7126 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
7134 if test -f /usr/libexec/ld.so; then
7138 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
7139 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7141 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
7142 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7143 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7159-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so…
7161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7167 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7168 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7179 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7180-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
7181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7184 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7185-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7186 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
7187 echo "-hidden">> $lib.exp~
7188-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7190 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7204 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
7208 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7211-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7214-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
7218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7224 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7263 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7264 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7265 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
7266 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
7268 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7271 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7274 # but understands '-z linker_flag'.
7276 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7284 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7287 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7291 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
7294 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7297 # GNU C++ compiler with Solaris linker
7299 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7300 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7301 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
7302 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7303 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
7308 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7310 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7312 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
7313 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7314 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
7319 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
7322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7324 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7326 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
7335 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7342 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7346 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7353 # Note: We CANNOT use -z defs as we might desire, because we do not
7354 # link with -lc, and that would cause any symbols used from libc to
7356 # ever link correctly. If we're not using GNU ld we use -z text
7357 # though, which does catch some bad symbols but isn't as heavy-handed
7358 # as -z defs.
7359 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7360 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7366 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7371 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7372 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7373 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7375 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7379 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7380 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7388 # NonStop-UX NCC 3.20
7429 fi # test -n "$compiler"
7448 # ----------------------
7455 # This function is identical to the (non-XSI) version of func_stripname,
7472 # ---------------------------------
7538 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7539 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7540 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7556 -L* | -R* | -l*)
7557 # Some compilers place space between "-{L,R}" and the path.
7559 if test x-L = "$p" ||
7560 test x-R = "$p"; then
7566 if test -z "$prev"; then
7568 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7569 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7570 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7578 -L | -R)
7582 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7588 # The "-l" case would never come before the object being
7592 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7611 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7617 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7631 rm -f a.out a.exe
7636 $RM -f confest.$objext
7642 interix[[3-9]]*)
7653 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7656 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7657 …h_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7674 # --------------------------
7680 if test -z "$F77" || test no = "$F77"; then
7716 # and will be corrupted by setting them based on a non-working compiler.
7742 CC=${F77-"f77"}
7748 if test -n "$compiler"; then
7760 if test -n "$RANLIB"; then
7765 aix[[4-9]]*)
7797 fi # test -n "$compiler"
7809 # -------------------------
7816 if test -z "$FC" || test no = "$FC"; then
7843 ac_ext=${ac_fc_srcext-f}
7852 # and will be corrupted by setting them based on a non-working compiler.
7878 CC=${FC-"f95"}
7886 if test -n "$compiler"; then
7898 if test -n "$RANLIB"; then
7903 aix[[4-9]]*)
7936 fi # test -n "$compiler"
7948 # --------------------------
7949 # Ensure that the configuration variables for the GNU Java Compiler compiler
7981 CC=${GCJ-"gcj"}
7999 if test -n "$compiler"; then
8019 # --------------------------
8020 # Ensure that the configuration variables for the GNU Go compiler
8052 CC=${GOC-"gccgo"}
8070 if test -n "$compiler"; then
8090 # -------------------------
8123 CC=${RC-"windres"}
8130 if test -n "$compiler"; then
8143 # -----------
8148 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8154 dnl aclocal-1.4 backwards compatibility:
8159 # ----------
8166 # ----------
8173 dnl aclocal-1.4 backwards compatibility:
8178 # --------------
8184 test -z "$GREP" && GREP=grep
8188 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8194 # --------------
8199 test -z "$OBJDUMP" && OBJDUMP=objdump
8205 # ----------------
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8215 # ----------------
8223 # ------------
8224 # Check for a fully-functional sed program, that truncates
8225 # as few characters as possible. Prefer GNU sed if found.
8228 test -z "$SED" && SED=sed
8229 Xsed="$SED -e 1s/^X//"
8231 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8232 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8238 # GNU Autoconf as AC_PROG_SED. When it is available in #
8252 test -z "$as_dir" && as_dir=.
8267 test ! -f "$lt_ac_sed" && continue
8271 # Check for GNU sed and select it if it is found.
8272 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8281 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8282 cmp -s conftest.out conftest.nl || break
8284 test 10 -lt "$lt_ac_count" && break
8286 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8301 dnl aclocal-1.4 backwards compatibility:
8306 # ------------------------
8335 # -----------------------------
8338 # for certain cross-compile configurations and native mingw.
8345 *-*-mingw* )
8347 *-*-mingw* ) # actually msys
8350 *-*-cygwin* )
8358 *-*-cygwin* )
8360 *-*-mingw* ) # actually msys
8363 *-*-cygwin* )
8386 *-*-mingw* )
8388 *-*-mingw* ) # actually msys