csomh / source-git / rpm

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