kusano 7d535a
#! /bin/sh
kusano 7d535a
# Output a system dependent set of variables, describing how to set the
kusano 7d535a
# run time search path of shared libraries in an executable.
kusano 7d535a
#
kusano 7d535a
#   Copyright 1996-2008 Free Software Foundation, Inc.
kusano 7d535a
#   Taken from GNU libtool, 2001
kusano 7d535a
#   Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996</gord@gnu.ai.mit.edu>
kusano 7d535a
#
kusano 7d535a
#   This file is free software; the Free Software Foundation gives
kusano 7d535a
#   unlimited permission to copy and/or distribute it, with or without
kusano 7d535a
#   modifications, as long as this notice is preserved.
kusano 7d535a
#
kusano 7d535a
# The first argument passed to this file is the canonical host specification,
kusano 7d535a
#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
kusano 7d535a
# or
kusano 7d535a
#    CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
kusano 7d535a
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
kusano 7d535a
# should be set by the caller.
kusano 7d535a
#
kusano 7d535a
# The set of defined variables is at the end of this script.
kusano 7d535a
kusano 7d535a
# Known limitations:
kusano 7d535a
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
kusano 7d535a
#   than 256 bytes, otherwise the compiler driver will dump core. The only
kusano 7d535a
#   known workaround is to choose shorter directory names for the build
kusano 7d535a
#   directory and/or the installation directory.
kusano 7d535a
kusano 7d535a
# All known linkers require a `.a' archive for static linking (except MSVC,
kusano 7d535a
# which needs '.lib').
kusano 7d535a
libext=a
kusano 7d535a
shrext=.so
kusano 7d535a
kusano 7d535a
host="$1"
kusano 7d535a
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
kusano 7d535a
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
kusano 7d535a
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
kusano 7d535a
kusano 7d535a
# Code taken from libtool.m4's _LT_CC_BASENAME.
kusano 7d535a
kusano 7d535a
for cc_temp in $CC""; do
kusano 7d535a
  case $cc_temp in
kusano 7d535a
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
kusano 7d535a
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
kusano 7d535a
    \-*) ;;
kusano 7d535a
    *) break;;
kusano 7d535a
  esac
kusano 7d535a
done
kusano 7d535a
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
kusano 7d535a
kusano 7d535a
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
kusano 7d535a
kusano 7d535a
wl=
kusano 7d535a
if test "$GCC" = yes; then
kusano 7d535a
  wl='-Wl,'
kusano 7d535a
else
kusano 7d535a
  case "$host_os" in
kusano 7d535a
    aix*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    darwin*)
kusano 7d535a
      case $cc_basename in
kusano 7d535a
        xlc*)
kusano 7d535a
          wl='-Wl,'
kusano 7d535a
          ;;
kusano 7d535a
      esac
kusano 7d535a
      ;;
kusano 7d535a
    mingw* | cygwin* | pw32* | os2*)
kusano 7d535a
      ;;
kusano 7d535a
    hpux9* | hpux10* | hpux11*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    irix5* | irix6* | nonstopux*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    newsos6)
kusano 7d535a
      ;;
kusano 7d535a
    linux* | k*bsd*-gnu)
kusano 7d535a
      case $cc_basename in
kusano 7d535a
        icc* | ecc*)
kusano 7d535a
          wl='-Wl,'
kusano 7d535a
          ;;
kusano 7d535a
        pgcc | pgf77 | pgf90)
kusano 7d535a
          wl='-Wl,'
kusano 7d535a
          ;;
kusano 7d535a
        ccc*)
kusano 7d535a
          wl='-Wl,'
kusano 7d535a
          ;;
kusano 7d535a
        como)
kusano 7d535a
          wl='-lopt='
kusano 7d535a
          ;;
kusano 7d535a
        *)
kusano 7d535a
          case `$CC -V 2>&1 | sed 5q` in
kusano 7d535a
            *Sun\ C*)
kusano 7d535a
              wl='-Wl,'
kusano 7d535a
              ;;
kusano 7d535a
          esac
kusano 7d535a
          ;;
kusano 7d535a
      esac
kusano 7d535a
      ;;
