Blame build-aux/config.rpath

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