Lines Matching +full:echo +full:- +full:active +full:- +full:ms

1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
3 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
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 # -------------------
130 # arranges for $SED and $ECHO to be set by different means.
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 # --------------------------
264 [# Backslashify metacharacters that are still active within
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 # ------------------------------------
440 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
444 # ------------------------------
450 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
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
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
562 …eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""…
570 # Double-quote double-evaled strings.
573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
575 …eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\…
587 # ------------------------------------
593 # the child script. The macro ends with non-zero status if the
605 SHELL=\${CONFIG_SHELL-$SHELL}
617 # ---------
631 echo
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 )
662 echo "$lt_cl_version"; exit 0 ;;
663 --help | --h* | -h )
664 echo "$lt_cl_help"; exit 0 ;;
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 # ------------------
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 # ----------------
941 LTCC=${LTCC-"$CC"}
944 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
952 # ------------------------
958 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
966 # ----------------------
972 echo "$lt_simple_link_test_code" >conftest.$ac_ext
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*
1007 echo "int foo(void){return 1;}" > conftest.c
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],
1032 echo "_main" > conftest.sym
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
1047 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1049 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1054echo "$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 # -----------------------
1187 # Find how we can fake an echo command that does not interpret backslash.
1190 # printf (that we can use as an echo command).
1192 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\…
1193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
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 --'
1201 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1202 ECHO='printf %s\n'
1211 ECHO='func_fallback_echo'
1215 # Invoke $ECHO with all args, space-separated.
1218 $ECHO "$*"
1221 case $ECHO in
1223 print*) AC_MSG_RESULT([print -r]) ;;
1229 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1230ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\…
1231 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1232 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1234 test "X`printf %s $ECHO`" = "X$ECHO" \
1235 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1238 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
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*)
1291 echo 'int i;' > conftest.$ac_ext
1294 *ELF-32*)
1297 *ELF-64*)
1302 rm -rf conftest*
1304 *-*-irix6*)
1307 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
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*)
1341 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
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
1378 echo 'int i;' > conftest.$ac_ext
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*)
1453 echo 'int i;' > conftest.$ac_ext
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"
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"}],
1514 [echo conftest.$ac_objext > conftest.lst
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 # ----------------------------------------------------------------
1595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1600 # with a dollar sign (not a hyphen), so the echo should work correctly.
1602 lt_compile=`echo "$ac_compile" | $SED \
1603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1604 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1605 -e 's:$: $lt_compiler_flag:'`
1606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1610 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1611 if (exit $ac_status) && test -s "$ac_outfile"; then
1614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
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 # ----------------------------------------------------
1647 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1651 if test -s conftest.err; then
1654 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1663 $RM -r conftest*
1676 dnl aclocal-1.4 backwards compatibility:
1681 #---------------
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
1771 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
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
1792 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
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
2077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2079 lt_compiler_flag="-o out/conftest2.$ac_objext"
2083 # with a dollar sign (not a hyphen), so the echo should work correctly.
2084 lt_compile=`echo "$ac_compile" | $SED \
2085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2086 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2087 -e 's:$: $lt_compiler_flag:'`
2088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2097 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
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 # -----------------------------------
2280 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2283 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
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\"
2290 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
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
2327 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2330 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
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" && \
2352 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2356 for (lt_i = NF; lt_i > 0; lt_i--) {
2364 lt_count--;
2375 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2376 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2378 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2398 # when you set need_version to no, make sure it does not cause -set_version
2403 [User-defined run-time library search path.])
2415 aix[[4-9]]*)
2432 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2433 echo ' yes '
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.
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'
2603 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2608 …sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-z…
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.…
2663 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
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)
2779 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2785 interix[[3-9]]*)
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;;
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*)
2866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2878 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2893 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2894 # even though it is searched at run-time. Try to do the best guess by
2896 if test -f /etc/ld.so.conf; then
2897 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2904 # most powerpc-linux boxes support dynamic linking these days and
2905 # people can always --disable-shared, the test was removed, and we
2914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2969 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2970 v=$($ECHO $release$versuffix | tr -d .-);
2971 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2972 $ECHO $n$v`$shared_ext'
2979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2981 test -d \$dldir || mkdir -p \$dldir~
2984 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3056 if test -d /usr/nec; then
3087 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3127 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3143 [Is shlibpath searched before the hard-coded library search path?])
3147 The last name is the one that the linker finds with -lNAME]])
3164 [Compile-time system search path for libraries])
3166 [Detected run-time system search path for libraries])
3173 # --------------------------
3186 dnl $ac_dummy forces splitting on constant user-supplied paths.
3192 test -z "$ac_dir" && ac_dir=.
3193 if test -f "$ac_dir/$1"; then
3195 if test -n "$file_magic_test_file"; then
3213 *** bug-libtool@gnu.org
3227 if test -n "$MAGIC_CMD"; then
3238 dnl aclocal-1.4 backwards compatibility:
3243 # --------------
3247 if test -z "$lt_cv_path_MAGIC_CMD"; then
3248 if test -n "$ac_tool_prefix"; then
3258 # ----------
3259 # find the pathname to the GNU or non-GNU linker
3268 AC_ARG_WITH([gnu-ld],
3269 [AS_HELP_STRING([--with-gnu-ld],
3276 # Check if gcc -print-prog-name=ld gives a path.
3279 *-*-mingw*)
3281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3294 test -z "$LD" && LD=$ac_prog
3308 AC_MSG_CHECKING([for non-GNU ld])
3311 [if test -z "$LD"; then
3315 test -z "$ac_dir" && ac_dir=.
3316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3318 # Check to see if the program is GNU ld. I'd rather use --version,
3319 # but apparently some variants of GNU ld only accept -v.
3320 # Break only if it was the GNU/non-GNU ld that we prefer.
3321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3336 if test -n "$LD"; then
3341 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3351 dnl aclocal-1.4 backwards compatibility:
3357 #- --------------
3360 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3361 case `$LD -v 2>&1 </dev/null` in
3374 # --------------
3376 # -- PORTME Some linkers may need a different reload flag.
3380 [lt_cv_ld_reload_flag='-r'])
3386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3407 # -----------
3416 cmp -s conftest.i conftest.out \
3419 rm -f conftest.i conftest2.i conftest.out])
3424 # ----------------
3433 cmp -s conftest.i conftest.out \
3436 rm -f conftest.i conftest2.i conftest.out
3437 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3444 # ----------------------
3446 # -- PORTME fill in with the dynamic library characteristics
3457 # 'none' -- dependencies not supported.
3458 # 'unknown' -- same as none, but documents that we really don't know.
3459 # 'pass_all' -- all dependencies passed with no checks.
3460 # 'test_compile' -- check by making test program.
3461 # 'file_magic [[regex]]' -- check by looking for files in library path
3467 aix[[4-9]]*)
3476 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3477 lt_cv_file_magic_cmd='$FILECMD -L'
3490 # unless we find 'file', for example because we are cross-compiling.
3496 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3497 lt_cv_file_magic_cmd='$OBJDUMP -f'
3503 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
3512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3517 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3535 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3539 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3543 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3549 interix[[3-9]]*)
3556 *-32|*"-32 ") libmagic=32-bit;;
3557 *-n32|*"-n32 ") libmagic=N32;;
3558 *-64|*"-64 ") libmagic=64-bit;;
3559 *) libmagic=never-match;;
3565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3571 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3578 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3589 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3591 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3614 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3622 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3626 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3655 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3677 # ----------
3678 # find the pathname to a BSD- or MS-compatible name lister
3681 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3682 [if test -n "$NM"; then
3687 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3694 test -z "$ac_dir" && ac_dir=.
3696 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3697 # Check to see if the nm accepts a BSD-compat flag.
3698 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3706 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
3708 lt_cv_path_NM="$tmp_nm -B"
3712 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
3714 lt_cv_path_NM="$tmp_nm -p"
3734 if test -n "$DUMPBIN"; then :
3737 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3738 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
3740 DUMPBIN="$DUMPBIN -symbols -headers"
3752 test -z "$NM" && NM=nm
3754 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3758 echo "int some_variable = 0;" > conftest.$ac_ext
3759 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3762 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3765 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3768 lt_cv_nm_interface="MS dumpbin"
3770 rm -f conftest*])
3776 dnl aclocal-1.4 backwards compatibility:
3781 # --------------------------------
3784 # -- PORTME fill in with the dynamic library characteristics
3797 case `$DLLTOOL --help 2>&1` in
3798 *--identify-strict*)
3808 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3813 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3821 # ----------------------
3825 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3828 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3829 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3834 rm -f conftest*])
3843 # ---------------------
3848 test DEF = "`$SED -n dnl
3849 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3850 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3851 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3852 -e q dnl Only consider the first "real" line
3858 # --------
3864 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3867 *-ncr-sysv4.3*)
3868 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3869 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3872 AC_CHECK_LIB(m, cos, LIBM=-lm)
3880 dnl aclocal-1.4 backwards compatibility:
3885 # -------------------------------
3894 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3896 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3899 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3901 [-fno-rtti -fno-exceptions], [],
3902 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3910 # ----------------------
3932 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3934 # Define system-specific variables.
3971 case `$NM -V 2>&1` in
3976 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3978 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
3980 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3981 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3983 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3984 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3996 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
3998 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3999 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4002 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
4004 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4005 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
4011 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4012 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4013 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4031 # Fake it for dumpbin and say T for any non-static function,
4051 …lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx…
4058 rm -f conftest*
4075 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
4078 mv -f "$nlist"T "$nlist"
4080 rm -f "$nlist"T
4090 relocations are performed -- see ld's documentation on pseudo-relocs. */
4105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4118 …$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> c…
4140 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4146 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4149 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4155 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4158 rm -rf conftest* conftst*
4168 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4171 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4180 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4204 # ---------------------------
4214 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4215 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4222 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4224 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4231 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4235 # adding the '-m68020' flag to GCC prevents building anything better,
4236 # like '-m68040'.
4237 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4249 # (--disable-auto-import) libraries
4251 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4254 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4261 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4269 # The "-static" flag exists, but is broken.
4272 interix[[3-9]]*)
4273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4277 if test -d /usr/nec; then
4278 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4282 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4283 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4294 # QNX uses GNU C++, but need to define -shared option too, otherwise
4296 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4299 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4304 aix[[4-9]]*)
4308 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4310 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4317 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
4325 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4330 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4334 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4346 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4347 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4353 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4369 # This is c89, which is MS Visual C++ (no shared libs)
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4376 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4377 # CC pic flag -KPIC is the default.
4383 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4391 # old Intel C++ for x86_64, which still supported -KPIC.
4392 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4398 # ICC 10 doesn't accept -KPIC any more.
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4401 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4423 case `$CC -V 2>&1 | $SED 5q` in
4426 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4427 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4428 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4441 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4450 # QNX uses GNU C++, but need to define -shared option too, otherwise
4452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4457 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4465 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4469 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4482 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4483 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4487 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4498 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4502 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4511 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4512 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4513 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4520 # NonStop-UX NCC 3.20
4521 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4537 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4538 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4545 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4547 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4554 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4558 # adding the '-m68020' flag to GCC prevents building anything better,
4559 # like '-m68040'.
4560 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4572 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4573 # (--disable-auto-import) libraries
4575 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4578 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4586 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4591 # The "-static" flag exists, but is broken.
4596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4604 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4609 interix[[3-9]]*)
4610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4622 # QNX uses GNU C++, but need to define -shared option too, otherwise
4624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4628 if test -d /usr/nec; then
4629 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4634 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4640 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4641 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4642 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4650 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4653 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4655 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4662 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4666 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4668 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4677 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4680 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4686 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4688 # not for PA HP-UX.
4698 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4703 # PIC (with -KPIC) is the default.
4704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4707 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4709 # old Intel for x86_64, which still supported -KPIC.
4711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4712 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4713 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4716 # ICC 10 doesn't accept -KPIC any more.
4718 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4719 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4720 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4726 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4730 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4731 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4736 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4745 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4748 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4754 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4755 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4756 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4759 case `$CC -V 2>&1 | $SED 5q` in
4760 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4767 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4768 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4769 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4773 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4774 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4775 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4778 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4779 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4780 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4783 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4784 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4785 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4793 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4794 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4798 # QNX uses GNU C++, but need to define -shared option too, otherwise
4800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4804 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4810 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4814 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4818 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4820 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4825 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4827 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4831 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4832 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4833 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4837 if test -d /usr/nec; then
4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4844 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4845 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4846 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4850 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4866 # For platforms that do not support PIC, -DPIC is meaningless:
4871 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4883 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4886 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4914 # ----------------------------
4930 aix[[4-9]]*)
4931 # If we're using GNU nm, then we don't want the "-C" option.
4932 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4933 # Without the "-l" option, or with the "-B" option, AIX nm treats
4937 # it in the Import File for the 'aix-soname' feature, so we have
4938 # to replace the "-B" option with "-P" for AIX nm.
4939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4940-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4942-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
4954 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4955 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4988 # include_expsyms should be a list of space-separated symbols to be *always*
5035 case `$LD -v 2>&1` in
5037 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5038 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5059 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5060 # ancient GNU ld didn't support --whole-archive et. al.
5061 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5062 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
5067 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
5069 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5078 aix[[3-9]]*)
5088 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5099 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5103ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $ou…
5104 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5114 # support --undefined. This deserves some investigation. FIXME
5115 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
5124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5125 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5129 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
5130 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
5132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5133 …e_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-a…
5134 # If the export-symbols file already is a .def file, use it as
5139 echo EXPORTS > $output_objdir/$soname.def;
5142 …CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname …
5149 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5154 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5158 …_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $o…
5159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5161 $ECHO EXPORTS >> $output_objdir/$libname.def~
5163 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5164 emximp -o $lib $output_objdir/$libname.def'
5165 …_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANC…
5166 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5167 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5168 $ECHO EXPORTS >> $output_objdir/$libname.def~
5171 prefix_cmds="$prefix_cmds -e 1d";
5173 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5175 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5176 emximp -o $lib $output_objdir/$libname.def'
5177 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5182 interix[[3-9]]*)
5185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5186 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5191 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5193 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
5194-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
5197 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5199 if test linux-dietlibc = "$host_os"; then
5201 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5204 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5208 tmp_sharedflag='-shared'
5211--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5216--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5217 tmp_addflag=' $pic_flag -Mnomain' ;;
5219 tmp_addflag=' -i_dynamic' ;;
5221 tmp_addflag=' -i_dynamic -nofor_main' ;;
5223 tmp_addflag=' -nofor_main' ;;
5226 tmp_sharedflag='--shared' ;;
5228 tmp_sharedflag='-Wl,-shared' ;;
5230 tmp_sharedflag='-qmkshrobj'
5233--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
5237 case `$CC -V 2>&1 | $SED 5q` in
5239--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
5241 tmp_sharedflag='-G' ;;
5243 tmp_sharedflag='-G' ;;
5245 … '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5248 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5249 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5250 echo "local: *; };" >> $output_objdir/$libname.ver~
5251 …g"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$…
5256 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5260 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5261 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5262 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5264 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5265 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5266 echo "local: *; };" >> $output_objdir/$libname.ver~
5267 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
5277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5278 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5281 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5282 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5287 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5299 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5300 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5301 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5308 case `$LD -v 2>&1` in
5309 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5327 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5329 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5330 …expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-s…
5339 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
5346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5347 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $…
5348 …m_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-ret…
5367 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
5369 # are no directories specified by -L.
5371 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5378 aix[[4-9]]*)
5383 exp_sym_flag='-Bexport'
5386 # If we're using GNU nm, then we don't want the "-C" option.
5387 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5388 # Without the "-l" option, or with the "-B" option, AIX nm treats
5392 # it in the Import File for the 'aix-soname' feature, so we have
5393 # to replace the "-B" option with "-P" for AIX nm.
5394 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5395-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
5397-e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\…
5402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5405 # depending on the kind of the shared library created -
5416 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5418 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5424 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5428 LDFLAGS="$LDFLAGS -Wl,-brtl"
5433 exp_sym_flag='-bexport'
5434 no_entry_flag='-bnoentry'
5439 # or program results in "error TOC overflow" add -mminimal-toc to
5441 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5448 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5462 collect2name=`$CC -print-prog-name=collect2`
5463 if test -f "$collect2name" &&
5475 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5480 shared_flag='-shared'
5482 shared_flag="$shared_flag "'$wl-G'
5486 # /with/ Import File - we do not want to mix them.
5487 shared_flag_aix='-shared'
5488 shared_flag_svr4='-shared $wl-G'
5492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5493 # chokes on -Wl,-G. The following line is correct:
5494 shared_flag='-G'
5497 shared_flag='$wl-G'
5499 shared_flag='$wl-bM:SRE'
5501 shared_flag_aix='$wl-bM:SRE'
5502 shared_flag_svr4='$wl-G'
5506 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5507 # It seems that -bexpall does not export symbols beginning with
5511 # Warning - without using the other runtime loading flags (-brtl),
5512 # -berok will link without error, but may produce a broken library.
5513 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5518 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
5521 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5522 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5523 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5528 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5529 # Warning - without using the other run time loading flags,
5530 # -berok will link without error, but may produce a broken library.
5531 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5532 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5534 # We only use this code for GNU lds that support --whole-archive.
5535 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5541 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
5542 # -brtl affects multiple linker settings, -berok does not and is overridden later
5543 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
5546 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
5549-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
5551 # used by -dlpreopen to get the symbols
5554 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
5563 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
5567ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $ou…
5568 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5575 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5595 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5598 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5600 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5602 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5608 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5620 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5621 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5634 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5638 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5649 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5650 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5659 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5667 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5675 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5683 …VAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -
5685 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5694 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5699 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5701 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5708 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5719 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_fla…
5722 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $l…
5725 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $…
5731 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5734 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs…
5738 # Older versions of the 11.00 compiler do not understand -b yet
5739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5740 _LT_LINKER_OPTION([if $CC understands -b],
5741 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5742 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5743 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5744 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $…
5760 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5772-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5773 # Try to use the -exported_symbol ld option, if it does not
5774 # work, assume that -exports_file does not work either and
5776 # This should be the same for all languages, so no per-tag cache variable.
5777 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5780 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5795-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" &&…
5798-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5799-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5802 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5813 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5820 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5822 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5824 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5830 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5832 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5841 if test -f /usr/libexec/ld.so; then
5845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5847 …TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $…
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5849 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5852 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5864 …_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $o…
5865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5867 $ECHO EXPORTS >> $output_objdir/$libname.def~
5869 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5870 emximp -o $lib $output_objdir/$libname.def'
5871 …_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANC…
5872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5874 $ECHO EXPORTS >> $output_objdir/$libname.def~
5877 prefix_cmds="$prefix_cmds -e 1d";
5879 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5881 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
5882 emximp -o $lib $output_objdir/$libname.def'
5883 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
5890 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5891-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$ve…
5893 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5894-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstrin…
5897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5901 osf4* | osf5*) # as osf3* with the addition of -msym flag
5903 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5904-shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$s…
5905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5907 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5908-shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$ve…
5909 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5910-shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $sona…
5912 # Both c and cxx compiler support -rpath directly
5913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5920 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5923 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libo…
5924 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
5925 …$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs…
5927 case `$CC -V 2>&1` in
5930 …_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $li…
5931 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
5932 …$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $li…
5936 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $co…
5937 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
5938 …$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $…
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5945 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5948 # but understands '-z linker_flag'. GCC discards it without '$wl',
5952 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
5954 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5965 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5967 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5978 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5984 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5985 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5989 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5998 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6004 if test -d /usr/nec; then
6005 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6014 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6020 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6021 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6023 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6029 # Note: We CANNOT use -z defs as we might desire, because we do not
6030 # link with -lc, and that would cause any symbols used from libc to
6032 # ever link correctly. If we're not using GNU ld we use -z text
6033 # though, which does catch some bad symbols but isn't as heavy-handed
6034 # as -z defs.
6035 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6036 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6046 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6047 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
6049 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6050 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
6055 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6056 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6068 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6089 # Assume -lc should be added
6095 # FIXME: we may have to deal with multi-command sequences.
6098 # Test whether the compiler implicitly links with -lc since on some
6099 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6100 # to ld, don't add -lc before -lgcc.
6101 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6113 compiler_flags=-v
6114 linker_flags=-v
6120 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6140 [Whether or not to add -lc for building shared libraries])
6151 [Create an old-style archive from a shared archive])
6153 [Create a temporary old-style archive to link instead of a shared archive])
6170 [Whether we need a single "-rpath" flag with a separated argument])
6180 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6215 # ------------------------
6250 if test -n "$compiler"; then
6273 if test -n "$RANLIB"; then
6279 aix[[4-9]]*)
6304 # --------------------------
6312 if test -n "$CXX" && ( test no != "$CXX" &&
6313 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6355 # and will be corrupted by setting them based on a non-working compiler.
6378 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6383 if test -n "${lt_cv_path_LDCXX+set}"; then
6388 test -z "${LDCXX+set}" || LD=$LDCXX
6389 CC=${CXX-"c++"}
6395 if test -n "$compiler"; then
6396 # We don't want -fno-exception when compiling C++ code, so set the
6399 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6412 …s, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
6413-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
6415 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6416 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6419 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6423 # ancient GNU ld didn't support --whole-archive et. al.
6424 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6425 $GREP 'no-whole-archive' > /dev/null; then
6426 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
6439 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
6445 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6461 aix[[4-9]]*)
6466 exp_sym_flag='-Bexport'
6472 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6475 # depending on the kind of the shared library created -
6486 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6489 *-brtl*)
6496 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6500 LDFLAGS="$LDFLAGS -Wl,-brtl"
6505 exp_sym_flag='-bexport'
6506 no_entry_flag='-bnoentry'
6511 # or program results in "error TOC overflow" add -mminimal-toc to
6513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6520 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6534 collect2name=`$CC -print-prog-name=collect2`
6535 if test -f "$collect2name" &&
6547 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6551 shared_flag='-shared'
6553 shared_flag=$shared_flag' $wl-G'
6557 # /with/ Import File - we do not want to mix them.
6558 shared_flag_aix='-shared'
6559 shared_flag_svr4='-shared $wl-G'
6563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6564 # chokes on -Wl,-G. The following line is correct:
6565 shared_flag='-G'
6568 shared_flag='$wl-G'
6570 shared_flag='$wl-bM:SRE'
6572 shared_flag_aix='$wl-bM:SRE'
6573 shared_flag_svr4='$wl-G'
6577 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6578 # It seems that -bexpall does not export symbols beginning with
6583 # Warning - without using the other runtime loading flags (-brtl),
6584 # -berok will link without error, but may produce a broken library.
6585 # The "-G" linker flag allows undefined symbols.
6586 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6592 …(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $co…
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6596 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6597 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6603 # Warning - without using the other run time loading flags,
6604 # -berok will link without error, but may produce a broken library.
6605 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6606 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6608 # We only use this code for GNU lds that support --whole-archive.
6609 … _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6615 …_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$real…
6616 # -brtl affects multiple linker settings, -berok does not and is overridden later
6617 …compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\…
6620 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6621 …)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$…
6624-o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compi…
6626 # used by -dlpreopen to get the symbols
6629 …_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/…
6635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6638 # support --undefined. This deserves some investigation. FIXME
6639 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname…
6669 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6672 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6674 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6676 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6693 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6694 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6703 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6709-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6710 # If the export-symbols file already is a .def file, use it as
6715 echo EXPORTS > $output_objdir/$soname.def;
6718-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6730 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6734 …_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $o…
6735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6737 $ECHO EXPORTS >> $output_objdir/$libname.def~
6739 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6740 emximp -o $lib $output_objdir/$libname.def'
6741 …_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANC…
6742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6744 $ECHO EXPORTS >> $output_objdir/$libname.def~
6747 prefix_cmds="$prefix_cmds -e 1d";
6749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6751 …$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$lib…
6752 emximp -o $lib $output_objdir/$libname.def'
6753 …_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdi…
6782 freebsd-elf*)
6793 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname
6800 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6812 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $outpu…
6821 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6825 …rchive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_lib…
6843 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6869 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $p…
6872 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $…
6875 …_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_obj…
6886 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6893 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects…
6896 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath
6899 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_l…
6911 interix[[3-9]]*)
6914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6915 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6920 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6922 …1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${…
6923-shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output…
6929-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6932 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6935 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6940-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6942-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl
6948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6961echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -
6962echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -
6971 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6973 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6974 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6977 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6978 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6986 case `$CC -V 2>&1` in
6988 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
6989 …='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$so…
6994 ia64*) tmp_idyn=' -i_dynamic';;
6996 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-sonam…
6997 …_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-r…
7001 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7002 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7003 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7007 case `$CC -V` in
7008 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7010 rm -rf $tpldir~
7011 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7012 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7014 rm -rf $tpldir~
7015 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7016 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7019 rm -rf $tpldir~
7020 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7021-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $po…
7023 rm -rf $tpldir~
7024 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
7025-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
7028 …rchive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7029-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $…
7033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7034 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7035--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
7039 …VAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fl…
7040 …mds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-sonam…
7043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7054 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
7058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7059 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7060 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$sona…
7062 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7063 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7064 echo "local: *; };" >> $output_objdir/$libname.ver~
7065 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$outp…
7069 case `$CC -V 2>&1 | $SED 5q` in
7072 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7073 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7074 …s, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
7075 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7076--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
7080 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7085 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7088 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7120 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
7122 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7126 # Workaround some broken pre-1.5 toolchains
7127 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
7135 if test -f /usr/libexec/ld.so; then
7139 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
7140 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7141 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7142 …ds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
7143 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7144 …_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-arch…
7158 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7160echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED…
7162 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7168 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7169 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7180 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7181-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $w…
7182 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7185 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7186-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7187 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
7188 echo "-hidden">> $lib.exp~
7189-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7205 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
7209 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7212-shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compil…
7215-shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objec…
7219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7225 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7264 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7265 …_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libob…
7266 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
7267 …$CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs …
7269 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7272 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7275 # but understands '-z linker_flag'.
7277 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7285 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7288 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7292 …TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler…
7295 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7300 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7301 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7302 …hive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects…
7303 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
7304 …$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobj…
7309 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
7311 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7313 …VAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compil…
7314 …GVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)…
7315 …$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $pos…
7320 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
7323 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7325 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7327 …_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextra…
7336 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7343 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7347 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7354 # Note: We CANNOT use -z defs as we might desire, because we do not
7355 # link with -lc, and that would cause any symbols used from libc to
7357 # ever link correctly. If we're not using GNU ld we use -z text
7358 # though, which does catch some bad symbols but isn't as heavy-handed
7359 # as -z defs.
7360 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7361 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7367 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7372 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7373 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $lib…
7374 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7376 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7380 … _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7381 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib…
7389 # NonStop-UX NCC 3.20
7430 fi # test -n "$compiler"
7449 # ----------------------
7456 # This function is identical to the (non-XSI) version of func_stripname,
7465 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7466 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7473 # ---------------------------------
7539 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7540 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7541 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7557 -L* | -R* | -l*)
7558 # Some compilers place space between "-{L,R}" and the path.
7560 if test x-L = "$p" ||
7561 test x-R = "$p"; then
7567 if test -z "$prev"; then
7569 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7570 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7571 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7579 -L | -R)
7583 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7589 # The "-l" case would never come before the object being
7593 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7612 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7618 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7632 rm -f a.out a.exe
7634 echo "libtool.m4: error: problem compiling $1 test program"
7637 $RM -f confest.$objext
7643 interix[[3-9]]*)
7654 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7657 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7658 …_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED
7675 # --------------------------
7681 if test -z "$F77" || test no = "$F77"; then
7717 # and will be corrupted by setting them based on a non-working compiler.
7743 CC=${F77-"f77"}
7749 if test -n "$compiler"; then
7761 if test -n "$RANLIB"; then
7766 aix[[4-9]]*)
7798 fi # test -n "$compiler"
7810 # -------------------------
7817 if test -z "$FC" || test no = "$FC"; then
7844 ac_ext=${ac_fc_srcext-f}
7853 # and will be corrupted by setting them based on a non-working compiler.
7879 CC=${FC-"f95"}
7887 if test -n "$compiler"; then
7899 if test -n "$RANLIB"; then
7904 aix[[4-9]]*)
7937 fi # test -n "$compiler"
7949 # --------------------------
7982 CC=${GCJ-"gcj"}
8000 if test -n "$compiler"; then
8020 # --------------------------
8053 CC=${GOC-"gccgo"}
8071 if test -n "$compiler"; then
8091 # -------------------------
8124 CC=${RC-"windres"}
8131 if test -n "$compiler"; then
8144 # -----------
8149 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8155 dnl aclocal-1.4 backwards compatibility:
8160 # ----------
8167 # ----------
8174 dnl aclocal-1.4 backwards compatibility:
8179 # --------------
8185 test -z "$GREP" && GREP=grep
8189 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8195 # --------------
8200 test -z "$OBJDUMP" && OBJDUMP=objdump
8206 # ----------------
8210 test -z "$DLLTOOL" && DLLTOOL=dlltool
8216 # ----------------
8224 # ------------
8225 # Check for a fully-functional sed program, that truncates
8229 test -z "$SED" && SED=sed
8230 Xsed="$SED -e 1s/^X//"
8232 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8233 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8253 test -z "$as_dir" && as_dir=.
8268 test ! -f "$lt_ac_sed" && continue
8271 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8273 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8281 echo >>conftest.nl
8282 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8283 cmp -s conftest.out conftest.nl || break
8285 test 10 -lt "$lt_ac_count" && break
8287 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8302 dnl aclocal-1.4 backwards compatibility:
8307 # ------------------------
8319 case `echo X|tr X '\101'` in
8336 # -----------------------------
8339 # for certain cross-compile configurations and native mingw.
8346 *-*-mingw* )
8348 *-*-mingw* ) # actually msys
8351 *-*-cygwin* )
8359 *-*-cygwin* )
8361 *-*-mingw* ) # actually msys
8364 *-*-cygwin* )
8387 *-*-mingw* )
8389 *-*-mingw* ) # actually msys