• Home
  • Raw
  • Download

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

1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
18 # This file is part of GNU Libtool.
20 # GNU Libtool is free software; you can redistribute it and/or
21 # modify it under the terms of the GNU General Public License as
25 # As a special exception to the GNU General Public License,
27 # is built using GNU Libtool, you may include this file under the
30 # GNU Libtool is distributed in the hope that it will be useful,
33 # GNU General Public License for more details.
35 # You should have received a copy of the GNU General Public License
36 # along with GNU Libtool; see the file COPYING. If not, a copy
37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46 # ------------------
49 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
57 # ------------------
68 # ------------------
78 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
88 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
109 dnl aclocal-1.4 backwards compatibility:
115 # -------------------
116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
122 \-*) ;;
126 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
131 # ----------------------
135 [: ${CP="cp -f"}
136 : ${MV="mv -f"}
137 : ${RM="rm -f"}
142 # ---------
162 test -z "$LN_S" && LN_S="ln -s"
182 if test -n "\${ZSH_VERSION+set}" ; then
186 if test -n "${ZSH_VERSION+set}" ; then
220 test -z "$CC" && CC=cc
221 test -z "$LTCC" && LTCC=$CC
222 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
223 test -z "$LD" && LD=ld
224 test -z "$ac_objext" && ac_objext=o
229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
247 # --------------------------
251 # double-quoted strings.
269 # ---------------
281 ## ------------------------------------- ##
283 ## ------------------------------------- ##
291 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
292 # ----------------------------------------
293 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
305 # ------------------------------
318 # -----------------------------------------------------
326 # -----------------------------
328 # full-stop to the whole comment if one is not present already.
337 ## ------------------------ ##
339 ## ------------------------ ##
342 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
343 # -------------------------------------------------------------------
361 # --------------------------------------------------------
366 # ------------------------------------------------
372 # ---------------------------------------------------------
384 # --------------------------------------------------
390 # ---------------------------------------------------
396 # ---------------------------------------------------
407 # ------------------------------------------------
421 # ------------------------------------
430 # ------------------------------
443 # ----------------
452 # -----------------------------------
473 # -----------------------
474 # Produce commented declarations of non-tagged libtool config variables
485 # -------------------------
492 # ------------------------------
497 # -------------------
523 # The HP-UX ksh and POSIX shell print the target directory to stdout
556 # Double-quote double-evaled strings.
561 …\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_s…
573 # ------------------------------------
579 # the child script. The macro ends with non-zero status if the
591 SHELL=\${CONFIG_SHELL-$SHELL}
603 # ---------
628 -h, --help print this help, then exit
629 -V, --version print version number, then exit
630 -q, --quiet do not print progress messages
631 -d, --debug don't remove temporary files
633 Report bugs to <bug-libtool@gnu.org>."
647 --version | --v* | -V )
649 --help | --h* | -h )
651 --debug | --d* | -d )
653 --quiet | --q* | --silent | --s* | -q )
656 -*) AC_MSG_ERROR([unrecognized option: $[1]
657 Try \`$[0] --help' for more information.]) ;;
660 Try \`$[0] --help' for more information.]) ;;
687 lt_config_lt_args="$lt_config_lt_args --quiet"
696 # ---------------
697 # If TAG is the built-in tag, create an initial libtool script with a
708 if test -n "${ZSH_VERSION+set}" ; then
719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
755 || (rm -f "$cfgfile"; exit 1)
759 mv -f "$cfgfile" "$ofile" ||
760 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
784 # ---------------------
786 # --tag option, using:
787 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
791 # C support is built-in for now
797 # -------------
815 # ------------------
826 # -----------------------
866 dnl aclocal-1.4 backwards compatibility:
875 # ----------------
882 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
885 LTCC=${LTCC-"$CC"}
888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
896 # ------------------------
910 # ----------------------
919 $RM -r conftest*
923 # -------------------------
939 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
941 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
943 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
945 if test -z "${LT_MULTI_MODULE}"; then
946 # By default we will add the -single_module flag. You can override
948 # non-empty at configure time, or by adding -multi_module to the
950 rm -rf libconftest.dylib*
952 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
953 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
954 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
955 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
957 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
962 rm -rf libconftest.dylib*
963 rm -f conftest.*
965 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
970 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
976 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
981 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
982 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
990 …echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAG…
991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
993 …if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftes…
998 rm -f conftest.err libconftest.a conftest conftest.c
999 rm -rf conftest.dSYM
1003 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1010 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1011 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1024 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1039 # --------------------------
1049 …c, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience…
1061 …_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs…
1062 …_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$co…
1063 …output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobj…
1064 …sym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$C…
1067-r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefine…
1068-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynami…
1077 # ----------------------------------
1100 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a…
1101 # Check for a 64-bit object if we didn't find anything.
1102 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1103 …_LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$l…
1105 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1115 # -------------------
1117 [m4_divert_text([M4SH-INIT], [$1
1123 # -----------------------
1135 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1137 ECHO='print -r --'
1152 # Invoke $ECHO with all args, space-separated.
1160 print*) AC_MSG_RESULT([print -r]) ;;
1166 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1172 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1180 # ----------------
1184 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1194 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1198 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1208 AC_MSG_RESULT([${lt_sysroot:-no}])
1213 # ---------------
1215 [AC_ARG_ENABLE([libtool-lock],
1216 [AS_HELP_STRING([--disable-libtool-lock],
1223 ia64-*-hpux*)
1228 *ELF-32*)
1231 *ELF-64*)
1236 rm -rf conftest*
1238 *-*-irix6*)
1244 *32-bit*)
1245 LD="${LD-ld} -melf32bsmip"
1248 LD="${LD-ld} -melf32bmipn32"
1250 *64-bit*)
1251 LD="${LD-ld} -melf64bmip"
1256 *32-bit*)
1257 LD="${LD-ld} -32"
1260 LD="${LD-ld} -n32"
1262 *64-bit*)
1263 LD="${LD-ld} -64"
1268 rm -rf conftest*
1271 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1272 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1277 *32-bit*)
1279 x86_64-*kfreebsd*-gnu)
1280 LD="${LD-ld} -m elf_i386_fbsd"
1282 x86_64-*linux*)
1283 LD="${LD-ld} -m elf_i386"
1285 ppc64-*linux*|powerpc64-*linux*)
1286 LD="${LD-ld} -m elf32ppclinux"
1288 s390x-*linux*)
1289 LD="${LD-ld} -m elf_s390"
1291 sparc64-*linux*)
1292 LD="${LD-ld} -m elf32_sparc"
1296 *64-bit*)
1298 x86_64-*kfreebsd*-gnu)
1299 LD="${LD-ld} -m elf_x86_64_fbsd"
1301 x86_64-*linux*)
1302 LD="${LD-ld} -m elf_x86_64"
1304 ppc*-*linux*|powerpc*-*linux*)
1305 LD="${LD-ld} -m elf64ppc"
1307 s390*-*linux*|s390*-*tpf*)
1308 LD="${LD-ld} -m elf64_s390"
1310 sparc*-*linux*)
1311 LD="${LD-ld} -m elf64_sparc"
1317 rm -rf conftest*
1320 *-*-sco3.2v5*)
1321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1323 CFLAGS="$CFLAGS -belf"
1324 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1333 sparc*-*solaris*)
1338 *64-bit*)
1340 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1342 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1343 LD="${LD-ld} -64"
1350 rm -rf conftest*
1359 # -----------
1373 if test "$ac_status" -eq 0; then
1375 rm -f conftest.$ac_objext libconftest.a
1377 if test "$ac_status" -ne 0; then
1381 rm -f conftest.* libconftest.a
1396 # -------------------
1401 test -z "$STRIP" && STRIP=:
1405 test -z "$RANLIB" && RANLIB=:
1407 [Commands used to install an old-style archive])
1409 # Determine commands to create old-style static archives.
1414 if test -n "$RANLIB"; then
1417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1435 [Commands used to build an old-style archive])
1441 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1442 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1443 # ----------------------------------------------------------------
1459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1460 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1461 -e 's:$: $lt_compiler_flag:'`
1467 if (exit $ac_status) && test -s "$ac_outfile"; then
1472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1488 dnl aclocal-1.4 backwards compatibility:
1492 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1493 # [ACTION-SUCCESS], [ACTION-FAILURE])
1494 # ----------------------------------------------------
1504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1507 if test -s conftest.err; then
1519 $RM -r conftest*
1532 dnl aclocal-1.4 backwards compatibility:
1537 #---------------
1555 gnu*)
1556 # Under GNU Hurd, this test is not required because there is
1558 # Libtool will interpret -1 as no limit whatsoever
1559 lt_cv_sys_max_cmd_len=-1;
1563 # On Win9x/ME, this test blows up -- it succeeds, but takes
1565 # Worse, since 9x/ME are not pre-emptively multitasking,
1586 if test -x /sbin/sysctl; then
1587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1588 elif test -x /usr/sbin/sysctl; then
1589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1610 if test -x /sbin/sysconfig; then
1611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1621 if test -n "$kargmax"; then
1629 if test -n "$lt_cv_sys_max_cmd_len"; then
1638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1639 # If test is not a shell built-in, we'll probably end up computing a
1660 if test -n $lt_cv_sys_max_cmd_len ; then
1672 dnl aclocal-1.4 backwards compatibility:
1677 # ----------------
1683 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1684 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1685 # ----------------------------------------------------------------
1735 /* When -fvisbility=hidden is used, assume the code has been annotated
1763 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1776 rm -fr conftest*
1781 # ------------------
1812 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1823 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1827 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1829 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1831 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1900 dnl aclocal-1.4 backwards compatibility:
1905 # ---------------------------
1906 # Check to see if options -c and -o are simultaneously supported by compiler.
1912 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1915 $RM -r conftest 2>/dev/null
1921 lt_compiler_flag="-o out/conftest2.$ac_objext"
1927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1928 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1929 -e 's:$: $lt_compiler_flag:'`
1935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1952 $RM -r conftest
1956 [Does compiler simultaneously support -c and -o options?])
1961 # ----------------------------------
1980 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1991 # ----------------
1994 [rm -f .libs 2>/dev/null
1996 if test -d .libs; then
1999 # MS-DOS does not allow filenames that begin with a dot.
2008 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2013 # --------------------------------------
2018 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2019 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2022 # We can hardcode non-existent directories.
2026 # when we should be linking with a yet-to-be-installed one
2057 # ----------------
2063 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2064 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2065 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2068 # FIXME - insert some real tests, host_os isn't really good enough
2071 if test -n "$STRIP" ; then
2072 striplib="$STRIP -x"
2073 old_striplib="$STRIP -S"
2090 # -----------------------------
2108 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2111 …lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_s…
2115 # otherwise default to the standard path separator (i.e. ":") - it is
2127 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2129 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2132 test -d "$lt_sys_path" && \
2140 for (lt_i = NF; lt_i > 0; lt_i--) {
2148 lt_count--;
2160 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2182 # when you set need_version to no, make sure it does not cause -set_version
2188 version_type=linux
2196 aix[[4-9]]*)
2197 version_type=linux
2215 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2262 version_type=linux
2272 # libtool to hard-code these into programs
2287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2289 test -d \$dldir || mkdir -p \$dldir~
2292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2303 …soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${ve…
2309 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2313 …library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g…
2322 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2339 …path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|…
2345 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2346 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2347 …sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEP…
2351 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2355 … sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2358 # common. (e.g. "Program Files" -> "PROGRA~1")
2364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2366 test -d \$dldir || mkdir -p \$dldir~
2368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2377 …library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $…
2401 version_type=linux
2416 if test -x /usr/bin/objformat; then
2424 version_type=freebsd-$objformat
2426 freebsd-elf*)
2431 freebsd-*)
2445 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2446 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2457 gnu*)
2458 version_type=linux
2468 version_type=linux
2522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2528 interix[[3-9]]*)
2529 version_type=linux
2545 version_type=linux
2560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2561 libsuff= shlibsuff= libmagic=32-bit;;
2562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2566 *) libsuff= shlibsuff= libmagic=never-match;;
2577 # No shared lib support for Linux oldld, aout, or coff.
2578 linux*oldld* | linux*aout* | linux*coff*)
2582 # This must be Linux ELF.
2583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2584 version_type=linux
2589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2593 # Some binutils ld are patched to set DT_RUNPATH
2601 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2616 x86_64*|s390x*|powerpc64*)
2620 *64-bit*)
2625 rm -rf conftest*
2632 if test -f /etc/ld.so.conf; then
2633 …skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwc…
2639 # GNU dynamic linker. Since this was broken with cross compilers,
2640 # most powerpc-linux boxes support dynamic linking these days and
2641 # people can always --disable-shared, the test was removed, and we
2642 # assume the GNU/Linux dynamic linker is in use.
2643 dynamic_linker='GNU/Linux ld.so'
2650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2665 version_type=linux
2693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2695 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
2734 version_type=linux
2759 version_type=linux
2782 if test -d /usr/nec ;then
2783 version_type=linux
2791 version_type=freebsd-elf
2800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2813 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2814 version_type=linux
2824 version_type=linux
2859 [Is shlibpath searched before the hard-coded library search path?])
2863 The last name is the one that the linker finds with -lNAME]])
2880 [Compile-time system search path for libraries])
2882 [Run-time system search path for libraries])
2887 # --------------------------
2900 dnl $ac_dummy forces splitting on constant user-supplied paths.
2906 test -z "$ac_dir" && ac_dir=.
2907 if test -f $ac_dir/$1; then
2909 if test -n "$file_magic_test_file"; then
2927 *** bug-libtool@gnu.org
2941 if test -n "$MAGIC_CMD"; then
2952 dnl aclocal-1.4 backwards compatibility:
2957 # --------------
2961 if test -z "$lt_cv_path_MAGIC_CMD"; then
2962 if test -n "$ac_tool_prefix"; then
2972 # ----------
2973 # find the pathname to the GNU or non-GNU linker
2982 AC_ARG_WITH([gnu-ld],
2983 [AS_HELP_STRING([--with-gnu-ld],
2984 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2990 # Check if gcc -print-prog-name=ld gives a path.
2993 *-*-mingw*)
2995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3008 test -z "$LD" && LD="$ac_prog"
3020 AC_MSG_CHECKING([for GNU ld])
3022 AC_MSG_CHECKING([for non-GNU ld])
3025 [if test -z "$LD"; then
3029 test -z "$ac_dir" && ac_dir=.
3030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3032 # Check to see if the program is GNU ld. I'd rather use --version,
3033 # but apparently some variants of GNU ld only accept -v.
3034 # Break only if it was the GNU/non-GNU ld that we prefer.
3035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3036 *GNU* | *'with BFD'*)
3050 if test -n "$LD"; then
3055 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3065 dnl aclocal-1.4 backwards compatibility:
3071 #- --------------
3073 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3074 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3075 case `$LD -v 2>&1 </dev/null` in
3076 *GNU* | *'with BFD'*)
3088 # --------------
3090 # -- PORTME Some linkers may need a different reload flag.
3094 [lt_cv_ld_reload_flag='-r'])
3100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3109 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3111 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3121 # ----------------------
3123 # -- PORTME fill in with the dynamic library characteristics
3134 # 'none' -- dependencies not supported.
3135 # `unknown' -- same as none, but documents that we really don't know.
3136 # 'pass_all' -- all dependencies passed with no checks.
3137 # 'test_compile' -- check by making test program.
3138 # 'file_magic [[regex]]' -- check by looking for files in library path
3144 aix[[4-9]]*)
3153 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib…
3154 lt_cv_file_magic_cmd='/usr/bin/file -L'
3167 # unless we find 'file', for example because we are cross-compiling.
3174 …v_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x…
3175 lt_cv_file_magic_cmd='$OBJDUMP -f'
3181 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3182 lt_cv_file_magic_cmd='$OBJDUMP -f'
3190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3195 …lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand pa…
3205 gnu*)
3217 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object f…
3221 …heck_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)…
3225 …lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared lib…
3231 interix[[3-9]]*)
3238 *-32|*"-32 ") libmagic=32-bit;;
3239 *-n32|*"-n32 ") libmagic=N32;;
3240 *-64|*"-64 ") libmagic=64-bit;;
3241 *) libmagic=never-match;;
3246 # This must be Linux ELF.
3247 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3253 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3260 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3270 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
3271 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3273 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3296 …bs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][…
3304 …lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib…
3308 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3334 …file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/…
3342 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3356 # ----------
3357 # find the pathname to a BSD- or MS-compatible name lister
3360 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3361 [if test -n "$NM"; then
3366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3373 test -z "$ac_dir" && ac_dir=.
3375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3376 # Check to see if the nm accepts a BSD-compat flag.
3377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3382 lt_cv_path_NM="$tmp_nm -B"
3386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3388 lt_cv_path_NM="$tmp_nm -p"
3408 if test -n "$DUMPBIN"; then :
3411 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3412 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3414 DUMPBIN="$DUMPBIN -symbols"
3426 test -z "$NM" && NM=nm
3428 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3444 rm -f conftest*])
3450 dnl aclocal-1.4 backwards compatibility:
3455 # --------------------------------
3458 # -- PORTME fill in with the dynamic library characteristics
3471 case `$DLLTOOL --help 2>&1` in
3472 *--identify-strict*)
3487 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3495 # ----------------------
3499 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3502 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3503 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3508 rm -f conftest*])
3517 # --------
3523 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3526 *-ncr-sysv4.3*)
3527 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3528 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3531 AC_CHECK_LIB(m, cos, LIBM="-lm")
3539 dnl aclocal-1.4 backwards compatibility:
3544 # -------------------------------
3553 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3555 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3558 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3560 [-fno-rtti -fno-exceptions], [],
3561 …o_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3569 # ----------------------
3591 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3593 # Define system-specific variables.
3629 # If we're using GNU nm, then use its standard symbol codes.
3630 case `$NM -V 2>&1` in
3631 *GNU* | *'with BFD'*)
3638 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .…
3641 …_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *…
3642 …x="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) …
3660 # Fake it for dumpbin and say T for any non-static function
3676 …lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$…
3683 rm -f conftest*
3700 …if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$n…
3703 mv -f "$nlist"T "$nlist"
3705 rm -f "$nlist"T
3715 relocations are performed -- see ld's documentation on pseudo-relocs. */
3730 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3743 …$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main …
3765 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3783 rm -rf conftest* conftst*
3793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3805 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3825 # ---------------------------
3835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3843 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3851 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3855 # adding the `-m68020' flag to GCC prevents building anything better,
3856 # like `-m68040'.
3857 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3869 # (--disable-auto-import) libraries
3871 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3876 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3884 # The "-static" flag exists, but is broken.
3887 interix[[3-9]]*)
3888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3892 if test -d /usr/nec; then
3893 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3909 # QNX uses GNU C++, but need to define -shared option too, otherwise
3911 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3914 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3919 aix[[4-9]]*)
3923 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3925 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3932 …# _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abor…
3940 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3945 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3949 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3956 # FreeBSD uses GNU C++
3961 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3962 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3969 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3990 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3991 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3992 # CC pic flag -KPIC is the default.
3998 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4006 # old Intel C++ for x86_64 which still supported -KPIC.
4007 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4008 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4009 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4013 # ICC 10 doesn't accept -KPIC any more.
4014 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4016 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4027 # Linux and Compaq Tru64 Unix objects are PIC.
4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4033 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4038 case `$CC -V 2>&1 | sed 5q` in
4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4065 # QNX uses GNU C++, but need to define -shared option too, otherwise
4067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4076 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4080 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4082 # Linux and Compaq Tru64 Unix objects are PIC.
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4097 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4098 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4112 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4113 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4117 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4126 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4128 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4135 # NonStop-UX NCC 3.20
4136 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4152 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4153 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4160 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4172 # adding the `-m68020' flag to GCC prevents building anything better,
4173 # like `-m68040'.
4174 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4187 # (--disable-auto-import) libraries
4189 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4195 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4200 # The "-static" flag exists, but is broken.
4205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4213 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4218 interix[[3-9]]*)
4219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4231 # QNX uses GNU C++, but need to define -shared option too, otherwise
4233 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4237 if test -d /usr/nec; then
4238 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4243 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4249 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4250 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4257 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4260 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4262 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4270 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4274 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4276 # not for PA HP-UX.
4286 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4290 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4291 # PIC (with -KPIC) is the default.
4292 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4297 # old Intel for x86_64 which still supported -KPIC.
4299 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4301 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4304 # ICC 10 doesn't accept -KPIC any more.
4306 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4308 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4312 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4313 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4314 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4318 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4319 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4320 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4325 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4326 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4327 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4330 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4332 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4337 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4338 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4341 case `$CC -V 2>&1 | sed 5q` in
4344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4350 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4351 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4365 # QNX uses GNU C++, but need to define -shared option too, otherwise
4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4392 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 if test -d /usr/nec ;then
4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4406 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4422 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4423 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4433 # For platforms which do not support PIC, -DPIC is meaningless:
4438 …$1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[]…
4450 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4453 …[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])]…
4481 # ----------------------------
4497 aix[[4-9]]*)
4498 # If we're using GNU nm, then we don't want the "-C" option.
4499 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4501 # symbols, whereas GNU nm marks them as "W".
4502 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4503-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4505-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4515 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4516 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4520 linux* | k*bsd*-gnu)
4553 # include_expsyms should be a list of space-separated symbols to be *always*
4590 # On some targets, GNU ld is compatible enough with the native linker
4596 # The AIX port of GNU ld has always aspired to compatibility
4597 # with the native linker. However, as the warning in the GNU ld
4600 case `$LD -v 2>&1` in
4601 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4602 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4603 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4619 # Set some defaults for GNU ld with shared library support. These
4623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4624 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4625 # ancient GNU ld didn't support --whole-archive et. al.
4626 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4627 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
4632 case `$LD -v 2>&1` in
4633 *GNU\ gold*) supports_anon_versioning=yes ;;
4634 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4641 # See if GNU ld supports shared libraries.
4643 aix[[3-9]]*)
4644 # On AIX/PPC, the GNU linker is very broken
4649 *** Warning: the GNU linker, at least up to release 2.19, is reported
4652 *** really care for shared libraries, you may want to install binutils
4653 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4664 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4668 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4679 # support --undefined. This deserves some investigation. FIXME
4680 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4694 …_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\'…
4695 … $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_…
4697 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4698 …_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-
4699 # If the export-symbols file already is a .def file (1st line
4707 …C -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $…
4714 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4718 interix[[3-9]]*)
4721 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4722 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4729 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
4730-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
4733 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4735 if test "$host_os" = linux-dietlibc; then
4737 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4740 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4744 tmp_sharedflag='-shared'
4747--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4752--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4753 tmp_addflag=' $pic_flag -Mnomain' ;;
4755 tmp_addflag=' -i_dynamic' ;;
4757 tmp_addflag=' -i_dynamic -nofor_main' ;;
4759 tmp_addflag=' -nofor_main' ;;
4762 tmp_sharedflag='--shared' ;;
4764 tmp_sharedflag='-qmkshrobj'
4767--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
4771 case `$CC -V 2>&1 | sed 5q` in
4773--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
4775 tmp_sharedflag='-G' ;;
4777 tmp_sharedflag='-G' ;;
4779 …"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4785 …$libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir…
4791 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4793 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4794 … _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4799 …$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libnam…
4809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4810 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4813 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4814 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4819 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4823 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4825 *** is disabling shared libraries support. We urge you to upgrade GNU
4826 *** binutils to release 2.9.1 or newer. Another option is to modify
4831 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4832 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4833 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4840 case `$LD -v 2>&1` in
4841 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4845 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4847 *** is disabling shared libraries support. We urge you to upgrade GNU
4848 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4860 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4861 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
4862 …psym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain
4871 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_…
4878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4879 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname…
4880 …cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-r…
4894 # PORTME fill in a description of your system's linker (not GNU ld)
4899 …(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$expo…
4901 # are no directories specified by -L.
4903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4910 aix[[4-9]]*)
4915 exp_sym_flag='-Bexport'
4918 # If we're using GNU nm, then we don't want the "-C" option.
4919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4921 # defined symbols, whereas GNU nm marks them as "W".
4922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4923-Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$…
4925-BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (…
4930 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4932 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4934 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4942 exp_sym_flag='-bexport'
4943 no_entry_flag='-bnoentry'
4948 # or program results in "error TOC overflow" add -mminimal-toc to
4950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4957 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4963 collect2name=`${CC} -print-prog-name=collect2`
4964 if test -f "$collect2name" &&
4976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4981 shared_flag='-shared'
4983 shared_flag="$shared_flag "'${wl}-G'
4989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4990 # chokes on -Wl,-G. The following line is correct:
4991 shared_flag='-G'
4994 shared_flag='${wl}-G'
4996 shared_flag='${wl}-bM:SRE'
5001 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5002 # It seems that -bexpall does not export symbols beginning with
5006 # Warning - without using the other runtime loading flags (-brtl),
5007 # -berok will link without error, but may produce a broken library.
5008 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5013 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
5016 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5017 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5018 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
5023 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5024 # Warning - without using the other run time loading flags,
5025 # -berok will link without error, but may produce a broken library.
5026 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5027 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5029 # We only use this code for GNU lds that support --whole-archive.
5030 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5037 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
5046 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
5050 …r/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5051 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5058 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5078 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
5080 …sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outpu…
5082 …sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sonam…
5084 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
5089 … $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'…
5101 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5102 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
5115 …TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\…
5119 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5130 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5131 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5144 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++…
5145 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5152 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5160 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5168 …R(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir…
5170 …_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objd…
5179 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5184 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5186 …_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $link…
5194 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5205 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler…
5208 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $…
5211 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_lib…
5217 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flag…
5220 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $d…
5224 # Older versions of the 11.00 compiler do not understand -b yet
5225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5226 _LT_LINKER_OPTION([if $CC understands -b],
5227 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5228 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5229 …[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $lin…
5230 …[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $l…
5246 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5258-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5259 # Try to use the -exported_symbol ld option, if it does not
5260 # work, assume that -exports_file does not work either and
5262 # This should be the same for all languages, so no per-tag cache variable.
5263 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5266 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5281-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring…
5284-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5285-shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "
5288 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5296 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5298 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5300 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5306 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5308 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5317 if test -f /usr/libexec/ld.so; then
5321 …if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-
5322 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5323 …AGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${…
5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5325 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5328 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5329 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5333 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5344 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5347 …dir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobj…
5348 …_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$lib…
5353 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5354-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -
5356 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5357-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstr…
5360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5364 osf4* | osf5*) # as osf3* with the addition of -msym flag
5366 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5367-shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname…
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5370 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5371-shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$…
5372 …in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%…
5373-shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname…
5375 # Both c and cxx compiler support -rpath directly
5376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5383 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5386 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib…
5387 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5388 …$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj…
5390 case `$CC -V 2>&1` in
5393 …_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5394 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5395 …$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $…
5399 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $…
5400 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
5401 …$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM…
5405 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5408 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5411 # but understands `-z linker_flag'. GCC discards it without `$wl',
5415 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
5417 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5428 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5430 …_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_fla…
5432 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5441 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5447 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5448 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5452 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5463 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5467 if test -d /usr/nec; then
5468 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5477 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5483 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5484 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5486 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5487 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5492 # Note: We can NOT use -z defs as we might desire, because we do not
5493 # link with -lc, and that would cause any symbols used from libc to
5495 # ever link correctly. If we're not using GNU ld we use -z text
5496 # though, which does catch some bad symbols but isn't as heavy-handed
5497 # as -z defs.
5498 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5499 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5502 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5505 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5509 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
5510 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
5512 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5513 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
5518 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5531 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5552 # Assume -lc should be added
5558 # FIXME: we may have to deal with multi-command sequences.
5561 # Test whether the compiler implicitly links with -lc since on some
5562 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5563 # to ld, don't add -lc before -lgcc.
5564 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5576 compiler_flags=-v
5577 linker_flags=-v
5583 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5603 [Whether or not to add -lc for building shared libraries])
5614 [Create an old-style archive from a shared archive])
5616 [Create a temporary old-style archive to link instead of a shared archive])
5624 [Whether we are building with GNU ld or not])
5636 [Whether we need a single "-rpath" flag with a separated argument])
5646 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5681 # ------------------------
5716 if test -n "$compiler"; then
5739 if test -n "$RANLIB"; then
5745 aix[[4-9]]*)
5766 # --------------------------
5774 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5775 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5818 # and will be corrupted by setting them based on a non-working compiler.
5841 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5846 if test -n "${lt_cv_path_LDCXX+set}"; then
5851 test -z "${LDCXX+set}" || LD=$LDCXX
5852 CC=${CXX-"c++"}
5858 if test -n "$compiler"; then
5859 # We don't want -fno-exception when compiling C++ code, so set the
5862 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5868 # Set up default GNU C++ configuration
5872 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5873 # archiving commands below assume that GNU ld is being used.
5875 …, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compile…
5876-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
5878 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5879 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5882 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5886 # ancient GNU ld didn't support --whole-archive et. al.
5887 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5888 $GREP 'no-whole-archive' > /dev/null; then
5889 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
5898 # command for GNU C++ for the case where it uses the native
5899 # linker, instead of GNU ld. If possible, this setting should
5902 …LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_obje…
5908 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
5924 aix[[4-9]]*)
5929 exp_sym_flag='-Bexport'
5935 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5937 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5940 *-brtl*)
5949 exp_sym_flag='-bexport'
5950 no_entry_flag='-bnoentry'
5955 # or program results in "error TOC overflow" add -mminimal-toc to
5957 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5964 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5970 collect2name=`${CC} -print-prog-name=collect2`
5971 if test -f "$collect2name" &&
5983 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5987 shared_flag='-shared'
5989 shared_flag="$shared_flag "'${wl}-G'
5995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5996 # chokes on -Wl,-G. The following line is correct:
5997 shared_flag='-G'
6000 shared_flag='${wl}-G'
6002 shared_flag='${wl}-bM:SRE'
6007 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6008 # It seems that -bexpall does not export symbols beginning with
6013 # Warning - without using the other runtime loading flags (-brtl),
6014 # -berok will link without error, but may produce a broken library.
6015 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6019 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6021 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_e…
6024 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6025 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6026 …_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $depli…
6031 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6032 # Warning - without using the other run time loading flags,
6033 # -berok will link without error, but may produce a broken library.
6034 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6035 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6037 # We only use this code for GNU lds that support --whole-archive.
6038 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6046 …psym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $co…
6052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6055 # support --undefined. This deserves some investigation. FIXME
6056 …_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sona…
6086 …_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,
6088 …$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $outp…
6090 …$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$sona…
6092 …$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.e…
6109 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6110 …$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || e…
6118 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6119 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6125-shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_ob…
6126 # If the export-symbols file already is a .def file (1st line
6134-shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $c…
6169 freebsd-elf*)
6174 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6179 gnu*)
6183 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$sonam…
6190 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6202 …LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $ou…
6211 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list…
6215 …hive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_l…
6233 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6259 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplib…
6262 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_obj…
6265 …_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $pr…
6276 …output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=…
6283 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_obj…
6286 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefault…
6289 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i…
6301 interix[[3-9]]*)
6304 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6305 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6312 …='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr …
6313-shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$ou…
6319-shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname …
6322 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6325 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6330-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6332-shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${w…
6338 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6343 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6349 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6351-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6352-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so…
6361 …_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GRE…
6363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6364 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6367 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6368 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6376 case `$CC -V 2>&1` in
6378 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6379 …$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$so…
6384 ia64*) tmp_idyn=' -i_dynamic';;
6386 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-son…
6387 …mds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}
6391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6392 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6393 … _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6397 case `$CC -V` in
6398 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6400 rm -rf $tpldir~
6401 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6402 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6404 rm -rf $tpldir~
6405 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6406 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6409 rm -rf $tpldir~
6410 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6411-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6413 rm -rf $tpldir~
6414 …$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $…
6415-shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $pos…
6418 …hive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler…
6419-shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname …
6423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6424 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6425--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_conv…
6429 …AR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_fla…
6430 …s, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam…
6433 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6444 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; tem…
6447 # IBM XL 8.0 on PPC, with GNU ld
6448 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6449 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6450 …_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$so…
6453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6455 …$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl…
6459 case `$CC -V 2>&1 | sed 5q` in
6462 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6463 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $lib…
6464 … $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_o…
6465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6466--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_conven…
6470 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6475 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6478 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6510 …_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_…
6512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6516 # Workaround some broken pre-1.5 toolchains
6517 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $…
6530 if test -f /usr/libexec/ld.so; then
6534 …LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_obje…
6535 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6536 …if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-p…
6537 …s, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $…
6538 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6539 …_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-
6553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6555-e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.…
6557 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6563 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6564 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6575 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6576-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags …
6577 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6580 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6581-shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags
6582 …hive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i"…
6583 echo "-hidden">> $lib.exp~
6584-shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -m…
6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6600 …output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GR…
6604 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6607-shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $comp…
6610-shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_obj…
6614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6620 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6659 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6660 …_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $li…
6661 …_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/…
6662 …$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $de…
6664 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6667 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6670 # but understands `-z linker_flag'.
6672 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6680 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6683 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6687 …AGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_…
6690 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6693 # GNU C++ compiler with Solaris linker
6695 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6696 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6697 …mds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_obje…
6698 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6699 …$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $pos…
6704 …output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with…
6706 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6708 …rchive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $co…
6709 …ve_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> …
6710 …$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $c…
6715 …output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | …
6718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6720 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6722 …_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaulte…
6731 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6738 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6739 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6742 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6743 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6749 # Note: We can NOT use -z defs as we might desire, because we do not
6750 # link with -lc, and that would cause any symbols used from libc to
6752 # ever link correctly. If we're not using GNU ld we use -z text
6753 # though, which does catch some bad symbols but isn't as heavy-handed
6754 # as -z defs.
6755 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6756 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6762 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6767 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6768 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib …
6769 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6771 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6775 …_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flag…
6776 …_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o …
6784 # NonStop-UX NCC 3.20
6825 fi # test -n "$compiler"
6844 # ----------------------
6851 # This function is identical to the (non-XSI) version of func_stripname,
6867 # ---------------------------------
6928 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6929 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6945 -L* | -R* | -l*)
6946 # Some compilers place space between "-{L,R}" and the path.
6948 if test $p = "-L" ||
6949 test $p = "-R"; then
6955 if test -z "$prev"; then
6957 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
6958 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
6959 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
6967 -L | -R)
6971 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6977 # The "-l" case would never come before the object being
6981 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7000 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7006 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7020 rm -f a.out a.exe
7025 $RM -f confest.$objext
7031 interix[[3-9]]*)
7039 linux*)
7040 case `$CC -V 2>&1 | sed 5q` in
7044 # The more standards-conforming stlport4 library is
7047 # -library=stlport4 depends on it.
7049 *" -library=stlport4 "*)
7055 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7064 # The more standards-conforming stlport4 library is
7067 # -library=stlport4 depends on it.
7069 *" -library=stlport4 "*)
7074 # Adding this requires a known-good setup of shared libraries for
7078 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7087 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7090 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7091 …dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7108 # --------------------------
7114 if test -z "$F77" || test "X$F77" = "Xno"; then
7151 # and will be corrupted by setting them based on a non-working compiler.
7177 CC=${F77-"f77"}
7183 if test -n "$compiler"; then
7195 if test -n "$RANLIB"; then
7200 aix[[4-9]]*)
7228 fi # test -n "$compiler"
7240 # -------------------------
7247 if test -z "$FC" || test "X$FC" = "Xno"; then
7275 ac_ext=${ac_fc_srcext-f}
7284 # and will be corrupted by setting them based on a non-working compiler.
7310 CC=${FC-"f95"}
7318 if test -n "$compiler"; then
7330 if test -n "$RANLIB"; then
7335 aix[[4-9]]*)
7364 fi # test -n "$compiler"
7376 # --------------------------
7377 # Ensure that the configuration variables for the GNU Java Compiler compiler
7405 CC=${GCJ-"gcj"}
7412 ac_compile='$CC -c $GCJFLAGS conftest.$ac_ext >&AS_MESSAGE_LOG_FD'
7413 ac_link='$CC -o conftest$ac_exeext --main=conftest $GCJFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&AS_M…
7430 if test -n "$compiler"; then
7450 # -------------------------
7483 CC=${RC-"windres"}
7490 if test -n "$compiler"; then
7503 # -----------
7508 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7514 dnl aclocal-1.4 backwards compatibility:
7519 # ----------
7526 dnl aclocal-1.4 backwards compatibility:
7531 # --------------
7537 test -z "$GREP" && GREP=grep
7541 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7547 # --------------
7552 test -z "$OBJDUMP" && OBJDUMP=objdump
7558 # ----------------
7562 test -z "$DLLTOOL" && DLLTOOL=dlltool
7568 # ------------
7569 # Check for a fully-functional sed program, that truncates
7570 # as few characters as possible. Prefer GNU sed if found.
7573 test -z "$SED" && SED=sed
7574 Xsed="$SED -e 1s/^X//"
7576 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7577 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7583 # GNU Autoconf as AC_PROG_SED. When it is available in #
7597 test -z "$as_dir" && as_dir=.
7612 test ! -f $lt_ac_sed && continue
7616 # Check for GNU sed and select it if it is found.
7617 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7626 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7627 cmp -s conftest.out conftest.nl || break
7629 test $lt_ac_count -gt 10 && break
7631 if test $lt_ac_count -gt $lt_ac_max; then
7646 dnl aclocal-1.4 backwards compatibility:
7651 # ------------------------
7661 && eval 'test $(( 1 + 1 )) -eq 2 \
7662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7699 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7700 # ------------------------------------------------------
7702 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7705 sed -e '/^$1 ()$/,/^} # $1 /c\
7709 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7710 && mv -f "$cfgfile.tmp" "$cfgfile" \
7711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7712 test 0 -eq $? || _lt_function_replace_fail=:
7717 # -------------------------
7775 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7776 && mv -f "$cfgfile.tmp" "$cfgfile" \
7777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7778 test 0 -eq $? || _lt_function_replace_fail=:
7781 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7782 && mv -f "$cfgfile.tmp" "$cfgfile" \
7783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7784 test 0 -eq $? || _lt_function_replace_fail=:
7793 # -----------------------------
7796 # for certain cross-compile configurations and native mingw.
7803 *-*-mingw* )
7805 *-*-mingw* ) # actually msys
7808 *-*-cygwin* )
7816 *-*-cygwin* )
7818 *-*-mingw* ) # actually msys
7821 *-*-cygwin* )
7844 *-*-mingw* )
7846 *-*-mingw* ) # actually msys