kusano 7d535a
    osf3* | osf4* | osf5*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    rdos*)
kusano 7d535a
      ;;
kusano 7d535a
    solaris*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    sunos4*)
kusano 7d535a
      wl='-Qoption ld '
kusano 7d535a
      ;;
kusano 7d535a
    sysv4 | sysv4.2uw2* | sysv4.3*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    sysv4*MP*)
kusano 7d535a
      ;;
kusano 7d535a
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    unicos*)
kusano 7d535a
      wl='-Wl,'
kusano 7d535a
      ;;
kusano 7d535a
    uts4*)
kusano 7d535a
      ;;
kusano 7d535a
  esac
kusano 7d535a
fi
kusano 7d535a
kusano 7d535a
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
kusano 7d535a
kusano 7d535a
hardcode_libdir_flag_spec=
kusano 7d535a
hardcode_libdir_separator=
kusano 7d535a
hardcode_direct=no
kusano 7d535a
hardcode_minus_L=no
kusano 7d535a
kusano 7d535a
case "$host_os" in
kusano 7d535a
  cygwin* | mingw* | pw32*)
kusano 7d535a
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
kusano 7d535a
    # When not using gcc, we currently assume that we are using
kusano 7d535a
    # Microsoft Visual C++.
kusano 7d535a
    if test "$GCC" != yes; then
kusano 7d535a
      with_gnu_ld=no
kusano 7d535a
    fi
kusano 7d535a
    ;;
kusano 7d535a
  interix*)
kusano 7d535a
    # we just hope/assume this is gcc and not c89 (= MSVC++)
kusano 7d535a
    with_gnu_ld=yes
kusano 7d535a
    ;;
kusano 7d535a
  openbsd*)
kusano 7d535a
    with_gnu_ld=no
kusano 7d535a
    ;;
kusano 7d535a
esac
kusano 7d535a
kusano 7d535a
ld_shlibs=yes
kusano 7d535a
if test "$with_gnu_ld" = yes; then
kusano 7d535a
  # Set some defaults for GNU ld with shared library support. These
kusano 7d535a
  # are reset later if shared libraries are not supported. Putting them
kusano 7d535a
  # here allows them to be overridden if necessary.
kusano 7d535a
  # Unlike libtool, we use -rpath here, not --rpath, since the documented
kusano 7d535a
  # option of GNU ld is called -rpath, not --rpath.
kusano 7d535a
  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
kusano 7d535a
  case "$host_os" in
kusano 7d535a
    aix[3-9]*)
kusano 7d535a
      # On AIX/PPC, the GNU linker is very broken
kusano 7d535a
      if test "$host_cpu" != ia64; then
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    amigaos*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports</kc5tja@dolphin.openprojects.net>
kusano 7d535a
      # that the semantics of dynamic libraries on AmigaOS, at least up
kusano 7d535a
      # to version 4, is to share data among multiple programs linked
kusano 7d535a
      # with the same dynamic library.  Since this doesn't match the
kusano 7d535a
      # behavior of shared libraries on other platforms, we cannot use
kusano 7d535a
      # them.
kusano 7d535a
      ld_shlibs=no
kusano 7d535a
      ;;
kusano 7d535a
    beos*)
kusano 7d535a
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    cygwin* | mingw* | pw32*)
kusano 7d535a
      # hardcode_libdir_flag_spec is actually meaningless, as there is
kusano 7d535a
      # no search path for DLLs.
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    interix[3-9]*)
kusano 7d535a
      hardcode_direct=no
kusano 7d535a
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
kusano 7d535a
      ;;
kusano 7d535a
    gnu* | linux* | k*bsd*-gnu)
kusano 7d535a
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    netbsd*)
kusano 7d535a
      ;;
kusano 7d535a
    solaris*)
kusano 7d535a
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
kusano 7d535a
      case `$LD -v 2>&1` in
kusano 7d535a
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
kusano 7d535a
          ld_shlibs=no
kusano 7d535a
          ;;
kusano 7d535a
        *)
kusano 7d535a
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
kusano 7d535a
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
kusano 7d535a
          else
