#! /bin/sh
|
#! /bin/sh
|
# Output a system dependent set of variables, describing how to set the
|
# Output a system dependent set of variables, describing how to set the
|
# run time search path of shared libraries in an executable.
|
# run time search path of shared libraries in an executable.
|
#
|
#
|
# Copyright 1996-2003 Free Software Foundation, Inc.
|
# Copyright 1996-2003 Free Software Foundation, Inc.
|
# Taken from GNU libtool, 2001
|
# Taken from GNU libtool, 2001
|
# Originally by Gordon Matzigkeit , 1996
|
# Originally by Gordon Matzigkeit , 1996
|
#
|
#
|
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
# (at your option) any later version.
|
# (at your option) any later version.
|
#
|
#
|
# This program is distributed in the hope that it will be useful, but
|
# This program is distributed in the hope that it will be useful, but
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
# General Public License for more details.
|
# General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
#
|
#
|
# As a special exception to the GNU General Public License, if you
|
# As a special exception to the GNU General Public License, if you
|
# distribute this file as part of a program that contains a
|
# distribute this file as part of a program that contains a
|
# configuration script generated by Autoconf, you may include it under
|
# configuration script generated by Autoconf, you may include it under
|
# the same distribution terms that you use for the rest of that program.
|
# the same distribution terms that you use for the rest of that program.
|
#
|
#
|
# The first argument passed to this file is the canonical host specification,
|
# The first argument passed to this file is the canonical host specification,
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
|
# or
|
# or
|
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
|
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
|
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
|
# should be set by the caller.
|
# should be set by the caller.
|
#
|
#
|
# The set of defined variables is at the end of this script.
|
# The set of defined variables is at the end of this script.
|
|
|
# Known limitations:
|
# Known limitations:
|
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
|
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
|
# than 256 bytes, otherwise the compiler driver will dump core. The only
|
# than 256 bytes, otherwise the compiler driver will dump core. The only
|
# known workaround is to choose shorter directory names for the build
|
# known workaround is to choose shorter directory names for the build
|
# directory and/or the installation directory.
|
# directory and/or the installation directory.
|
|
|
# All known linkers require a `.a' archive for static linking (except M$VC,
|
# All known linkers require a `.a' archive for static linking (except M$VC,
|
# which needs '.lib').
|
# which needs '.lib').
|
libext=a
|
libext=a
|
shrext=.so
|
shrext=.so
|
|
|
host="$1"
|
host="$1"
|
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
|
|
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
|
# Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC.
|
|
|
wl=
|
wl=
|
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
wl='-Wl,'
|
wl='-Wl,'
|
else
|
else
|
case "$host_os" in
|
case "$host_os" in
|
aix*)
|
aix*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
mingw* | pw32* | os2*)
|
mingw* | pw32* | os2*)
|
;;
|
;;
|
hpux9* | hpux10* | hpux11*)
|
hpux9* | hpux10* | hpux11*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
irix5* | irix6* | nonstopux*)
|
irix5* | irix6* | nonstopux*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
newsos6)
|
newsos6)
|
;;
|
;;
|
linux*)
|
linux*)
|
case $CC in
|
case $CC in
|
icc|ecc)
|
icc|ecc)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
ccc)
|
ccc)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
esac
|
esac
|
;;
|
;;
|
osf3* | osf4* | osf5*)
|
osf3* | osf4* | osf5*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
sco3.2v5*)
|
sco3.2v5*)
|
;;
|
;;
|
solaris*)
|
solaris*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
sunos4*)
|
sunos4*)
|
wl='-Qoption ld '
|
wl='-Qoption ld '
|
;;
|
;;
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
wl='-Wl,'
|
wl='-Wl,'
|
;;
|
;;
|
sysv4*MP*)
|
sysv4*MP*)
|
;;
|
;;
|
uts4*)
|
uts4*)
|
;;
|
;;
|
esac
|
esac
|
fi
|
fi
|
|
|
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
|
# Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS.
|
|
|
hardcode_libdir_flag_spec=
|
hardcode_libdir_flag_spec=
|
hardcode_libdir_separator=
|
hardcode_libdir_separator=
|
hardcode_direct=no
|
hardcode_direct=no
|
hardcode_minus_L=no
|
hardcode_minus_L=no
|
|
|
case "$host_os" in
|
case "$host_os" in
|
cygwin* | mingw* | pw32*)
|
cygwin* | mingw* | pw32*)
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time
|
# When not using gcc, we currently assume that we are using
|
# When not using gcc, we currently assume that we are using
|
# Microsoft Visual C++.
|
# Microsoft Visual C++.
|
if test "$GCC" != yes; then
|
if test "$GCC" != yes; then
|
with_gnu_ld=no
|
with_gnu_ld=no
|
fi
|
fi
|
;;
|
;;
|
openbsd*)
|
openbsd*)
|
with_gnu_ld=no
|
with_gnu_ld=no
|
;;
|
;;
|
esac
|
esac
|
|
|
ld_shlibs=yes
|
ld_shlibs=yes
|
if test "$with_gnu_ld" = yes; then
|
if test "$with_gnu_ld" = yes; then
|
case "$host_os" in
|
case "$host_os" in
|
aix[3-9]*)
|
aix[3-9]*)
|
# On AIX/PPC, the GNU linker is very broken
|
# On AIX/PPC, the GNU linker is very broken
|
if test "$host_cpu" != ia64; then
|
if test "$host_cpu" != ia64; then
|
ld_shlibs=no
|
ld_shlibs=no
|
fi
|
fi
|
;;
|
;;
|
amigaos*)
|
amigaos*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
# Samuel A. Falvo II reports
|
# Samuel A. Falvo II reports
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
# that the semantics of dynamic libraries on AmigaOS, at least up
|
# to version 4, is to share data among multiple programs linked
|
# to version 4, is to share data among multiple programs linked
|
# with the same dynamic library. Since this doesn't match the
|
# with the same dynamic library. Since this doesn't match the
|
# behavior of shared libraries on other platforms, we can use
|
# behavior of shared libraries on other platforms, we can use
|
# them.
|
# them.
|
ld_shlibs=no
|
ld_shlibs=no
|
;;
|
;;
|
beos*)
|
beos*)
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
:
|
:
|
else
|
else
|
ld_shlibs=no
|
ld_shlibs=no
|
fi
|
fi
|
;;
|
;;
|
cygwin* | mingw* | pw32*)
|
cygwin* | mingw* | pw32*)
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
# no search path for DLLs.
|
# no search path for DLLs.
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
:
|
:
|
else
|
else
|
ld_shlibs=no
|
ld_shlibs=no
|
fi
|
fi
|
;;
|
;;
|
netbsd*)
|
netbsd*)
|
;;
|
;;
|
solaris* | sysv5*)
|
solaris* | sysv5*)
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
|
ld_shlibs=no
|
ld_shlibs=no
|
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
:
|
:
|
else
|
else
|
ld_shlibs=no
|
ld_shlibs=no
|
fi
|
fi
|
;;
|
;;
|
sunos4*)
|
sunos4*)
|
hardcode_direct=yes
|
hardcode_direct=yes
|
;;
|
;;
|
*)
|
*)
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
|
:
|
:
|
else
|
else
|
ld_shlibs=no
|
ld_shlibs=no
|
fi
|
fi
|
;;
|
;;
|
esac
|
esac
|
if test "$ld_shlibs" = yes; then
|
if test "$ld_shlibs" = yes; then
|
# Unlike libtool, we use -rpath here, not --rpath, since the documented
|
# Unlike libtool, we use -rpath here, not --rpath, since the documented
|
# option of GNU ld is called -rpath, not --rpath.
|
# option of GNU ld is called -rpath, not --rpath.
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
fi
|
fi
|
else
|
else
|
case "$host_os" in
|
case "$host_os" in
|
aix3*)
|
aix3*)
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
# Note: this linker hardcodes the directories in LIBPATH if there
|
# are no directories specified by -L.
|
# are no directories specified by -L.
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
# Neither direct hardcoding nor static linking is supported with a
|
# Neither direct hardcoding nor static linking is supported with a
|
# broken collect2.
|
# broken collect2.
|
hardcode_direct=unsupported
|
hardcode_direct=unsupported
|
fi
|
fi
|
;;
|
;;
|
aix[4-9]*)
|
aix[4-9]*)
|
if test "$host_cpu" = ia64; then
|
if test "$host_cpu" = ia64; then
|
# On IA64, the linker does run time linking by default, so we don't
|
# On IA64, the linker does run time linking by default, so we don't
|
# have to do anything special.
|
# have to do anything special.
|
aix_use_runtimelinking=no
|
aix_use_runtimelinking=no
|
else
|
else
|
aix_use_runtimelinking=no
|
aix_use_runtimelinking=no
|
# Test if we are trying to use run time linking or normal
|
# Test if we are trying to use run time linking or normal
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
# need to do runtime linking.
|
# need to do runtime linking.
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
for ld_flag in $LDFLAGS; do
|
for ld_flag in $LDFLAGS; do
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
|
aix_use_runtimelinking=yes
|
aix_use_runtimelinking=yes
|
break
|
break
|
fi
|
fi
|
done
|
done
|
esac
|
esac
|
fi
|
fi
|
hardcode_direct=yes
|
hardcode_direct=yes
|
hardcode_libdir_separator=':'
|
hardcode_libdir_separator=':'
|
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
case $host_os in aix4.[012]|aix4.[012].*)
|
case $host_os in aix4.[012]|aix4.[012].*)
|
collect2name=`${CC} -print-prog-name=collect2`
|
collect2name=`${CC} -print-prog-name=collect2`
|
if test -f "$collect2name" && \
|
if test -f "$collect2name" && \
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
strings "$collect2name" | grep resolve_lib_name >/dev/null
|
then
|
then
|
# We have reworked collect2
|
# We have reworked collect2
|
hardcode_direct=yes
|
hardcode_direct=yes
|
else
|
else
|
# We have old collect2
|
# We have old collect2
|
hardcode_direct=unsupported
|
hardcode_direct=unsupported
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_separator=
|
hardcode_libdir_separator=
|
fi
|
fi
|
esac
|
esac
|
fi
|
fi
|
# Begin _LT_AC_SYS_LIBPATH_AIX.
|
# Begin _LT_AC_SYS_LIBPATH_AIX.
|
echo 'int main () { return 0; }' > conftest.c
|
echo 'int main () { return 0; }' > conftest.c
|
${CC} ${LDFLAGS} conftest.c -o conftest
|
${CC} ${LDFLAGS} conftest.c -o conftest
|
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
}'`
|
}'`
|
if test -z "$aix_libpath"; then
|
if test -z "$aix_libpath"; then
|
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
|
}'`
|
}'`
|
fi
|
fi
|
if test -z "$aix_libpath"; then
|
if test -z "$aix_libpath"; then
|
aix_libpath="/usr/lib:/lib"
|
aix_libpath="/usr/lib:/lib"
|
fi
|
fi
|
rm -f conftest.c conftest
|
rm -f conftest.c conftest
|
# End _LT_AC_SYS_LIBPATH_AIX.
|
# End _LT_AC_SYS_LIBPATH_AIX.
|
if test "$aix_use_runtimelinking" = yes; then
|
if test "$aix_use_runtimelinking" = yes; then
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
else
|
else
|
if test "$host_cpu" = ia64; then
|
if test "$host_cpu" = ia64; then
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
else
|
else
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
fi
|
fi
|
fi
|
fi
|
;;
|
;;
|
amigaos*)
|
amigaos*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
# see comment about different semantics on the GNU ld section
|
# see comment about different semantics on the GNU ld section
|
ld_shlibs=no
|
ld_shlibs=no
|
;;
|
;;
|
bsdi4*)
|
bsdi4*)
|
;;
|
;;
|
cygwin* | mingw* | pw32*)
|
cygwin* | mingw* | pw32*)
|
# When not using gcc, we currently assume that we are using
|
# When not using gcc, we currently assume that we are using
|
# Microsoft Visual C++.
|
# Microsoft Visual C++.
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
# hardcode_libdir_flag_spec is actually meaningless, as there is
|
# no search path for DLLs.
|
# no search path for DLLs.
|
hardcode_libdir_flag_spec=' '
|
hardcode_libdir_flag_spec=' '
|
libext=lib
|
libext=lib
|
;;
|
;;
|
darwin* | rhapsody*)
|
darwin* | rhapsody*)
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
|
hardcode_direct=no
|
hardcode_direct=no
|
fi
|
fi
|
;;
|
;;
|
dgux*)
|
dgux*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
;;
|
;;
|
freebsd1*)
|
freebsd1*)
|
ld_shlibs=no
|
ld_shlibs=no
|
;;
|
;;
|
freebsd2.2*)
|
freebsd2.2*)
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_direct=yes
|
hardcode_direct=yes
|
;;
|
;;
|
freebsd2*)
|
freebsd2*)
|
hardcode_direct=yes
|
hardcode_direct=yes
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
freebsd*)
|
freebsd*)
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_direct=yes
|
hardcode_direct=yes
|
;;
|
;;
|
hpux9*)
|
hpux9*)
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
hardcode_direct=yes
|
hardcode_direct=yes
|
# hardcode_minus_L: Not really in the search PATH,
|
# hardcode_minus_L: Not really in the search PATH,
|
# but as the default location of the library.
|
# but as the default location of the library.
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
hpux10* | hpux11*)
|
hpux10* | hpux11*)
|
if test "$with_gnu_ld" = no; then
|
if test "$with_gnu_ld" = no; then
|
case "$host_cpu" in
|
case "$host_cpu" in
|
hppa*64*)
|
hppa*64*)
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
hardcode_direct=no
|
hardcode_direct=no
|
;;
|
;;
|
ia64*)
|
ia64*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_direct=no
|
hardcode_direct=no
|
# hardcode_minus_L: Not really in the search PATH,
|
# hardcode_minus_L: Not really in the search PATH,
|
# but as the default location of the library.
|
# but as the default location of the library.
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
*)
|
*)
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
hardcode_direct=yes
|
hardcode_direct=yes
|
# hardcode_minus_L: Not really in the search PATH,
|
# hardcode_minus_L: Not really in the search PATH,
|
# but as the default location of the library.
|
# but as the default location of the library.
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
esac
|
esac
|
fi
|
fi
|
;;
|
;;
|
irix5* | irix6* | nonstopux*)
|
irix5* | irix6* | nonstopux*)
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
;;
|
;;
|
netbsd*)
|
netbsd*)
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_direct=yes
|
hardcode_direct=yes
|
;;
|
;;
|
newsos6)
|
newsos6)
|
hardcode_direct=yes
|
hardcode_direct=yes
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
;;
|
;;
|
openbsd*)
|
openbsd*)
|
hardcode_direct=yes
|
hardcode_direct=yes
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
else
|
else
|
case "$host_os" in
|
case "$host_os" in
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_libdir_flag_spec='-R$libdir'
|
;;
|
;;
|
*)
|
*)
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
;;
|
;;
|
esac
|
esac
|
fi
|
fi
|
;;
|
;;
|
os2*)
|
os2*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
osf3*)
|
osf3*)
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
;;
|
;;
|
osf4* | osf5*)
|
osf4* | osf5*)
|
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
|
else
|
else
|
# Both cc and cxx compiler support -rpath directly
|
# Both cc and cxx compiler support -rpath directly
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
hardcode_libdir_flag_spec='-rpath $libdir'
|
fi
|
fi
|
hardcode_libdir_separator=:
|
hardcode_libdir_separator=:
|
;;
|
;;
|
sco3.2v5*)
|
sco3.2v5*)
|
;;
|
;;
|
solaris*)
|
solaris*)
|
hardcode_libdir_flag_spec='-R$libdir'
|
hardcode_libdir_flag_spec='-R$libdir'
|
;;
|
;;
|
sunos4*)
|
sunos4*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_direct=yes
|
hardcode_direct=yes
|
hardcode_minus_L=yes
|
hardcode_minus_L=yes
|
;;
|
;;
|
sysv4)
|
sysv4)
|
case $host_vendor in
|
case $host_vendor in
|
sni)
|
sni)
|
hardcode_direct=yes # is this really true???
|
hardcode_direct=yes # is this really true???
|
;;
|
;;
|
siemens)
|
siemens)
|
hardcode_direct=no
|
hardcode_direct=no
|
;;
|
;;
|
motorola)
|
motorola)
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
;;
|
;;
|
esac
|
esac
|
;;
|
;;
|
sysv4.3*)
|
sysv4.3*)
|
;;
|
;;
|
sysv4*MP*)
|
sysv4*MP*)
|
if test -d /usr/nec; then
|
if test -d /usr/nec; then
|
ld_shlibs=yes
|
ld_shlibs=yes
|
fi
|
fi
|
;;
|
;;
|
sysv4.2uw2*)
|
sysv4.2uw2*)
|
hardcode_direct=yes
|
hardcode_direct=yes
|
hardcode_minus_L=no
|
hardcode_minus_L=no
|
;;
|
;;
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
;;
|
;;
|
sysv5*)
|
sysv5*)
|
hardcode_libdir_flag_spec=
|
hardcode_libdir_flag_spec=
|
;;
|
;;
|
uts4*)
|
uts4*)
|
hardcode_libdir_flag_spec='-L$libdir'
|
hardcode_libdir_flag_spec='-L$libdir'
|
;;
|
;;
|
*)
|
*)
|
ld_shlibs=no
|
ld_shlibs=no
|
;;
|
;;
|
esac
|
esac
|
fi
|
fi
|
|
|
# Check dynamic linker characteristics
|
# Check dynamic linker characteristics
|
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
|
# Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER.
|
libname_spec='lib$name'
|
libname_spec='lib$name'
|
case "$host_os" in
|
case "$host_os" in
|
aix3*)
|
aix3*)
|
;;
|
;;
|
aix[4-9]*)
|
aix[4-9]*)
|
;;
|
;;
|
amigaos*)
|
amigaos*)
|
;;
|
;;
|
beos*)
|
beos*)
|
;;
|
;;
|
bsdi4*)
|
bsdi4*)
|
;;
|
;;
|
cygwin* | mingw* | pw32*)
|
cygwin* | mingw* | pw32*)
|
shrext=.dll
|
shrext=.dll
|
;;
|
;;
|
darwin* | rhapsody*)
|
darwin* | rhapsody*)
|
shrext=.dylib
|
shrext=.dylib
|
;;
|
;;
|
dgux*)
|
dgux*)
|
;;
|
;;
|
freebsd1*)
|
freebsd1*)
|
;;
|
;;
|
freebsd*)
|
freebsd*)
|
;;
|
;;
|
gnu*)
|
gnu*)
|
;;
|
;;
|
hpux9* | hpux10* | hpux11*)
|
hpux9* | hpux10* | hpux11*)
|
case "$host_cpu" in
|
case "$host_cpu" in
|
ia64*)
|
ia64*)
|
shrext=.so
|
shrext=.so
|
;;
|
;;
|
hppa*64*)
|
hppa*64*)
|
shrext=.sl
|
shrext=.sl
|
;;
|
;;
|
*)
|
*)
|
shrext=.sl
|
shrext=.sl
|
;;
|
;;
|
esac
|
esac
|
;;
|
;;
|
irix5* | irix6* | nonstopux*)
|
irix5* | irix6* | nonstopux*)
|
case "$host_os" in
|
case "$host_os" in
|
irix5* | nonstopux*)
|
irix5* | nonstopux*)
|
libsuff= shlibsuff=
|
libsuff= shlibsuff=
|
;;
|
;;
|
*)
|
*)
|
case $LD in
|
case $LD in
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
|
*) libsuff= shlibsuff= ;;
|
*) libsuff= shlibsuff= ;;
|
esac
|
esac
|
;;
|
;;
|
esac
|
esac
|
;;
|
;;
|
linux*oldld* | linux*aout* | linux*coff*)
|
linux*oldld* | linux*aout* | linux*coff*)
|
;;
|
;;
|
linux*)
|
linux*)
|
;;
|
;;
|
netbsd*)
|
netbsd*)
|
;;
|
;;
|
newsos6)
|
newsos6)
|
;;
|
;;
|
nto-qnx)
|
nto-qnx)
|
;;
|
;;
|
openbsd*)
|
openbsd*)
|
;;
|
;;
|
os2*)
|
os2*)
|
libname_spec='$name'
|
libname_spec='$name'
|
shrext=.dll
|
shrext=.dll
|
;;
|
;;
|
osf3* | osf4* | osf5*)
|
osf3* | osf4* | osf5*)
|
;;
|
;;
|
sco3.2v5*)
|
sco3.2v5*)
|
;;
|
;;
|
solaris*)
|
solaris*)
|
;;
|
;;
|
sunos4*)
|
sunos4*)
|
;;
|
;;
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
;;
|
;;
|
sysv4*MP*)
|
sysv4*MP*)
|
;;
|
;;
|
uts4*)
|
uts4*)
|
;;
|
;;
|
esac
|
esac
|
|
|
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
|
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
|
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
|
|
|
sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <
|
sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <
|
|
|
# How to pass a linker flag through the compiler.
|
# How to pass a linker flag through the compiler.
|
wl="$escaped_wl"
|
wl="$escaped_wl"
|
|
|
# Static library suffix (normally "a").
|
# Static library suffix (normally "a").
|
libext="$libext"
|
libext="$libext"
|
|
|
# Shared library suffix (normally "so").
|
# Shared library suffix (normally "so").
|
shlibext="$shlibext"
|
shlibext="$shlibext"
|
|
|
# Flag to hardcode \$libdir into a binary during linking.
|
# Flag to hardcode \$libdir into a binary during linking.
|
# This must work even if \$libdir does not exist.
|
# This must work even if \$libdir does not exist.
|
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
|
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
|
|
|
# Whether we need a single -rpath flag with a separated argument.
|
# Whether we need a single -rpath flag with a separated argument.
|
hardcode_libdir_separator="$hardcode_libdir_separator"
|
hardcode_libdir_separator="$hardcode_libdir_separator"
|
|
|
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
|
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
|
# resulting binary.
|
# resulting binary.
|
hardcode_direct="$hardcode_direct"
|
hardcode_direct="$hardcode_direct"
|
|
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
|
# resulting binary.
|
# resulting binary.
|
hardcode_minus_L="$hardcode_minus_L"
|
hardcode_minus_L="$hardcode_minus_L"
|
|
|
EOF
|
EOF
|
|
|