• 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-2022 Free Software
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
733 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
736 # Provide generalized library-building support services.
780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
784 || (rm -f "$cfgfile"; exit 1)
786 mv -f "$cfgfile" "$ofile" ||
787 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
810 # ---------------------
812 # --tag option, using:
813 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
817 # C support is built-in for now
823 # -------------
842 # ------------------
855 # GNU Autoconf as AC_PROG_GO. When it is available in #
865 if test -z "$GOC"; then
866 if test -n "$ac_tool_prefix"; then
870 if test -z "$GOC"; then
878 # -----------------------
922 dnl aclocal-1.4 backwards compatibility:
931 # ----------------
938 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
941 LTCC=${LTCC-"$CC"}
944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
952 # ------------------------
966 # ----------------------
975 $RM -r conftest*
979 # -------------------------
995 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
997 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
999 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1001 if test -z "$LT_MULTI_MODULE"; then
1002 # By default we will add the -single_module flag. You can override
1004 # non-empty at configure time, or by adding -multi_module to the
1006 rm -rf libconftest.dylib*
1008 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1009 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1010 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1011 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1013 # If there is a non-empty error log, and "single_module"
1015 if test -s conftest.err && $GREP single_module conftest.err; then
1019 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1024 rm -rf libconftest.dylib*
1025 rm -f conftest.*
1028 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1033 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1040 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1045 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1046 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1054 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
1055 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1057 if test -s conftest.err && $GREP force_load conftest.err; then
1059 …elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1064 rm -f conftest.err libconftest.a conftest conftest.c
1065 rm -rf conftest.dSYM
1069 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1071 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1074 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
1075 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1077 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1085 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1087 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1100 # ---------------------------------
1110 …ec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenienc…
1124 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1125 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1126 …\$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1127 …sym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC…
1130-r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_…
1131-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamicl…
1140 # ----------------------------------
1163 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1164 # Check for a 64-bit object if we didn't find anything.
1165 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1166 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1168 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1178 # -------------------
1180 [m4_divert_text([M4SH-INIT], [$1
1186 # -----------------------
1198 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1199 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1200 ECHO='print -r --'
1215 # Invoke $ECHO with all args, space-separated.
1223 print*) AC_MSG_RESULT([print -r]) ;;
1229 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1235 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1243 # ----------------
1248 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1263 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1273 AC_MSG_RESULT([${lt_sysroot:-no}])
1278 # ---------------
1280 [AC_ARG_ENABLE([libtool-lock],
1281 [AS_HELP_STRING([--disable-libtool-lock],
1288 ia64-*-hpux*)
1294 *ELF-32*)
1297 *ELF-64*)
1302 rm -rf conftest*
1304 *-*-irix6*)
1311 *32-bit*)
1312 LD="${LD-ld} -melf32bsmip"
1315 LD="${LD-ld} -melf32bmipn32"
1317 *64-bit*)
1318 LD="${LD-ld} -melf64bmip"
1323 *32-bit*)
1324 LD="${LD-ld} -32"
1327 LD="${LD-ld} -n32"
1329 *64-bit*)
1330 LD="${LD-ld} -64"
1335 rm -rf conftest*
1338 mips64*-*linux*)
1345 *32-bit*)
1348 *64-bit*)
1365 LD="${LD-ld} -m $emul"
1367 rm -rf conftest*
1370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1375 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1381 *32-bit*)
1383 x86_64-*kfreebsd*-gnu)
1384 LD="${LD-ld} -m elf_i386_fbsd"
1386 x86_64-*linux*)
1388 *x86-64*)
1389 LD="${LD-ld} -m elf32_x86_64"
1392 LD="${LD-ld} -m elf_i386"
1396 powerpc64le-*linux*)
1397 LD="${LD-ld} -m elf32lppclinux"
1399 powerpc64-*linux*)
1400 LD="${LD-ld} -m elf32ppclinux"
1402 s390x-*linux*)
1403 LD="${LD-ld} -m elf_s390"
1405 sparc64-*linux*)
1406 LD="${LD-ld} -m elf32_sparc"
1410 *64-bit*)
1412 x86_64-*kfreebsd*-gnu)
1413 LD="${LD-ld} -m elf_x86_64_fbsd"
1415 x86_64-*linux*)
1416 LD="${LD-ld} -m elf_x86_64"
1418 powerpcle-*linux*)
1419 LD="${LD-ld} -m elf64lppc"
1421 powerpc-*linux*)
1422 LD="${LD-ld} -m elf64ppc"
1424 s390*-*linux*|s390*-*tpf*)
1425 LD="${LD-ld} -m elf64_s390"
1427 sparc*-*linux*)
1428 LD="${LD-ld} -m elf64_sparc"
1434 rm -rf conftest*
1437 *-*-sco3.2v5*)
1438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1440 CFLAGS="$CFLAGS -belf"
1441 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1450 *-*solaris*)
1456 *64-bit*)
1460 i?86-*-solaris*|x86_64-*-solaris*)
1461 LD="${LD-ld} -m elf_x86_64"
1463 sparc*-*-solaris*)
1464 LD="${LD-ld} -m elf64_sparc"
1467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1469 LD=${LD-ld}_sol2
1473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1474 LD="${LD-ld} -64"
1481 rm -rf conftest*
1490 # -----------
1502 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
1506 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
1508 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
1517 if test 0 -eq "$ac_status"; then
1519 rm -f conftest.$ac_objext libconftest.a
1521 if test 0 -ne "$ac_status"; then
1525 rm -f conftest.* libconftest.a
1540 # -------------------
1545 test -z "$STRIP" && STRIP=:
1549 test -z "$RANLIB" && RANLIB=:
1551 [Commands used to install an old-style archive])
1553 # Determine commands to create old-style static archives.
1558 if test -n "$RANLIB"; then
1561 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1579 [Commands used to build an old-style archive])
1585 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1586 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1587 # ----------------------------------------------------------------
1603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1604 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1605 -e 's:$: $lt_compiler_flag:'`
1611 if (exit $ac_status) && test -s "$ac_outfile"; then
1616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1632 dnl aclocal-1.4 backwards compatibility:
1636 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1637 # [ACTION-SUCCESS], [ACTION-FAILURE])
1638 # ----------------------------------------------------
1648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1651 if test -s conftest.err; then
1663 $RM -r conftest*
1676 dnl aclocal-1.4 backwards compatibility:
1681 #---------------
1699 gnu*)
1700 # Under GNU Hurd, this test is not required because there is
1702 # Libtool will interpret -1 as no limit whatsoever
1703 lt_cv_sys_max_cmd_len=-1;
1707 # On Win9x/ME, this test blows up -- it succeeds, but takes
1709 # Worse, since 9x/ME are not pre-emptively multitasking,
1730 if test -x /sbin/sysctl; then
1731 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1732 elif test -x /usr/sbin/sysctl; then
1733 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1759 if test -x /sbin/sysconfig; then
1760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1761 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1770 if test -n "$kargmax"; then
1778 if test -n "$lt_cv_sys_max_cmd_len" && \
1788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1789 # If test is not a shell built-in, we'll probably end up computing a
1810 if test -n "$lt_cv_sys_max_cmd_len"; then
1822 dnl aclocal-1.4 backwards compatibility:
1827 # ----------------
1833 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1834 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1835 # ----------------------------------------------------------------
1885 /* When -fvisibility=hidden is used, assume the code has been annotated
1913 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1926 rm -fr conftest*
1931 # ------------------
1962 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1971 # because TPF is a cross-compiler, and we know how we open DSOs.
1981 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1985 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1987 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1989 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2007 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2058 dnl aclocal-1.4 backwards compatibility:
2063 # ---------------------------
2064 # Check to see if options -c and -o are simultaneously supported by compiler.
2070 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2073 $RM -r conftest 2>/dev/null
2079 lt_compiler_flag="-o out/conftest2.$ac_objext"
2085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2086 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2087 -e 's:$: $lt_compiler_flag:'`
2093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2099 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2107 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2110 $RM -r conftest
2114 [Does compiler simultaneously support -c and -o options?])
2119 # ----------------------------------
2138 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2149 # ----------------
2152 [rm -f .libs 2>/dev/null
2154 if test -d .libs; then
2157 # MS-DOS does not allow filenames that begin with a dot.
2166 [Define to the sub-directory where libtool stores uninstalled libraries.])
2171 # --------------------------------------
2176 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2177 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2180 # We can hardcode non-existent directories.
2184 # when we should be linking with a yet-to-be-installed one
2215 # ----------------
2221 if test -z "$STRIP"; then
2224 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2225 old_striplib="$STRIP --strip-debug"
2226 striplib="$STRIP --strip-unneeded"
2231 # FIXME - insert some real tests, host_os isn't really good enough
2232 striplib="$STRIP -x"
2233 old_striplib="$STRIP -S"
2237 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
2238 old_striplib="$STRIP --strip-debug"
2239 striplib="$STRIP --strip-unneeded"
2257 # ---------------------------
2261 # -----------------------------------
2286 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2287 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2298 # -----------------------------
2317 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2320 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2324 # otherwise default to the standard path separator (i.e. ":") - it is
2336 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2338 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2345 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2347 elif test -n "$lt_multi_os_dir"; then
2348 test -d "$lt_sys_path" && \
2356 for (lt_i = NF; lt_i > 0; lt_i--) {
2364 lt_count--;
2376 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2398 # when you set need_version to no, make sure it does not cause -set_version
2403 [User-defined run-time library search path.])
2407 version_type=linux # correct to gnu/linux during the next big refactor
2415 aix[[4-9]]*)
2416 version_type=linux # correct to gnu/linux during the next big refactor
2434 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2442 # filename-based versioning of shared library archives on AIX. While
2444 # prevent static linking of such archives. So we do filename-based
2449 # versioned .so libs for executables only if there is the -brtl
2450 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2451 # To allow for filename-based versioning support, we need to create
2461 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2491-n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$…
2501-z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z …
2502 …postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_librar…
2513 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2531 version_type=linux # correct to gnu/linux during the next big refactor
2541 # libtool to hard-code these into programs
2556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2558 test -d \$dldir || mkdir -p \$dldir~
2561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2572 …soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuf…
2578 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2582 …library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$…
2591 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2608 …ath_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2614 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2615 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2616 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2620 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2624 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2627 # common. (e.g. "Program Files" -> "PROGRA~1")
2633 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2635 test -d \$dldir || mkdir -p \$dldir~
2637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2646 …library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.…
2670 version_type=linux # correct to gnu/linux during the next big refactor
2681 if test -x /usr/bin/objformat; then
2689 version_type=freebsd-$objformat
2691 freebsd-elf*)
2697 freebsd-*)
2711 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2712 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2724 version_type=linux # correct to gnu/linux during the next big refactor
2779 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2785 interix[[3-9]]*)
2786 version_type=linux # correct to gnu/linux during the next big refactor
2802 version_type=linux # correct to gnu/linux during the next big refactor
2817 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2818 libsuff= shlibsuff= libmagic=32-bit;;
2819 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2821 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2822 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2823 *) libsuff= shlibsuff= libmagic=never-match;;
2834 # No shared lib support for Linux oldld, aout, or coff.
2835 linux*oldld* | linux*aout* | linux*coff*)
2839 linux*android*)
2855 # Don't embed -rpath directories since the linker doesn't support them.
2856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2861 version_type=linux # correct to gnu/linux during the next big refactor
2866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2870 # Some binutils ld are patched to set DT_RUNPATH
2878 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2890 # Add ABI-specific directories to the system library path.
2896 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2897 # even though it is searched at run-time. Try to do the best guess by
2899 if test -f /etc/ld.so.conf; then
2900 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2906 # GNU dynamic linker. Since this was broken with cross compilers,
2907 # most powerpc-linux boxes support dynamic linking these days and
2908 # people can always --disable-shared, the test was removed, and we
2909 # assume the GNU/Linux dynamic linker is in use.
2910 dynamic_linker='GNU/Linux ld.so'
2917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2932 version_type=linux # correct to gnu/linux during the next big refactor
2954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2972 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2973 v=$($ECHO $release$versuffix | tr -d .-);
2974 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2984 test -d \$dldir || mkdir -p \$dldir~
2987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3011 version_type=linux # correct to gnu/linux during the next big refactor
3036 version_type=linux # correct to gnu/linux during the next big refactor
3059 if test -d /usr/nec; then
3060 version_type=linux # correct to gnu/linux during the next big refactor
3077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3091 version_type=linux # correct to gnu/linux during the next big refactor
3101 version_type=linux # correct to gnu/linux during the next big refactor
3130 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3146 [Is shlibpath searched before the hard-coded library search path?])
3150 The last name is the one that the linker finds with -lNAME]])
3167 [Compile-time system search path for libraries])
3169 [Detected run-time system search path for libraries])
3176 # --------------------------
3189 dnl $ac_dummy forces splitting on constant user-supplied paths.
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f "$ac_dir/$1"; then
3198 if test -n "$file_magic_test_file"; then
3216 *** bug-libtool@gnu.org
3230 if test -n "$MAGIC_CMD"; then
3241 dnl aclocal-1.4 backwards compatibility:
3246 # --------------
3250 if test -z "$lt_cv_path_MAGIC_CMD"; then
3251 if test -n "$ac_tool_prefix"; then
3261 # ----------
3262 # find the pathname to the GNU or non-GNU linker
3271 AC_ARG_WITH([gnu-ld],
3272 [AS_HELP_STRING([--with-gnu-ld],
3273 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3279 # Check if gcc -print-prog-name=ld gives a path.
3282 *-*-mingw*)
3284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3297 test -z "$LD" && LD=$ac_prog
3309 AC_MSG_CHECKING([for GNU ld])
3311 AC_MSG_CHECKING([for non-GNU ld])
3314 [if test -z "$LD"; then
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3321 # Check to see if the program is GNU ld. I'd rather use --version,
3322 # but apparently some variants of GNU ld only accept -v.
3323 # Break only if it was the GNU/non-GNU ld that we prefer.
3324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3325 *GNU* | *'with BFD'*)
3339 if test -n "$LD"; then
3344 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3354 dnl aclocal-1.4 backwards compatibility:
3360 #- --------------
3362 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3363 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3364 case `$LD -v 2>&1 </dev/null` in
3365 *GNU* | *'with BFD'*)
3377 # --------------
3379 # -- PORTME Some linkers may need a different reload flag.
3383 [lt_cv_ld_reload_flag='-r'])
3389 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3398 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3400 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3410 # -----------
3419 cmp -s conftest.i conftest.out \
3422 rm -f conftest.i conftest2.i conftest.out])
3427 # ----------------
3436 cmp -s conftest.i conftest.out \
3439 rm -f conftest.i conftest2.i conftest.out
3440 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3447 # ----------------------
3449 # -- PORTME fill in with the dynamic library characteristics
3460 # 'none' -- dependencies not supported.
3461 # 'unknown' -- same as none, but documents that we really don't know.
3462 # 'pass_all' -- all dependencies passed with no checks.
3463 # 'test_compile' -- check by making test program.
3464 # 'file_magic [[regex]]' -- check by looking for files in library path
3470 aix[[4-9]]*)
3479 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3480 lt_cv_file_magic_cmd='$FILECMD -L'
3493 # unless we find 'file', for example because we are cross-compiling.
3499 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3500 lt_cv_file_magic_cmd='$OBJDUMP -f'
3506 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
3515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3520 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3538 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3542 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3546 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3552 interix[[3-9]]*)
3559 *-32|*"-32 ") libmagic=32-bit;;
3560 *-n32|*"-n32 ") libmagic=N32;;
3561 *-64|*"-64 ") libmagic=64-bit;;
3562 *) libmagic=never-match;;
3568 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3573 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3574 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3581 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3592 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3594 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3617 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3625 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3629 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3658 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3666 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3680 # ----------
3681 # find the pathname to a BSD- or MS-compatible name lister
3684 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3685 [if test -n "$NM"; then
3690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3697 test -z "$ac_dir" && ac_dir=.
3699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3700 # Check to see if the nm accepts a BSD-compat flag.
3701 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3709 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3711 lt_cv_path_NM="$tmp_nm -B"
3715 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3717 lt_cv_path_NM="$tmp_nm -p"
3737 if test -n "$DUMPBIN"; then :
3740 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3741 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3743 DUMPBIN="$DUMPBIN -symbols -headers"
3755 test -z "$NM" && NM=nm
3757 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3773 rm -f conftest*])
3779 dnl aclocal-1.4 backwards compatibility:
3784 # --------------------------------
3787 # -- PORTME fill in with the dynamic library characteristics
3800 case `$DLLTOOL --help 2>&1` in
3801 *--identify-strict*)
3816 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3824 # ----------------------
3828 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3831 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3832 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3837 rm -f conftest*])
3846 # ---------------------
3851 test DEF = "`$SED -n dnl
3852 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3853 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3854 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3855 -e q dnl Only consider the first "real" line
3861 # --------
3867 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3870 *-ncr-sysv4.3*)
3871 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3872 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3875 AC_CHECK_LIB(m, cos, LIBM=-lm)
3883 dnl aclocal-1.4 backwards compatibility:
3888 # -------------------------------
3897 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3899 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3902 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3904 [-fno-rtti -fno-exceptions], [],
3905 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3913 # ----------------------
3935 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3937 # Define system-specific variables.
3973 # If we're using GNU nm, then use its standard symbol codes.
3974 case `$NM -V 2>&1` in
3975 *GNU* | *'with BFD'*)
3981 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3983 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3984 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3986 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3987 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3999 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
4001 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4002 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4005 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
4007 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4008 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
4014 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4015 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4016 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4034 # Fake it for dumpbin and say T for any non-static function,
4054 …lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx…
4061 rm -f conftest*
4078 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
4081 mv -f "$nlist"T "$nlist"
4083 rm -f "$nlist"T
4093 relocations are performed -- see ld's documentation on pseudo-relocs. */
4108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4121 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
4143 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4161 rm -rf conftest* conftst*
4171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4183 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4207 # ---------------------------
4217 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4218 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4225 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4234 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4238 # adding the '-m68020' flag to GCC prevents building anything better,
4239 # like '-m68040'.
4240 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4251 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4252 # (--disable-auto-import) libraries
4254 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4257 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4264 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4272 # The "-static" flag exists, but is broken.
4275 interix[[3-9]]*)
4276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4280 if test -d /usr/nec; then
4281 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4292 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4297 # QNX uses GNU C++, but need to define -shared option too, otherwise
4299 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4307 aix[[4-9]]*)
4311 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4320 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
4328 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4333 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4344 # FreeBSD uses GNU C++
4349 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4350 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4356 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4357 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4379 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4380 # CC pic flag -KPIC is the default.
4386 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4390 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4391 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4394 # old Intel C++ for x86_64, which still supported -KPIC.
4395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4396 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4401 # ICC 10 doesn't accept -KPIC any more.
4402 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4403 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4404 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4415 # Linux and Compaq Tru64 Unix objects are PIC.
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4421 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4422 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4423 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4426 case `$CC -V 2>&1 | $SED 5q` in
4429 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4430 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4431 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4453 # QNX uses GNU C++, but need to define -shared option too, otherwise
4455 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4468 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4470 # Linux and Compaq Tru64 Unix objects are PIC.
4472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4484 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4486 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4500 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4501 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4505 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4514 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4515 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4516 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4523 # NonStop-UX NCC 3.20
4524 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4540 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4541 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4548 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4550 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4557 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4561 # adding the '-m68020' flag to GCC prevents building anything better,
4562 # like '-m68040'.
4563 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4575 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4576 # (--disable-auto-import) libraries
4578 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4581 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4589 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4594 # The "-static" flag exists, but is broken.
4599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4607 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4612 interix[[3-9]]*)
4613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4625 # QNX uses GNU C++, but need to define -shared option too, otherwise
4627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4631 if test -d /usr/nec; then
4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4637 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4643 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4644 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4645 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4653 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4656 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4658 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4665 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4669 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4670 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4671 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4680 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4683 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4689 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4691 # not for PA HP-UX.
4701 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4706 # PIC (with -KPIC) is the default.
4707 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4710 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4712 # old Intel for x86_64, which still supported -KPIC.
4714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4719 # ICC 10 doesn't accept -KPIC any more.
4721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4739 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4740 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4741 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4746 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4747 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4748 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4751 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4757 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4758 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4759 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4762 case `$CC -V 2>&1 | $SED 5q` in
4763 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4770 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4771 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4772 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4776 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4777 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4778 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4781 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4782 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4783 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4786 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4787 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4788 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4801 # QNX uses GNU C++, but need to define -shared option too, otherwise
4803 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4809 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4813 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4818 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4821 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4823 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4828 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4834 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4840 if test -d /usr/nec; then
4841 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4842 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4847 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4848 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4849 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4853 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4858 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4859 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4869 # For platforms that do not support PIC, -DPIC is meaningless:
4874 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4886 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4889 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4917 # ----------------------------
4933 aix[[4-9]]*)
4934 # If we're using GNU nm, then we don't want the "-C" option.
4935 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4936 # Without the "-l" option, or with the "-B" option, AIX nm treats
4938 # GNU nm marks them as "W".
4940 # it in the Import File for the 'aix-soname' feature, so we have
4941 # to replace the "-B" option with "-P" for AIX nm.
4942 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4943-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4945-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
4957 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4958 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4991 # include_expsyms should be a list of space-separated symbols to be *always*
5028 # On some targets, GNU ld is compatible enough with the native linker
5034 # The AIX port of GNU ld has always aspired to compatibility
5035 # with the native linker. However, as the warning in the GNU ld
5038 case `$LD -v 2>&1` in
5039 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5040 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5041 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5057 # Set some defaults for GNU ld with shared library support. These
5061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5063 # ancient GNU ld didn't support --whole-archive et. al.
5064 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5065 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
5070 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5071 *GNU\ gold*) supports_anon_versioning=yes ;;
5072 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5079 # See if GNU ld supports shared libraries.
5081 aix[[3-9]]*)
5082 # On AIX/PPC, the GNU linker is very broken
5087 *** Warning: the GNU linker, at least up to release 2.19, is reported
5090 *** really care for shared libraries, you may want to install binutils
5091 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5102 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5106 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5107 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5117 # support --undefined. This deserves some investigation. FIXME
5118 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
5127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5128 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5132 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
5133 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
5135 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5136 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
5137 # If the export-symbols file already is a .def file, use it as
5145 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
5152 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5166 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5167 emximp -o $lib $output_objdir/$libname.def'
5174 prefix_cmds="$prefix_cmds -e 1d";
5176 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5178 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5179 emximp -o $lib $output_objdir/$libname.def'
5180 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5185 interix[[3-9]]*)
5188 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5189 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5194 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5196 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
5197-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
5200 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5202 if test linux-dietlibc = "$host_os"; then
5204 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5207 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5211 tmp_sharedflag='-shared'
5214--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5219--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5220 tmp_addflag=' $pic_flag -Mnomain' ;;
5222 tmp_addflag=' -i_dynamic' ;;
5224 tmp_addflag=' -i_dynamic -nofor_main' ;;
5226 tmp_addflag=' -nofor_main' ;;
5229 tmp_sharedflag='--shared' ;;
5231 tmp_sharedflag='-Wl,-shared' ;;
5233 tmp_sharedflag='-qmkshrobj'
5236--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5240 case `$CC -V 2>&1 | $SED 5q` in
5242--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
5244 tmp_sharedflag='-G' ;;
5246 tmp_sharedflag='-G' ;;
5248 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5252 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5254 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
5259 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5263 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5265 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5268 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5270 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
5280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5281 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5284 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5285 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5290 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5294 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5296 *** is disabling shared libraries support. We urge you to upgrade GNU
5297 *** binutils to release 2.9.1 or newer. Another option is to modify
5302 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5303 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5304 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5311 case `$LD -v 2>&1` in
5312 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5316 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5318 *** is disabling shared libraries support. We urge you to upgrade GNU
5319 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5332 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5333 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
5342 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
5349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5350 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5351 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5365 # PORTME fill in a description of your system's linker (not GNU ld)
5370 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
5372 # are no directories specified by -L.
5374 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5381 aix[[4-9]]*)
5386 exp_sym_flag='-Bexport'
5389 # If we're using GNU nm, then we don't want the "-C" option.
5390 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5391 # Without the "-l" option, or with the "-B" option, AIX nm treats
5393 # GNU nm marks them as "W".
5395 # it in the Import File for the 'aix-soname' feature, so we have
5396 # to replace the "-B" option with "-P" for AIX nm.
5397 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5398-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
5400-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
5405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5408 # depending on the kind of the shared library created -
5419 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5421 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5427 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5431 LDFLAGS="$LDFLAGS -Wl,-brtl"
5436 exp_sym_flag='-bexport'
5437 no_entry_flag='-bnoentry'
5442 # or program results in "error TOC overflow" add -mminimal-toc to
5444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5451 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5465 collect2name=`$CC -print-prog-name=collect2`
5466 if test -f "$collect2name" &&
5478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5483 shared_flag='-shared'
5485 shared_flag="$shared_flag "'$wl-G'
5489 # /with/ Import File - we do not want to mix them.
5490 shared_flag_aix='-shared'
5491 shared_flag_svr4='-shared $wl-G'
5495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5496 # chokes on -Wl,-G. The following line is correct:
5497 shared_flag='-G'
5500 shared_flag='$wl-G'
5502 shared_flag='$wl-bM:SRE'
5504 shared_flag_aix='$wl-bM:SRE'
5505 shared_flag_svr4='$wl-G'
5509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5510 # It seems that -bexpall does not export symbols beginning with
5514 # Warning - without using the other runtime loading flags (-brtl),
5515 # -berok will link without error, but may produce a broken library.
5516 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5521 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5525 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5526 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5532 # Warning - without using the other run time loading flags,
5533 # -berok will link without error, but may produce a broken library.
5534 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5535 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5537 # We only use this code for GNU lds that support --whole-archive.
5538 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5544 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
5545 # -brtl affects multiple linker settings, -berok does not and is overridden later
5546 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
5549 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
5552-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
5554 # used by -dlpreopen to get the symbols
5557 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
5566 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5570 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5571 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5578 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5598 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5603 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5605 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5611 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5623 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5624 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5637 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5641 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5652 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5653 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5662 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5663 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5670 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5676 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5678 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5679 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5686 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -
5688 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5697 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5702 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5704 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5711 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5722 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
5725 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
5728 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5734 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5737 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
5741 # Older versions of the 11.00 compiler do not understand -b yet
5742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5743 _LT_LINKER_OPTION([if $CC understands -b],
5744 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5745 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5746 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5747 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5775-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5776 # Try to use the -exported_symbol ld option, if it does not
5777 # work, assume that -exports_file does not work either and
5779 # This should be the same for all languages, so no per-tag cache variable.
5780 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5783 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5798-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5801-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5802-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5811 linux*)
5816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5823 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5825 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5827 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5833 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5844 if test -f /usr/libexec/ld.so; then
5848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5850 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5852 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5854 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5872 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5873 emximp -o $lib $output_objdir/$libname.def'
5880 prefix_cmds="$prefix_cmds -e 1d";
5882 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5884 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5885 emximp -o $lib $output_objdir/$libname.def'
5886 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5893 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5894-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
5896 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5897-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
5900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5904 osf4* | osf5*) # as osf3* with the addition of -msym flag
5906 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5907-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
5908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5910 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5911-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
5912 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5913-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
5915 # Both c and cxx compiler support -rpath directly
5916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5923 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5926 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
5927 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5928 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
5930 case `$CC -V 2>&1` in
5933 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
5934 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5935 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
5939 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
5940 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5941 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
5945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5948 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5951 # but understands '-z linker_flag'. GCC discards it without '$wl',
5955 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
5957 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5968 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5970 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5972 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5981 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5987 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5988 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5992 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6003 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6007 if test -d /usr/nec; then
6008 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6017 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6023 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6026 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6027 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6032 # Note: We CANNOT use -z defs as we might desire, because we do not
6033 # link with -lc, and that would cause any symbols used from libc to
6035 # ever link correctly. If we're not using GNU ld we use -z text
6036 # though, which does catch some bad symbols but isn't as heavy-handed
6037 # as -z defs.
6038 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6039 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6042 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6045 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6049 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6050 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6052 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6053 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6058 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6059 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6071 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6092 # Assume -lc should be added
6098 # FIXME: we may have to deal with multi-command sequences.
6101 # Test whether the compiler implicitly links with -lc since on some
6102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6103 # to ld, don't add -lc before -lgcc.
6104 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6116 compiler_flags=-v
6117 linker_flags=-v
6123 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6143 [Whether or not to add -lc for building shared libraries])
6154 [Create an old-style archive from a shared archive])
6156 [Create a temporary old-style archive to link instead of a shared archive])
6164 [Whether we are building with GNU ld or not])
6173 [Whether we need a single "-rpath" flag with a separated argument])
6183 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6218 # ------------------------
6253 if test -n "$compiler"; then
6276 if test -n "$RANLIB"; then
6282 aix[[4-9]]*)
6307 # --------------------------
6315 if test -n "$CXX" && ( test no != "$CXX" &&
6316 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6358 # and will be corrupted by setting them based on a non-working compiler.
6381 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6386 if test -n "${lt_cv_path_LDCXX+set}"; then
6391 test -z "${LDCXX+set}" || LD=$LDCXX
6392 CC=${CXX-"c++"}
6398 if test -n "$compiler"; then
6399 # We don't want -fno-exception when compiling C++ code, so set the
6402 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6408 # Set up default GNU C++ configuration
6412 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6413 # archiving commands below assume that GNU ld is being used.
6415 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
6416-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6422 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6426 # ancient GNU ld didn't support --whole-archive et. al.
6427 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6428 $GREP 'no-whole-archive' > /dev/null; then
6429 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
6438 # command for GNU C++ for the case where it uses the native
6439 # linker, instead of GNU ld. If possible, this setting should
6442 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
6448 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6464 aix[[4-9]]*)
6469 exp_sym_flag='-Bexport'
6475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6478 # depending on the kind of the shared library created -
6489 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6492 *-brtl*)
6499 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6503 LDFLAGS="$LDFLAGS -Wl,-brtl"
6508 exp_sym_flag='-bexport'
6509 no_entry_flag='-bnoentry'
6514 # or program results in "error TOC overflow" add -mminimal-toc to
6516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6523 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6537 collect2name=`$CC -print-prog-name=collect2`
6538 if test -f "$collect2name" &&
6550 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6554 shared_flag='-shared'
6556 shared_flag=$shared_flag' $wl-G'
6560 # /with/ Import File - we do not want to mix them.
6561 shared_flag_aix='-shared'
6562 shared_flag_svr4='-shared $wl-G'
6566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6567 # chokes on -Wl,-G. The following line is correct:
6568 shared_flag='-G'
6571 shared_flag='$wl-G'
6573 shared_flag='$wl-bM:SRE'
6575 shared_flag_aix='$wl-bM:SRE'
6576 shared_flag_svr4='$wl-G'
6580 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6581 # It seems that -bexpall does not export symbols beginning with
6586 # Warning - without using the other runtime loading flags (-brtl),
6587 # -berok will link without error, but may produce a broken library.
6588 # The "-G" linker flag allows undefined symbols.
6589 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6593 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6595 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
6598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6599 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6600 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6605 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6606 # Warning - without using the other run time loading flags,
6607 # -berok will link without error, but may produce a broken library.
6608 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6609 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6611 # We only use this code for GNU lds that support --whole-archive.
6612 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6618 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
6619 # -brtl affects multiple linker settings, -berok does not and is overridden later
6620 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
6623 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6624 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
6627-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
6629 # used by -dlpreopen to get the symbols
6632 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
6638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6641 # support --undefined. This deserves some investigation. FIXME
6642 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
6672 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6677 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6679 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6696 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6697 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6705 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6706 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6712-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6713 # If the export-symbols file already is a .def file, use it as
6721-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6733 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6742 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6743 emximp -o $lib $output_objdir/$libname.def'
6750 prefix_cmds="$prefix_cmds -e 1d";
6752 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6754 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6755 emximp -o $lib $output_objdir/$libname.def'
6756 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
6785 freebsd-elf*)
6790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6796 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
6803 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6815 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
6824 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6828 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
6846 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6872 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
6875 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
6878 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
6889 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6896 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
6899 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath
6902 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
6914 interix[[3-9]]*)
6917 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6918 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6923 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6925 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
6926-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
6932-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6935 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6938 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6943-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6945-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6951 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6956 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6962 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6964-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6965-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"…
6974 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6977 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6980 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6981 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6989 case `$CC -V 2>&1` in
6991 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
6992 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
6997 ia64*) tmp_idyn=' -i_dynamic';;
6999 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
7000 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
7004 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7005 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7006 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7010 case `$CC -V` in
7011 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7013 rm -rf $tpldir~
7014 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7015 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7017 rm -rf $tpldir~
7018 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7019 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
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` $po…
7026 rm -rf $tpldir~
7027 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7028-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
7031 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7032-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
7036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7037 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7038--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7042 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7043 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
7046 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7057 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
7060 # IBM XL 8.0 on PPC, with GNU ld
7061 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7063 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
7066 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7068 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
7072 case `$CC -V 2>&1 | $SED 5q` in
7075 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7076 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7077 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
7078 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7079--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7083 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7088 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7091 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7123 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
7125 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7129 # Workaround some broken pre-1.5 toolchains
7130 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
7138 if test -f /usr/libexec/ld.so; then
7142 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
7143 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7145 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
7146 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7147 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7163-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so…
7165 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7171 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7172 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7183 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7184-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
7185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7188 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7189-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7190 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
7191 echo "-hidden">> $lib.exp~
7192-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7208 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
7212 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7215-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7218-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
7222 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7228 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7267 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7268 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7269 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
7270 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
7272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7275 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7278 # but understands '-z linker_flag'.
7280 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7291 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7295 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
7298 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7301 # GNU C++ compiler with Solaris linker
7303 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7304 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7305 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
7306 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7307 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
7312 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7314 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7316 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
7317 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
7318 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
7323 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
7326 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7328 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7330 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
7339 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7346 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7350 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7357 # Note: We CANNOT use -z defs as we might desire, because we do not
7358 # link with -lc, and that would cause any symbols used from libc to
7360 # ever link correctly. If we're not using GNU ld we use -z text
7361 # though, which does catch some bad symbols but isn't as heavy-handed
7362 # as -z defs.
7363 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7364 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7370 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7375 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7377 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7379 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7383 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7392 # NonStop-UX NCC 3.20
7433 fi # test -n "$compiler"
7452 # ----------------------
7459 # This function is identical to the (non-XSI) version of func_stripname,
7476 # ---------------------------------
7542 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7543 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7544 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7560 -L* | -R* | -l*)
7561 # Some compilers place space between "-{L,R}" and the path.
7563 if test x-L = "$p" ||
7564 test x-R = "$p"; then
7570 if test -z "$prev"; then
7572 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7573 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7574 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7582 -L | -R)
7586 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7592 # The "-l" case would never come before the object being
7596 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7615 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7621 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7635 rm -f a.out a.exe
7640 $RM -f confest.$objext
7646 interix[[3-9]]*)
7657 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7660 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7661 …h_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7678 # --------------------------
7684 if test -z "$F77" || test no = "$F77"; then
7720 # and will be corrupted by setting them based on a non-working compiler.
7746 CC=${F77-"f77"}
7752 if test -n "$compiler"; then
7764 if test -n "$RANLIB"; then
7769 aix[[4-9]]*)
7801 fi # test -n "$compiler"
7813 # -------------------------
7820 if test -z "$FC" || test no = "$FC"; then
7847 ac_ext=${ac_fc_srcext-f}
7856 # and will be corrupted by setting them based on a non-working compiler.
7882 CC=${FC-"f95"}
7890 if test -n "$compiler"; then
7902 if test -n "$RANLIB"; then
7907 aix[[4-9]]*)
7940 fi # test -n "$compiler"
7952 # --------------------------
7953 # Ensure that the configuration variables for the GNU Java Compiler compiler
7985 CC=${GCJ-"gcj"}
8003 if test -n "$compiler"; then
8023 # --------------------------
8024 # Ensure that the configuration variables for the GNU Go compiler
8056 CC=${GOC-"gccgo"}
8074 if test -n "$compiler"; then
8094 # -------------------------
8127 CC=${RC-"windres"}
8134 if test -n "$compiler"; then
8147 # -----------
8152 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8158 dnl aclocal-1.4 backwards compatibility:
8163 # ----------
8170 # ----------
8177 dnl aclocal-1.4 backwards compatibility:
8182 # --------------
8188 test -z "$GREP" && GREP=grep
8192 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8198 # --------------
8203 test -z "$OBJDUMP" && OBJDUMP=objdump
8209 # ----------------
8213 test -z "$DLLTOOL" && DLLTOOL=dlltool
8219 # ----------------
8227 # ------------
8228 # Check for a fully-functional sed program, that truncates
8229 # as few characters as possible. Prefer GNU sed if found.
8232 test -z "$SED" && SED=sed
8233 Xsed="$SED -e 1s/^X//"
8235 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8236 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8242 # GNU Autoconf as AC_PROG_SED. When it is available in #
8256 test -z "$as_dir" && as_dir=.
8271 test ! -f "$lt_ac_sed" && continue
8275 # Check for GNU sed and select it if it is found.
8276 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8285 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8286 cmp -s conftest.out conftest.nl || break
8288 test 10 -lt "$lt_ac_count" && break
8290 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8305 dnl aclocal-1.4 backwards compatibility:
8310 # ------------------------
8339 # -----------------------------
8342 # for certain cross-compile configurations and native mingw.
8349 *-*-mingw* )
8351 *-*-mingw* ) # actually msys
8354 *-*-cygwin* )
8362 *-*-cygwin* )
8364 *-*-mingw* ) # actually msys
8367 *-*-cygwin* )
8390 *-*-mingw* )
8392 *-*-mingw* ) # actually msys