145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org#! /bin/sh 245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Output a system dependent set of variables, describing how to set the 345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# run time search path of shared libraries in an executable. 445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# 5a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# Copyright 1996-2007 Free Software Foundation, Inc. 645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Taken from GNU libtool, 2001 745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# 945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# This file is free software; the Free Software Foundation gives 1045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# unlimited permission to copy and/or distribute it, with or without 1145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# modifications, as long as this notice is preserved. 1245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# 1345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# The first argument passed to this file is the canonical host specification, 1445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 1545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# or 1645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 1745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld 1845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# should be set by the caller. 1945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# 2045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# The set of defined variables is at the end of this script. 2145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 2245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Known limitations: 2345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer 2445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# than 256 bytes, otherwise the compiler driver will dump core. The only 2545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# known workaround is to choose shorter directory names for the build 2645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# directory and/or the installation directory. 2745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 2845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# All known linkers require a `.a' archive for static linking (except MSVC, 2945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# which needs '.lib'). 3045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orglibext=a 3145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgshrext=.so 3245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 3345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghost="$1" 3445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghost_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghost_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghost_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 3845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Code taken from libtool.m4's _LT_CC_BASENAME. 3945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 4045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgfor cc_temp in $CC""; do 4145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $cc_temp in 4245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 4345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 4445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org \-*) ;; 4545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) break;; 4645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 4745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgdone 4845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` 4945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 5045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. 5145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 5245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgwl= 5345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgif test "$GCC" = yes; then 5445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 5545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgelse 5645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case "$host_os" in 5745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix*) 5845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 5945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 6045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org darwin*) 6145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $cc_basename in 6245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org xlc*) 6345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 6445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 6545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 6645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 67a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org mingw* | cygwin* | pw32* | os2*) 6845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 6945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hpux9* | hpux10* | hpux11*) 7045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 7145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 7245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org irix5* | irix6* | nonstopux*) 7345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 7445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 7545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org newsos6) 7645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 77a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org linux* | k*bsd*-gnu) 7845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $cc_basename in 7945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org icc* | ecc*) 8045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 8145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 8245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org pgcc | pgf77 | pgf90) 8345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 8445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 8545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ccc*) 8645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 8745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 8845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org como) 8945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-lopt=' 9045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 9145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 9245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case `$CC -V 2>&1 | sed 5q` in 9345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *Sun\ C*) 9445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 9545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 9645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 9745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 9845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 9945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 10045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org osf3* | osf4* | osf5*) 10145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 10245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 103a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org rdos*) 10445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 10545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org solaris*) 10645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 10745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 10845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sunos4*) 10945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Qoption ld ' 11045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 111a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org sysv4 | sysv4.2uw2* | sysv4.3*) 11245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 11345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 11445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4*MP*) 11545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 116a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 117a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org wl='-Wl,' 118a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org ;; 11945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org unicos*) 12045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org wl='-Wl,' 12145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 12245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org uts4*) 12345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 12445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 12545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgfi 12645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 12745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. 12845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 12945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_libdir_flag_spec= 13045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_libdir_separator= 13145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_direct=no 13245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_minus_L=no 13345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 13445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcase "$host_os" in 13545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cygwin* | mingw* | pw32*) 13645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # FIXME: the MSVC++ port hasn't been tested in a loooong time 13745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # When not using gcc, we currently assume that we are using 13845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Microsoft Visual C++. 13945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$GCC" != yes; then 14045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org with_gnu_ld=no 14145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 14245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 14345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org interix*) 14445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # we just hope/assume this is gcc and not c89 (= MSVC++) 14545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org with_gnu_ld=yes 14645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 14745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org openbsd*) 14845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org with_gnu_ld=no 14945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 15045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgesac 15145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 15245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgld_shlibs=yes 15345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgif test "$with_gnu_ld" = yes; then 15445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Set some defaults for GNU ld with shared library support. These 15545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # are reset later if shared libraries are not supported. Putting them 15645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # here allows them to be overridden if necessary. 15745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Unlike libtool, we use -rpath here, not --rpath, since the documented 15845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # option of GNU ld is called -rpath, not --rpath. 15945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case "$host_os" in 16145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix3* | aix4* | aix5*) 16245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # On AIX/PPC, the GNU linker is very broken 16345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$host_cpu" != ia64; then 16445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 16545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 16645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 16745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org amigaos*) 16845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 16945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 17045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # that the semantics of dynamic libraries on AmigaOS, at least up 17245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # to version 4, is to share data among multiple programs linked 17345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # with the same dynamic library. Since this doesn't match the 17445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # behavior of shared libraries on other platforms, we cannot use 17545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # them. 17645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 17745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 17845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org beos*) 17945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 18145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 18245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 18345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 18445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 18545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cygwin* | mingw* | pw32*) 18645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # hardcode_libdir_flag_spec is actually meaningless, as there is 18745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # no search path for DLLs. 18845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 18945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 19045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 19145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 19245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 19345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 19445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 195a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org interix[3-9]*) 19645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=no 19745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 19845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 199a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org gnu* | linux* | k*bsd*-gnu) 20045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 20245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 20345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 20445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 20545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 20645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org netbsd*) 20745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 20845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org solaris*) 20945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 21045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 21145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 21345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 21445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 21545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 21645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 21745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 21845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case `$LD -v 2>&1` in 21945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 22045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 22145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 22245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 22345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 22445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 22545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 22645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 22745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 22845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 22945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 23045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 23145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sunos4*) 23245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 23345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 23445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 23545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 23645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 23745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 23845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 23945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 24045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 24145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 24245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$ld_shlibs" = no; then 24345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec= 24445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 24545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgelse 24645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case "$host_os" in 24745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix3*) 24845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Note: this linker hardcodes the directories in LIBPATH if there 24945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # are no directories specified by -L. 25045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 25145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$GCC" = yes; then 25245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Neither direct hardcoding nor static linking is supported with a 25345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # broken collect2. 25445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=unsupported 25545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 25645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 25745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix4* | aix5*) 25845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$host_cpu" = ia64; then 25945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # On IA64, the linker does run time linking by default, so we don't 26045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # have to do anything special. 26145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_use_runtimelinking=no 26245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 26345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_use_runtimelinking=no 26445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Test if we are trying to use run time linking or normal 26545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # AIX style linking. If -brtl is somewhere in LDFLAGS, we 26645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # need to do runtime linking. 26745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $host_os in aix4.[23]|aix4.[23].*|aix5*) 26845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org for ld_flag in $LDFLAGS; do 26945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 27045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_use_runtimelinking=yes 27145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org break 27245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 27345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org done 27445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 27545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 27645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 27745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 27845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=':' 27945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$GCC" = yes; then 28045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $host_os in aix4.[012]|aix4.[012].*) 28145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org collect2name=`${CC} -print-prog-name=collect2` 28245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test -f "$collect2name" && \ 28345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org strings "$collect2name" | grep resolve_lib_name >/dev/null 28445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org then 28545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # We have reworked collect2 286a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org : 28745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 28845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # We have old collect2 28945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=unsupported 29045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 29145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 29245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator= 29345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 29445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 29545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 29645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 29745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Begin _LT_AC_SYS_LIBPATH_AIX. 29845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org echo 'int main () { return 0; }' > conftest.c 29945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ${CC} ${LDFLAGS} conftest.c -o conftest 30045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 30145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org}'` 30245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test -z "$aix_libpath"; then 30345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 30445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org}'` 30545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 30645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test -z "$aix_libpath"; then 30745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix_libpath="/usr/lib:/lib" 30845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 30945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org rm -f conftest.c conftest 31045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # End _LT_AC_SYS_LIBPATH_AIX. 31145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$aix_use_runtimelinking" = yes; then 31245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 31345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 31445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$host_cpu" = ia64; then 31545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 31645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 31745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 31845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 31945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 32045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 32145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org amigaos*) 32245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 32345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 32445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # see comment about different semantics on the GNU ld section 32545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 32645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 32745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org bsdi[45]*) 32845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 32945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cygwin* | mingw* | pw32*) 33045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # When not using gcc, we currently assume that we are using 33145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Microsoft Visual C++. 33245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # hardcode_libdir_flag_spec is actually meaningless, as there is 33345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # no search path for DLLs. 33445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec=' ' 33545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org libext=lib 33645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 33745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org darwin* | rhapsody*) 33845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=no 33945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$GCC" = yes ; then 34045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org : 34145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 34245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $cc_basename in 34345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org xlc*) 34445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 34545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 34645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 34745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 34845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 34945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 35045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 35145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org dgux*) 35245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 35345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 35445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org freebsd1*) 35545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 35645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 35745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org freebsd2.2*) 35845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-R$libdir' 35945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 36045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 36145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org freebsd2*) 36245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 36345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 36445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 365a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org freebsd* | dragonfly*) 36645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-R$libdir' 36745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 36845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 36945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hpux9*) 37045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 37145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 37245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 37345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # hardcode_minus_L: Not really in the search PATH, 37445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # but as the default location of the library. 37545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 37645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 37745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hpux10*) 37845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$with_gnu_ld" = no; then 37945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 38045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 38145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 38245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # hardcode_minus_L: Not really in the search PATH, 38345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # but as the default location of the library. 38445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 38545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 38645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 38745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hpux11*) 38845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$with_gnu_ld" = no; then 38945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 39045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 39145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $host_cpu in 39245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hppa*64*|ia64*) 39345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=no 39445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 39545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 39645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 39745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # hardcode_minus_L: Not really in the search PATH, 39845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # but as the default location of the library. 39945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 40045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 40145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 40245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 40345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 40445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org irix5* | irix6* | nonstopux*) 40545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 40645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 40745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 40845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org netbsd*) 40945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-R$libdir' 41045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 41145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 41245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org newsos6) 41345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 41445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 41545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 41645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 41745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org openbsd*) 418a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org if test -f /usr/libexec/ld.so; then 419a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org hardcode_direct=yes 420a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 421a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 422a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org else 423a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org case "$host_os" in 424a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 425a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org hardcode_libdir_flag_spec='-R$libdir' 426a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org ;; 427a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org *) 428a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 429a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org ;; 430a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org esac 431a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org fi 43245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 433a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org ld_shlibs=no 43445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 43545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 43645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org os2*) 43745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 43845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 43945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 44045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org osf3*) 44145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 44245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 44345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 44445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org osf4* | osf5*) 44545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test "$GCC" = yes; then 44645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 44745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org else 44845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org # Both cc and cxx compiler support -rpath directly 44945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-rpath $libdir' 45045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 45145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=: 45245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 45345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org solaris*) 45445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-R$libdir' 45545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 45645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sunos4*) 45745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 45845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes 45945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_minus_L=yes 46045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 46145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4) 46245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $host_vendor in 46345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sni) 46445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=yes # is this really true??? 46545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 46645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org siemens) 46745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=no 46845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 46945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org motorola) 47045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_direct=no #Motorola manual says yes, but my tests say they lie 47145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 47245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 47345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 47445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4.3*) 47545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 47645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4*MP*) 47745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org if test -d /usr/nec; then 47845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=yes 47945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org fi 48045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 481a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 48245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 48345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv5* | sco3.2v5* | sco5v6*) 48445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 48545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_separator=':' 48645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 48745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org uts4*) 48845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hardcode_libdir_flag_spec='-L$libdir' 48945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 49045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 49145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ld_shlibs=no 49245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 49345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 49445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgfi 49545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 49645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Check dynamic linker characteristics 49745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. 498a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# Unlike libtool.m4, here we don't care about _all_ names of the library, but 499a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# only about the one the linker finds when passed -lNAME. This is the last 500a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# element of library_names_spec in libtool.m4, or possibly two of them if the 501a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# linker has special search rules. 502a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.orglibrary_names_spec= # the last element of library_names_spec in libtool.m4 50345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orglibname_spec='lib$name' 50445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgcase "$host_os" in 50545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix3*) 506a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname.a' 50745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 50845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org aix4* | aix5*) 509a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 51045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 51145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org amigaos*) 512a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname.a' 51345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 51445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org beos*) 515a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 51645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 51745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org bsdi[45]*) 518a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 51945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 52045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org cygwin* | mingw* | pw32*) 52145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.dll 522a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname.dll.a $libname.lib' 52345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 52445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org darwin* | rhapsody*) 52545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.dylib 526a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 52745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 52845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org dgux*) 529a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 53045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 53145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org freebsd1*) 53245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 53345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org freebsd* | dragonfly*) 534a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org case "$host_os" in 535a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org freebsd[123]*) 536a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext$versuffix' ;; 537a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org *) 538a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' ;; 539a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org esac 54045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 54145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org gnu*) 542a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 54345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 54445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hpux9* | hpux10* | hpux11*) 54545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $host_cpu in 54645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ia64*) 54745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.so 54845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 54945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org hppa*64*) 55045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.sl 55145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 55245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 55345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.sl 55445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 55545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 556a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 55745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 558a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org interix[3-9]*) 559a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 56045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 56145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org irix5* | irix6* | nonstopux*) 562a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 56345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case "$host_os" in 56445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org irix5* | nonstopux*) 56545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org libsuff= shlibsuff= 56645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 56745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) 56845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org case $LD in 56945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; 57045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; 57145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; 57245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org *) libsuff= shlibsuff= ;; 57345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 57445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 57545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org esac 57645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 57745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org linux*oldld* | linux*aout* | linux*coff*) 57845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 579a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org linux* | k*bsd*-gnu) 580a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 58145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 58245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org knetbsd*-gnu) 583a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 58445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 58545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org netbsd*) 586a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 58745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 58845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org newsos6) 589a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 59045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 59145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org nto-qnx*) 592a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 59345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 59445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org openbsd*) 595a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext$versuffix' 59645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 59745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org os2*) 59845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org libname_spec='$name' 59945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org shrext=.dll 600a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname.a' 60145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 60245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org osf3* | osf4* | osf5*) 603a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 604a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org ;; 605a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org rdos*) 60645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 60745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org solaris*) 608a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 60945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 61045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sunos4*) 611a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext$versuffix' 61245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 61345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4 | sysv4.3*) 614a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 61545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 61645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv4*MP*) 617a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 61845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 61945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 620a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 62145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 62245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org uts4*) 623a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org library_names_spec='$libname$shrext' 62445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org ;; 62545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgesac 62645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 62745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 62845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgescaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` 62945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgshlibext=`echo "$shrext" | sed -e 's,^\.,,'` 630a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.orgescaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 631a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.orgescaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 63245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgescaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` 63345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 63445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgLC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF 63545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 63645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# How to pass a linker flag through the compiler. 63745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgwl="$escaped_wl" 63845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 63945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Static library suffix (normally "a"). 64045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orglibext="$libext" 64145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 64245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Shared library suffix (normally "so"). 64345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgshlibext="$shlibext" 64445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 645a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# Format of library name prefix. 646a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.orglibname_spec="$escaped_libname_spec" 647a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org 648a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org# Library names that the linker finds when passed -lNAME. 649a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.orglibrary_names_spec="$escaped_library_names_spec" 650a1b5233e6d340f45f4846131fec9d0b92e203ce4hbono@chromium.org 65145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Flag to hardcode \$libdir into a binary during linking. 65245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# This must work even if \$libdir does not exist. 65345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" 65445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 65545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Whether we need a single -rpath flag with a separated argument. 65645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_libdir_separator="$hardcode_libdir_separator" 65745afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 65845afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 65945afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# resulting binary. 66045afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_direct="$hardcode_direct" 66145afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 66245afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 66345afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org# resulting binary. 66445afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orghardcode_minus_L="$hardcode_minus_L" 66545afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.org 66645afe016bed87b9c6946184709058b39ede3f77ajwong@chromium.orgEOF 667