kusano 7d535a
            ld_shlibs=no
kusano 7d535a
          fi
kusano 7d535a
          ;;
kusano 7d535a
      esac
kusano 7d535a
      ;;
kusano 7d535a
    sunos4*)
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      ;;
kusano 7d535a
    *)
kusano 7d535a
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
  esac
kusano 7d535a
  if test "$ld_shlibs" = no; then
kusano 7d535a
    hardcode_libdir_flag_spec=
kusano 7d535a
  fi
kusano 7d535a
else
kusano 7d535a
  case "$host_os" in
kusano 7d535a
    aix3*)
kusano 7d535a
      # Note: this linker hardcodes the directories in LIBPATH if there
kusano 7d535a
      # are no directories specified by -L.
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      if test "$GCC" = yes; then
kusano 7d535a
        # Neither direct hardcoding nor static linking is supported with a
kusano 7d535a
        # broken collect2.
kusano 7d535a
        hardcode_direct=unsupported
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    aix[4-9]*)
kusano 7d535a
      if test "$host_cpu" = ia64; then
kusano 7d535a
        # On IA64, the linker does run time linking by default, so we don't
kusano 7d535a
        # have to do anything special.
kusano 7d535a
        aix_use_runtimelinking=no
kusano 7d535a
      else
kusano 7d535a
        aix_use_runtimelinking=no
kusano 7d535a
        # Test if we are trying to use run time linking or normal
kusano 7d535a
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
kusano 7d535a
        # need to do runtime linking.
kusano 7d535a
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
kusano 7d535a
          for ld_flag in $LDFLAGS; do
kusano 7d535a
            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
kusano 7d535a
              aix_use_runtimelinking=yes
kusano 7d535a
              break
kusano 7d535a
            fi
kusano 7d535a
          done
kusano 7d535a
          ;;
kusano 7d535a
        esac
kusano 7d535a
      fi
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      hardcode_libdir_separator=':'
kusano 7d535a
      if test "$GCC" = yes; then
kusano 7d535a
        case $host_os in aix4.[012]|aix4.[012].*)
kusano 7d535a
          collect2name=`${CC} -print-prog-name=collect2`
kusano 7d535a
          if test -f "$collect2name" && \
kusano 7d535a
            strings "$collect2name" | grep resolve_lib_name >/dev/null
kusano 7d535a
          then
kusano 7d535a
            # We have reworked collect2
kusano 7d535a
            :
kusano 7d535a
          else
kusano 7d535a
            # We have old collect2
kusano 7d535a
            hardcode_direct=unsupported
kusano 7d535a
            hardcode_minus_L=yes
kusano 7d535a
            hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
            hardcode_libdir_separator=
kusano 7d535a
          fi
kusano 7d535a
          ;;
kusano 7d535a
        esac
kusano 7d535a
      fi
kusano 7d535a
      # Begin _LT_AC_SYS_LIBPATH_AIX.
kusano 7d535a
      echo 'int main () { return 0; }' > conftest.c
kusano 7d535a
      ${CC} ${LDFLAGS} conftest.c -o conftest
kusano 7d535a
      aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
kusano 7d535a
}'`
kusano 7d535a
      if test -z "$aix_libpath"; then
kusano 7d535a
        aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
kusano 7d535a
}'`
kusano 7d535a
      fi
kusano 7d535a
      if test -z "$aix_libpath"; then
kusano 7d535a
        aix_libpath="/usr/lib:/lib"
kusano 7d535a
      fi
kusano 7d535a
      rm -f conftest.c conftest
kusano 7d535a
      # End _LT_AC_SYS_LIBPATH_AIX.
kusano 7d535a
      if test "$aix_use_runtimelinking" = yes; then
kusano 7d535a
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
kusano 7d535a
      else
kusano 7d535a
        if test "$host_cpu" = ia64; then
kusano 7d535a
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
kusano 7d535a
        else
kusano 7d535a
          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
kusano 7d535a
        fi
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    amigaos*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      # see comment about different semantics on the GNU ld section
kusano 7d535a
      ld_shlibs=no
kusano 7d535a
      ;;
kusano 7d535a
    bsdi[45]*)
kusano 7d535a
      ;;
kusano 7d535a
    cygwin* | mingw* | pw32*)
kusano 7d535a
      # When not using gcc, we currently assume that we are using
kusano 7d535a
      # Microsoft Visual C++.
kusano 7d535a
      # hardcode_libdir_flag_spec is actually meaningless, as there is
kusano 7d535a
      # no search path for DLLs.
kusano 7d535a
      hardcode_libdir_flag_spec=' '
kusano 7d535a
      libext=lib
kusano 7d535a
      ;;
kusano 7d535a
    darwin* | rhapsody*)
kusano 7d535a
      hardcode_direct=no
kusano 7d535a
      if test "$GCC" = yes ; then
kusano 7d535a
        :
kusano 7d535a
      else
kusano 7d535a
        case $cc_basename in
kusano 7d535a
          xlc*)
kusano 7d535a
            ;;
kusano 7d535a
          *)
kusano 7d535a
            ld_shlibs=no
kusano 7d535a
            ;;
kusano 7d535a
        esac
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    dgux*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      ;;
kusano 7d535a
    freebsd1*)
kusano 7d535a
      ld_shlibs=no
kusano 7d535a
      ;;
kusano 7d535a
    freebsd2.2*)
kusano 7d535a
      hardcode_libdir_flag_spec='-R$libdir'
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      ;;
kusano 7d535a
    freebsd2*)
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      ;;
kusano 7d535a
    freebsd* | dragonfly*)
kusano 7d535a
      hardcode_libdir_flag_spec='-R$libdir'
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      ;;
kusano 7d535a
    hpux9*)
kusano 7d535a
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
kusano 7d535a
      hardcode_libdir_separator=:
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      # hardcode_minus_L: Not really in the search PATH,
kusano 7d535a
      # but as the default location of the library.
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      ;;
kusano 7d535a
    hpux10*)
kusano 7d535a
      if test "$with_gnu_ld" = no; then
kusano 7d535a
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
kusano 7d535a
        hardcode_libdir_separator=:
kusano 7d535a
        hardcode_direct=yes
kusano 7d535a
        # hardcode_minus_L: Not really in the search PATH,
kusano 7d535a
        # but as the default location of the library.
kusano 7d535a
        hardcode_minus_L=yes
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    hpux11*)
kusano 7d535a
      if test "$with_gnu_ld" = no; then
kusano 7d535a
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
kusano 7d535a
        hardcode_libdir_separator=:
kusano 7d535a
        case $host_cpu in
kusano 7d535a
          hppa*64*|ia64*)
kusano 7d535a
            hardcode_direct=no
kusano 7d535a
            ;;
kusano 7d535a
          *)
kusano 7d535a
            hardcode_direct=yes
kusano 7d535a
            # hardcode_minus_L: Not really in the search PATH,
kusano 7d535a
            # but as the default location of the library.
kusano 7d535a
            hardcode_minus_L=yes
kusano 7d535a
            ;;
kusano 7d535a
        esac
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    irix5* | irix6* | nonstopux*)
kusano 7d535a
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
kusano 7d535a
      hardcode_libdir_separator=:
kusano 7d535a
      ;;
kusano 7d535a
    netbsd*)
kusano 7d535a
      hardcode_libdir_flag_spec='-R$libdir'
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      ;;
kusano 7d535a
    newsos6)
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
kusano 7d535a
      hardcode_libdir_separator=:
kusano 7d535a
      ;;
kusano 7d535a
    openbsd*)
kusano 7d535a
      if test -f /usr/libexec/ld.so; then
kusano 7d535a
        hardcode_direct=yes
kusano 7d535a
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
kusano 7d535a
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
kusano 7d535a
        else
kusano 7d535a
          case "$host_os" in
kusano 7d535a
            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
kusano 7d535a
              hardcode_libdir_flag_spec='-R$libdir'
kusano 7d535a
              ;;
kusano 7d535a
            *)
kusano 7d535a
              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
kusano 7d535a
              ;;
kusano 7d535a
          esac
kusano 7d535a
        fi
kusano 7d535a
      else
kusano 7d535a
        ld_shlibs=no
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    os2*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      ;;
kusano 7d535a
    osf3*)
kusano 7d535a
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
kusano 7d535a
      hardcode_libdir_separator=:
kusano 7d535a
      ;;
kusano 7d535a
    osf4* | osf5*)
kusano 7d535a
      if test "$GCC" = yes; then
kusano 7d535a
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
kusano 7d535a
      else
kusano 7d535a
        # Both cc and cxx compiler support -rpath directly
kusano 7d535a
        hardcode_libdir_flag_spec='-rpath $libdir'
kusano 7d535a
      fi
kusano 7d535a
      hardcode_libdir_separator=:
kusano 7d535a
      ;;
kusano 7d535a
    solaris*)
kusano 7d535a
      hardcode_libdir_flag_spec='-R$libdir'
kusano 7d535a
      ;;
kusano 7d535a
    sunos4*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      hardcode_direct=yes
kusano 7d535a
      hardcode_minus_L=yes
kusano 7d535a
      ;;
kusano 7d535a
    sysv4)
kusano 7d535a
      case $host_vendor in
kusano 7d535a
        sni)
kusano 7d535a
          hardcode_direct=yes # is this really true???
kusano 7d535a
          ;;
kusano 7d535a
        siemens)
kusano 7d535a
          hardcode_direct=no
kusano 7d535a
          ;;
kusano 7d535a
        motorola)
kusano 7d535a
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
kusano 7d535a
          ;;
kusano 7d535a
      esac
kusano 7d535a
      ;;
kusano 7d535a
    sysv4.3*)
kusano 7d535a
      ;;
kusano 7d535a
    sysv4*MP*)
kusano 7d535a
      if test -d /usr/nec; then
kusano 7d535a
        ld_shlibs=yes
kusano 7d535a
      fi
kusano 7d535a
      ;;
kusano 7d535a
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
kusano 7d535a
      ;;
kusano 7d535a
    sysv5* | sco3.2v5* | sco5v6*)
kusano 7d535a
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
kusano 7d535a
      hardcode_libdir_separator=':'
kusano 7d535a
      ;;
kusano 7d535a
    uts4*)
kusano 7d535a
      hardcode_libdir_flag_spec='-L$libdir'
kusano 7d535a
      ;;
kusano 7d535a
    *)
kusano 7d535a
      ld_shlibs=no
kusano 7d535a
      ;;
kusano 7d535a
  esac
kusano 7d535a
fi
kusano 7d535a
kusano 7d535a
# Check dynamic linker characteristics
kusano 7d535a
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
kusano 7d535a
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
kusano 7d535a
# only about the one the linker finds when passed -lNAME. This is the last
kusano 7d535a
# element of library_names_spec in libtool.m4, or possibly two of them if the
kusano 7d535a
# linker has special search rules.
kusano 7d535a
library_names_spec=      # the last element of library_names_spec in libtool.m4
kusano 7d535a
libname_spec='lib$name'
kusano 7d535a
case "$host_os" in
kusano 7d535a
  aix3*)
kusano 7d535a
    library_names_spec='$libname.a'
kusano 7d535a
    ;;
kusano 7d535a
  aix[4-9]*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  amigaos*)
kusano 7d535a
    library_names_spec='$libname.a'
kusano 7d535a
    ;;
kusano 7d535a
  beos*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  bsdi[45]*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  cygwin* | mingw* | pw32*)
kusano 7d535a
    shrext=.dll
kusano 7d535a
    library_names_spec='$libname.dll.a $libname.lib'
kusano 7d535a
    ;;
kusano 7d535a
  darwin* | rhapsody*)
kusano 7d535a
    shrext=.dylib
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  dgux*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  freebsd1*)
kusano 7d535a
    ;;
kusano 7d535a
  freebsd* | dragonfly*)
kusano 7d535a
    case "$host_os" in
kusano 7d535a
      freebsd[123]*)
kusano 7d535a
        library_names_spec='$libname$shrext$versuffix' ;;
kusano 7d535a
      *)
kusano 7d535a
        library_names_spec='$libname$shrext' ;;
kusano 7d535a
    esac
kusano 7d535a
    ;;
kusano 7d535a
  gnu*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  hpux9* | hpux10* | hpux11*)
kusano 7d535a
    case $host_cpu in
kusano 7d535a
      ia64*)
kusano 7d535a
        shrext=.so
kusano 7d535a
        ;;
kusano 7d535a
      hppa*64*)
kusano 7d535a
        shrext=.sl
kusano 7d535a
        ;;
kusano 7d535a
      *)
kusano 7d535a
        shrext=.sl
kusano 7d535a
        ;;
kusano 7d535a
    esac
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  interix[3-9]*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  irix5* | irix6* | nonstopux*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    case "$host_os" in
kusano 7d535a
      irix5* | nonstopux*)
kusano 7d535a
        libsuff= shlibsuff=
kusano 7d535a
        ;;
kusano 7d535a
      *)
kusano 7d535a
        case $LD in
kusano 7d535a
          *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
kusano 7d535a
          *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
kusano 7d535a
          *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
kusano 7d535a
          *) libsuff= shlibsuff= ;;
kusano 7d535a
        esac
kusano 7d535a
        ;;
kusano 7d535a
    esac
kusano 7d535a
    ;;
kusano 7d535a
  linux*oldld* | linux*aout* | linux*coff*)
kusano 7d535a
    ;;
kusano 7d535a
  linux* | k*bsd*-gnu)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  knetbsd*-gnu)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  netbsd*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  newsos6)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  nto-qnx*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  openbsd*)
kusano 7d535a
    library_names_spec='$libname$shrext$versuffix'
kusano 7d535a
    ;;
kusano 7d535a
  os2*)
kusano 7d535a
    libname_spec='$name'
kusano 7d535a
    shrext=.dll
kusano 7d535a
    library_names_spec='$libname.a'
kusano 7d535a
    ;;
kusano 7d535a
  osf3* | osf4* | osf5*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  rdos*)
kusano 7d535a
    ;;
kusano 7d535a
  solaris*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  sunos4*)
kusano 7d535a
    library_names_spec='$libname$shrext$versuffix'
kusano 7d535a
    ;;
kusano 7d535a
  sysv4 | sysv4.3*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  sysv4*MP*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
  uts4*)
kusano 7d535a
    library_names_spec='$libname$shrext'
kusano 7d535a
    ;;
kusano 7d535a
esac
kusano 7d535a
kusano 7d535a
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
kusano 7d535a
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
kusano 7d535a
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
kusano 7d535a
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
kusano 7d535a
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
kusano 7d535a
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
kusano 7d535a
kusano 7d535a
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <
kusano 7d535a
kusano 7d535a
# How to pass a linker flag through the compiler.
kusano 7d535a
wl="$escaped_wl"
kusano 7d535a
kusano 7d535a
# Static library suffix (normally "a").
kusano 7d535a
libext="$libext"
kusano 7d535a
kusano 7d535a
# Shared library suffix (normally "so").
kusano 7d535a
shlibext="$shlibext"
kusano 7d535a
kusano 7d535a
# Format of library name prefix.
kusano 7d535a
libname_spec="$escaped_libname_spec"
kusano 7d535a
kusano 7d535a
# Library names that the linker finds when passed -lNAME.
kusano 7d535a
library_names_spec="$escaped_library_names_spec"
kusano 7d535a
kusano 7d535a
# Flag to hardcode \$libdir into a binary during linking.
kusano 7d535a
# This must work even if \$libdir does not exist.
kusano 7d535a
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
kusano 7d535a
kusano 7d535a
# Whether we need a single -rpath flag with a separated argument.
kusano 7d535a
hardcode_libdir_separator="$hardcode_libdir_separator"
kusano 7d535a
kusano 7d535a
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
kusano 7d535a
# resulting binary.
kusano 7d535a
hardcode_direct="$hardcode_direct"
kusano 7d535a
kusano 7d535a
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
kusano 7d535a
# resulting binary.
kusano 7d535a
hardcode_minus_L="$hardcode_minus_L"
kusano 7d535a
kusano 7d535a
EOF