241 |
$as_unset CDPATH |
$as_unset CDPATH |
242 |
|
|
243 |
|
|
|
# Find the correct PATH separator. Usually this is `:', but |
|
|
# DJGPP uses `;' like DOS. |
|
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
case X$UNAME in |
|
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
*) lt_cv_sys_path_separator=':' ;; |
|
|
esac |
|
|
PATH_SEPARATOR=$lt_cv_sys_path_separator |
|
|
fi |
|
|
|
|
244 |
|
|
245 |
# Check that we are running under the correct shell. |
# Check that we are running under the correct shell. |
246 |
SHELL=${CONFIG_SHELL-/bin/sh} |
SHELL=${CONFIG_SHELL-/bin/sh} |
259 |
elif test "X$1" = X--fallback-echo; then |
elif test "X$1" = X--fallback-echo; then |
260 |
# Avoid inline document here, it may be left over |
# Avoid inline document here, it may be left over |
261 |
: |
: |
262 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
263 |
# Yippee, $echo works! |
# Yippee, $echo works! |
264 |
: |
: |
265 |
else |
else |
271 |
# used as fallback echo |
# used as fallback echo |
272 |
shift |
shift |
273 |
cat <<EOF |
cat <<EOF |
274 |
|
$* |
275 |
EOF |
EOF |
276 |
exit 0 |
exit 0 |
277 |
fi |
fi |
305 |
# |
# |
306 |
# So, first we look for a working echo in the user's PATH. |
# So, first we look for a working echo in the user's PATH. |
307 |
|
|
308 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
309 |
for dir in $PATH /usr/ucb; do |
for dir in $PATH /usr/ucb; do |
310 |
|
IFS="$lt_save_ifs" |
311 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
312 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
313 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 |
break |
break |
317 |
fi |
fi |
318 |
done |
done |
319 |
IFS="$save_ifs" |
IFS="$lt_save_ifs" |
320 |
|
|
321 |
if test "X$echo" = Xecho; then |
if test "X$echo" = Xecho; then |
322 |
# We didn't find a better echo, so look for alternatives. |
# We didn't find a better echo, so look for alternatives. |
390 |
|
|
391 |
|
|
392 |
|
|
393 |
|
|
394 |
|
tagnames=${tagnames+${tagnames},}CXX |
395 |
|
|
396 |
|
tagnames=${tagnames+${tagnames},}F77 |
397 |
|
|
398 |
# Name of the host. |
# Name of the host. |
399 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
400 |
# so uname gets run too. |
# so uname gets run too. |
463 |
# include <unistd.h> |
# include <unistd.h> |
464 |
#endif" |
#endif" |
465 |
|
|
466 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS' |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LOG4CXX_INCLUDES LOG4CXX_LDFLAGS LOG4CXX_LIBRARY LIBOBJS LTLIBOBJS' |
467 |
ac_subst_files='' |
ac_subst_files='' |
468 |
|
|
469 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
940 |
ac_env_CPP_value=$CPP |
ac_env_CPP_value=$CPP |
941 |
ac_cv_env_CPP_set=${CPP+set} |
ac_cv_env_CPP_set=${CPP+set} |
942 |
ac_cv_env_CPP_value=$CPP |
ac_cv_env_CPP_value=$CPP |
943 |
|
ac_env_CXXCPP_set=${CXXCPP+set} |
944 |
|
ac_env_CXXCPP_value=$CXXCPP |
945 |
|
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
946 |
|
ac_cv_env_CXXCPP_value=$CXXCPP |
947 |
|
|
948 |
# |
# |
949 |
# Report the --help message. |
# Report the --help message. |
1023 |
Optional Features: |
Optional Features: |
1024 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 |
--enable-shared=PKGS build shared libraries default=yes |
--disable-dependency-tracking speeds up one-time build |
1027 |
--enable-static=PKGS build static libraries default=yes |
--enable-dependency-tracking do not reject slow dependency extractors |
1028 |
--enable-fast-install=PKGS optimize for fast installation default=yes |
--enable-shared[=PKGS] |
1029 |
|
build shared libraries [default=yes] |
1030 |
|
--enable-static[=PKGS] |
1031 |
|
build static libraries [default=yes] |
1032 |
|
--enable-fast-install[=PKGS] |
1033 |
|
optimize for fast installation [default=yes] |
1034 |
--disable-libtool-lock avoid locking (might break parallel builds) |
--disable-libtool-lock avoid locking (might break parallel builds) |
1035 |
--enable-gprof enable memory profiling with gprof |
--enable-gprof enable memory profiling with gprof |
1036 |
|
|
1037 |
Optional Packages: |
Optional Packages: |
1038 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1039 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1040 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1041 |
--with-pic try to use only PIC/non-PIC objects default=use both |
--with-pic try to use only PIC/non-PIC objects [default=use |
1042 |
|
both] |
1043 |
|
--with-tags[=TAGS] |
1044 |
|
include additional configurations [automatic] |
1045 |
--with-root=path Use the specified ROOT directory |
--with-root=path Use the specified ROOT directory |
1046 |
--with-log4cxx=path Use the specified directroy for log4cxx |
--with-log4cxx=path Use the specified directroy for log4cxx |
1047 |
|
|
1057 |
CXX C++ compiler command |
CXX C++ compiler command |
1058 |
CXXFLAGS C++ compiler flags |
CXXFLAGS C++ compiler flags |
1059 |
CPP C preprocessor |
CPP C preprocessor |
1060 |
|
CXXCPP C++ preprocessor |
1061 |
|
|
1062 |
Use these variables to override the choices made by `configure' or to help |
Use these variables to override the choices made by `configure' or to help |
1063 |
it to find libraries and programs with nonstandard names/locations. |
it to find libraries and programs with nonstandard names/locations. |
1498 |
|
|
1499 |
|
|
1500 |
|
|
1501 |
am__api_version="1.4" |
am__api_version="1.9" |
1502 |
ac_aux_dir= |
ac_aux_dir= |
1503 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1504 |
if test -f $ac_dir/install-sh; then |
if test -f $ac_dir/install-sh; then |
1607 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1608 |
# Just in case |
# Just in case |
1609 |
sleep 1 |
sleep 1 |
1610 |
echo timestamp > conftestfile |
echo timestamp > conftest.file |
1611 |
# Do `set' in a subshell so we don't clobber the current shell's |
# Do `set' in a subshell so we don't clobber the current shell's |
1612 |
# arguments. Must try -L first in case configure is actually a |
# arguments. Must try -L first in case configure is actually a |
1613 |
# symlink; some systems play weird games with the mod time of symlinks |
# symlink; some systems play weird games with the mod time of symlinks |
1614 |
# (eg FreeBSD returns the mod time of the symlink's containing |
# (eg FreeBSD returns the mod time of the symlink's containing |
1615 |
# directory). |
# directory). |
1616 |
if ( |
if ( |
1617 |
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1618 |
if test "$*" = "X"; then |
if test "$*" = "X"; then |
1619 |
# -L didn't work. |
# -L didn't work. |
1620 |
set X `ls -t $srcdir/configure conftestfile` |
set X `ls -t $srcdir/configure conftest.file` |
1621 |
fi |
fi |
1622 |
if test "$*" != "X $srcdir/configure conftestfile" \ |
rm -f conftest.file |
1623 |
&& test "$*" != "X conftestfile $srcdir/configure"; then |
if test "$*" != "X $srcdir/configure conftest.file" \ |
1624 |
|
&& test "$*" != "X conftest.file $srcdir/configure"; then |
1625 |
|
|
1626 |
# If neither matched, then we have a broken ls. This can happen |
# If neither matched, then we have a broken ls. This can happen |
1627 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
1634 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1635 |
fi |
fi |
1636 |
|
|
1637 |
test "$2" = conftestfile |
test "$2" = conftest.file |
1638 |
) |
) |
1639 |
then |
then |
1640 |
# Ok. |
# Ok. |
1646 |
Check your system clock" >&2;} |
Check your system clock" >&2;} |
1647 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1648 |
fi |
fi |
|
rm -f conftest* |
|
1649 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$as_me:$LINENO: result: yes" >&5 |
1650 |
echo "${ECHO_T}yes" >&6 |
echo "${ECHO_T}yes" >&6 |
1651 |
test "$program_prefix" != NONE && |
test "$program_prefix" != NONE && |
1661 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1662 |
rm conftest.sed |
rm conftest.sed |
1663 |
|
|
1664 |
|
# expand $ac_aux_dir to an absolute path |
1665 |
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
1666 |
|
|
1667 |
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1668 |
|
# Use eval to expand $SHELL |
1669 |
|
if eval "$MISSING --run true"; then |
1670 |
|
am_missing_run="$MISSING --run " |
1671 |
|
else |
1672 |
|
am_missing_run= |
1673 |
|
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1674 |
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1675 |
|
fi |
1676 |
|
|
1677 |
|
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1678 |
|
# We used to keeping the `.' as first argument, in order to |
1679 |
|
# allow $(mkdir_p) to be used without argument. As in |
1680 |
|
# $(mkdir_p) $(somedir) |
1681 |
|
# where $(somedir) is conditionally defined. However this is wrong |
1682 |
|
# for two reasons: |
1683 |
|
# 1. if the package is installed by a user who cannot write `.' |
1684 |
|
# make install will fail, |
1685 |
|
# 2. the above comment should most certainly read |
1686 |
|
# $(mkdir_p) $(DESTDIR)$(somedir) |
1687 |
|
# so it does not work when $(somedir) is undefined and |
1688 |
|
# $(DESTDIR) is not. |
1689 |
|
# To support the latter case, we have to write |
1690 |
|
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
1691 |
|
# so the `.' trick is pointless. |
1692 |
|
mkdir_p='mkdir -p --' |
1693 |
|
else |
1694 |
|
# On NextStep and OpenStep, the `mkdir' command does not |
1695 |
|
# recognize any option. It will interpret all options as |
1696 |
|
# directories to create, and then abort because `.' already |
1697 |
|
# exists. |
1698 |
|
for d in ./-p ./--version; |
1699 |
|
do |
1700 |
|
test -d $d && rmdir $d |
1701 |
|
done |
1702 |
|
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
1703 |
|
if test -f "$ac_aux_dir/mkinstalldirs"; then |
1704 |
|
mkdir_p='$(mkinstalldirs)' |
1705 |
|
else |
1706 |
|
mkdir_p='$(install_sh) -d' |
1707 |
|
fi |
1708 |
|
fi |
1709 |
|
|
1710 |
|
for ac_prog in gawk mawk nawk awk |
1711 |
|
do |
1712 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1713 |
|
set dummy $ac_prog; ac_word=$2 |
1714 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1715 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1716 |
|
if test "${ac_cv_prog_AWK+set}" = set; then |
1717 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1718 |
|
else |
1719 |
|
if test -n "$AWK"; then |
1720 |
|
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1721 |
|
else |
1722 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1723 |
|
for as_dir in $PATH |
1724 |
|
do |
1725 |
|
IFS=$as_save_IFS |
1726 |
|
test -z "$as_dir" && as_dir=. |
1727 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1728 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1729 |
|
ac_cv_prog_AWK="$ac_prog" |
1730 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1731 |
|
break 2 |
1732 |
|
fi |
1733 |
|
done |
1734 |
|
done |
1735 |
|
|
1736 |
|
fi |
1737 |
|
fi |
1738 |
|
AWK=$ac_cv_prog_AWK |
1739 |
|
if test -n "$AWK"; then |
1740 |
|
echo "$as_me:$LINENO: result: $AWK" >&5 |
1741 |
|
echo "${ECHO_T}$AWK" >&6 |
1742 |
|
else |
1743 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1744 |
|
echo "${ECHO_T}no" >&6 |
1745 |
|
fi |
1746 |
|
|
1747 |
|
test -n "$AWK" && break |
1748 |
|
done |
1749 |
|
|
1750 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1751 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1752 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1776 |
SET_MAKE="MAKE=${MAKE-make}" |
SET_MAKE="MAKE=${MAKE-make}" |
1777 |
fi |
fi |
1778 |
|
|
1779 |
|
rm -rf .tst 2>/dev/null |
1780 |
PACKAGE=yoda |
mkdir .tst 2>/dev/null |
1781 |
|
if test -d .tst; then |
1782 |
VERSION=0.1.0 |
am__leading_dot=. |
1783 |
|
else |
1784 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
am__leading_dot=_ |
1785 |
|
fi |
1786 |
|
rmdir .tst 2>/dev/null |
1787 |
|
|
1788 |
|
# test to see if srcdir already configured |
1789 |
|
if test "`cd $srcdir && pwd`" != "`pwd`" && |
1790 |
|
test -f $srcdir/config.status; then |
1791 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1792 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1793 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1794 |
fi |
fi |
1795 |
|
|
1796 |
|
# test whether we have cygpath |
1797 |
|
if test -z "$CYGPATH_W"; then |
1798 |
|
if (cygpath --version) >/dev/null 2>/dev/null; then |
1799 |
|
CYGPATH_W='cygpath -w' |
1800 |
|
else |
1801 |
|
CYGPATH_W=echo |
1802 |
|
fi |
1803 |
|
fi |
1804 |
|
|
1805 |
|
|
1806 |
|
# Define the identity of the package. |
1807 |
|
PACKAGE=yoda |
1808 |
|
VERSION=4.2.4 |
1809 |
|
|
1810 |
|
|
1811 |
cat >>confdefs.h <<_ACEOF |
cat >>confdefs.h <<_ACEOF |
1812 |
#define PACKAGE "$PACKAGE" |
#define PACKAGE "$PACKAGE" |
1813 |
_ACEOF |
_ACEOF |
1817 |
#define VERSION "$VERSION" |
#define VERSION "$VERSION" |
1818 |
_ACEOF |
_ACEOF |
1819 |
|
|
1820 |
|
# Some tools Automake needs. |
1821 |
|
|
1822 |
|
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1823 |
|
|
1824 |
|
|
1825 |
|
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1826 |
|
|
1827 |
|
|
1828 |
|
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1829 |
|
|
1830 |
|
|
1831 |
|
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1832 |
|
|
1833 |
|
|
1834 |
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1835 |
|
|
1836 |
|
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1837 |
|
|
1838 |
|
# Installed binaries are usually stripped using `strip' when the user |
1839 |
|
# run `make install-strip'. However `strip' might not be the right |
1840 |
|
# tool to use in cross-compilation environments, therefore Automake |
1841 |
|
# will honor the `STRIP' environment variable to overrule this program. |
1842 |
|
if test "$cross_compiling" != no; then |
1843 |
|
if test -n "$ac_tool_prefix"; then |
1844 |
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1845 |
|
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1846 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1847 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1848 |
|
if test "${ac_cv_prog_STRIP+set}" = set; then |
1849 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1850 |
|
else |
1851 |
|
if test -n "$STRIP"; then |
1852 |
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1853 |
|
else |
1854 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1855 |
|
for as_dir in $PATH |
1856 |
|
do |
1857 |
|
IFS=$as_save_IFS |
1858 |
|
test -z "$as_dir" && as_dir=. |
1859 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1860 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1861 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1862 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1863 |
|
break 2 |
1864 |
|
fi |
1865 |
|
done |
1866 |
|
done |
1867 |
|
|
1868 |
|
fi |
1869 |
|
fi |
1870 |
|
STRIP=$ac_cv_prog_STRIP |
1871 |
|
if test -n "$STRIP"; then |
1872 |
|
echo "$as_me:$LINENO: result: $STRIP" >&5 |
1873 |
|
echo "${ECHO_T}$STRIP" >&6 |
1874 |
|
else |
1875 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1876 |
|
echo "${ECHO_T}no" >&6 |
1877 |
|
fi |
1878 |
|
|
1879 |
|
fi |
1880 |
|
if test -z "$ac_cv_prog_STRIP"; then |
1881 |
|
ac_ct_STRIP=$STRIP |
1882 |
|
# Extract the first word of "strip", so it can be a program name with args. |
1883 |
|
set dummy strip; ac_word=$2 |
1884 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1885 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1886 |
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1887 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1888 |
|
else |
1889 |
|
if test -n "$ac_ct_STRIP"; then |
1890 |
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1891 |
|
else |
1892 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1893 |
|
for as_dir in $PATH |
1894 |
|
do |
1895 |
|
IFS=$as_save_IFS |
1896 |
|
test -z "$as_dir" && as_dir=. |
1897 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1898 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1899 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
1900 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1901 |
|
break 2 |
1902 |
|
fi |
1903 |
|
done |
1904 |
|
done |
1905 |
|
|
1906 |
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1907 |
|
fi |
1908 |
|
fi |
1909 |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1910 |
|
if test -n "$ac_ct_STRIP"; then |
1911 |
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1912 |
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1913 |
|
else |
1914 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1915 |
|
echo "${ECHO_T}no" >&6 |
1916 |
|
fi |
1917 |
|
|
1918 |
|
STRIP=$ac_ct_STRIP |
1919 |
|
else |
1920 |
|
STRIP="$ac_cv_prog_STRIP" |
1921 |
|
fi |
1922 |
|
|
|
missing_dir=`cd $ac_aux_dir && pwd` |
|
|
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
|
|
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
|
|
ACLOCAL=aclocal-${am__api_version} |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
|
|
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOCONF=autoconf |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOCONF="$missing_dir/missing autoconf" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
|
|
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOMAKE=automake-${am__api_version} |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
|
|
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOHEADER=autoheader |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOHEADER="$missing_dir/missing autoheader" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
|
|
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|
|
MAKEINFO=makeinfo |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
MAKEINFO="$missing_dir/missing makeinfo" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
1923 |
fi |
fi |
1924 |
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1925 |
|
|
1926 |
|
# We need awk for the "check" target. The system "awk" is bad on |
1927 |
|
# some platforms. |
1928 |
|
# Always define AMTAR for backward compatibility. |
1929 |
|
|
1930 |
|
AMTAR=${AMTAR-"${am_missing_run}tar"} |
1931 |
|
|
1932 |
|
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1933 |
|
|
1934 |
|
|
1935 |
|
|
1936 |
|
|
1937 |
|
|
1938 |
|
|
1939 |
ac_config_headers="$ac_config_headers config.h" |
ac_config_headers="$ac_config_headers config.h" |
1940 |
|
|
|
ac_config_commands="$ac_config_commands default-1" |
|
1941 |
|
|
1942 |
|
|
1943 |
|
|
2926 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2927 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2928 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2929 |
|
DEPDIR="${am__leading_dot}deps" |
2930 |
|
|
2931 |
|
ac_config_commands="$ac_config_commands depfiles" |
2932 |
|
|
2933 |
|
|
2934 |
|
am_make=${MAKE-make} |
2935 |
|
cat > confinc << 'END' |
2936 |
|
am__doit: |
2937 |
|
@echo done |
2938 |
|
.PHONY: am__doit |
2939 |
|
END |
2940 |
|
# If we don't find an include directive, just comment out the code. |
2941 |
|
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2942 |
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2943 |
|
am__include="#" |
2944 |
|
am__quote= |
2945 |
|
_am_result=none |
2946 |
|
# First try GNU make style include. |
2947 |
|
echo "include confinc" > confmf |
2948 |
|
# We grep out `Entering directory' and `Leaving directory' |
2949 |
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
2950 |
|
# In particular we don't look at `^make:' because GNU make might |
2951 |
|
# be invoked under some other name (usually "gmake"), in which |
2952 |
|
# case it prints its new name instead of `make'. |
2953 |
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2954 |
|
am__include=include |
2955 |
|
am__quote= |
2956 |
|
_am_result=GNU |
2957 |
|
fi |
2958 |
|
# Now try BSD make style include. |
2959 |
|
if test "$am__include" = "#"; then |
2960 |
|
echo '.include "confinc"' > confmf |
2961 |
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2962 |
|
am__include=.include |
2963 |
|
am__quote="\"" |
2964 |
|
_am_result=BSD |
2965 |
|
fi |
2966 |
|
fi |
2967 |
|
|
2968 |
|
|
2969 |
|
echo "$as_me:$LINENO: result: $_am_result" >&5 |
2970 |
|
echo "${ECHO_T}$_am_result" >&6 |
2971 |
|
rm -f confinc confmf |
2972 |
|
|
2973 |
|
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2974 |
|
if test "${enable_dependency_tracking+set}" = set; then |
2975 |
|
enableval="$enable_dependency_tracking" |
2976 |
|
|
2977 |
|
fi; |
2978 |
|
if test "x$enable_dependency_tracking" != xno; then |
2979 |
|
am_depcomp="$ac_aux_dir/depcomp" |
2980 |
|
AMDEPBACKSLASH='\' |
2981 |
|
fi |
2982 |
|
|
2983 |
|
|
2984 |
|
if test "x$enable_dependency_tracking" != xno; then |
2985 |
|
AMDEP_TRUE= |
2986 |
|
AMDEP_FALSE='#' |
2987 |
|
else |
2988 |
|
AMDEP_TRUE='#' |
2989 |
|
AMDEP_FALSE= |
2990 |
|
fi |
2991 |
|
|
2992 |
|
|
2993 |
|
|
2994 |
|
|
2995 |
|
depcc="$CC" am_compiler_list= |
2996 |
|
|
2997 |
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2998 |
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2999 |
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3000 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3001 |
|
else |
3002 |
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3003 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
3004 |
|
# making bogus files that we don't know about and never remove. For |
3005 |
|
# instance it was reported that on HP-UX the gcc test will end up |
3006 |
|
# making a dummy file named `D' -- because `-MD' means `put the output |
3007 |
|
# in D'. |
3008 |
|
mkdir conftest.dir |
3009 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
3010 |
|
# using a relative directory. |
3011 |
|
cp "$am_depcomp" conftest.dir |
3012 |
|
cd conftest.dir |
3013 |
|
# We will build objects and dependencies in a subdirectory because |
3014 |
|
# it helps to detect inapplicable dependency modes. For instance |
3015 |
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
3016 |
|
# side effect of compilation, but ICC will put the dependencies in |
3017 |
|
# the current directory while Tru64 will put them in the object |
3018 |
|
# directory. |
3019 |
|
mkdir sub |
3020 |
|
|
3021 |
|
am_cv_CC_dependencies_compiler_type=none |
3022 |
|
if test "$am_compiler_list" = ""; then |
3023 |
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3024 |
|
fi |
3025 |
|
for depmode in $am_compiler_list; do |
3026 |
|
# Setup a source with many dependencies, because some compilers |
3027 |
|
# like to wrap large dependency lists on column 80 (with \), and |
3028 |
|
# we should not choose a depcomp mode which is confused by this. |
3029 |
|
# |
3030 |
|
# We need to recreate these files for each test, as the compiler may |
3031 |
|
# overwrite some of them when testing with obscure command lines. |
3032 |
|
# This happens at least with the AIX C compiler. |
3033 |
|
: > sub/conftest.c |
3034 |
|
for i in 1 2 3 4 5 6; do |
3035 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3036 |
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3037 |
|
# Solaris 8's {/usr,}/bin/sh. |
3038 |
|
touch sub/conftst$i.h |
3039 |
|
done |
3040 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3041 |
|
|
3042 |
|
case $depmode in |
3043 |
|
nosideeffect) |
3044 |
|
# after this tag, mechanisms are not by side-effect, so they'll |
3045 |
|
# only be used when explicitly requested |
3046 |
|
if test "x$enable_dependency_tracking" = xyes; then |
3047 |
|
continue |
3048 |
|
else |
3049 |
|
break |
3050 |
|
fi |
3051 |
|
;; |
3052 |
|
none) break ;; |
3053 |
|
esac |
3054 |
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
3055 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
3056 |
|
# handle `-M -o', and we need to detect this. |
3057 |
|
if depmode=$depmode \ |
3058 |
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3059 |
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3060 |
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3061 |
|
>/dev/null 2>conftest.err && |
3062 |
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3063 |
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3064 |
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3065 |
|
# icc doesn't choke on unknown options, it will just issue warnings |
3066 |
|
# or remarks (even with -Werror). So we grep stderr for any message |
3067 |
|
# that says an option was ignored or not supported. |
3068 |
|
# When given -MP, icc 7.0 and 7.1 complain thusly: |
3069 |
|
# icc: Command line warning: ignoring option '-M'; no argument required |
3070 |
|
# The diagnosis changed in icc 8.0: |
3071 |
|
# icc: Command line remark: option '-MP' not supported |
3072 |
|
if (grep 'ignoring option' conftest.err || |
3073 |
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3074 |
|
am_cv_CC_dependencies_compiler_type=$depmode |
3075 |
|
break |
3076 |
|
fi |
3077 |
|
fi |
3078 |
|
done |
3079 |
|
|
3080 |
|
cd .. |
3081 |
|
rm -rf conftest.dir |
3082 |
|
else |
3083 |
|
am_cv_CC_dependencies_compiler_type=none |
3084 |
|
fi |
3085 |
|
|
3086 |
|
fi |
3087 |
|
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3088 |
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3089 |
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3090 |
|
|
3091 |
|
|
3092 |
|
|
3093 |
|
if |
3094 |
|
test "x$enable_dependency_tracking" != xno \ |
3095 |
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3096 |
|
am__fastdepCC_TRUE= |
3097 |
|
am__fastdepCC_FALSE='#' |
3098 |
|
else |
3099 |
|
am__fastdepCC_TRUE='#' |
3100 |
|
am__fastdepCC_FALSE= |
3101 |
|
fi |
3102 |
|
|
3103 |
|
|
3104 |
|
|
3105 |
ac_ext=f |
ac_ext=f |
3194 |
|
|
3195 |
|
|
3196 |
# Provide some information about the compiler. |
# Provide some information about the compiler. |
3197 |
echo "$as_me:2871:" \ |
echo "$as_me:3197:" \ |
3198 |
"checking for Fortran 77 compiler version" >&5 |
"checking for Fortran 77 compiler version" >&5 |
3199 |
ac_compiler=`set X $ac_compile; echo $2` |
ac_compiler=`set X $ac_compile; echo $2` |
3200 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3391 |
# flags. |
# flags. |
3392 |
ac_save_FFLAGS=$FFLAGS |
ac_save_FFLAGS=$FFLAGS |
3393 |
FFLAGS="$FFLAGS $ac_verb" |
FFLAGS="$FFLAGS $ac_verb" |
3394 |
(eval echo $as_me:3068: \"$ac_link\") >&5 |
(eval echo $as_me:3394: \"$ac_link\") >&5 |
3395 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3396 |
echo "$ac_f77_v_output" >&5 |
echo "$ac_f77_v_output" >&5 |
3397 |
FFLAGS=$ac_save_FFLAGS |
FFLAGS=$ac_save_FFLAGS |
3469 |
# flags. |
# flags. |
3470 |
ac_save_FFLAGS=$FFLAGS |
ac_save_FFLAGS=$FFLAGS |
3471 |
FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
3472 |
(eval echo $as_me:3146: \"$ac_link\") >&5 |
(eval echo $as_me:3472: \"$ac_link\") >&5 |
3473 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3474 |
echo "$ac_f77_v_output" >&5 |
echo "$ac_f77_v_output" >&5 |
3475 |
FFLAGS=$ac_save_FFLAGS |
FFLAGS=$ac_save_FFLAGS |
3998 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3999 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4000 |
|
|
4001 |
|
depcc="$CXX" am_compiler_list= |
4002 |
|
|
4003 |
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
4004 |
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
4005 |
|
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
4006 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4007 |
|
else |
4008 |
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4009 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
4010 |
|
# making bogus files that we don't know about and never remove. For |
4011 |
|
# instance it was reported that on HP-UX the gcc test will end up |
4012 |
|
# making a dummy file named `D' -- because `-MD' means `put the output |
4013 |
|
# in D'. |
4014 |
|
mkdir conftest.dir |
4015 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
4016 |
|
# using a relative directory. |
4017 |
|
cp "$am_depcomp" conftest.dir |
4018 |
|
cd conftest.dir |
4019 |
|
# We will build objects and dependencies in a subdirectory because |
4020 |
|
# it helps to detect inapplicable dependency modes. For instance |
4021 |
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
4022 |
|
# side effect of compilation, but ICC will put the dependencies in |
4023 |
|
# the current directory while Tru64 will put them in the object |
4024 |
|
# directory. |
4025 |
|
mkdir sub |
4026 |
|
|
4027 |
|
am_cv_CXX_dependencies_compiler_type=none |
4028 |
|
if test "$am_compiler_list" = ""; then |
4029 |
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4030 |
|
fi |
4031 |
|
for depmode in $am_compiler_list; do |
4032 |
|
# Setup a source with many dependencies, because some compilers |
4033 |
|
# like to wrap large dependency lists on column 80 (with \), and |
4034 |
|
# we should not choose a depcomp mode which is confused by this. |
4035 |
|
# |
4036 |
|
# We need to recreate these files for each test, as the compiler may |
4037 |
|
# overwrite some of them when testing with obscure command lines. |
4038 |
|
# This happens at least with the AIX C compiler. |
4039 |
|
: > sub/conftest.c |
4040 |
|
for i in 1 2 3 4 5 6; do |
4041 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4042 |
|
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4043 |
|
# Solaris 8's {/usr,}/bin/sh. |
4044 |
|
touch sub/conftst$i.h |
4045 |
|
done |
4046 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4047 |
|
|
4048 |
|
case $depmode in |
4049 |
|
nosideeffect) |
4050 |
|
# after this tag, mechanisms are not by side-effect, so they'll |
4051 |
|
# only be used when explicitly requested |
4052 |
|
if test "x$enable_dependency_tracking" = xyes; then |
4053 |
|
continue |
4054 |
|
else |
4055 |
|
break |
4056 |
|
fi |
4057 |
|
;; |
4058 |
|
none) break ;; |
4059 |
|
esac |
4060 |
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
4061 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
4062 |
|
# handle `-M -o', and we need to detect this. |
4063 |
|
if depmode=$depmode \ |
4064 |
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4065 |
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4066 |
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4067 |
|
>/dev/null 2>conftest.err && |
4068 |
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4069 |
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4070 |
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4071 |
|
# icc doesn't choke on unknown options, it will just issue warnings |
4072 |
|
# or remarks (even with -Werror). So we grep stderr for any message |
4073 |
|
# that says an option was ignored or not supported. |
4074 |
|
# When given -MP, icc 7.0 and 7.1 complain thusly: |
4075 |
|
# icc: Command line warning: ignoring option '-M'; no argument required |
4076 |
|
# The diagnosis changed in icc 8.0: |
4077 |
|
# icc: Command line remark: option '-MP' not supported |
4078 |
|
if (grep 'ignoring option' conftest.err || |
4079 |
|
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4080 |
|
am_cv_CXX_dependencies_compiler_type=$depmode |
4081 |
|
break |
4082 |
|
fi |
4083 |
|
fi |
4084 |
|
done |
4085 |
|
|
4086 |
|
cd .. |
4087 |
|
rm -rf conftest.dir |
4088 |
|
else |
4089 |
|
am_cv_CXX_dependencies_compiler_type=none |
4090 |
|
fi |
4091 |
|
|
4092 |
|
fi |
4093 |
|
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4094 |
|
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
4095 |
|
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4096 |
|
|
4097 |
|
|
4098 |
|
|
4099 |
|
if |
4100 |
|
test "x$enable_dependency_tracking" != xno \ |
4101 |
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4102 |
|
am__fastdepCXX_TRUE= |
4103 |
|
am__fastdepCXX_FALSE='#' |
4104 |
|
else |
4105 |
|
am__fastdepCXX_TRUE='#' |
4106 |
|
am__fastdepCXX_FALSE= |
4107 |
|
fi |
4108 |
|
|
4109 |
|
|
4110 |
# Check whether --enable-shared or --disable-shared was given. |
# Check whether --enable-shared or --disable-shared was given. |
4111 |
if test "${enable_shared+set}" = set; then |
if test "${enable_shared+set}" = set; then |
4112 |
enableval="$enable_shared" |
enableval="$enable_shared" |
4113 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4114 |
case $enableval in |
case $enableval in |
4115 |
yes) enable_shared=yes ;; |
yes) enable_shared=yes ;; |
4116 |
no) enable_shared=no ;; |
no) enable_shared=no ;; |
4117 |
*) |
*) |
4118 |
enable_shared=no |
enable_shared=no |
4119 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4120 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4121 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4122 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4123 |
enable_shared=yes |
if test "X$pkg" = "X$p"; then |
4124 |
fi |
enable_shared=yes |
4125 |
done |
fi |
4126 |
IFS="$ac_save_ifs" |
done |
4127 |
;; |
IFS="$lt_save_ifs" |
4128 |
esac |
;; |
4129 |
|
esac |
4130 |
else |
else |
4131 |
enable_shared=yes |
enable_shared=yes |
4132 |
fi; |
fi; |
4133 |
|
|
4134 |
# Check whether --enable-static or --disable-static was given. |
# Check whether --enable-static or --disable-static was given. |
4135 |
if test "${enable_static+set}" = set; then |
if test "${enable_static+set}" = set; then |
4136 |
enableval="$enable_static" |
enableval="$enable_static" |
4137 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4138 |
case $enableval in |
case $enableval in |
4139 |
yes) enable_static=yes ;; |
yes) enable_static=yes ;; |
4140 |
no) enable_static=no ;; |
no) enable_static=no ;; |
4141 |
*) |
*) |
4142 |
enable_static=no |
enable_static=no |
4143 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4144 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4145 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4146 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4147 |
enable_static=yes |
if test "X$pkg" = "X$p"; then |
4148 |
fi |
enable_static=yes |
4149 |
done |
fi |
4150 |
IFS="$ac_save_ifs" |
done |
4151 |
;; |
IFS="$lt_save_ifs" |
4152 |
esac |
;; |
4153 |
|
esac |
4154 |
else |
else |
4155 |
enable_static=yes |
enable_static=yes |
4156 |
fi; |
fi; |
4157 |
|
|
4158 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
# Check whether --enable-fast-install or --disable-fast-install was given. |
4159 |
if test "${enable_fast_install+set}" = set; then |
if test "${enable_fast_install+set}" = set; then |
4160 |
enableval="$enable_fast_install" |
enableval="$enable_fast_install" |
4161 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4162 |
case $enableval in |
case $enableval in |
4163 |
yes) enable_fast_install=yes ;; |
yes) enable_fast_install=yes ;; |
4164 |
no) enable_fast_install=no ;; |
no) enable_fast_install=no ;; |
4165 |
*) |
*) |
4166 |
enable_fast_install=no |
enable_fast_install=no |
4167 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4168 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4169 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4170 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4171 |
enable_fast_install=yes |
if test "X$pkg" = "X$p"; then |
4172 |
fi |
enable_fast_install=yes |
4173 |
done |
fi |
4174 |
IFS="$ac_save_ifs" |
done |
4175 |
;; |
IFS="$lt_save_ifs" |
4176 |
esac |
;; |
4177 |
|
esac |
4178 |
else |
else |
4179 |
enable_fast_install=yes |
enable_fast_install=yes |
4180 |
fi; |
fi; |
|
# Find the correct PATH separator. Usually this is `:', but |
|
|
# DJGPP uses `;' like DOS. |
|
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
case X$UNAME in |
|
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
*) lt_cv_sys_path_separator=':' ;; |
|
|
esac |
|
|
PATH_SEPARATOR=$lt_cv_sys_path_separator |
|
|
fi |
|
4181 |
|
|
4182 |
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4183 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
4184 |
if test "${with_gnu_ld+set}" = set; then |
if test "${lt_cv_path_SED+set}" = set; then |
4185 |
withval="$with_gnu_ld" |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4186 |
|
else |
4187 |
|
# Loop through the user's path and test for sed and gsed. |
4188 |
|
# Then use that list of sed's as ones to test for truncation. |
4189 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4190 |
|
for as_dir in $PATH |
4191 |
|
do |
4192 |
|
IFS=$as_save_IFS |
4193 |
|
test -z "$as_dir" && as_dir=. |
4194 |
|
for lt_ac_prog in sed gsed; do |
4195 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4196 |
|
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
4197 |
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
4198 |
|
fi |
4199 |
|
done |
4200 |
|
done |
4201 |
|
done |
4202 |
|
lt_ac_max=0 |
4203 |
|
lt_ac_count=0 |
4204 |
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4205 |
|
# along with /bin/sed that truncates output. |
4206 |
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4207 |
|
test ! -f $lt_ac_sed && break |
4208 |
|
cat /dev/null > conftest.in |
4209 |
|
lt_ac_count=0 |
4210 |
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4211 |
|
# Check for GNU sed and select it if it is found. |
4212 |
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
4213 |
|
lt_cv_path_SED=$lt_ac_sed |
4214 |
|
break |
4215 |
|
fi |
4216 |
|
while true; do |
4217 |
|
cat conftest.in conftest.in >conftest.tmp |
4218 |
|
mv conftest.tmp conftest.in |
4219 |
|
cp conftest.in conftest.nl |
4220 |
|
echo >>conftest.nl |
4221 |
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
4222 |
|
cmp -s conftest.out conftest.nl || break |
4223 |
|
# 10000 chars as input seems more than enough |
4224 |
|
test $lt_ac_count -gt 10 && break |
4225 |
|
lt_ac_count=`expr $lt_ac_count + 1` |
4226 |
|
if test $lt_ac_count -gt $lt_ac_max; then |
4227 |
|
lt_ac_max=$lt_ac_count |
4228 |
|
lt_cv_path_SED=$lt_ac_sed |
4229 |
|
fi |
4230 |
|
done |
4231 |
|
done |
4232 |
|
SED=$lt_cv_path_SED |
4233 |
|
|
4234 |
|
fi |
4235 |
|
|
4236 |
|
echo "$as_me:$LINENO: result: $SED" >&5 |
4237 |
|
echo "${ECHO_T}$SED" >&6 |
4238 |
|
|
4239 |
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
4240 |
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4241 |
|
if test "${ac_cv_prog_egrep+set}" = set; then |
4242 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4243 |
|
else |
4244 |
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4245 |
|
then ac_cv_prog_egrep='grep -E' |
4246 |
|
else ac_cv_prog_egrep='egrep' |
4247 |
|
fi |
4248 |
|
fi |
4249 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4250 |
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
4251 |
|
EGREP=$ac_cv_prog_egrep |
4252 |
|
|
4253 |
|
|
4254 |
|
|
4255 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
4256 |
|
if test "${with_gnu_ld+set}" = set; then |
4257 |
|
withval="$with_gnu_ld" |
4258 |
test "$withval" = no || with_gnu_ld=yes |
test "$withval" = no || with_gnu_ld=yes |
4259 |
else |
else |
4260 |
with_gnu_ld=no |
with_gnu_ld=no |
4262 |
ac_prog=ld |
ac_prog=ld |
4263 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4264 |
# Check if gcc -print-prog-name=ld gives a path. |
# Check if gcc -print-prog-name=ld gives a path. |
4265 |
echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4266 |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
4267 |
case $host in |
case $host in |
4268 |
*-*-mingw*) |
*-*-mingw*) |
4269 |
# gcc leaves a trailing carriage return which upsets mingw |
# gcc leaves a trailing carriage return which upsets mingw |
4273 |
esac |
esac |
4274 |
case $ac_prog in |
case $ac_prog in |
4275 |
# Accept absolute paths. |
# Accept absolute paths. |
4276 |
[\\/]* | [A-Za-z]:[\\/]*) |
[\\/]* | ?:[\\/]*) |
4277 |
re_direlt='/[^/][^/]*/\.\./' |
re_direlt='/[^/][^/]*/\.\./' |
4278 |
# Canonicalize the path of ld |
# Canonicalize the pathname of ld |
4279 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4280 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4281 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4282 |
done |
done |
4283 |
test -z "$LD" && LD="$ac_prog" |
test -z "$LD" && LD="$ac_prog" |
4284 |
;; |
;; |
4302 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4303 |
else |
else |
4304 |
if test -z "$LD"; then |
if test -z "$LD"; then |
4305 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4306 |
for ac_dir in $PATH; do |
for ac_dir in $PATH; do |
4307 |
|
IFS="$lt_save_ifs" |
4308 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
4309 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4310 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
lt_cv_path_LD="$ac_dir/$ac_prog" |
4311 |
# Check to see if the program is GNU ld. I'd rather use --version, |
# Check to see if the program is GNU ld. I'd rather use --version, |
4312 |
# but apparently some GNU ld's only accept -v. |
# but apparently some GNU ld's only accept -v. |
4313 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4314 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4315 |
|
*GNU* | *'with BFD'*) |
4316 |
test "$with_gnu_ld" != no && break |
test "$with_gnu_ld" != no && break |
4317 |
else |
;; |
4318 |
|
*) |
4319 |
test "$with_gnu_ld" != yes && break |
test "$with_gnu_ld" != yes && break |
4320 |
fi |
;; |
4321 |
|
esac |
4322 |
fi |
fi |
4323 |
done |
done |
4324 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
4325 |
else |
else |
4326 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4327 |
fi |
fi |
4344 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4345 |
else |
else |
4346 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
4347 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
case `$LD -v 2>&1 </dev/null` in |
4348 |
|
*GNU* | *'with BFD'*) |
4349 |
lt_cv_prog_gnu_ld=yes |
lt_cv_prog_gnu_ld=yes |
4350 |
else |
;; |
4351 |
|
*) |
4352 |
lt_cv_prog_gnu_ld=no |
lt_cv_prog_gnu_ld=no |
4353 |
fi |
;; |
4354 |
|
esac |
4355 |
fi |
fi |
4356 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4357 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
4368 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4369 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
4370 |
reload_flag=$lt_cv_ld_reload_flag |
reload_flag=$lt_cv_ld_reload_flag |
4371 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
case $reload_flag in |
4372 |
|
"" | " "*) ;; |
4373 |
|
*) reload_flag=" $reload_flag" ;; |
4374 |
|
esac |
4375 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4376 |
|
|
4377 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4378 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
4383 |
# Let the user override the test. |
# Let the user override the test. |
4384 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
4385 |
else |
else |
4386 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4387 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4388 |
|
IFS="$lt_save_ifs" |
4389 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
4390 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
4391 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4392 |
# Check to see if the nm accepts a BSD-compat flag. |
# Check to see if the nm accepts a BSD-compat flag. |
4393 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4394 |
# nm: unknown option "B" ignored |
# nm: unknown option "B" ignored |
4395 |
# Tru64's nm complains that /dev/null is an invalid object file |
# Tru64's nm complains that /dev/null is an invalid object file |
4396 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4397 |
|
*/dev/null* | *'Invalid file or object type'*) |
4398 |
lt_cv_path_NM="$tmp_nm -B" |
lt_cv_path_NM="$tmp_nm -B" |
4399 |
break |
break |
4400 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
;; |
4401 |
lt_cv_path_NM="$tmp_nm -p" |
*) |
4402 |
break |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4403 |
else |
*/dev/null*) |
4404 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
lt_cv_path_NM="$tmp_nm -p" |
4405 |
continue # so that we can try to find one that supports BSD flags |
break |
4406 |
fi |
;; |
4407 |
|
*) |
4408 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4409 |
|
continue # so that we can try to find one that supports BSD flags |
4410 |
|
;; |
4411 |
|
esac |
4412 |
|
esac |
4413 |
fi |
fi |
4414 |
done |
done |
4415 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
4416 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4417 |
fi |
fi |
4418 |
fi |
fi |
4419 |
|
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4420 |
|
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
4421 |
NM="$lt_cv_path_NM" |
NM="$lt_cv_path_NM" |
|
echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
echo "${ECHO_T}$NM" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_SED+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
# Loop through the user's path and test for sed and gsed. |
|
|
# Then use that list of sed's as ones to test for truncation. |
|
|
as_executable_p="test -f" |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_prog in sed gsed; do |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
|
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
|
|
fi |
|
|
done |
|
|
done |
|
|
done |
|
|
|
|
|
# Create a temporary directory, and hook for its removal unless debugging. |
|
|
$debug || |
|
|
{ |
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
} |
|
|
|
|
|
# Create a (secure) tmp directory for tmp files. |
|
|
: ${TMPDIR=/tmp} |
|
|
{ |
|
|
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
|
|
test -n "$tmp" && test -d "$tmp" |
|
|
} || |
|
|
{ |
|
|
tmp=$TMPDIR/sed$$-$RANDOM |
|
|
(umask 077 && mkdir $tmp) |
|
|
} || |
|
|
{ |
|
|
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
|
|
{ (exit 1); exit 1; } |
|
|
} |
|
|
_max=0 |
|
|
_count=0 |
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
|
# along with /bin/sed that truncates output. |
|
|
for _sed in $_sed_list /usr/xpg4/bin/sed; do |
|
|
test ! -f ${_sed} && break |
|
|
cat /dev/null > "$tmp/sed.in" |
|
|
_count=0 |
|
|
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
|
|
# Check for GNU sed and select it if it is found. |
|
|
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
|
|
lt_cv_path_SED=${_sed} |
|
|
break |
|
|
fi |
|
|
while true; do |
|
|
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
|
|
mv "$tmp/sed.tmp" "$tmp/sed.in" |
|
|
cp "$tmp/sed.in" "$tmp/sed.nl" |
|
|
echo >>"$tmp/sed.nl" |
|
|
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
|
|
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
|
|
# 40000 chars as input seems more than enough |
|
|
test $_count -gt 10 && break |
|
|
_count=`expr $_count + 1` |
|
|
if test $_count -gt $_max; then |
|
|
_max=$_count |
|
|
lt_cv_path_SED=$_sed |
|
|
fi |
|
|
done |
|
|
done |
|
|
rm -rf "$tmp" |
|
|
|
|
|
fi |
|
|
|
|
|
if test "X$SED" != "X"; then |
|
|
lt_cv_path_SED=$SED |
|
|
else |
|
|
SED=$lt_cv_path_SED |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
echo "${ECHO_T}$SED" >&6 |
|
4422 |
|
|
4423 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4424 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
4446 |
# 'pass_all' -- all dependencies passed with no checks. |
# 'pass_all' -- all dependencies passed with no checks. |
4447 |
# 'test_compile' -- check by making test program. |
# 'test_compile' -- check by making test program. |
4448 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
# 'file_magic [[regex]]' -- check by looking for files in library path |
4449 |
# which responds to the $file_magic_cmd with a given egrep regex. |
# which responds to the $file_magic_cmd with a given extended regex. |
4450 |
# If you have `file' or equivalent on your system and you're not sure |
# If you have `file' or equivalent on your system and you're not sure |
4451 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
4452 |
|
|
4465 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
4466 |
;; |
;; |
4467 |
|
|
4468 |
cygwin* | mingw* | pw32*) |
cygwin*) |
4469 |
|
# func_win32_libid is a shell function defined in ltmain.sh |
4470 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4471 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
4472 |
|
;; |
4473 |
|
|
4474 |
|
mingw* | pw32*) |
4475 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
4476 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4477 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4478 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
4479 |
;; |
;; |
4480 |
|
|
4481 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
4482 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
lt_cv_deplibs_check_method=pass_all |
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[012]) |
|
|
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
|
;; |
|
|
esac |
|
4483 |
;; |
;; |
4484 |
|
|
4485 |
freebsd*) |
freebsd* | kfreebsd*-gnu) |
4486 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4487 |
case $host_cpu in |
case $host_cpu in |
4488 |
i*86 ) |
i*86 ) |
4502 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4503 |
;; |
;; |
4504 |
|
|
4505 |
hpux10.20*|hpux11*) |
hpux10.20* | hpux11*) |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
4506 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4507 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
case "$host_cpu" in |
4508 |
;; |
ia64*) |
4509 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4510 |
irix5* | irix6* | nonstopux*) |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4511 |
case $host_os in |
;; |
4512 |
irix5* | nonstopux*) |
hppa*64*) |
4513 |
# this will be overridden with pass_all, but let us keep it just in case |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
4514 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4515 |
;; |
;; |
4516 |
*) |
*) |
4517 |
case $LD in |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4518 |
*-32|*"-32 ") libmagic=32-bit;; |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
*-n32|*"-n32 ") libmagic=N32;; |
|
|
*-64|*"-64 ") libmagic=64-bit;; |
|
|
*) libmagic=never-match;; |
|
|
esac |
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
4519 |
;; |
;; |
4520 |
esac |
esac |
4521 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
;; |
4522 |
|
|
4523 |
|
irix5* | irix6* | nonstopux*) |
4524 |
|
case $LD in |
4525 |
|
*-32|*"-32 ") libmagic=32-bit;; |
4526 |
|
*-n32|*"-n32 ") libmagic=N32;; |
4527 |
|
*-64|*"-64 ") libmagic=64-bit;; |
4528 |
|
*) libmagic=never-match;; |
4529 |
|
esac |
4530 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4531 |
;; |
;; |
4532 |
|
|
4533 |
# This must be Linux ELF. |
# This must be Linux ELF. |
4534 |
linux-gnu*) |
linux*) |
4535 |
case $host_cpu in |
case $host_cpu in |
4536 |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*) |
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) |
4537 |
lt_cv_deplibs_check_method=pass_all ;; |
lt_cv_deplibs_check_method=pass_all ;; |
4538 |
*) |
*) |
4539 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
# glibc up to 2.1.1 does not perform some relocations on ARM |
4540 |
|
# this will be overridden with pass_all, but let us keep it just in case |
4541 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
4542 |
esac |
esac |
4543 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
4544 |
|
lt_cv_deplibs_check_method=pass_all |
4545 |
;; |
;; |
4546 |
|
|
4547 |
netbsd*) |
netbsd*) |
4548 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4549 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4550 |
else |
else |
4551 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4552 |
fi |
fi |
4553 |
;; |
;; |
4554 |
|
|
4558 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4559 |
;; |
;; |
4560 |
|
|
4561 |
|
nto-qnx*) |
4562 |
|
lt_cv_deplibs_check_method=unknown |
4563 |
|
;; |
4564 |
|
|
4565 |
openbsd*) |
openbsd*) |
4566 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4567 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4573 |
;; |
;; |
4574 |
|
|
4575 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
|
4576 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4577 |
;; |
;; |
4578 |
|
|
4582 |
|
|
4583 |
solaris*) |
solaris*) |
4584 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
|
lt_cv_file_magic_test_file=/lib/libc.so |
|
|
;; |
|
|
|
|
|
sysv5uw[78]* | sysv4*uw2*) |
|
|
lt_cv_deplibs_check_method=pass_all |
|
4585 |
;; |
;; |
4586 |
|
|
4587 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4607 |
;; |
;; |
4608 |
esac |
esac |
4609 |
;; |
;; |
4610 |
|
|
4611 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
4612 |
|
lt_cv_deplibs_check_method=pass_all |
4613 |
|
;; |
4614 |
esac |
esac |
4615 |
|
|
4616 |
fi |
fi |
4618 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4619 |
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
4620 |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
4621 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4622 |
|
|
4623 |
|
|
4624 |
|
|
4625 |
|
|
4626 |
|
# If no C compiler was specified, use CC. |
4627 |
|
LTCC=${LTCC-"$CC"} |
4628 |
|
|
4629 |
|
# Allow CC to be a program name with arguments. |
4630 |
|
compiler=$CC |
4631 |
|
|
4632 |
|
|
4633 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4634 |
|
if test "${enable_libtool_lock+set}" = set; then |
4635 |
|
enableval="$enable_libtool_lock" |
4636 |
|
|
4637 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
fi; |
4638 |
echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
|
|
|
# These are sane defaults that work on at least a few old systems. |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
|
|
|
# Character class describing NM global symbol codes. |
|
|
symcode='[BCDEGRST]' |
|
|
|
|
|
# Regexp to match symbols that can be accessed directly from C. |
|
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
|
|
|
# Transform the above into a raw symbol and a C symbol. |
|
|
symxfrm='\1 \2\3 \3' |
|
|
|
|
|
# Transform an extracted symbol line into a proper C declaration |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address |
|
|
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
|
|
|
# Define system-specific variables. |
|
|
case $host_os in |
|
|
aix*) |
|
|
symcode='[BCDT]' |
|
|
;; |
|
|
cygwin* | mingw* | pw32*) |
|
|
symcode='[ABCDGISTW]' |
|
|
;; |
|
|
hpux*) # Its linker distinguishes data from code symbols |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
;; |
|
|
irix* | nonstopux*) |
|
|
symcode='[BCDEGRST]' |
|
|
;; |
|
|
osf*) |
|
|
symcode='[BCDEGQRST]' |
|
|
;; |
|
|
solaris* | sysv5*) |
|
|
symcode='[BDT]' |
|
|
;; |
|
|
sysv4) |
|
|
symcode='[DFNSTU]' |
|
|
;; |
|
|
esac |
|
|
|
|
|
# Handle CRLF in mingw tool chain |
|
|
opt_cr= |
|
|
case $host_os in |
|
|
mingw*) |
|
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
;; |
|
|
esac |
|
|
|
|
|
# If we're using GNU nm, then use its standard symbol codes. |
|
|
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
symcode='[ABCDGISTW]' |
|
|
fi |
|
|
|
|
|
# Try without a prefix undercore, then with it. |
|
|
for ac_symprfx in "" "_"; do |
|
|
|
|
|
# Write the raw and C identifiers. |
|
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
|
|
|
# Check to see that the pipe works correctly. |
|
|
pipe_works=no |
|
|
rm -f conftest* |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
#endif |
|
|
char nm_test_var; |
|
|
void nm_test_func(){} |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
EOF |
|
4639 |
|
|
4640 |
|
# Some flags need to be propagated to the compiler or linker for good |
4641 |
|
# libtool support. |
4642 |
|
case $host in |
4643 |
|
ia64-*-hpux*) |
4644 |
|
# Find out which ABI we are using. |
4645 |
|
echo 'int i;' > conftest.$ac_ext |
4646 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4647 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
4648 |
ac_status=$? |
ac_status=$? |
4649 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4650 |
(exit $ac_status); }; then |
(exit $ac_status); }; then |
4651 |
# Now try to grab the symbols. |
case `/usr/bin/file conftest.$ac_objext` in |
4652 |
nlist=conftest.nm |
*ELF-32*) |
4653 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
HPUX_IA64_MODE="32" |
4654 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
;; |
4655 |
|
*ELF-64*) |
4656 |
|
HPUX_IA64_MODE="64" |
4657 |
|
;; |
4658 |
|
esac |
4659 |
|
fi |
4660 |
|
rm -rf conftest* |
4661 |
|
;; |
4662 |
|
*-*-irix6*) |
4663 |
|
# Find out which ABI we are using. |
4664 |
|
echo '#line 4664 "configure"' > conftest.$ac_ext |
4665 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4666 |
|
(eval $ac_compile) 2>&5 |
4667 |
ac_status=$? |
ac_status=$? |
4668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4669 |
(exit $ac_status); } && test -s "$nlist"; then |
(exit $ac_status); }; then |
4670 |
# Try sorting and uniquifying the output. |
if test "$lt_cv_prog_gnu_ld" = yes; then |
4671 |
if sort "$nlist" | uniq > "$nlist"T; then |
case `/usr/bin/file conftest.$ac_objext` in |
4672 |
mv -f "$nlist"T "$nlist" |
*32-bit*) |
4673 |
else |
LD="${LD-ld} -melf32bsmip" |
4674 |
rm -f "$nlist"T |
;; |
4675 |
fi |
*N32*) |
4676 |
|
LD="${LD-ld} -melf32bmipn32" |
4677 |
|
;; |
4678 |
|
*64-bit*) |
4679 |
|
LD="${LD-ld} -melf64bmip" |
4680 |
|
;; |
4681 |
|
esac |
4682 |
|
else |
4683 |
|
case `/usr/bin/file conftest.$ac_objext` in |
4684 |
|
*32-bit*) |
4685 |
|
LD="${LD-ld} -32" |
4686 |
|
;; |
4687 |
|
*N32*) |
4688 |
|
LD="${LD-ld} -n32" |
4689 |
|
;; |
4690 |
|
*64-bit*) |
4691 |
|
LD="${LD-ld} -64" |
4692 |
|
;; |
4693 |
|
esac |
4694 |
|
fi |
4695 |
|
fi |
4696 |
|
rm -rf conftest* |
4697 |
|
;; |
4698 |
|
|
4699 |
# Make sure that we snagged all the symbols we need. |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4700 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
# Find out which ABI we are using. |
4701 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
echo 'int i;' > conftest.$ac_ext |
4702 |
cat <<EOF > conftest.$ac_ext |
lt_cv_cc_lib64_suffix=no |
4703 |
#ifdef __cplusplus |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4704 |
extern "C" { |
(eval $ac_compile) 2>&5 |
4705 |
#endif |
ac_status=$? |
4706 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4707 |
|
(exit $ac_status); }; then |
4708 |
|
case "`/usr/bin/file conftest.$ac_objext`" in |
4709 |
|
*32-bit*) |
4710 |
|
case $host in |
4711 |
|
x86_64-*linux*) |
4712 |
|
LD="${LD-ld} -m elf_i386" |
4713 |
|
;; |
4714 |
|
ppc64-*linux*|powerpc64-*linux*) |
4715 |
|
LD="${LD-ld} -m elf32ppclinux" |
4716 |
|
;; |
4717 |
|
s390x-*linux*) |
4718 |
|
LD="${LD-ld} -m elf_s390" |
4719 |
|
;; |
4720 |
|
sparc64-*linux*) |
4721 |
|
LD="${LD-ld} -m elf32_sparc" |
4722 |
|
;; |
4723 |
|
esac |
4724 |
|
;; |
4725 |
|
*64-bit*) |
4726 |
|
case $host in |
4727 |
|
x86_64-*linux*) |
4728 |
|
LD="${LD-ld} -m elf_x86_64" |
4729 |
|
lt_cv_cc_lib64_suffix=yes |
4730 |
|
;; |
4731 |
|
ppc*-*linux*|powerpc*-*linux*) |
4732 |
|
LD="${LD-ld} -m elf64ppc" |
4733 |
|
lt_cv_cc_lib64_suffix=yes |
4734 |
|
;; |
4735 |
|
s390*-*linux*) |
4736 |
|
LD="${LD-ld} -m elf64_s390" |
4737 |
|
lt_cv_cc_lib64_suffix=yes |
4738 |
|
;; |
4739 |
|
sparc*-*linux*) |
4740 |
|
LD="${LD-ld} -m elf64_sparc" |
4741 |
|
lt_cv_cc_lib64_suffix=yes |
4742 |
|
;; |
4743 |
|
esac |
4744 |
|
;; |
4745 |
|
esac |
4746 |
|
fi |
4747 |
|
rm -rf conftest* |
4748 |
|
;; |
4749 |
|
|
4750 |
EOF |
*-*-sco3.2v5*) |
4751 |
# Now generate the symbol file. |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4752 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
SAVE_CFLAGS="$CFLAGS" |
4753 |
|
CFLAGS="$CFLAGS -belf" |
4754 |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4755 |
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4756 |
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
4757 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4758 |
|
else |
4759 |
|
ac_ext=c |
4760 |
|
ac_cpp='$CPP $CPPFLAGS' |
4761 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4762 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4763 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4764 |
|
|
4765 |
cat <<EOF >> conftest.$ac_ext |
cat >conftest.$ac_ext <<_ACEOF |
4766 |
#if defined (__STDC__) && __STDC__ |
/* confdefs.h. */ |
4767 |
# define lt_ptr void * |
_ACEOF |
4768 |
#else |
cat confdefs.h >>conftest.$ac_ext |
4769 |
# define lt_ptr char * |
cat >>conftest.$ac_ext <<_ACEOF |
4770 |
# define const |
/* end confdefs.h. */ |
|
#endif |
|
4771 |
|
|
4772 |
/* The mapping between symbol names and symbols. */ |
int |
4773 |
const struct { |
main () |
|
const char *name; |
|
|
lt_ptr address; |
|
|
} |
|
|
lt_preloaded_symbols[] = |
|
4774 |
{ |
{ |
|
EOF |
|
|
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
|
|
cat <<\EOF >> conftest.$ac_ext |
|
|
{0, (lt_ptr) 0} |
|
|
}; |
|
4775 |
|
|
4776 |
#ifdef __cplusplus |
; |
4777 |
|
return 0; |
4778 |
} |
} |
4779 |
#endif |
_ACEOF |
4780 |
EOF |
rm -f conftest.$ac_objext conftest$ac_exeext |
4781 |
# Now try linking the two files. |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4782 |
mv conftest.$ac_objext conftstm.$ac_objext |
(eval $ac_link) 2>conftest.er1 |
|
save_LIBS="$LIBS" |
|
|
save_CFLAGS="$CFLAGS" |
|
|
LIBS="conftstm.$ac_objext" |
|
|
CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
4783 |
ac_status=$? |
ac_status=$? |
4784 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4785 |
|
rm -f conftest.er1 |
4786 |
|
cat conftest.err >&5 |
4787 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4788 |
(exit $ac_status); } && test -s conftest$ac_exeext; then |
(exit $ac_status); } && |
4789 |
pipe_works=yes |
{ ac_try='test -z "$ac_c_werror_flag" |
4790 |
fi |
|| test ! -s conftest.err' |
4791 |
LIBS="$save_LIBS" |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4792 |
CFLAGS="$save_CFLAGS" |
(eval $ac_try) 2>&5 |
4793 |
else |
ac_status=$? |
4794 |
echo "cannot find nm_test_func in $nlist" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4795 |
fi |
(exit $ac_status); }; } && |
4796 |
else |
{ ac_try='test -s conftest$ac_exeext' |
4797 |
echo "cannot find nm_test_var in $nlist" >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4798 |
fi |
(eval $ac_try) 2>&5 |
4799 |
else |
ac_status=$? |
4800 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4801 |
fi |
(exit $ac_status); }; }; then |
4802 |
else |
lt_cv_cc_needs_belf=yes |
4803 |
echo "$progname: failed program was:" >&5 |
else |
4804 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
4805 |
fi |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
rm -f conftest* conftst* |
|
|
|
|
|
# Do not use the global_symbol_pipe unless it works. |
|
|
if test "$pipe_works" = yes; then |
|
|
break |
|
|
else |
|
|
lt_cv_sys_global_symbol_pipe= |
|
|
fi |
|
|
done |
|
4806 |
|
|
4807 |
|
lt_cv_cc_needs_belf=no |
4808 |
fi |
fi |
4809 |
|
rm -f conftest.err conftest.$ac_objext \ |
4810 |
|
conftest$ac_exeext conftest.$ac_ext |
4811 |
|
ac_ext=c |
4812 |
|
ac_cpp='$CPP $CPPFLAGS' |
4813 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4814 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4815 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4816 |
|
|
|
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
global_symbol_to_cdecl= |
|
|
global_symbol_to_c_name_address= |
|
|
else |
|
|
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
|
|
fi |
|
|
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
|
|
then |
|
|
echo "$as_me:$LINENO: result: failed" >&5 |
|
|
echo "${ECHO_T}failed" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: ok" >&5 |
|
|
echo "${ECHO_T}ok" >&6 |
|
4817 |
fi |
fi |
4818 |
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4819 |
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4820 |
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4821 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4822 |
|
CFLAGS="$SAVE_CFLAGS" |
4823 |
|
fi |
4824 |
|
;; |
4825 |
|
|
4826 |
|
esac |
4827 |
|
|
4828 |
|
need_locks="$enable_libtool_lock" |
4829 |
|
|
4830 |
|
|
4831 |
ac_ext=c |
ac_ext=c |
4832 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
5063 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5064 |
|
|
5065 |
|
|
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
then ac_cv_prog_egrep='grep -E' |
|
|
else ac_cv_prog_egrep='egrep' |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
EGREP=$ac_cv_prog_egrep |
|
|
|
|
|
|
|
5066 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5067 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5068 |
if test "${ac_cv_header_stdc+set}" = set; then |
if test "${ac_cv_header_stdc+set}" = set; then |
5451 |
|
|
5452 |
done |
done |
5453 |
|
|
5454 |
|
ac_ext=cc |
5455 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5456 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5457 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5458 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5459 |
# Only perform the check for file, if the check method requires it |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5460 |
case $deplibs_check_method in |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5461 |
file_magic*) |
if test -z "$CXXCPP"; then |
5462 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
5463 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5464 |
else |
else |
5465 |
case $MAGIC_CMD in |
# Double quotes because CXXCPP needs to be expanded |
5466 |
/*) |
for CXXCPP in "$CXX -E" "/lib/cpp" |
5467 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
do |
5468 |
;; |
ac_preproc_ok=false |
5469 |
?:/*) |
for ac_cxx_preproc_warn_flag in '' yes |
5470 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
do |
5471 |
;; |
# Use a header file that comes with gcc, so configuring glibc |
5472 |
*) |
# with a fresh cross-compiler works. |
5473 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5474 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
# <limits.h> exists even on freestanding compilers. |
5475 |
ac_dummy="/usr/bin:$PATH" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5476 |
for ac_dir in $ac_dummy; do |
# not just through cpp. "Syntax error" is here to catch this case. |
5477 |
test -z "$ac_dir" && ac_dir=. |
cat >conftest.$ac_ext <<_ACEOF |
5478 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
/* confdefs.h. */ |
5479 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
_ACEOF |
5480 |
if test -n "$file_magic_test_file"; then |
cat confdefs.h >>conftest.$ac_ext |
5481 |
case $deplibs_check_method in |
cat >>conftest.$ac_ext <<_ACEOF |
5482 |
"file_magic "*) |
/* end confdefs.h. */ |
5483 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
#ifdef __STDC__ |
5484 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# include <limits.h> |
5485 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
#else |
5486 |
egrep "$file_magic_regex" > /dev/null; then |
# include <assert.h> |
5487 |
: |
#endif |
5488 |
else |
Syntax error |
5489 |
cat <<EOF 1>&2 |
_ACEOF |
5490 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5491 |
*** Warning: the command libtool uses to detect shared libraries, |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5492 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
ac_status=$? |
5493 |
*** The result is that libtool may fail to recognize shared libraries |
grep -v '^ *+' conftest.er1 >conftest.err |
5494 |
*** as such. This will affect the creation of libtool libraries that |
rm -f conftest.er1 |
5495 |
*** depend on shared libraries, but programs linked with such libtool |
cat conftest.err >&5 |
5496 |
*** libraries will work regardless of this problem. Nevertheless, you |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5497 |
*** may want to report the problem to your system manager and/or to |
(exit $ac_status); } >/dev/null; then |
5498 |
*** bug-libtool@gnu.org |
if test -s conftest.err; then |
5499 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5500 |
EOF |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5501 |
fi ;; |
else |
5502 |
esac |
ac_cpp_err= |
5503 |
fi |
fi |
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
|
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
if test -n "$MAGIC_CMD"; then |
|
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
5504 |
else |
else |
5505 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5506 |
fi |
fi |
5507 |
|
if test -z "$ac_cpp_err"; then |
5508 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
: |
|
if test -n "$ac_tool_prefix"; then |
|
|
echo "$as_me:$LINENO: checking for file" >&5 |
|
|
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5509 |
else |
else |
5510 |
case $MAGIC_CMD in |
echo "$as_me: failed program was:" >&5 |
5511 |
/*) |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
;; |
|
|
?:/*) |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
;; |
|
|
*) |
|
|
ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="/usr/bin:$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/file; then |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
if test -n "$file_magic_test_file"; then |
|
|
case $deplibs_check_method in |
|
|
"file_magic "*) |
|
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
egrep "$file_magic_regex" > /dev/null; then |
|
|
: |
|
|
else |
|
|
cat <<EOF 1>&2 |
|
|
|
|
|
*** Warning: the command libtool uses to detect shared libraries, |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
*** The result is that libtool may fail to recognize shared libraries |
|
|
*** as such. This will affect the creation of libtool libraries that |
|
|
*** depend on shared libraries, but programs linked with such libtool |
|
|
*** libraries will work regardless of this problem. Nevertheless, you |
|
|
*** may want to report the problem to your system manager and/or to |
|
|
*** bug-libtool@gnu.org |
|
|
|
|
|
EOF |
|
|
fi ;; |
|
|
esac |
|
|
fi |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
;; |
|
|
esac |
|
|
fi |
|
5512 |
|
|
5513 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# Broken: fails on valid input. |
5514 |
if test -n "$MAGIC_CMD"; then |
continue |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5515 |
fi |
fi |
5516 |
|
rm -f conftest.err conftest.$ac_ext |
5517 |
|
|
5518 |
|
# OK, works on sane cases. Now check whether non-existent headers |
5519 |
|
# can be detected and how. |
5520 |
|
cat >conftest.$ac_ext <<_ACEOF |
5521 |
|
/* confdefs.h. */ |
5522 |
|
_ACEOF |
5523 |
|
cat confdefs.h >>conftest.$ac_ext |
5524 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5525 |
|
/* end confdefs.h. */ |
5526 |
|
#include <ac_nonexistent.h> |
5527 |
|
_ACEOF |
5528 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5529 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5530 |
|
ac_status=$? |
5531 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5532 |
|
rm -f conftest.er1 |
5533 |
|
cat conftest.err >&5 |
5534 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5535 |
|
(exit $ac_status); } >/dev/null; then |
5536 |
|
if test -s conftest.err; then |
5537 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5538 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5539 |
else |
else |
5540 |
MAGIC_CMD=: |
ac_cpp_err= |
|
fi |
|
|
fi |
|
|
|
|
5541 |
fi |
fi |
|
;; |
|
|
esac |
|
|
|
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5542 |
else |
else |
5543 |
if test -n "$RANLIB"; then |
ac_cpp_err=yes |
5544 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
fi |
5545 |
|
if test -z "$ac_cpp_err"; then |
5546 |
|
# Broken: success on invalid input. |
5547 |
|
continue |
5548 |
else |
else |
5549 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5550 |
for as_dir in $PATH |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
5551 |
|
|
5552 |
|
# Passes both tests. |
5553 |
|
ac_preproc_ok=: |
5554 |
|
break |
5555 |
fi |
fi |
5556 |
fi |
rm -f conftest.err conftest.$ac_ext |
5557 |
RANLIB=$ac_cv_prog_RANLIB |
|
5558 |
if test -n "$RANLIB"; then |
done |
5559 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5560 |
echo "${ECHO_T}$RANLIB" >&6 |
rm -f conftest.err conftest.$ac_ext |
5561 |
else |
if $ac_preproc_ok; then |
5562 |
echo "$as_me:$LINENO: result: no" >&5 |
break |
|
echo "${ECHO_T}no" >&6 |
|
5563 |
fi |
fi |
5564 |
|
|
5565 |
|
done |
5566 |
|
ac_cv_prog_CXXCPP=$CXXCPP |
5567 |
|
|
5568 |
fi |
fi |
5569 |
if test -z "$ac_cv_prog_RANLIB"; then |
CXXCPP=$ac_cv_prog_CXXCPP |
|
ac_ct_RANLIB=$RANLIB |
|
|
# Extract the first word of "ranlib", so it can be a program name with args. |
|
|
set dummy ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
5570 |
else |
else |
5571 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_cv_prog_CXXCPP=$CXXCPP |
5572 |
for as_dir in $PATH |
fi |
5573 |
|
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5574 |
|
echo "${ECHO_T}$CXXCPP" >&6 |
5575 |
|
ac_preproc_ok=false |
5576 |
|
for ac_cxx_preproc_warn_flag in '' yes |
5577 |
do |
do |
5578 |
IFS=$as_save_IFS |
# Use a header file that comes with gcc, so configuring glibc |
5579 |
test -z "$as_dir" && as_dir=. |
# with a fresh cross-compiler works. |
5580 |
for ac_exec_ext in '' $ac_executable_extensions; do |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5581 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
# <limits.h> exists even on freestanding compilers. |
5582 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5583 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
# not just through cpp. "Syntax error" is here to catch this case. |
5584 |
break 2 |
cat >conftest.$ac_ext <<_ACEOF |
5585 |
|
/* confdefs.h. */ |
5586 |
|
_ACEOF |
5587 |
|
cat confdefs.h >>conftest.$ac_ext |
5588 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5589 |
|
/* end confdefs.h. */ |
5590 |
|
#ifdef __STDC__ |
5591 |
|
# include <limits.h> |
5592 |
|
#else |
5593 |
|
# include <assert.h> |
5594 |
|
#endif |
5595 |
|
Syntax error |
5596 |
|
_ACEOF |
5597 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5598 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5599 |
|
ac_status=$? |
5600 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5601 |
|
rm -f conftest.er1 |
5602 |
|
cat conftest.err >&5 |
5603 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5604 |
|
(exit $ac_status); } >/dev/null; then |
5605 |
|
if test -s conftest.err; then |
5606 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5607 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5608 |
|
else |
5609 |
|
ac_cpp_err= |
5610 |
fi |
fi |
|
done |
|
|
done |
|
|
|
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
fi |
|
|
fi |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
5611 |
else |
else |
5612 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5613 |
fi |
fi |
5614 |
|
if test -z "$ac_cpp_err"; then |
5615 |
RANLIB=$ac_ct_RANLIB |
: |
5616 |
else |
else |
5617 |
RANLIB="$ac_cv_prog_RANLIB" |
echo "$as_me: failed program was:" >&5 |
5618 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5619 |
|
|
5620 |
|
# Broken: fails on valid input. |
5621 |
|
continue |
5622 |
fi |
fi |
5623 |
|
rm -f conftest.err conftest.$ac_ext |
5624 |
|
|
5625 |
if test -n "$ac_tool_prefix"; then |
# OK, works on sane cases. Now check whether non-existent headers |
5626 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
# can be detected and how. |
5627 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
cat >conftest.$ac_ext <<_ACEOF |
5628 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
/* confdefs.h. */ |
5629 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
_ACEOF |
5630 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
cat confdefs.h >>conftest.$ac_ext |
5631 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
cat >>conftest.$ac_ext <<_ACEOF |
5632 |
else |
/* end confdefs.h. */ |
5633 |
if test -n "$STRIP"; then |
#include <ac_nonexistent.h> |
5634 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
_ACEOF |
5635 |
else |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5636 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5637 |
for as_dir in $PATH |
ac_status=$? |
5638 |
do |
grep -v '^ *+' conftest.er1 >conftest.err |
5639 |
IFS=$as_save_IFS |
rm -f conftest.er1 |
5640 |
test -z "$as_dir" && as_dir=. |
cat conftest.err >&5 |
5641 |
for ac_exec_ext in '' $ac_executable_extensions; do |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5642 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
(exit $ac_status); } >/dev/null; then |
5643 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
if test -s conftest.err; then |
5644 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5645 |
break 2 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5646 |
|
else |
5647 |
|
ac_cpp_err= |
5648 |
fi |
fi |
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
STRIP=$ac_cv_prog_STRIP |
|
|
if test -n "$STRIP"; then |
|
|
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
echo "${ECHO_T}$STRIP" >&6 |
|
5649 |
else |
else |
5650 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
5651 |
fi |
fi |
5652 |
if test -z "$ac_cv_prog_STRIP"; then |
if test -z "$ac_cpp_err"; then |
5653 |
ac_ct_STRIP=$STRIP |
# Broken: success on invalid input. |
5654 |
# Extract the first word of "strip", so it can be a program name with args. |
continue |
|
set dummy strip; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_STRIP"; then |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
5655 |
else |
else |
5656 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5657 |
for as_dir in $PATH |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_STRIP="strip" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
5658 |
|
|
5659 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
# Passes both tests. |
5660 |
fi |
ac_preproc_ok=: |
5661 |
fi |
break |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
if test -n "$ac_ct_STRIP"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5662 |
fi |
fi |
5663 |
|
rm -f conftest.err conftest.$ac_ext |
5664 |
|
|
5665 |
STRIP=$ac_ct_STRIP |
done |
5666 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5667 |
|
rm -f conftest.err conftest.$ac_ext |
5668 |
|
if $ac_preproc_ok; then |
5669 |
|
: |
5670 |
else |
else |
5671 |
STRIP="$ac_cv_prog_STRIP" |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5672 |
|
See \`config.log' for more details." >&5 |
5673 |
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5674 |
|
See \`config.log' for more details." >&2;} |
5675 |
|
{ (exit 1); exit 1; }; } |
5676 |
fi |
fi |
5677 |
|
|
5678 |
|
ac_ext=cc |
5679 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5680 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5681 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5682 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5683 |
|
|
|
enable_dlopen=no |
|
|
enable_win32_dll=no |
|
|
|
|
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
if test "${enable_libtool_lock+set}" = set; then |
|
|
enableval="$enable_libtool_lock" |
|
|
|
|
|
fi; |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
5684 |
|
|
|
# Some flags need to be propagated to the compiler or linker for good |
|
|
# libtool support. |
|
|
case $host in |
|
|
*-*-irix6*) |
|
|
# Find out which ABI we are using. |
|
|
echo '#line 5348 "configure"' > conftest.$ac_ext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
|
|
*32-bit*) |
|
|
LD="${LD-ld} -32" |
|
|
;; |
|
|
*N32*) |
|
|
LD="${LD-ld} -n32" |
|
|
;; |
|
|
*64-bit*) |
|
|
LD="${LD-ld} -64" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
5685 |
|
|
5686 |
*-*-linux*) |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
# Test if the compiler is 64bit |
|
|
echo 'int i;' > conftest.$ac_ext |
|
|
lt_cv_cc_64bit_output=no |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
|
|
*"ELF 64"*) |
|
|
lt_cv_cc_64bit_output=yes |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
5687 |
|
|
5688 |
*-*-sco3.2v5*) |
# find the maximum length of command line arguments |
5689 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5690 |
SAVE_CFLAGS="$CFLAGS" |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5691 |
CFLAGS="$CFLAGS -belf" |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
5692 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5693 |
else |
else |
5694 |
|
i=0 |
5695 |
|
teststring="ABCD" |
5696 |
|
|
5697 |
|
case $build_os in |
5698 |
|
msdosdjgpp*) |
5699 |
|
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5700 |
|
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5701 |
|
# during glob expansion). Even if it were fixed, the result of this |
5702 |
|
# check would be larger than it should be. |
5703 |
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5704 |
|
;; |
5705 |
|
|
5706 |
ac_ext=c |
gnu*) |
5707 |
ac_cpp='$CPP $CPPFLAGS' |
# Under GNU Hurd, this test is not required because there is |
5708 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
# no limit to the length of command line arguments. |
5709 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
# Libtool will interpret -1 as no limit whatsoever |
5710 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
lt_cv_sys_max_cmd_len=-1; |
5711 |
|
;; |
5712 |
|
|
5713 |
cat >conftest.$ac_ext <<_ACEOF |
cygwin* | mingw*) |
5714 |
/* confdefs.h. */ |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5715 |
_ACEOF |
# about 5 minutes as the teststring grows exponentially. |
5716 |
cat confdefs.h >>conftest.$ac_ext |
# Worse, since 9x/ME are not pre-emptively multitasking, |
5717 |
cat >>conftest.$ac_ext <<_ACEOF |
# you end up with a "frozen" computer, even though with patience |
5718 |
/* end confdefs.h. */ |
# the test eventually succeeds (with a max line length of 256k). |
5719 |
|
# Instead, let's just punt: use the minimum linelength reported by |
5720 |
|
# all of the supported platforms: 8192 (on NT/2K/XP). |
5721 |
|
lt_cv_sys_max_cmd_len=8192; |
5722 |
|
;; |
5723 |
|
|
5724 |
int |
amigaos*) |
5725 |
main () |
# On AmigaOS with pdksh, this test takes hours, literally. |
5726 |
{ |
# So we just punt and use a minimum line length of 8192. |
5727 |
|
lt_cv_sys_max_cmd_len=8192; |
5728 |
|
;; |
5729 |
|
|
5730 |
; |
*) |
5731 |
return 0; |
# If test is not a shell built-in, we'll probably end up computing a |
5732 |
} |
# maximum length that is only half of the actual maximum length, but |
5733 |
_ACEOF |
# we can't tell. |
5734 |
rm -f conftest.$ac_objext conftest$ac_exeext |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5735 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
= "XX$teststring") >/dev/null 2>&1 && |
5736 |
(eval $ac_link) 2>conftest.er1 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
5737 |
ac_status=$? |
lt_cv_sys_max_cmd_len=$new_result && |
5738 |
grep -v '^ *+' conftest.er1 >conftest.err |
test $i != 17 # 1/2 MB should be enough |
5739 |
rm -f conftest.er1 |
do |
5740 |
cat conftest.err >&5 |
i=`expr $i + 1` |
5741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
teststring=$teststring$teststring |
5742 |
(exit $ac_status); } && |
done |
5743 |
{ ac_try='test -z "$ac_c_werror_flag" |
teststring= |
5744 |
|| test ! -s conftest.err' |
# Add a significant safety factor because C++ compilers can tack on massive |
5745 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
# amounts of additional arguments before passing them to the linker. |
5746 |
(eval $ac_try) 2>&5 |
# It appears as though 1/2 is a usable value. |
5747 |
ac_status=$? |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5748 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
;; |
5749 |
(exit $ac_status); }; } && |
esac |
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
lt_cv_cc_needs_belf=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5750 |
|
|
|
lt_cv_cc_needs_belf=no |
|
5751 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5752 |
|
|
5753 |
|
if test -n $lt_cv_sys_max_cmd_len ; then |
5754 |
|
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5755 |
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5756 |
|
else |
5757 |
|
echo "$as_me:$LINENO: result: none" >&5 |
5758 |
|
echo "${ECHO_T}none" >&6 |
5759 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
CFLAGS="$SAVE_CFLAGS" |
|
|
fi |
|
|
;; |
|
5760 |
|
|
5761 |
|
|
|
esac |
|
5762 |
|
|
|
# Sed substitution that helps us do robust quoting. It backslashifies |
|
|
# metacharacters that are still active within double-quoted strings. |
|
|
Xsed='sed -e s/^X//' |
|
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
5763 |
|
|
5764 |
# Same as above, but do not quote variable references. |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
5765 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5766 |
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5767 |
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5768 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5769 |
|
else |
5770 |
|
|
5771 |
# Sed substitution to delay expansion of an escaped shell variable in a |
# These are sane defaults that work on at least a few old systems. |
5772 |
# double_quote_subst'ed string. |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
5773 |
|
|
5774 |
# Constants: |
# Character class describing NM global symbol codes. |
5775 |
rm="rm -f" |
symcode='[BCDEGRST]' |
5776 |
|
|
5777 |
# Global variables: |
# Regexp to match symbols that can be accessed directly from C. |
5778 |
default_ofile=libtool |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
can_build_shared=yes |
|
5779 |
|
|
5780 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
# Transform the above into a raw symbol and a C symbol. |
5781 |
# which needs '.lib'). |
symxfrm='\1 \2\3 \3' |
|
libext=a |
|
|
ltmain="$ac_aux_dir/ltmain.sh" |
|
|
ofile="$default_ofile" |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
need_locks="$enable_libtool_lock" |
|
|
|
|
|
old_CC="$CC" |
|
|
old_CFLAGS="$CFLAGS" |
|
5782 |
|
|
5783 |
# Set sane defaults for various variables |
# Transform an extracted symbol line into a proper C declaration |
5784 |
test -z "$AR" && AR=ar |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
test -z "$AS" && AS=as |
|
|
test -z "$CC" && CC=cc |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
test -z "$LD" && LD=ld |
|
|
test -z "$LN_S" && LN_S="ln -s" |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
test -z "$NM" && NM=nm |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
test -z "$RANLIB" && RANLIB=: |
|
|
test -z "$STRIP" && STRIP=: |
|
|
test -z "$ac_objext" && ac_objext=o |
|
5785 |
|
|
5786 |
if test x"$host" != x"$build"; then |
# Transform an extracted symbol line into symbol name and symbol address |
5787 |
ac_tool_prefix=${host_alias}- |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
else |
|
|
ac_tool_prefix= |
|
|
fi |
|
5788 |
|
|
5789 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
# Define system-specific variables. |
5790 |
case $host_os in |
case $host_os in |
5791 |
linux-gnu*) ;; |
aix*) |
5792 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
symcode='[BCDT]' |
5793 |
|
;; |
5794 |
|
cygwin* | mingw* | pw32*) |
5795 |
|
symcode='[ABCDGISTW]' |
5796 |
|
;; |
5797 |
|
hpux*) # Its linker distinguishes data from code symbols |
5798 |
|
if test "$host_cpu" = ia64; then |
5799 |
|
symcode='[ABCDEGRST]' |
5800 |
|
fi |
5801 |
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5802 |
|
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
5803 |
|
;; |
5804 |
|
irix* | nonstopux*) |
5805 |
|
symcode='[BCDEGRST]' |
5806 |
|
;; |
5807 |
|
osf*) |
5808 |
|
symcode='[BCDEGQRST]' |
5809 |
|
;; |
5810 |
|
solaris* | sysv5*) |
5811 |
|
symcode='[BDRT]' |
5812 |
|
;; |
5813 |
|
sysv4) |
5814 |
|
symcode='[DFNSTU]' |
5815 |
|
;; |
5816 |
esac |
esac |
5817 |
|
|
5818 |
case $host_os in |
# Handle CRLF in mingw tool chain |
5819 |
aix3*) |
opt_cr= |
5820 |
# AIX sometimes has problems with the GCC collect2 program. For some |
case $build_os in |
5821 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
mingw*) |
5822 |
# vanish in a puff of smoke. |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
COLLECT_NAMES= |
|
|
export COLLECT_NAMES |
|
|
fi |
|
5823 |
;; |
;; |
5824 |
esac |
esac |
5825 |
|
|
5826 |
# Determine commands to create old-style static archives. |
# If we're using GNU nm, then use its standard symbol codes. |
5827 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
case `$NM -V 2>&1` in |
5828 |
old_postinstall_cmds='chmod 644 $oldlib' |
*GNU* | *'with BFD'*) |
5829 |
old_postuninstall_cmds= |
symcode='[ABCDGIRSTW]' ;; |
5830 |
|
esac |
5831 |
|
|
5832 |
|
# Try without a prefix undercore, then with it. |
5833 |
|
for ac_symprfx in "" "_"; do |
5834 |
|
|
5835 |
|
# Write the raw and C identifiers. |
5836 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
5837 |
|
|
5838 |
|
# Check to see that the pipe works correctly. |
5839 |
|
pipe_works=no |
5840 |
|
|
5841 |
|
rm -f conftest* |
5842 |
|
cat > conftest.$ac_ext <<EOF |
5843 |
|
#ifdef __cplusplus |
5844 |
|
extern "C" { |
5845 |
|
#endif |
5846 |
|
char nm_test_var; |
5847 |
|
void nm_test_func(){} |
5848 |
|
#ifdef __cplusplus |
5849 |
|
} |
5850 |
|
#endif |
5851 |
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
5852 |
|
EOF |
5853 |
|
|
5854 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5855 |
|
(eval $ac_compile) 2>&5 |
5856 |
|
ac_status=$? |
5857 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5858 |
|
(exit $ac_status); }; then |
5859 |
|
# Now try to grab the symbols. |
5860 |
|
nlist=conftest.nm |
5861 |
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5862 |
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5863 |
|
ac_status=$? |
5864 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5865 |
|
(exit $ac_status); } && test -s "$nlist"; then |
5866 |
|
# Try sorting and uniquifying the output. |
5867 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
5868 |
|
mv -f "$nlist"T "$nlist" |
5869 |
|
else |
5870 |
|
rm -f "$nlist"T |
5871 |
|
fi |
5872 |
|
|
5873 |
|
# Make sure that we snagged all the symbols we need. |
5874 |
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5875 |
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5876 |
|
cat <<EOF > conftest.$ac_ext |
5877 |
|
#ifdef __cplusplus |
5878 |
|
extern "C" { |
5879 |
|
#endif |
5880 |
|
|
5881 |
|
EOF |
5882 |
|
# Now generate the symbol file. |
5883 |
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5884 |
|
|
5885 |
|
cat <<EOF >> conftest.$ac_ext |
5886 |
|
#if defined (__STDC__) && __STDC__ |
5887 |
|
# define lt_ptr_t void * |
5888 |
|
#else |
5889 |
|
# define lt_ptr_t char * |
5890 |
|
# define const |
5891 |
|
#endif |
5892 |
|
|
5893 |
|
/* The mapping between symbol names and symbols. */ |
5894 |
|
const struct { |
5895 |
|
const char *name; |
5896 |
|
lt_ptr_t address; |
5897 |
|
} |
5898 |
|
lt_preloaded_symbols[] = |
5899 |
|
{ |
5900 |
|
EOF |
5901 |
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5902 |
|
cat <<\EOF >> conftest.$ac_ext |
5903 |
|
{0, (lt_ptr_t) 0} |
5904 |
|
}; |
5905 |
|
|
5906 |
|
#ifdef __cplusplus |
5907 |
|
} |
5908 |
|
#endif |
5909 |
|
EOF |
5910 |
|
# Now try linking the two files. |
5911 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
5912 |
|
lt_save_LIBS="$LIBS" |
5913 |
|
lt_save_CFLAGS="$CFLAGS" |
5914 |
|
LIBS="conftstm.$ac_objext" |
5915 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5916 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5917 |
|
(eval $ac_link) 2>&5 |
5918 |
|
ac_status=$? |
5919 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5920 |
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
5921 |
|
pipe_works=yes |
5922 |
|
fi |
5923 |
|
LIBS="$lt_save_LIBS" |
5924 |
|
CFLAGS="$lt_save_CFLAGS" |
5925 |
|
else |
5926 |
|
echo "cannot find nm_test_func in $nlist" >&5 |
5927 |
|
fi |
5928 |
|
else |
5929 |
|
echo "cannot find nm_test_var in $nlist" >&5 |
5930 |
|
fi |
5931 |
|
else |
5932 |
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5933 |
|
fi |
5934 |
|
else |
5935 |
|
echo "$progname: failed program was:" >&5 |
5936 |
|
cat conftest.$ac_ext >&5 |
5937 |
|
fi |
5938 |
|
rm -f conftest* conftst* |
5939 |
|
|
5940 |
|
# Do not use the global_symbol_pipe unless it works. |
5941 |
|
if test "$pipe_works" = yes; then |
5942 |
|
break |
5943 |
|
else |
5944 |
|
lt_cv_sys_global_symbol_pipe= |
5945 |
|
fi |
5946 |
|
done |
5947 |
|
|
|
if test -n "$RANLIB"; then |
|
|
case $host_os in |
|
|
openbsd*) |
|
|
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
;; |
|
|
*) |
|
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
;; |
|
|
esac |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
5948 |
fi |
fi |
5949 |
|
|
5950 |
# Allow CC to be a program name with arguments. |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5951 |
set dummy $CC |
lt_cv_sys_global_symbol_to_cdecl= |
5952 |
compiler="$2" |
fi |
5953 |
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5954 |
|
echo "$as_me:$LINENO: result: failed" >&5 |
5955 |
|
echo "${ECHO_T}failed" >&6 |
5956 |
|
else |
5957 |
|
echo "$as_me:$LINENO: result: ok" >&5 |
5958 |
|
echo "${ECHO_T}ok" >&6 |
5959 |
|
fi |
5960 |
|
|
5961 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
5962 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5963 |
rm -f .libs 2>/dev/null |
if test "${lt_cv_objdir+set}" = set; then |
5964 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5965 |
|
else |
5966 |
|
rm -f .libs 2>/dev/null |
5967 |
mkdir .libs 2>/dev/null |
mkdir .libs 2>/dev/null |
5968 |
if test -d .libs; then |
if test -d .libs; then |
5969 |
objdir=.libs |
lt_cv_objdir=.libs |
5970 |
else |
else |
5971 |
# MS-DOS does not allow filenames that begin with a dot. |
# MS-DOS does not allow filenames that begin with a dot. |
5972 |
objdir=_libs |
lt_cv_objdir=_libs |
5973 |
fi |
fi |
5974 |
rmdir .libs 2>/dev/null |
rmdir .libs 2>/dev/null |
5975 |
echo "$as_me:$LINENO: result: $objdir" >&5 |
fi |
5976 |
echo "${ECHO_T}$objdir" >&6 |
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5977 |
|
echo "${ECHO_T}$lt_cv_objdir" >&6 |
5978 |
|
objdir=$lt_cv_objdir |
5979 |
|
|
5980 |
|
|
5981 |
|
|
|
# Check whether --with-pic or --without-pic was given. |
|
|
if test "${with_pic+set}" = set; then |
|
|
withval="$with_pic" |
|
|
pic_mode="$withval" |
|
|
else |
|
|
pic_mode=default |
|
|
fi; |
|
|
test -z "$pic_mode" && pic_mode=default |
|
5982 |
|
|
|
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
# in isolation, and that seeing it set (from the cache) indicates that |
|
|
# the associated values are set (in the cache) correctly too. |
|
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
lt_cv_prog_cc_pic= |
|
|
lt_cv_prog_cc_shlib= |
|
|
lt_cv_prog_cc_wl= |
|
|
lt_cv_prog_cc_static= |
|
|
lt_cv_prog_cc_no_builtin= |
|
|
lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
5983 |
|
|
5984 |
if test "$GCC" = yes; then |
case $host_os in |
5985 |
lt_cv_prog_cc_wl='-Wl,' |
aix3*) |
5986 |
lt_cv_prog_cc_static='-static' |
# AIX sometimes has problems with the GCC collect2 program. For some |
5987 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
5988 |
|
# vanish in a puff of smoke. |
5989 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
5990 |
|
COLLECT_NAMES= |
5991 |
|
export COLLECT_NAMES |
5992 |
|
fi |
5993 |
|
;; |
5994 |
|
esac |
5995 |
|
|
5996 |
case $host_os in |
# Sed substitution that helps us do robust quoting. It backslashifies |
5997 |
aix*) |
# metacharacters that are still active within double-quoted strings. |
5998 |
# Below there is a dirty hack to force normal static linking with -ldl |
Xsed='sed -e s/^X//' |
5999 |
# The problem is because libdl dynamically linked with both libc and |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
# libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
# list by gcc. This cause undefined symbols with -static flags. |
|
|
# This hack allows C programs to be linked with "-static -ldl", but |
|
|
# not sure about C++ programs. |
|
|
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
;; |
|
|
amigaos*) |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but |
|
|
# adding the `-m68020' flag to GCC prevents building anything better, |
|
|
# like `-m68040'. |
|
|
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
;; |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
# PIC is the default for these OSes. |
|
|
;; |
|
|
darwin* | rhapsody*) |
|
|
# PIC is the default on this platform |
|
|
# Common symbols not allowed in MH_DYLIB files |
|
|
lt_cv_prog_cc_pic='-fno-common' |
|
|
;; |
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
# This hack is so that the source file can tell whether it is being |
|
|
# built for inclusion in a dll (and should export symbols for example). |
|
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
;; |
|
|
sysv4*MP*) |
|
|
if test -d /usr/nec; then |
|
|
lt_cv_prog_cc_pic=-Kconform_pic |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
lt_cv_prog_cc_pic='-fPIC' |
|
|
;; |
|
|
esac |
|
|
else |
|
|
# PORTME Check for PIC flags for the system compiler. |
|
|
case $host_os in |
|
|
aix3* | aix4* | aix5*) |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
# All AIX code is PIC. |
|
|
if test "$host_cpu" = ia64; then |
|
|
# AIX 5 now supports IA64 processor |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
else |
|
|
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
fi |
|
|
;; |
|
6000 |
|
|
6001 |
hpux9* | hpux10* | hpux11*) |
# Same as above, but do not quote variable references. |
6002 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
lt_cv_prog_cc_pic='+Z' |
|
|
;; |
|
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static='-non_shared' |
|
|
# PIC (with -KPIC) is the default. |
|
|
;; |
|
|
|
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
# This hack is so that the source file can tell whether it is being |
|
|
# built for inclusion in a dll (and should export symbols for example). |
|
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
;; |
|
|
|
|
|
newsos6) |
|
|
lt_cv_prog_cc_pic='-KPIC' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
;; |
|
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
# All OSF/1 code is PIC. |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static='-non_shared' |
|
|
;; |
|
|
|
|
|
sco3.2v5*) |
|
|
lt_cv_prog_cc_pic='-Kpic' |
|
|
lt_cv_prog_cc_static='-dn' |
|
|
lt_cv_prog_cc_shlib='-belf' |
|
|
;; |
|
6003 |
|
|
6004 |
solaris*) |
# Sed substitution to delay expansion of an escaped shell variable in a |
6005 |
lt_cv_prog_cc_pic='-KPIC' |
# double_quote_subst'ed string. |
6006 |
lt_cv_prog_cc_static='-Bstatic' |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
;; |
|
6007 |
|
|
6008 |
sunos4*) |
# Sed substitution to avoid accidental globbing in evaled expressions |
6009 |
lt_cv_prog_cc_pic='-PIC' |
no_glob_subst='s/\*/\\\*/g' |
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
;; |
|
6010 |
|
|
6011 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
# Constants: |
6012 |
lt_cv_prog_cc_pic='-KPIC' |
rm="rm -f" |
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
;; |
|
6013 |
|
|
6014 |
uts4*) |
# Global variables: |
6015 |
lt_cv_prog_cc_pic='-pic' |
default_ofile=libtool |
6016 |
lt_cv_prog_cc_static='-Bstatic' |
can_build_shared=yes |
|
;; |
|
6017 |
|
|
6018 |
sysv4*MP*) |
# All known linkers require a `.a' archive for static linking (except M$VC, |
6019 |
if test -d /usr/nec ;then |
# which needs '.lib'). |
6020 |
lt_cv_prog_cc_pic='-Kconform_pic' |
libext=a |
6021 |
lt_cv_prog_cc_static='-Bstatic' |
ltmain="$ac_aux_dir/ltmain.sh" |
6022 |
fi |
ofile="$default_ofile" |
6023 |
;; |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
6024 |
|
|
6025 |
*) |
if test -n "$ac_tool_prefix"; then |
6026 |
lt_cv_prog_cc_can_build_shared=no |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6027 |
;; |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6028 |
esac |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6029 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6030 |
|
if test "${ac_cv_prog_AR+set}" = set; then |
6031 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6032 |
|
else |
6033 |
|
if test -n "$AR"; then |
6034 |
|
ac_cv_prog_AR="$AR" # Let the user override the test. |
6035 |
|
else |
6036 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6037 |
|
for as_dir in $PATH |
6038 |
|
do |
6039 |
|
IFS=$as_save_IFS |
6040 |
|
test -z "$as_dir" && as_dir=. |
6041 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6042 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6043 |
|
ac_cv_prog_AR="${ac_tool_prefix}ar" |
6044 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6045 |
|
break 2 |
6046 |
fi |
fi |
6047 |
|
done |
6048 |
|
done |
6049 |
|
|
6050 |
fi |
fi |
6051 |
|
fi |
6052 |
if test -z "$lt_cv_prog_cc_pic"; then |
AR=$ac_cv_prog_AR |
6053 |
echo "$as_me:$LINENO: result: none" >&5 |
if test -n "$AR"; then |
6054 |
echo "${ECHO_T}none" >&6 |
echo "$as_me:$LINENO: result: $AR" >&5 |
6055 |
|
echo "${ECHO_T}$AR" >&6 |
6056 |
else |
else |
6057 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
6058 |
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
echo "${ECHO_T}no" >&6 |
6059 |
|
fi |
6060 |
|
|
6061 |
# Check to make sure the pic_flag actually works. |
fi |
6062 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
if test -z "$ac_cv_prog_AR"; then |
6063 |
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
ac_ct_AR=$AR |
6064 |
if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
# Extract the first word of "ar", so it can be a program name with args. |
6065 |
|
set dummy ar; ac_word=$2 |
6066 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6067 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6068 |
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6069 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6070 |
else |
else |
6071 |
save_CFLAGS="$CFLAGS" |
if test -n "$ac_ct_AR"; then |
6072 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
case $host_os in |
|
|
hpux9* | hpux10* | hpux11*) |
|
|
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
# they create non-PIC objects. So, if there were any warnings, we |
|
|
# assume that PIC is not supported. |
|
|
if test -s conftest.err; then |
|
|
lt_cv_prog_cc_pic_works=no |
|
|
else |
|
|
lt_cv_prog_cc_pic_works=yes |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
lt_cv_prog_cc_pic_works=yes |
|
|
;; |
|
|
esac |
|
|
|
|
6073 |
else |
else |
6074 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6075 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6076 |
|
do |
6077 |
lt_cv_prog_cc_pic_works=no |
IFS=$as_save_IFS |
6078 |
|
test -z "$as_dir" && as_dir=. |
6079 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6080 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6081 |
|
ac_cv_prog_ac_ct_AR="ar" |
6082 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6083 |
|
break 2 |
6084 |
|
fi |
6085 |
|
done |
6086 |
|
done |
6087 |
|
|
6088 |
|
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6089 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
CFLAGS="$save_CFLAGS" |
|
|
|
|
6090 |
fi |
fi |
6091 |
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6092 |
|
if test -n "$ac_ct_AR"; then |
6093 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6094 |
lt_cv_prog_cc_pic= |
echo "${ECHO_T}$ac_ct_AR" >&6 |
6095 |
lt_cv_prog_cc_can_build_shared=no |
else |
6096 |
else |
echo "$as_me:$LINENO: result: no" >&5 |
6097 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
echo "${ECHO_T}no" >&6 |
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
6098 |
fi |
fi |
6099 |
|
|
6100 |
# Check for any special shared library compilation flags. |
AR=$ac_ct_AR |
6101 |
if test -n "$lt_cv_prog_cc_shlib"; then |
else |
6102 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
AR="$ac_cv_prog_AR" |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
else |
|
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
lt_cv_prog_cc_can_build_shared=no |
|
|
fi |
|
6103 |
fi |
fi |
6104 |
|
|
6105 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
if test -n "$ac_tool_prefix"; then |
6106 |
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6107 |
if test "${lt_cv_prog_cc_static_works+set}" = set; then |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6108 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6109 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6110 |
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
6111 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6112 |
else |
else |
6113 |
lt_cv_prog_cc_static_works=no |
if test -n "$RANLIB"; then |
6114 |
save_LDFLAGS="$LDFLAGS" |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
lt_cv_prog_cc_static_works=yes |
|
6115 |
else |
else |
6116 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6117 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6118 |
|
do |
6119 |
|
IFS=$as_save_IFS |
6120 |
|
test -z "$as_dir" && as_dir=. |
6121 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6122 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6123 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6124 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6125 |
|
break 2 |
6126 |
|
fi |
6127 |
|
done |
6128 |
|
done |
6129 |
|
|
6130 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LDFLAGS="$save_LDFLAGS" |
|
|
|
|
6131 |
fi |
fi |
6132 |
|
RANLIB=$ac_cv_prog_RANLIB |
6133 |
|
if test -n "$RANLIB"; then |
6134 |
# Belt *and* braces to stop my trousers falling down: |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6135 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
echo "${ECHO_T}$RANLIB" >&6 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
|
|
|
pic_flag="$lt_cv_prog_cc_pic" |
|
|
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
wl="$lt_cv_prog_cc_wl" |
|
|
link_static_flag="$lt_cv_prog_cc_static" |
|
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
|
|
|
|
|
|
# Check to see if options -o and -c are simultaneously supported by compiler |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
if test "${lt_cv_compiler_c_o+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6136 |
else |
else |
6137 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6138 |
$rm -r conftest 2>/dev/null |
echo "${ECHO_T}no" >&6 |
|
mkdir conftest |
|
|
cd conftest |
|
|
echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
mkdir out |
|
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
# that will create temporary files in the current directory regardless of |
|
|
# the output directory. Thus, making CWD read-only will cause this test |
|
|
# to fail, enabling locking or at least warning the user not to do parallel |
|
|
# builds. |
|
|
chmod -w . |
|
|
save_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
compiler_c_o=no |
|
|
if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s out/conftest.err; then |
|
|
lt_cv_compiler_c_o=no |
|
|
else |
|
|
lt_cv_compiler_c_o=yes |
|
|
fi |
|
|
else |
|
|
# Append any errors to the config.log. |
|
|
cat out/conftest.err 1>&5 |
|
|
lt_cv_compiler_c_o=no |
|
|
fi |
|
|
CFLAGS="$save_CFLAGS" |
|
|
chmod u+w . |
|
|
$rm conftest* out/* |
|
|
rmdir out |
|
|
cd .. |
|
|
rmdir conftest |
|
|
$rm -r conftest 2>/dev/null |
|
|
|
|
6139 |
fi |
fi |
6140 |
|
|
6141 |
compiler_c_o=$lt_cv_compiler_c_o |
fi |
6142 |
echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
if test -z "$ac_cv_prog_RANLIB"; then |
6143 |
echo "${ECHO_T}$compiler_c_o" >&6 |
ac_ct_RANLIB=$RANLIB |
6144 |
|
# Extract the first word of "ranlib", so it can be a program name with args. |
6145 |
if test x"$compiler_c_o" = x"yes"; then |
set dummy ranlib; ac_word=$2 |
6146 |
# Check to see if we can write to a .lo |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6147 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6148 |
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
if test "${lt_cv_compiler_o_lo+set}" = set; then |
|
6149 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6150 |
else |
else |
6151 |
|
if test -n "$ac_ct_RANLIB"; then |
6152 |
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6153 |
|
else |
6154 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6155 |
|
for as_dir in $PATH |
6156 |
|
do |
6157 |
|
IFS=$as_save_IFS |
6158 |
|
test -z "$as_dir" && as_dir=. |
6159 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6160 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6161 |
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6162 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6163 |
|
break 2 |
6164 |
|
fi |
6165 |
|
done |
6166 |
|
done |
6167 |
|
|
6168 |
lt_cv_compiler_o_lo=no |
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
save_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
save_objext="$ac_objext" |
|
|
ac_objext=lo |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
int some_variable = 0; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s conftest.err; then |
|
|
lt_cv_compiler_o_lo=no |
|
|
else |
|
|
lt_cv_compiler_o_lo=yes |
|
|
fi |
|
|
|
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
6169 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
ac_objext="$save_objext" |
|
|
CFLAGS="$save_CFLAGS" |
|
|
|
|
6170 |
fi |
fi |
6171 |
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6172 |
compiler_o_lo=$lt_cv_compiler_o_lo |
if test -n "$ac_ct_RANLIB"; then |
6173 |
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6174 |
echo "${ECHO_T}$compiler_o_lo" >&6 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6175 |
else |
else |
6176 |
compiler_o_lo=no |
echo "$as_me:$LINENO: result: no" >&5 |
6177 |
|
echo "${ECHO_T}no" >&6 |
6178 |
fi |
fi |
6179 |
|
|
6180 |
# Check to see if we can do hard links to lock some files if needed |
RANLIB=$ac_ct_RANLIB |
|
hard_links="nottested" |
|
|
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
# do not overwrite the value of need_locks provided by the user |
|
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
hard_links=yes |
|
|
$rm conftest* |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
touch conftest.a |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
echo "${ECHO_T}$hard_links" >&6 |
|
|
if test "$hard_links" = no; then |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
need_locks=warn |
|
|
fi |
|
6181 |
else |
else |
6182 |
need_locks=no |
RANLIB="$ac_cv_prog_RANLIB" |
6183 |
fi |
fi |
6184 |
|
|
6185 |
if test "$GCC" = yes; then |
if test -n "$ac_tool_prefix"; then |
6186 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6187 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6188 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6189 |
echo "int some_variable = 0;" > conftest.$ac_ext |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6190 |
save_CFLAGS="$CFLAGS" |
if test "${ac_cv_prog_STRIP+set}" = set; then |
6191 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6192 |
compiler_rtti_exceptions=no |
else |
6193 |
cat >conftest.$ac_ext <<_ACEOF |
if test -n "$STRIP"; then |
6194 |
/* confdefs.h. */ |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6195 |
_ACEOF |
else |
6196 |
cat confdefs.h >>conftest.$ac_ext |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6197 |
cat >>conftest.$ac_ext <<_ACEOF |
for as_dir in $PATH |
6198 |
/* end confdefs.h. */ |
do |
6199 |
|
IFS=$as_save_IFS |
6200 |
|
test -z "$as_dir" && as_dir=. |
6201 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6202 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6203 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6204 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6205 |
|
break 2 |
6206 |
|
fi |
6207 |
|
done |
6208 |
|
done |
6209 |
|
|
6210 |
int |
fi |
6211 |
main () |
fi |
6212 |
{ |
STRIP=$ac_cv_prog_STRIP |
6213 |
int some_variable = 0; |
if test -n "$STRIP"; then |
6214 |
; |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
6215 |
return 0; |
echo "${ECHO_T}$STRIP" >&6 |
6216 |
} |
else |
6217 |
_ACEOF |
echo "$as_me:$LINENO: result: no" >&5 |
6218 |
rm -f conftest.$ac_objext |
echo "${ECHO_T}no" >&6 |
6219 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
fi |
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s conftest.err; then |
|
|
compiler_rtti_exceptions=no |
|
|
else |
|
|
compiler_rtti_exceptions=yes |
|
|
fi |
|
6220 |
|
|
6221 |
|
fi |
6222 |
|
if test -z "$ac_cv_prog_STRIP"; then |
6223 |
|
ac_ct_STRIP=$STRIP |
6224 |
|
# Extract the first word of "strip", so it can be a program name with args. |
6225 |
|
set dummy strip; ac_word=$2 |
6226 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6227 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6228 |
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6229 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6230 |
else |
else |
6231 |
echo "$as_me: failed program was:" >&5 |
if test -n "$ac_ct_STRIP"; then |
6232 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6233 |
|
else |
6234 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6235 |
|
for as_dir in $PATH |
6236 |
|
do |
6237 |
|
IFS=$as_save_IFS |
6238 |
|
test -z "$as_dir" && as_dir=. |
6239 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6240 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6241 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
6242 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6243 |
|
break 2 |
6244 |
|
fi |
6245 |
|
done |
6246 |
|
done |
6247 |
|
|
6248 |
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6249 |
|
fi |
6250 |
|
fi |
6251 |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6252 |
|
if test -n "$ac_ct_STRIP"; then |
6253 |
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6254 |
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6255 |
|
else |
6256 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6257 |
|
echo "${ECHO_T}no" >&6 |
6258 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
CFLAGS="$save_CFLAGS" |
|
|
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
6259 |
|
|
6260 |
if test "$compiler_rtti_exceptions" = "yes"; then |
STRIP=$ac_ct_STRIP |
6261 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
else |
6262 |
else |
STRIP="$ac_cv_prog_STRIP" |
|
no_builtin_flag=' -fno-builtin' |
|
|
fi |
|
6263 |
fi |
fi |
6264 |
|
|
|
# See if the linker supports building shared libraries. |
|
|
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
6265 |
|
|
6266 |
allow_undefined_flag= |
old_CC="$CC" |
6267 |
no_undefined_flag= |
old_CFLAGS="$CFLAGS" |
|
need_lib_prefix=unknown |
|
|
need_version=unknown |
|
|
# when you set need_version to no, make sure it does not cause -set_version |
|
|
# flags to be left without arguments |
|
|
archive_cmds= |
|
|
archive_expsym_cmds= |
|
|
old_archive_from_new_cmds= |
|
|
old_archive_from_expsyms_cmds= |
|
|
export_dynamic_flag_spec= |
|
|
whole_archive_flag_spec= |
|
|
thread_safe_flag_spec= |
|
|
hardcode_into_libs=no |
|
|
hardcode_libdir_flag_spec= |
|
|
hardcode_libdir_separator= |
|
|
hardcode_direct=no |
|
|
hardcode_minus_L=no |
|
|
hardcode_shlibpath_var=unsupported |
|
|
runpath_var= |
|
|
link_all_deplibs=unknown |
|
|
always_export_symbols=no |
|
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
# include_expsyms should be a list of space-separated symbols to be *always* |
|
|
# included in the symbol list |
|
|
include_expsyms= |
|
|
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
# as well as any symbol that contains `d'. |
|
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
# the symbol is explicitly referenced. Since portable code cannot |
|
|
# rely on this symbol name, it's probably fine to never include it in |
|
|
# preloaded symbol tables. |
|
|
extract_expsyms_cmds= |
|
6268 |
|
|
6269 |
case $host_os in |
# Set sane defaults for various variables |
6270 |
cygwin* | mingw* | pw32*) |
test -z "$AR" && AR=ar |
6271 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
6272 |
# When not using gcc, we currently assume that we are using |
test -z "$AS" && AS=as |
6273 |
# Microsoft Visual C++. |
test -z "$CC" && CC=cc |
6274 |
if test "$GCC" != yes; then |
test -z "$LTCC" && LTCC=$CC |
6275 |
with_gnu_ld=no |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
6276 |
fi |
test -z "$LD" && LD=ld |
6277 |
;; |
test -z "$LN_S" && LN_S="ln -s" |
6278 |
openbsd*) |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6279 |
with_gnu_ld=no |
test -z "$NM" && NM=nm |
6280 |
;; |
test -z "$SED" && SED=sed |
6281 |
esac |
test -z "$OBJDUMP" && OBJDUMP=objdump |
6282 |
|
test -z "$RANLIB" && RANLIB=: |
6283 |
|
test -z "$STRIP" && STRIP=: |
6284 |
|
test -z "$ac_objext" && ac_objext=o |
6285 |
|
|
6286 |
ld_shlibs=yes |
# Determine commands to create old-style static archives. |
6287 |
if test "$with_gnu_ld" = yes; then |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6288 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
old_postinstall_cmds='chmod 644 $oldlib' |
6289 |
wlarc='${wl}' |
old_postuninstall_cmds= |
6290 |
|
|
6291 |
# See if GNU ld supports shared libraries. |
if test -n "$RANLIB"; then |
6292 |
case $host_os in |
case $host_os in |
6293 |
aix3* | aix4* | aix5*) |
openbsd*) |
6294 |
# On AIX, the GNU linker is very broken |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
|
|
ld_shlibs=no |
|
|
cat <<EOF 1>&2 |
|
|
|
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
*** to be unable to reliably create shared libraries on AIX. |
|
|
*** Therefore, libtool is disabling shared libraries support. If you |
|
|
*** really care for shared libraries, you may want to modify your PATH |
|
|
*** so that a non-GNU linker is found, and then restart. |
|
|
|
|
|
EOF |
|
|
;; |
|
|
|
|
|
amigaos*) |
|
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_minus_L=yes |
|
|
|
|
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
# to version 4, is to share data among multiple programs linked |
|
|
# with the same dynamic library. Since this doesn't match the |
|
|
# behavior of shared libraries on other platforms, we can use |
|
|
# them. |
|
|
ld_shlibs=no |
|
6295 |
;; |
;; |
6296 |
|
*) |
6297 |
beos*) |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
allow_undefined_flag=unsupported |
|
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
# support --undefined. This deserves some investigation. FIXME |
|
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
else |
|
|
ld_shlibs=no |
|
|
fi |
|
6298 |
;; |
;; |
6299 |
|
esac |
6300 |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6301 |
|
fi |
6302 |
|
|
6303 |
cygwin* | mingw* | pw32*) |
# Only perform the check for file, if the check method requires it |
6304 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
case $deplibs_check_method in |
6305 |
# no search path for DLLs. |
file_magic*) |
6306 |
hardcode_libdir_flag_spec='-L$libdir' |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6307 |
allow_undefined_flag=unsupported |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6308 |
always_export_symbols=yes |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6309 |
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6310 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6311 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
else |
6312 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
case $MAGIC_CMD in |
6313 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
[\\/*] | ?:[\\/]*) |
6314 |
else $CC -o impgen impgen.c ; fi)~ |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6315 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
;; |
6316 |
|
*) |
6317 |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6318 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6319 |
# cygwin and mingw dlls have different entry points and sets of symbols |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6320 |
# to exclude. |
for ac_dir in $ac_dummy; do |
6321 |
# FIXME: what about values for MSVC? |
IFS="$lt_save_ifs" |
6322 |
dll_entry=__cygwin_dll_entry@12 |
test -z "$ac_dir" && ac_dir=. |
6323 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
if test -f $ac_dir/${ac_tool_prefix}file; then |
6324 |
case $host_os in |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6325 |
mingw*) |
if test -n "$file_magic_test_file"; then |
6326 |
# mingw values |
case $deplibs_check_method in |
6327 |
dll_entry=_DllMainCRTStartup@12 |
"file_magic "*) |
6328 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6329 |
;; |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6330 |
esac |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6331 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6332 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
: |
6333 |
# of the two symbol sets. |
else |
6334 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
cat <<EOF 1>&2 |
|
|
|
|
# recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
# can override, but on older systems we have to supply one (in ltdll.c) |
|
|
if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
|
|
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
else |
|
|
ltdll_obj= |
|
|
ltdll_cmds= |
|
|
fi |
|
6335 |
|
|
6336 |
# Extract the symbol export list from an `--export-all' def file, |
*** Warning: the command libtool uses to detect shared libraries, |
6337 |
# then regenerate the def file from the symbol export list, so that |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6338 |
# the compiled dll only exports the symbol export list. |
*** The result is that libtool may fail to recognize shared libraries |
6339 |
# Be careful not to strip the DATA tag left be newer dlltools. |
*** as such. This will affect the creation of libtool libraries that |
6340 |
export_symbols_cmds="$ltdll_cmds"' |
*** depend on shared libraries, but programs linked with such libtool |
6341 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
*** libraries will work regardless of this problem. Nevertheless, you |
6342 |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
*** may want to report the problem to your system manager and/or to |
6343 |
|
*** bug-libtool@gnu.org |
|
# If the export-symbols file already is a .def file (1st line |
|
|
# is EXPORTS), use it as is. |
|
|
# If DATA tags from a recent dlltool are present, honour them! |
|
|
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
|
|
cp $export_symbols $output_objdir/$soname-def; |
|
|
else |
|
|
echo EXPORTS > $output_objdir/$soname-def; |
|
|
_lt_hint=1; |
|
|
cat $export_symbols | while read symbol; do |
|
|
set dummy \$symbol; |
|
|
case \$# in |
|
|
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
|
|
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
esac; |
|
|
_lt_hint=`expr 1 + \$_lt_hint`; |
|
|
done; |
|
|
fi~ |
|
|
'"$ltdll_cmds"' |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
|
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
;; |
|
6344 |
|
|
6345 |
netbsd*) |
EOF |
6346 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
fi ;; |
6347 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
esac |
6348 |
wlarc= |
fi |
6349 |
else |
break |
|
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
6350 |
fi |
fi |
6351 |
;; |
done |
6352 |
|
IFS="$lt_save_ifs" |
6353 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6354 |
|
;; |
6355 |
|
esac |
6356 |
|
fi |
6357 |
|
|
6358 |
solaris* | sysv5*) |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6359 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
if test -n "$MAGIC_CMD"; then |
6360 |
ld_shlibs=no |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6361 |
cat <<EOF 1>&2 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6362 |
|
else |
6363 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6364 |
|
echo "${ECHO_T}no" >&6 |
6365 |
|
fi |
6366 |
|
|
6367 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
6368 |
*** create shared libraries on Solaris systems. Therefore, libtool |
if test -n "$ac_tool_prefix"; then |
6369 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
echo "$as_me:$LINENO: checking for file" >&5 |
6370 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6371 |
*** your PATH or compiler configuration so that the native linker is |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6372 |
*** used, and then restart. |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6373 |
|
else |
6374 |
|
case $MAGIC_CMD in |
6375 |
|
[\\/*] | ?:[\\/]*) |
6376 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6377 |
|
;; |
6378 |
|
*) |
6379 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6380 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6381 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6382 |
|
for ac_dir in $ac_dummy; do |
6383 |
|
IFS="$lt_save_ifs" |
6384 |
|
test -z "$ac_dir" && ac_dir=. |
6385 |
|
if test -f $ac_dir/file; then |
6386 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6387 |
|
if test -n "$file_magic_test_file"; then |
6388 |
|
case $deplibs_check_method in |
6389 |
|
"file_magic "*) |
6390 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6391 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6392 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6393 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6394 |
|
: |
6395 |
|
else |
6396 |
|
cat <<EOF 1>&2 |
6397 |
|
|
6398 |
|
*** Warning: the command libtool uses to detect shared libraries, |
6399 |
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6400 |
|
*** The result is that libtool may fail to recognize shared libraries |
6401 |
|
*** as such. This will affect the creation of libtool libraries that |
6402 |
|
*** depend on shared libraries, but programs linked with such libtool |
6403 |
|
*** libraries will work regardless of this problem. Nevertheless, you |
6404 |
|
*** may want to report the problem to your system manager and/or to |
6405 |
|
*** bug-libtool@gnu.org |
6406 |
|
|
6407 |
EOF |
EOF |
6408 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
fi ;; |
6409 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
esac |
6410 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi |
6411 |
else |
break |
|
ld_shlibs=no |
|
6412 |
fi |
fi |
6413 |
;; |
done |
6414 |
|
IFS="$lt_save_ifs" |
6415 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6416 |
|
;; |
6417 |
|
esac |
6418 |
|
fi |
6419 |
|
|
6420 |
sunos4*) |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6421 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
if test -n "$MAGIC_CMD"; then |
6422 |
wlarc= |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6423 |
hardcode_direct=yes |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6424 |
hardcode_shlibpath_var=no |
else |
6425 |
;; |
echo "$as_me:$LINENO: result: no" >&5 |
6426 |
|
echo "${ECHO_T}no" >&6 |
6427 |
|
fi |
6428 |
|
|
6429 |
*) |
else |
6430 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
MAGIC_CMD=: |
6431 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
fi |
6432 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi |
|
else |
|
|
ld_shlibs=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
6433 |
|
|
|
if test "$ld_shlibs" = yes; then |
|
|
runpath_var=LD_RUN_PATH |
|
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32*) |
|
|
# dlltool doesn't understand --whole-archive et. al. |
|
|
whole_archive_flag_spec= |
|
|
;; |
|
|
*) |
|
|
# ancient GNU ld didn't support --whole-archive et. al. |
|
|
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
else |
|
|
whole_archive_flag_spec= |
|
|
fi |
|
|
;; |
|
|
esac |
|
6434 |
fi |
fi |
6435 |
else |
;; |
6436 |
# PORTME fill in a description of your system's linker (not GNU ld) |
esac |
|
case $host_os in |
|
|
aix3*) |
|
|
allow_undefined_flag=unsupported |
|
|
always_export_symbols=yes |
|
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there |
|
|
# are no directories specified by -L. |
|
|
hardcode_minus_L=yes |
|
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
# Neither direct hardcoding nor static linking is supported with a |
|
|
# broken collect2. |
|
|
hardcode_direct=unsupported |
|
|
fi |
|
|
;; |
|
6437 |
|
|
6438 |
aix4* | aix5*) |
enable_dlopen=yes |
6439 |
if test "$host_cpu" = ia64; then |
enable_win32_dll=no |
|
# On IA64, the linker does run time linking by default, so we don't |
|
|
# have to do anything special. |
|
|
aix_use_runtimelinking=no |
|
|
exp_sym_flag='-Bexport' |
|
|
no_entry_flag="" |
|
|
else |
|
|
aix_use_runtimelinking=no |
|
6440 |
|
|
6441 |
# Test if we are trying to use run time linking or normal |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6442 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
if test "${enable_libtool_lock+set}" = set; then |
6443 |
# need to do runtime linking. |
enableval="$enable_libtool_lock" |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
for ld_flag in $LDFLAGS; do |
|
|
case $ld_flag in |
|
|
*-brtl*) |
|
|
aix_use_runtimelinking=yes |
|
|
break |
|
|
;; |
|
|
esac |
|
|
done |
|
|
esac |
|
6444 |
|
|
6445 |
exp_sym_flag='-bexport' |
fi; |
6446 |
no_entry_flag='-bnoentry' |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
fi |
|
6447 |
|
|
|
# When large executables or shared objects are built, AIX ld can |
|
|
# have problems creating the table of contents. If linking a library |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
6448 |
|
|
6449 |
hardcode_direct=yes |
# Check whether --with-pic or --without-pic was given. |
6450 |
archive_cmds='' |
if test "${with_pic+set}" = set; then |
6451 |
hardcode_libdir_separator=':' |
withval="$with_pic" |
6452 |
if test "$GCC" = yes; then |
pic_mode="$withval" |
6453 |
case $host_os in aix4.[012]|aix4.[012].*) |
else |
6454 |
collect2name=`${CC} -print-prog-name=collect2` |
pic_mode=default |
6455 |
if test -f "$collect2name" && \ |
fi; |
6456 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
test -z "$pic_mode" && pic_mode=default |
|
then |
|
|
# We have reworked collect2 |
|
|
hardcode_direct=yes |
|
|
else |
|
|
# We have old collect2 |
|
|
hardcode_direct=unsupported |
|
|
# It fails to find uninstalled libraries when the uninstalled |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L |
|
|
# to unsupported forces relinking |
|
|
hardcode_minus_L=yes |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_libdir_separator= |
|
|
fi |
|
|
esac |
|
6457 |
|
|
6458 |
shared_flag='-shared' |
# Use C for the default configuration in the libtool script |
6459 |
else |
tagname= |
6460 |
# not using gcc |
lt_save_CC="$CC" |
6461 |
if test "$host_cpu" = ia64; then |
ac_ext=c |
6462 |
shared_flag='${wl}-G' |
ac_cpp='$CPP $CPPFLAGS' |
6463 |
else |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6464 |
if test "$aix_use_runtimelinking" = yes; then |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6465 |
shared_flag='${wl}-G' |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
else |
|
|
shared_flag='${wl}-bM:SRE' |
|
|
fi |
|
|
fi |
|
|
fi |
|
6466 |
|
|
|
# It seems that -bexpall can do strange things, so it is better to |
|
|
# generate a list of symbols to export. |
|
|
always_export_symbols=yes |
|
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
# Warning - without using the other runtime loading flags (-brtl), |
|
|
# -berok will link without error, but may produce a broken library. |
|
|
allow_undefined_flag='-berok' |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
|
|
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
else |
|
|
if test "$host_cpu" = ia64; then |
|
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
|
allow_undefined_flag="-z nodefs" |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
|
else |
|
|
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
|
|
# Warning - without using the other run time loading flags, |
|
|
# -berok will link without error, but may produce a broken library. |
|
|
allow_undefined_flag='${wl}-berok' |
|
|
# This is a bit strange, but is similar to how AIX traditionally builds |
|
|
# it's shared libraries. |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
|
|
fi |
|
|
fi |
|
|
;; |
|
6467 |
|
|
6468 |
amigaos*) |
# Source file extension for C test sources. |
6469 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
ac_ext=c |
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_minus_L=yes |
|
|
# see comment about different semantics on the GNU ld section |
|
|
ld_shlibs=no |
|
|
;; |
|
6470 |
|
|
6471 |
cygwin* | mingw* | pw32*) |
# Object file extension for compiled C test sources. |
6472 |
# When not using gcc, we currently assume that we are using |
objext=o |
6473 |
# Microsoft Visual C++. |
objext=$objext |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
# no search path for DLLs. |
|
|
hardcode_libdir_flag_spec=' ' |
|
|
allow_undefined_flag=unsupported |
|
|
# Tell ltmain to make .lib files, not .a files. |
|
|
libext=lib |
|
|
# FIXME: Setting linknames here is a bad hack. |
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
# The linker will automatically build a .lib file if we build a DLL. |
|
|
old_archive_from_new_cmds='true' |
|
|
# FIXME: Should let the user specify the lib program. |
|
|
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
;; |
|
6474 |
|
|
6475 |
darwin* | rhapsody*) |
# Code to be used in simple compile tests |
6476 |
case "$host_os" in |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
rhapsody* | darwin1.[012]) |
|
|
allow_undefined_flag='-undefined suppress' |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
;; |
|
|
esac |
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
# `"' quotes if we put them in here... so don't! |
|
|
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
|
|
# We need to add '_' to the symbols in $export_symbols first |
|
|
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
whole_archive_flag_spec='-all_load $convenience' |
|
|
;; |
|
6477 |
|
|
6478 |
freebsd1*) |
# Code to be used in simple link tests |
6479 |
ld_shlibs=no |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
;; |
|
6480 |
|
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
# does not break anything, and helps significantly (at the cost of a little |
|
|
# extra space). |
|
|
freebsd2.2*) |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6481 |
|
|
6482 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
# If no C compiler was specified, use CC. |
6483 |
freebsd2*) |
LTCC=${LTCC-"$CC"} |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_direct=yes |
|
|
hardcode_minus_L=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6484 |
|
|
6485 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
# Allow CC to be a program name with arguments. |
6486 |
freebsd*) |
compiler=$CC |
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6487 |
|
|
|
hpux9* | hpux10* | hpux11*) |
|
|
case $host_os in |
|
|
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
|
|
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
esac |
|
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
|
hardcode_direct=yes |
|
|
hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
# location of the library. |
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
;; |
|
6488 |
|
|
6489 |
irix5* | irix6* | nonstopux*) |
# |
6490 |
if test "$GCC" = yes; then |
# Check for any special shared library compilation flags. |
6491 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
# |
6492 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
lt_prog_cc_shlib= |
6493 |
else |
if test "$GCC" = no; then |
6494 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
case $host_os in |
6495 |
hardcode_libdir_flag_spec='-rpath $libdir' |
sco3.2v5*) |
6496 |
fi |
lt_prog_cc_shlib='-belf' |
|
hardcode_libdir_separator=: |
|
|
link_all_deplibs=yes |
|
6497 |
;; |
;; |
6498 |
|
esac |
6499 |
|
fi |
6500 |
|
if test -n "$lt_prog_cc_shlib"; then |
6501 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
6502 |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
6503 |
|
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
6504 |
|
else |
6505 |
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
6506 |
|
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
6507 |
|
lt_cv_prog_cc_can_build_shared=no |
6508 |
|
fi |
6509 |
|
fi |
6510 |
|
|
|
netbsd*) |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
else |
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
fi |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6511 |
|
|
6512 |
newsos6) |
# |
6513 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# Check to make sure the static flag actually works. |
6514 |
hardcode_direct=yes |
# |
6515 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
6516 |
hardcode_libdir_separator=: |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
6517 |
hardcode_shlibpath_var=no |
if test "${lt_prog_compiler_static_works+set}" = set; then |
6518 |
;; |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6519 |
|
else |
6520 |
|
lt_prog_compiler_static_works=no |
6521 |
|
save_LDFLAGS="$LDFLAGS" |
6522 |
|
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
6523 |
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6524 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6525 |
|
# The compiler can only warn and ignore the option if not recognized |
6526 |
|
# So say no if there are warnings |
6527 |
|
if test -s conftest.err; then |
6528 |
|
# Append any errors to the config.log. |
6529 |
|
cat conftest.err 1>&5 |
6530 |
|
else |
6531 |
|
lt_prog_compiler_static_works=yes |
6532 |
|
fi |
6533 |
|
fi |
6534 |
|
$rm conftest* |
6535 |
|
LDFLAGS="$save_LDFLAGS" |
6536 |
|
|
6537 |
openbsd*) |
fi |
6538 |
hardcode_direct=yes |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6539 |
hardcode_shlibpath_var=no |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
else |
|
|
case "$host_os" in |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
;; |
|
|
*) |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
;; |
|
6540 |
|
|
6541 |
os2*) |
if test x"$lt_prog_compiler_static_works" = xyes; then |
6542 |
hardcode_libdir_flag_spec='-L$libdir' |
: |
6543 |
hardcode_minus_L=yes |
else |
6544 |
allow_undefined_flag=unsupported |
lt_prog_compiler_static= |
6545 |
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
fi |
|
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
;; |
|
6546 |
|
|
|
osf3*) |
|
|
if test "$GCC" = yes; then |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
else |
|
|
allow_undefined_flag=' -expect_unresolved \*' |
|
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
fi |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
|
;; |
|
6547 |
|
|
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
if test "$GCC" = yes; then |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
else |
|
|
allow_undefined_flag=' -expect_unresolved \*' |
|
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
6548 |
|
|
|
#Both c and cxx compiler support -rpath directly |
|
|
hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
fi |
|
|
hardcode_libdir_separator=: |
|
|
;; |
|
6549 |
|
|
6550 |
sco3.2v5*) |
lt_prog_compiler_no_builtin_flag= |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_shlibpath_var=no |
|
|
runpath_var=LD_RUN_PATH |
|
|
hardcode_runpath_var=yes |
|
|
export_dynamic_flag_spec='${wl}-Bexport' |
|
|
;; |
|
6551 |
|
|
6552 |
solaris*) |
if test "$GCC" = yes; then |
6553 |
# gcc --version < 3.0 without binutils cannot create self contained |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
# shared libraries reliably, requiring libgcc.a to resolve some of |
|
|
# the object symbols generated in some cases. Libraries that use |
|
|
# assert need libgcc.a to resolve __eprintf, for example. Linking |
|
|
# a copy of libgcc.a into every shared library to guarantee resolving |
|
|
# such symbols causes other problems: According to Tim Van Holder |
|
|
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
|
|
# (to the application) exception stack for one thing. |
|
|
no_undefined_flag=' -z defs' |
|
|
if test "$GCC" = yes; then |
|
|
case `$CC --version 2>/dev/null` in |
|
|
[12].*) |
|
|
cat <<EOF 1>&2 |
|
6554 |
|
|
|
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
|
|
*** create self contained shared libraries on Solaris systems, without |
|
|
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
|
|
*** -no-undefined support, which will at least allow you to build shared |
|
|
*** libraries. However, you may find that when you link such libraries |
|
|
*** into an application without using GCC, you have to manually add |
|
|
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
|
|
*** upgrade to a newer version of GCC. Another option is to rebuild your |
|
|
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
|
6555 |
|
|
6556 |
EOF |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6557 |
no_undefined_flag= |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6558 |
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6559 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6560 |
|
else |
6561 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
6562 |
|
ac_outfile=conftest.$ac_objext |
6563 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6564 |
|
lt_compiler_flag="-fno-rtti -fno-exceptions" |
6565 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
6566 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6567 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6568 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6569 |
|
# The option is referenced via a variable to avoid confusing sed. |
6570 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6571 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6572 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6573 |
|
-e 's:$: $lt_compiler_flag:'` |
6574 |
|
(eval echo "\"\$as_me:6574: $lt_compile\"" >&5) |
6575 |
|
(eval "$lt_compile" 2>conftest.err) |
6576 |
|
ac_status=$? |
6577 |
|
cat conftest.err >&5 |
6578 |
|
echo "$as_me:6578: \$? = $ac_status" >&5 |
6579 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6580 |
|
# The compiler can only warn and ignore the option if not recognized |
6581 |
|
# So say no if there are warnings |
6582 |
|
if test ! -s conftest.err; then |
6583 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
6584 |
|
fi |
6585 |
|
fi |
6586 |
|
$rm conftest* |
6587 |
|
|
6588 |
|
fi |
6589 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6590 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
6591 |
|
|
6592 |
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6593 |
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6594 |
|
else |
6595 |
|
: |
6596 |
|
fi |
6597 |
|
|
6598 |
|
fi |
6599 |
|
|
6600 |
|
lt_prog_compiler_wl= |
6601 |
|
lt_prog_compiler_pic= |
6602 |
|
lt_prog_compiler_static= |
6603 |
|
|
6604 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6605 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6606 |
|
|
6607 |
|
if test "$GCC" = yes; then |
6608 |
|
lt_prog_compiler_wl='-Wl,' |
6609 |
|
lt_prog_compiler_static='-static' |
6610 |
|
|
6611 |
|
case $host_os in |
6612 |
|
aix*) |
6613 |
|
# All AIX code is PIC. |
6614 |
|
if test "$host_cpu" = ia64; then |
6615 |
|
# AIX 5 now supports IA64 processor |
6616 |
|
lt_prog_compiler_static='-Bstatic' |
6617 |
|
fi |
6618 |
|
;; |
6619 |
|
|
6620 |
|
amigaos*) |
6621 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
6622 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
6623 |
|
# like `-m68040'. |
6624 |
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6625 |
|
;; |
6626 |
|
|
6627 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6628 |
|
# PIC is the default for these OSes. |
6629 |
|
;; |
6630 |
|
|
6631 |
|
mingw* | pw32* | os2*) |
6632 |
|
# This hack is so that the source file can tell whether it is being |
6633 |
|
# built for inclusion in a dll (and should export symbols for example). |
6634 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
6635 |
|
;; |
6636 |
|
|
6637 |
|
darwin* | rhapsody*) |
6638 |
|
# PIC is the default on this platform |
6639 |
|
# Common symbols not allowed in MH_DYLIB files |
6640 |
|
lt_prog_compiler_pic='-fno-common' |
6641 |
|
;; |
6642 |
|
|
6643 |
|
msdosdjgpp*) |
6644 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
6645 |
|
# on systems that don't support them. |
6646 |
|
lt_prog_compiler_can_build_shared=no |
6647 |
|
enable_shared=no |
6648 |
|
;; |
6649 |
|
|
6650 |
|
sysv4*MP*) |
6651 |
|
if test -d /usr/nec; then |
6652 |
|
lt_prog_compiler_pic=-Kconform_pic |
6653 |
|
fi |
6654 |
|
;; |
6655 |
|
|
6656 |
|
hpux*) |
6657 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6658 |
|
# not for PA HP-UX. |
6659 |
|
case "$host_cpu" in |
6660 |
|
hppa*64*|ia64*) |
6661 |
|
# +Z the default |
6662 |
|
;; |
6663 |
|
*) |
6664 |
|
lt_prog_compiler_pic='-fPIC' |
6665 |
;; |
;; |
6666 |
esac |
esac |
6667 |
fi |
;; |
6668 |
# $CC -shared without GNU ld will not create a library from C++ |
|
6669 |
# object files and a static libstdc++, better avoid it by now |
*) |
6670 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-fPIC' |
6671 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
;; |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_shlibpath_var=no |
|
|
case $host_os in |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
6672 |
esac |
esac |
6673 |
link_all_deplibs=yes |
else |
6674 |
;; |
# PORTME Check for flag to pass linker flags through the system compiler. |
6675 |
|
case $host_os in |
6676 |
|
aix*) |
6677 |
|
lt_prog_compiler_wl='-Wl,' |
6678 |
|
if test "$host_cpu" = ia64; then |
6679 |
|
# AIX 5 now supports IA64 processor |
6680 |
|
lt_prog_compiler_static='-Bstatic' |
6681 |
|
else |
6682 |
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6683 |
|
fi |
6684 |
|
;; |
6685 |
|
|
6686 |
sunos4*) |
mingw* | pw32* | os2*) |
6687 |
if test "x$host_vendor" = xsequent; then |
# This hack is so that the source file can tell whether it is being |
6688 |
# Use $CC to link under sequent, because it throws in some extra .o |
# built for inclusion in a dll (and should export symbols for example). |
6689 |
# files that make .init and .fini sections work. |
lt_prog_compiler_pic='-DDLL_EXPORT' |
6690 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
;; |
|
else |
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
fi |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_minus_L=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6691 |
|
|
6692 |
sysv4) |
hpux9* | hpux10* | hpux11*) |
6693 |
case $host_vendor in |
lt_prog_compiler_wl='-Wl,' |
6694 |
sni) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6695 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# not for PA HP-UX. |
6696 |
hardcode_direct=yes # is this really true??? |
case "$host_cpu" in |
6697 |
;; |
hppa*64*|ia64*) |
6698 |
siemens) |
# +Z the default |
6699 |
## LD is ld it makes a PLAMLIB |
;; |
6700 |
## CC just makes a GrossModule. |
*) |
6701 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='+Z' |
6702 |
reload_cmds='$CC -r -o $output$reload_objs' |
;; |
6703 |
hardcode_direct=no |
esac |
6704 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
6705 |
|
lt_prog_compiler_static='${wl}-a ${wl}archive' |
6706 |
|
;; |
6707 |
|
|
6708 |
|
irix5* | irix6* | nonstopux*) |
6709 |
|
lt_prog_compiler_wl='-Wl,' |
6710 |
|
# PIC (with -KPIC) is the default. |
6711 |
|
lt_prog_compiler_static='-non_shared' |
6712 |
|
;; |
6713 |
|
|
6714 |
|
newsos6) |
6715 |
|
lt_prog_compiler_pic='-KPIC' |
6716 |
|
lt_prog_compiler_static='-Bstatic' |
6717 |
|
;; |
6718 |
|
|
6719 |
|
linux*) |
6720 |
|
case $CC in |
6721 |
|
icc* | ecc*) |
6722 |
|
lt_prog_compiler_wl='-Wl,' |
6723 |
|
lt_prog_compiler_pic='-KPIC' |
6724 |
|
lt_prog_compiler_static='-static' |
6725 |
;; |
;; |
6726 |
motorola) |
ccc*) |
6727 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Wl,' |
6728 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
# All Alpha code is PIC. |
6729 |
|
lt_prog_compiler_static='-non_shared' |
6730 |
;; |
;; |
6731 |
esac |
esac |
6732 |
runpath_var='LD_RUN_PATH' |
;; |
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6733 |
|
|
6734 |
sysv4.3*) |
osf3* | osf4* | osf5*) |
6735 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Wl,' |
6736 |
hardcode_shlibpath_var=no |
# All OSF/1 code is PIC. |
6737 |
export_dynamic_flag_spec='-Bexport' |
lt_prog_compiler_static='-non_shared' |
6738 |
;; |
;; |
|
|
|
|
sysv5*) |
|
|
no_undefined_flag=' -z text' |
|
|
# $CC -shared without GNU ld will not create a library from C++ |
|
|
# object files and a static libstdc++, better avoid it by now |
|
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
hardcode_libdir_flag_spec= |
|
|
hardcode_shlibpath_var=no |
|
|
runpath_var='LD_RUN_PATH' |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6739 |
|
|
6740 |
dgux*) |
sco3.2v5*) |
6741 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-Kpic' |
6742 |
hardcode_libdir_flag_spec='-L$libdir' |
lt_prog_compiler_static='-dn' |
6743 |
hardcode_shlibpath_var=no |
;; |
|
;; |
|
6744 |
|
|
6745 |
sysv4*MP*) |
solaris*) |
6746 |
if test -d /usr/nec; then |
lt_prog_compiler_wl='-Wl,' |
6747 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-KPIC' |
6748 |
hardcode_shlibpath_var=no |
lt_prog_compiler_static='-Bstatic' |
6749 |
runpath_var=LD_RUN_PATH |
;; |
|
hardcode_runpath_var=yes |
|
|
ld_shlibs=yes |
|
|
fi |
|
|
;; |
|
6750 |
|
|
6751 |
sysv4.2uw2*) |
sunos4*) |
6752 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Qoption ld ' |
6753 |
hardcode_direct=yes |
lt_prog_compiler_pic='-PIC' |
6754 |
hardcode_minus_L=no |
lt_prog_compiler_static='-Bstatic' |
6755 |
hardcode_shlibpath_var=no |
;; |
|
hardcode_runpath_var=yes |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
6756 |
|
|
6757 |
sysv5uw7* | unixware7*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6758 |
no_undefined_flag='${wl}-z ${wl}text' |
lt_prog_compiler_wl='-Wl,' |
6759 |
if test "$GCC" = yes; then |
lt_prog_compiler_pic='-KPIC' |
6760 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
lt_prog_compiler_static='-Bstatic' |
6761 |
else |
;; |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
fi |
|
|
runpath_var='LD_RUN_PATH' |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6762 |
|
|
6763 |
*) |
sysv4*MP*) |
6764 |
ld_shlibs=no |
if test -d /usr/nec ;then |
6765 |
;; |
lt_prog_compiler_pic='-Kconform_pic' |
6766 |
esac |
lt_prog_compiler_static='-Bstatic' |
6767 |
fi |
fi |
6768 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
;; |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
test "$ld_shlibs" = no && can_build_shared=no |
|
6769 |
|
|
6770 |
# Check hardcoding attributes. |
uts4*) |
6771 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
lt_prog_compiler_pic='-pic' |
6772 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
lt_prog_compiler_static='-Bstatic' |
6773 |
hardcode_action= |
;; |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
test -n "$runpath_var"; then |
|
6774 |
|
|
6775 |
# We can hardcode non-existant directories. |
*) |
6776 |
if test "$hardcode_direct" != no && |
lt_prog_compiler_can_build_shared=no |
6777 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
;; |
6778 |
# have to relink, otherwise we might link with an installed library |
esac |
|
# when we should be linking with a yet-to-be-installed one |
|
|
## test "$hardcode_shlibpath_var" != no && |
|
|
test "$hardcode_minus_L" != no; then |
|
|
# Linking always hardcodes the temporary library directory. |
|
|
hardcode_action=relink |
|
|
else |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
hardcode_action=immediate |
|
6779 |
fi |
fi |
6780 |
|
|
6781 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6782 |
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6783 |
|
|
6784 |
|
# |
6785 |
|
# Check to make sure the PIC flag actually works. |
6786 |
|
# |
6787 |
|
if test -n "$lt_prog_compiler_pic"; then |
6788 |
|
|
6789 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6790 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6791 |
|
if test "${lt_prog_compiler_pic_works+set}" = set; then |
6792 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6793 |
else |
else |
6794 |
# We cannot hardcode anything, or else we can only hardcode existing |
lt_prog_compiler_pic_works=no |
6795 |
# directories. |
ac_outfile=conftest.$ac_objext |
6796 |
hardcode_action=unsupported |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6797 |
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6798 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
6799 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6800 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6801 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6802 |
|
# The option is referenced via a variable to avoid confusing sed. |
6803 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6804 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6805 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6806 |
|
-e 's:$: $lt_compiler_flag:'` |
6807 |
|
(eval echo "\"\$as_me:6807: $lt_compile\"" >&5) |
6808 |
|
(eval "$lt_compile" 2>conftest.err) |
6809 |
|
ac_status=$? |
6810 |
|
cat conftest.err >&5 |
6811 |
|
echo "$as_me:6811: \$? = $ac_status" >&5 |
6812 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6813 |
|
# The compiler can only warn and ignore the option if not recognized |
6814 |
|
# So say no if there are warnings |
6815 |
|
if test ! -s conftest.err; then |
6816 |
|
lt_prog_compiler_pic_works=yes |
6817 |
|
fi |
6818 |
|
fi |
6819 |
|
$rm conftest* |
6820 |
|
|
6821 |
fi |
fi |
6822 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6823 |
echo "${ECHO_T}$hardcode_action" >&6 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6824 |
|
|
6825 |
striplib= |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
6826 |
old_striplib= |
case $lt_prog_compiler_pic in |
6827 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
"" | " "*) ;; |
6828 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6829 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
esac |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
6830 |
else |
else |
6831 |
echo "$as_me:$LINENO: result: no" >&5 |
lt_prog_compiler_pic= |
6832 |
echo "${ECHO_T}no" >&6 |
lt_prog_compiler_can_build_shared=no |
6833 |
fi |
fi |
6834 |
|
|
6835 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
fi |
6836 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
case "$host_os" in |
6837 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
6838 |
|
*djgpp*) |
6839 |
|
lt_prog_compiler_pic= |
6840 |
|
;; |
6841 |
|
*) |
6842 |
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6843 |
|
;; |
6844 |
|
esac |
6845 |
|
|
6846 |
# PORTME Fill in your ld.so characteristics |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6847 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6848 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6849 |
library_names_spec= |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6850 |
libname_spec='lib$name' |
else |
6851 |
soname_spec= |
lt_cv_prog_compiler_c_o=no |
6852 |
postinstall_cmds= |
$rm -r conftest 2>/dev/null |
6853 |
postuninstall_cmds= |
mkdir conftest |
6854 |
finish_cmds= |
cd conftest |
6855 |
finish_eval= |
mkdir out |
6856 |
shlibpath_var= |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6857 |
shlibpath_overrides_runpath=unknown |
|
6858 |
version_type=none |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
6859 |
dynamic_linker="$host_os ld.so" |
# Insert the option either (1) after the last *FLAGS variable, or |
6860 |
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib" |
# (2) before a word containing "conftest.", or (3) at the end. |
6861 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib" |
# Note that $ac_compile itself does not contain backslashes and begins |
6862 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6863 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6864 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6865 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6866 |
|
-e 's:$: $lt_compiler_flag:'` |
6867 |
|
(eval echo "\"\$as_me:6867: $lt_compile\"" >&5) |
6868 |
|
(eval "$lt_compile" 2>out/conftest.err) |
6869 |
|
ac_status=$? |
6870 |
|
cat out/conftest.err >&5 |
6871 |
|
echo "$as_me:6871: \$? = $ac_status" >&5 |
6872 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6873 |
|
then |
6874 |
|
# The compiler can only warn and ignore the option if not recognized |
6875 |
|
# So say no if there are warnings |
6876 |
|
if test ! -s out/conftest.err; then |
6877 |
|
lt_cv_prog_compiler_c_o=yes |
6878 |
|
fi |
6879 |
|
fi |
6880 |
|
chmod u+w . |
6881 |
|
$rm conftest* |
6882 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
6883 |
|
# template instantiation |
6884 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6885 |
|
$rm out/* && rmdir out |
6886 |
|
cd .. |
6887 |
|
rmdir conftest |
6888 |
|
$rm conftest* |
6889 |
|
|
6890 |
case $host_os in |
fi |
6891 |
aix3*) |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6892 |
version_type=linux |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
shlibpath_var=LIBPATH |
|
6893 |
|
|
|
# AIX has no versioning support, so we append a major version to the name. |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
;; |
|
6894 |
|
|
6895 |
aix4* | aix5*) |
hard_links="nottested" |
6896 |
version_type=linux |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6897 |
need_lib_prefix=no |
# do not overwrite the value of need_locks provided by the user |
6898 |
need_version=no |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6899 |
hardcode_into_libs=yes |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6900 |
if test "$host_cpu" = ia64; then |
hard_links=yes |
6901 |
# AIX 5 supports IA64 |
$rm conftest* |
6902 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6903 |
shlibpath_var=LD_LIBRARY_PATH |
touch conftest.a |
6904 |
else |
ln conftest.a conftest.b 2>&5 || hard_links=no |
6905 |
# With GCC up to 2.95.x, collect2 would create an import file |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6906 |
# for dependence libraries. The import file would start with |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
6907 |
# the line `#! .'. This would cause the generated library to |
echo "${ECHO_T}$hard_links" >&6 |
6908 |
# depend on `.', always an invalid library. This was fixed in |
if test "$hard_links" = no; then |
6909 |
# development snapshots of GCC prior to 3.0. |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6910 |
case $host_os in |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6911 |
aix4 | aix4.[01] | aix4.[01].*) |
need_locks=warn |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
echo ' yes ' |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
: |
|
|
else |
|
|
can_build_shared=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
# AIX (on Power*) has no versioning support, so currently we can |
|
|
# not hardcode correct soname into executable. Probably we can |
|
|
# add versioning support to collect2, so additional links can |
|
|
# be useful in future. |
|
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
# instead of lib<name>.a to let people know that these are not |
|
|
# typical AIX shared libraries. |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
else |
|
|
# We preserve .a as extension for shared libraries through AIX4.2 |
|
|
# and later when we are not doing run time linking. |
|
|
library_names_spec='${libname}${release}.a $libname.a' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
fi |
|
|
shlibpath_var=LIBPATH |
|
6912 |
fi |
fi |
6913 |
hardcode_into_libs=yes |
else |
6914 |
;; |
need_locks=no |
6915 |
|
fi |
|
amigaos*) |
|
|
library_names_spec='$libname.ixlibrary $libname.a' |
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
|
;; |
|
6916 |
|
|
6917 |
beos*) |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6918 |
library_names_spec='${libname}.so' |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
dynamic_linker="$host_os ld.so" |
|
|
shlibpath_var=LIBRARY_PATH |
|
|
;; |
|
6919 |
|
|
6920 |
bsdi4*) |
runpath_var= |
6921 |
version_type=linux |
allow_undefined_flag= |
6922 |
need_version=no |
enable_shared_with_static_runtimes=no |
6923 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
archive_cmds= |
6924 |
soname_spec='${libname}${release}.so$major' |
archive_expsym_cmds= |
6925 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
old_archive_From_new_cmds= |
6926 |
shlibpath_var=LD_LIBRARY_PATH |
old_archive_from_expsyms_cmds= |
6927 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
export_dynamic_flag_spec= |
6928 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
whole_archive_flag_spec= |
6929 |
export_dynamic_flag_spec=-rdynamic |
thread_safe_flag_spec= |
6930 |
# the default ld.so.conf also contains /usr/contrib/lib and |
hardcode_libdir_flag_spec= |
6931 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
hardcode_libdir_flag_spec_ld= |
6932 |
# libtool to hard-code these into programs |
hardcode_libdir_separator= |
6933 |
;; |
hardcode_direct=no |
6934 |
|
hardcode_minus_L=no |
6935 |
|
hardcode_shlibpath_var=unsupported |
6936 |
|
link_all_deplibs=unknown |
6937 |
|
hardcode_automatic=no |
6938 |
|
module_cmds= |
6939 |
|
module_expsym_cmds= |
6940 |
|
always_export_symbols=no |
6941 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6942 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
6943 |
|
# included in the symbol list |
6944 |
|
include_expsyms= |
6945 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
6946 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
6947 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6948 |
|
# as well as any symbol that contains `d'. |
6949 |
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6950 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6951 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
6952 |
|
# the symbol is explicitly referenced. Since portable code cannot |
6953 |
|
# rely on this symbol name, it's probably fine to never include it in |
6954 |
|
# preloaded symbol tables. |
6955 |
|
extract_expsyms_cmds= |
6956 |
|
|
6957 |
cygwin* | mingw* | pw32*) |
case $host_os in |
6958 |
version_type=windows |
cygwin* | mingw* | pw32*) |
6959 |
need_version=no |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
6960 |
need_lib_prefix=no |
# When not using gcc, we currently assume that we are using |
6961 |
case $GCC,$host_os in |
# Microsoft Visual C++. |
6962 |
yes,cygwin*) |
if test "$GCC" != yes; then |
6963 |
library_names_spec='$libname.dll.a' |
with_gnu_ld=no |
6964 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
fi |
|
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
|
|
dldir=$destdir/`dirname \$dlpath`~ |
|
|
test -d \$dldir || mkdir -p \$dldir~ |
|
|
$install_prog .libs/$dlname \$dldir/$dlname' |
|
|
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
dlpath=$dir/\$dldll~ |
|
|
$rm \$dlpath' |
|
|
;; |
|
|
yes,mingw*) |
|
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
|
|
;; |
|
|
yes,pw32*) |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
|
6965 |
;; |
;; |
6966 |
*) |
openbsd*) |
6967 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
with_gnu_ld=no |
6968 |
;; |
;; |
6969 |
esac |
esac |
|
dynamic_linker='Win32 ld.exe' |
|
|
# FIXME: first we should search . and the directory the executable is in |
|
|
shlibpath_var=PATH |
|
|
;; |
|
6970 |
|
|
6971 |
darwin* | rhapsody*) |
ld_shlibs=yes |
6972 |
dynamic_linker="$host_os dyld" |
if test "$with_gnu_ld" = yes; then |
6973 |
version_type=darwin |
# If archive_cmds runs LD, not CC, wlarc should be empty |
6974 |
need_lib_prefix=no |
wlarc='${wl}' |
|
need_version=no |
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. |
|
|
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
|
|
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
|
|
shlibpath_overrides_runpath=yes |
|
|
shlibpath_var=DYLD_LIBRARY_PATH |
|
|
;; |
|
6975 |
|
|
6976 |
freebsd1*) |
# See if GNU ld supports shared libraries. |
6977 |
dynamic_linker=no |
case $host_os in |
6978 |
;; |
aix3* | aix4* | aix5*) |
6979 |
|
# On AIX/PPC, the GNU linker is very broken |
6980 |
|
if test "$host_cpu" != ia64; then |
6981 |
|
ld_shlibs=no |
6982 |
|
cat <<EOF 1>&2 |
6983 |
|
|
6984 |
freebsd*) |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6985 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
*** to be unable to reliably create shared libraries on AIX. |
6986 |
version_type=freebsd-$objformat |
*** Therefore, libtool is disabling shared libraries support. If you |
6987 |
case $version_type in |
*** really care for shared libraries, you may want to modify your PATH |
6988 |
freebsd-elf*) |
*** so that a non-GNU linker is found, and then restart. |
6989 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
6990 |
need_version=no |
EOF |
6991 |
need_lib_prefix=no |
fi |
6992 |
;; |
;; |
6993 |
freebsd-*) |
|
6994 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
amigaos*) |
6995 |
need_version=yes |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6996 |
|
hardcode_libdir_flag_spec='-L$libdir' |
6997 |
|
hardcode_minus_L=yes |
6998 |
|
|
6999 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7000 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
7001 |
|
# to version 4, is to share data among multiple programs linked |
7002 |
|
# with the same dynamic library. Since this doesn't match the |
7003 |
|
# behavior of shared libraries on other platforms, we can't use |
7004 |
|
# them. |
7005 |
|
ld_shlibs=no |
7006 |
;; |
;; |
|
esac |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
case $host_os in |
|
|
freebsd2*) |
|
|
shlibpath_overrides_runpath=yes |
|
|
;; |
|
|
*) |
|
|
shlibpath_overrides_runpath=no |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
|
esac |
|
|
;; |
|
7007 |
|
|
7008 |
gnu*) |
beos*) |
7009 |
version_type=linux |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7010 |
need_lib_prefix=no |
allow_undefined_flag=unsupported |
7011 |
need_version=no |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7012 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
# support --undefined. This deserves some investigation. FIXME |
7013 |
soname_spec='${libname}${release}.so$major' |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7014 |
shlibpath_var=LD_LIBRARY_PATH |
else |
7015 |
hardcode_into_libs=yes |
ld_shlibs=no |
7016 |
;; |
fi |
7017 |
|
;; |
7018 |
|
|
7019 |
hpux9* | hpux10* | hpux11*) |
cygwin* | mingw* | pw32*) |
7020 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7021 |
# link against other versions. |
# as there is no search path for DLLs. |
7022 |
dynamic_linker="$host_os dld.sl" |
hardcode_libdir_flag_spec='-L$libdir' |
7023 |
version_type=sunos |
allow_undefined_flag=unsupported |
7024 |
need_lib_prefix=no |
always_export_symbols=no |
7025 |
need_version=no |
enable_shared_with_static_runtimes=yes |
7026 |
shlibpath_var=SHLIB_PATH |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7027 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
7028 |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7029 |
soname_spec='${libname}${release}.sl$major' |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7030 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
# If the export-symbols file already is a .def file (1st line |
7031 |
postinstall_cmds='chmod 555 $lib' |
# is EXPORTS), use it as is; otherwise, prepend... |
7032 |
;; |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7033 |
|
cp $export_symbols $output_objdir/$soname.def; |
7034 |
|
else |
7035 |
|
echo EXPORTS > $output_objdir/$soname.def; |
7036 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
7037 |
|
fi~ |
7038 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7039 |
|
else |
7040 |
|
ld_shlibs=no |
7041 |
|
fi |
7042 |
|
;; |
7043 |
|
|
7044 |
irix5* | irix6* | nonstopux*) |
netbsd*) |
7045 |
case $host_os in |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7046 |
nonstopux*) version_type=nonstopux ;; |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7047 |
*) version_type=irix ;; |
wlarc= |
7048 |
esac |
else |
7049 |
need_lib_prefix=no |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7050 |
need_version=no |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7051 |
soname_spec='${libname}${release}.so$major' |
fi |
7052 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
;; |
|
case $host_os in |
|
|
irix5* | nonstopux*) |
|
|
libsuff= shlibsuff= |
|
|
;; |
|
|
*) |
|
|
case $LD in # libtool.m4 will add one of these switches to LD |
|
|
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
*) libsuff= shlibsuff= libmagic=never-match;; |
|
|
esac |
|
|
;; |
|
|
esac |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
shlibpath_overrides_runpath=no |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
;; |
|
7053 |
|
|
7054 |
# No shared lib support for Linux oldld, aout, or coff. |
solaris* | sysv5*) |
7055 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7056 |
dynamic_linker=no |
ld_shlibs=no |
7057 |
;; |
cat <<EOF 1>&2 |
7058 |
|
|
7059 |
# This must be Linux ELF. |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7060 |
linux-gnu*) |
*** create shared libraries on Solaris systems. Therefore, libtool |
7061 |
version_type=linux |
*** is disabling shared libraries support. We urge you to upgrade GNU |
7062 |
need_lib_prefix=no |
*** binutils to release 2.9.1 or newer. Another option is to modify |
7063 |
need_version=no |
*** your PATH or compiler configuration so that the native linker is |
7064 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
*** used, and then restart. |
7065 |
soname_spec='${libname}${release}.so$major' |
|
7066 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
EOF |
7067 |
shlibpath_var=LD_LIBRARY_PATH |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7068 |
shlibpath_overrides_runpath=no |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7069 |
# This implies no fast_install, which is unacceptable. |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7070 |
# Some rework will be needed to allow for fast_install |
else |
7071 |
# before this can be enabled. |
ld_shlibs=no |
7072 |
hardcode_into_libs=yes |
fi |
7073 |
|
;; |
7074 |
|
|
7075 |
|
sunos4*) |
7076 |
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7077 |
|
wlarc= |
7078 |
|
hardcode_direct=yes |
7079 |
|
hardcode_shlibpath_var=no |
7080 |
|
;; |
7081 |
|
|
7082 |
case $host_cpu:$lt_cv_cc_64bit_output in |
linux*) |
7083 |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7084 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7085 |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" |
archive_cmds="$tmp_archive_cmds" |
7086 |
|
supports_anon_versioning=no |
7087 |
|
case `$LD -v 2>/dev/null` in |
7088 |
|
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7089 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7090 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7091 |
|
*\ 2.11.*) ;; # other 2.11 versions |
7092 |
|
*) supports_anon_versioning=yes ;; |
7093 |
|
esac |
7094 |
|
if test $supports_anon_versioning = yes; then |
7095 |
|
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7096 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7097 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
7098 |
|
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7099 |
|
else |
7100 |
|
archive_expsym_cmds="$tmp_archive_cmds" |
7101 |
|
fi |
7102 |
|
else |
7103 |
|
ld_shlibs=no |
7104 |
|
fi |
7105 |
;; |
;; |
|
esac |
|
7106 |
|
|
7107 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
*) |
7108 |
# powerpc, because MkLinux only supported shared libraries with the |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7109 |
# GNU dynamic linker. Since this was broken with cross compilers, |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7110 |
# most powerpc-linux boxes support dynamic linking these days and |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7111 |
# people can always --disable-shared, the test was removed, and we |
else |
7112 |
# assume the GNU/Linux dynamic linker is in use. |
ld_shlibs=no |
7113 |
dynamic_linker='GNU/Linux ld.so' |
fi |
7114 |
;; |
;; |
7115 |
|
esac |
7116 |
|
|
7117 |
netbsd*) |
if test "$ld_shlibs" = yes; then |
7118 |
version_type=sunos |
runpath_var=LD_RUN_PATH |
7119 |
need_lib_prefix=no |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7120 |
need_version=no |
export_dynamic_flag_spec='${wl}--export-dynamic' |
7121 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
# ancient GNU ld didn't support --whole-archive et. al. |
7122 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7123 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7124 |
dynamic_linker='NetBSD (a.out) ld.so' |
else |
7125 |
|
whole_archive_flag_spec= |
7126 |
|
fi |
7127 |
|
fi |
7128 |
else |
else |
7129 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
# PORTME fill in a description of your system's linker (not GNU ld) |
7130 |
soname_spec='${libname}${release}.so$major' |
case $host_os in |
7131 |
dynamic_linker='NetBSD ld.elf_so' |
aix3*) |
7132 |
fi |
allow_undefined_flag=unsupported |
7133 |
shlibpath_var=LD_LIBRARY_PATH |
always_export_symbols=yes |
7134 |
shlibpath_overrides_runpath=yes |
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
7135 |
hardcode_into_libs=yes |
# Note: this linker hardcodes the directories in LIBPATH if there |
7136 |
;; |
# are no directories specified by -L. |
7137 |
|
hardcode_minus_L=yes |
7138 |
newsos6) |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
7139 |
version_type=linux |
# Neither direct hardcoding nor static linking is supported with a |
7140 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
# broken collect2. |
7141 |
shlibpath_var=LD_LIBRARY_PATH |
hardcode_direct=unsupported |
7142 |
shlibpath_overrides_runpath=yes |
fi |
|
;; |
|
|
|
|
|
openbsd*) |
|
|
version_type=sunos |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
case "$host_os" in |
|
|
openbsd2.[89] | openbsd2.[89].*) |
|
|
shlibpath_overrides_runpath=no |
|
|
;; |
|
|
*) |
|
|
shlibpath_overrides_runpath=yes |
|
7143 |
;; |
;; |
|
esac |
|
|
else |
|
|
shlibpath_overrides_runpath=yes |
|
|
fi |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
7144 |
|
|
7145 |
os2*) |
aix4* | aix5*) |
7146 |
libname_spec='$name' |
if test "$host_cpu" = ia64; then |
7147 |
need_lib_prefix=no |
# On IA64, the linker does run time linking by default, so we don't |
7148 |
library_names_spec='$libname.dll $libname.a' |
# have to do anything special. |
7149 |
dynamic_linker='OS/2 ld.exe' |
aix_use_runtimelinking=no |
7150 |
shlibpath_var=LIBPATH |
exp_sym_flag='-Bexport' |
7151 |
;; |
no_entry_flag="" |
7152 |
|
else |
7153 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
7154 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
7155 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7156 |
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
7157 |
|
else |
7158 |
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
7159 |
|
fi |
7160 |
|
aix_use_runtimelinking=no |
7161 |
|
|
7162 |
osf3* | osf4* | osf5*) |
# Test if we are trying to use run time linking or normal |
7163 |
version_type=osf |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7164 |
need_version=no |
# need to do runtime linking. |
7165 |
soname_spec='${libname}${release}.so$major' |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7166 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
for ld_flag in $LDFLAGS; do |
7167 |
shlibpath_var=LD_LIBRARY_PATH |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7168 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
aix_use_runtimelinking=yes |
7169 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
break |
7170 |
hardcode_into_libs=yes |
fi |
7171 |
;; |
done |
7172 |
|
esac |
7173 |
|
|
7174 |
sco3.2v5*) |
exp_sym_flag='-bexport' |
7175 |
version_type=osf |
no_entry_flag='-bnoentry' |
7176 |
soname_spec='${libname}${release}.so$major' |
fi |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
7177 |
|
|
7178 |
solaris*) |
# When large executables or shared objects are built, AIX ld can |
7179 |
version_type=linux |
# have problems creating the table of contents. If linking a library |
7180 |
need_lib_prefix=no |
# or program results in "error TOC overflow" add -mminimal-toc to |
7181 |
need_version=no |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7182 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7183 |
soname_spec='${libname}${release}.so$major' |
|
7184 |
shlibpath_var=LD_LIBRARY_PATH |
archive_cmds='' |
7185 |
shlibpath_overrides_runpath=yes |
hardcode_direct=yes |
7186 |
hardcode_into_libs=yes |
hardcode_libdir_separator=':' |
7187 |
# ldd complains unless libraries are executable |
link_all_deplibs=yes |
7188 |
postinstall_cmds='chmod +x $lib' |
|
7189 |
;; |
if test "$GCC" = yes; then |
7190 |
|
case $host_os in aix4.012|aix4.012.*) |
7191 |
|
# We only want to do this on AIX 4.2 and lower, the check |
7192 |
|
# below for broken collect2 doesn't work under 4.3+ |
7193 |
|
collect2name=`${CC} -print-prog-name=collect2` |
7194 |
|
if test -f "$collect2name" && \ |
7195 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
7196 |
|
then |
7197 |
|
# We have reworked collect2 |
7198 |
|
hardcode_direct=yes |
7199 |
|
else |
7200 |
|
# We have old collect2 |
7201 |
|
hardcode_direct=unsupported |
7202 |
|
# It fails to find uninstalled libraries when the uninstalled |
7203 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
7204 |
|
# to unsupported forces relinking |
7205 |
|
hardcode_minus_L=yes |
7206 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7207 |
|
hardcode_libdir_separator= |
7208 |
|
fi |
7209 |
|
esac |
7210 |
|
shared_flag='-shared' |
7211 |
|
else |
7212 |
|
# not using gcc |
7213 |
|
if test "$host_cpu" = ia64; then |
7214 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7215 |
|
# chokes on -Wl,-G. The following line is correct: |
7216 |
|
shared_flag='-G' |
7217 |
|
else |
7218 |
|
if test "$aix_use_runtimelinking" = yes; then |
7219 |
|
shared_flag='${wl}-G' |
7220 |
|
else |
7221 |
|
shared_flag='${wl}-bM:SRE' |
7222 |
|
fi |
7223 |
|
fi |
7224 |
|
fi |
7225 |
|
|
7226 |
sunos4*) |
# It seems that -bexpall does not export symbols beginning with |
7227 |
version_type=sunos |
# underscore (_), so it is better to generate a list of symbols to export. |
7228 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
always_export_symbols=yes |
7229 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
if test "$aix_use_runtimelinking" = yes; then |
7230 |
shlibpath_var=LD_LIBRARY_PATH |
# Warning - without using the other runtime loading flags (-brtl), |
7231 |
shlibpath_overrides_runpath=yes |
# -berok will link without error, but may produce a broken library. |
7232 |
if test "$with_gnu_ld" = yes; then |
allow_undefined_flag='-berok' |
7233 |
need_lib_prefix=no |
# Determine the default libpath from the value encoded in an empty executable. |
7234 |
fi |
cat >conftest.$ac_ext <<_ACEOF |
7235 |
need_version=yes |
/* confdefs.h. */ |
7236 |
;; |
_ACEOF |
7237 |
|
cat confdefs.h >>conftest.$ac_ext |
7238 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7239 |
|
/* end confdefs.h. */ |
7240 |
|
|
7241 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
int |
7242 |
version_type=linux |
main () |
7243 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
{ |
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
case $host_vendor in |
|
|
sni) |
|
|
shlibpath_overrides_runpath=no |
|
|
need_lib_prefix=no |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
|
siemens) |
|
|
need_lib_prefix=no |
|
|
;; |
|
|
motorola) |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
shlibpath_overrides_runpath=no |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
;; |
|
|
esac |
|
|
;; |
|
7244 |
|
|
7245 |
uts4*) |
; |
7246 |
version_type=linux |
return 0; |
7247 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
} |
7248 |
soname_spec='${libname}${release}.so$major' |
_ACEOF |
7249 |
shlibpath_var=LD_LIBRARY_PATH |
rm -f conftest.$ac_objext conftest$ac_exeext |
7250 |
;; |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7251 |
|
(eval $ac_link) 2>conftest.er1 |
7252 |
|
ac_status=$? |
7253 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7254 |
|
rm -f conftest.er1 |
7255 |
|
cat conftest.err >&5 |
7256 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7257 |
|
(exit $ac_status); } && |
7258 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
7259 |
|
|| test ! -s conftest.err' |
7260 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7261 |
|
(eval $ac_try) 2>&5 |
7262 |
|
ac_status=$? |
7263 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7264 |
|
(exit $ac_status); }; } && |
7265 |
|
{ ac_try='test -s conftest$ac_exeext' |
7266 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7267 |
|
(eval $ac_try) 2>&5 |
7268 |
|
ac_status=$? |
7269 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7270 |
|
(exit $ac_status); }; }; then |
7271 |
|
|
7272 |
dgux*) |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7273 |
version_type=linux |
}'` |
7274 |
need_lib_prefix=no |
# Check for a 64-bit object if we didn't find anything. |
7275 |
need_version=no |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7276 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
}'`; fi |
7277 |
soname_spec='${libname}${release}.so$major' |
else |
7278 |
shlibpath_var=LD_LIBRARY_PATH |
echo "$as_me: failed program was:" >&5 |
7279 |
;; |
sed 's/^/| /' conftest.$ac_ext >&5 |
7280 |
|
|
7281 |
sysv4*MP*) |
fi |
7282 |
if test -d /usr/nec ;then |
rm -f conftest.err conftest.$ac_objext \ |
7283 |
version_type=linux |
conftest$ac_exeext conftest.$ac_ext |
7284 |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
soname_spec='$libname.so.$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
fi |
|
|
;; |
|
7285 |
|
|
7286 |
*) |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7287 |
dynamic_linker=no |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7288 |
;; |
else |
7289 |
esac |
if test "$host_cpu" = ia64; then |
7290 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7291 |
echo "${ECHO_T}$dynamic_linker" >&6 |
allow_undefined_flag="-z nodefs" |
7292 |
test "$dynamic_linker" = no && can_build_shared=no |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
7293 |
|
else |
7294 |
|
# Determine the default libpath from the value encoded in an empty executable. |
7295 |
|
cat >conftest.$ac_ext <<_ACEOF |
7296 |
|
/* confdefs.h. */ |
7297 |
|
_ACEOF |
7298 |
|
cat confdefs.h >>conftest.$ac_ext |
7299 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7300 |
|
/* end confdefs.h. */ |
7301 |
|
|
7302 |
# Report the final consequences. |
int |
7303 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
main () |
7304 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
{ |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
echo "${ECHO_T}$can_build_shared" >&6 |
|
7305 |
|
|
7306 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
; |
7307 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
return 0; |
7308 |
test "$can_build_shared" = "no" && enable_shared=no |
} |
7309 |
|
_ACEOF |
7310 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
7311 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7312 |
|
(eval $ac_link) 2>conftest.er1 |
7313 |
|
ac_status=$? |
7314 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7315 |
|
rm -f conftest.er1 |
7316 |
|
cat conftest.err >&5 |
7317 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7318 |
|
(exit $ac_status); } && |
7319 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
7320 |
|
|| test ! -s conftest.err' |
7321 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7322 |
|
(eval $ac_try) 2>&5 |
7323 |
|
ac_status=$? |
7324 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7325 |
|
(exit $ac_status); }; } && |
7326 |
|
{ ac_try='test -s conftest$ac_exeext' |
7327 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7328 |
|
(eval $ac_try) 2>&5 |
7329 |
|
ac_status=$? |
7330 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7331 |
|
(exit $ac_status); }; }; then |
7332 |
|
|
7333 |
# On AIX, shared libraries and static libraries use the same namespace, and |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7334 |
# are all built from PIC. |
}'` |
7335 |
case "$host_os" in |
# Check for a 64-bit object if we didn't find anything. |
7336 |
aix3*) |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7337 |
test "$enable_shared" = yes && enable_static=no |
}'`; fi |
7338 |
if test -n "$RANLIB"; then |
else |
7339 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
echo "$as_me: failed program was:" >&5 |
7340 |
postinstall_cmds='$RANLIB $lib' |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
fi |
|
|
;; |
|
7341 |
|
|
7342 |
aix4*) |
fi |
7343 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
rm -f conftest.err conftest.$ac_objext \ |
7344 |
test "$enable_shared" = yes && enable_static=no |
conftest$ac_exeext conftest.$ac_ext |
7345 |
fi |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
echo "${ECHO_T}$enable_shared" >&6 |
|
7346 |
|
|
7347 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7348 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
# Warning - without using the other run time loading flags, |
7349 |
# Make sure either enable_shared or enable_static is yes. |
# -berok will link without error, but may produce a broken library. |
7350 |
test "$enable_shared" = yes || enable_static=yes |
no_undefined_flag=' ${wl}-bernotok' |
7351 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
allow_undefined_flag=' ${wl}-berok' |
7352 |
echo "${ECHO_T}$enable_static" >&6 |
# -bexpall does not export symbols beginning with underscore (_) |
7353 |
|
always_export_symbols=yes |
7354 |
|
# Exported symbols can be pulled into shared objects from archives |
7355 |
|
whole_archive_flag_spec=' ' |
7356 |
|
archive_cmds_need_lc=yes |
7357 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
7358 |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7359 |
|
fi |
7360 |
|
fi |
7361 |
|
;; |
7362 |
|
|
7363 |
if test "$hardcode_action" = relink; then |
amigaos*) |
7364 |
# Fast installation is not supported |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
7365 |
enable_fast_install=no |
hardcode_libdir_flag_spec='-L$libdir' |
7366 |
elif test "$shlibpath_overrides_runpath" = yes || |
hardcode_minus_L=yes |
7367 |
test "$enable_shared" = no; then |
# see comment about different semantics on the GNU ld section |
7368 |
# Fast installation is not necessary |
ld_shlibs=no |
7369 |
enable_fast_install=needless |
;; |
|
fi |
|
7370 |
|
|
7371 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
bsdi4*) |
7372 |
if test "$GCC" = yes; then |
export_dynamic_flag_spec=-rdynamic |
7373 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
;; |
|
fi |
|
7374 |
|
|
7375 |
if test "x$enable_dlopen" != xyes; then |
cygwin* | mingw* | pw32*) |
7376 |
enable_dlopen=unknown |
# When not using gcc, we currently assume that we are using |
7377 |
enable_dlopen_self=unknown |
# Microsoft Visual C++. |
7378 |
enable_dlopen_self_static=unknown |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
7379 |
else |
# no search path for DLLs. |
7380 |
lt_cv_dlopen=no |
hardcode_libdir_flag_spec=' ' |
7381 |
lt_cv_dlopen_libs= |
allow_undefined_flag=unsupported |
7382 |
|
# Tell ltmain to make .lib files, not .a files. |
7383 |
|
libext=lib |
7384 |
|
# Tell ltmain to make .dll files, not .so files. |
7385 |
|
shrext_cmds=".dll" |
7386 |
|
# FIXME: Setting linknames here is a bad hack. |
7387 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7388 |
|
# The linker will automatically build a .lib file if we build a DLL. |
7389 |
|
old_archive_From_new_cmds='true' |
7390 |
|
# FIXME: Should let the user specify the lib program. |
7391 |
|
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7392 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
7393 |
|
enable_shared_with_static_runtimes=yes |
7394 |
|
;; |
7395 |
|
|
7396 |
case $host_os in |
darwin* | rhapsody*) |
7397 |
beos*) |
if test "$GXX" = yes ; then |
7398 |
lt_cv_dlopen="load_add_on" |
archive_cmds_need_lc=no |
7399 |
lt_cv_dlopen_libs= |
case "$host_os" in |
7400 |
lt_cv_dlopen_self=yes |
rhapsody* | darwin1.[012]) |
7401 |
;; |
allow_undefined_flag='-undefined suppress' |
7402 |
|
;; |
7403 |
|
*) # Darwin 1.3 on |
7404 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7405 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
7406 |
|
else |
7407 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
7408 |
|
10.[012]) |
7409 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
7410 |
|
;; |
7411 |
|
10.*) |
7412 |
|
allow_undefined_flag='-undefined dynamic_lookup' |
7413 |
|
;; |
7414 |
|
esac |
7415 |
|
fi |
7416 |
|
;; |
7417 |
|
esac |
7418 |
|
lt_int_apple_cc_single_mod=no |
7419 |
|
output_verbose_link_cmd='echo' |
7420 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
7421 |
|
lt_int_apple_cc_single_mod=yes |
7422 |
|
fi |
7423 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7424 |
|
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7425 |
|
else |
7426 |
|
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7427 |
|
fi |
7428 |
|
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7429 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
7430 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7431 |
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7432 |
|
else |
7433 |
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7434 |
|
fi |
7435 |
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7436 |
|
hardcode_direct=no |
7437 |
|
hardcode_automatic=yes |
7438 |
|
hardcode_shlibpath_var=unsupported |
7439 |
|
whole_archive_flag_spec='-all_load $convenience' |
7440 |
|
link_all_deplibs=yes |
7441 |
|
else |
7442 |
|
ld_shlibs=no |
7443 |
|
fi |
7444 |
|
;; |
7445 |
|
|
7446 |
cygwin* | mingw* | pw32*) |
dgux*) |
7447 |
lt_cv_dlopen="LoadLibrary" |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7448 |
lt_cv_dlopen_libs= |
hardcode_libdir_flag_spec='-L$libdir' |
7449 |
;; |
hardcode_shlibpath_var=no |
7450 |
|
;; |
7451 |
|
|
7452 |
*) |
freebsd1*) |
7453 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
ld_shlibs=no |
7454 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
;; |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define shl_load innocuous_shl_load |
|
7455 |
|
|
7456 |
/* System header to define __stub macros and hopefully few prototypes, |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7457 |
which can conflict with char shl_load (); below. |
# support. Future versions do this automatically, but an explicit c++rt0.o |
7458 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
# does not break anything, and helps significantly (at the cost of a little |
7459 |
<limits.h> exists even on freestanding compilers. */ |
# extra space). |
7460 |
|
freebsd2.2*) |
7461 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7462 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7463 |
|
hardcode_direct=yes |
7464 |
|
hardcode_shlibpath_var=no |
7465 |
|
;; |
7466 |
|
|
7467 |
#ifdef __STDC__ |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7468 |
# include <limits.h> |
freebsd2*) |
7469 |
#else |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7470 |
# include <assert.h> |
hardcode_direct=yes |
7471 |
#endif |
hardcode_minus_L=yes |
7472 |
|
hardcode_shlibpath_var=no |
7473 |
|
;; |
7474 |
|
|
7475 |
#undef shl_load |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7476 |
|
freebsd* | kfreebsd*-gnu) |
7477 |
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7478 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7479 |
|
hardcode_direct=yes |
7480 |
|
hardcode_shlibpath_var=no |
7481 |
|
;; |
7482 |
|
|
7483 |
/* Override any gcc2 internal prototype to avoid an error. */ |
hpux9*) |
7484 |
#ifdef __cplusplus |
if test "$GCC" = yes; then |
7485 |
extern "C" |
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
7486 |
{ |
else |
7487 |
#endif |
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
7488 |
/* We use char because int might match the return type of a gcc2 |
fi |
7489 |
builtin and then its argument prototype would still apply. */ |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7490 |
char shl_load (); |
hardcode_libdir_separator=: |
7491 |
/* The GNU C library defines this for functions which it implements |
hardcode_direct=yes |
7492 |
to always fail with ENOSYS. Some functions are actually named |
|
7493 |
something starting with __ and the normal name is an alias. */ |
# hardcode_minus_L: Not really in the search PATH, |
7494 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
# but as the default location of the library. |
7495 |
choke me |
hardcode_minus_L=yes |
7496 |
#else |
export_dynamic_flag_spec='${wl}-E' |
7497 |
char (*f) () = shl_load; |
;; |
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
7498 |
|
|
7499 |
int |
hpux10* | hpux11*) |
7500 |
main () |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7501 |
{ |
case "$host_cpu" in |
7502 |
return f != shl_load; |
hppa*64*|ia64*) |
7503 |
; |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7504 |
return 0; |
;; |
7505 |
} |
*) |
7506 |
_ACEOF |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7507 |
rm -f conftest.$ac_objext conftest$ac_exeext |
;; |
7508 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
esac |
7509 |
(eval $ac_link) 2>conftest.er1 |
else |
7510 |
ac_status=$? |
case "$host_cpu" in |
7511 |
grep -v '^ *+' conftest.er1 >conftest.err |
hppa*64*|ia64*) |
7512 |
rm -f conftest.er1 |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
7513 |
cat conftest.err >&5 |
;; |
7514 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
*) |
7515 |
(exit $ac_status); } && |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7516 |
{ ac_try='test -z "$ac_c_werror_flag" |
;; |
7517 |
|| test ! -s conftest.err' |
esac |
7518 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
fi |
7519 |
(eval $ac_try) 2>&5 |
if test "$with_gnu_ld" = no; then |
7520 |
ac_status=$? |
case "$host_cpu" in |
7521 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hppa*64*) |
7522 |
(exit $ac_status); }; } && |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7523 |
{ ac_try='test -s conftest$ac_exeext' |
hardcode_libdir_flag_spec_ld='+b $libdir' |
7524 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
hardcode_libdir_separator=: |
7525 |
(eval $ac_try) 2>&5 |
hardcode_direct=no |
7526 |
ac_status=$? |
hardcode_shlibpath_var=no |
7527 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
;; |
7528 |
(exit $ac_status); }; }; then |
ia64*) |
7529 |
ac_cv_func_shl_load=yes |
hardcode_libdir_flag_spec='-L$libdir' |
7530 |
else |
hardcode_direct=no |
7531 |
echo "$as_me: failed program was:" >&5 |
hardcode_shlibpath_var=no |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7532 |
|
|
7533 |
ac_cv_func_shl_load=no |
# hardcode_minus_L: Not really in the search PATH, |
7534 |
fi |
# but as the default location of the library. |
7535 |
rm -f conftest.err conftest.$ac_objext \ |
hardcode_minus_L=yes |
7536 |
conftest$ac_exeext conftest.$ac_ext |
;; |
7537 |
fi |
*) |
7538 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7539 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
hardcode_libdir_separator=: |
7540 |
if test $ac_cv_func_shl_load = yes; then |
hardcode_direct=yes |
7541 |
lt_cv_dlopen="shl_load" |
export_dynamic_flag_spec='${wl}-E' |
|
else |
|
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-ldld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
7542 |
|
|
7543 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# hardcode_minus_L: Not really in the search PATH, |
7544 |
#ifdef __cplusplus |
# but as the default location of the library. |
7545 |
extern "C" |
hardcode_minus_L=yes |
7546 |
#endif |
;; |
7547 |
/* We use char because int might match the return type of a gcc2 |
esac |
7548 |
builtin and then its argument prototype would still apply. */ |
fi |
7549 |
char shl_load (); |
;; |
|
int |
|
|
main () |
|
|
{ |
|
|
shl_load (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_dld_shl_load=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7550 |
|
|
7551 |
ac_cv_lib_dld_shl_load=no |
irix5* | irix6* | nonstopux*) |
7552 |
fi |
if test "$GCC" = yes; then |
7553 |
rm -f conftest.err conftest.$ac_objext \ |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
7554 |
conftest$ac_exeext conftest.$ac_ext |
else |
7555 |
LIBS=$ac_check_lib_save_LIBS |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
7556 |
fi |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7557 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
fi |
7558 |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7559 |
if test $ac_cv_lib_dld_shl_load = yes; then |
hardcode_libdir_separator=: |
7560 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
link_all_deplibs=yes |
7561 |
else |
;; |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define dlopen innocuous_dlopen |
|
7562 |
|
|
7563 |
/* System header to define __stub macros and hopefully few prototypes, |
netbsd*) |
7564 |
which can conflict with char dlopen (); below. |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7565 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7566 |
<limits.h> exists even on freestanding compilers. */ |
else |
7567 |
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7568 |
|
fi |
7569 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7570 |
|
hardcode_direct=yes |
7571 |
|
hardcode_shlibpath_var=no |
7572 |
|
;; |
7573 |
|
|
7574 |
#ifdef __STDC__ |
newsos6) |
7575 |
# include <limits.h> |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7576 |
#else |
hardcode_direct=yes |
7577 |
# include <assert.h> |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7578 |
#endif |
hardcode_libdir_separator=: |
7579 |
|
hardcode_shlibpath_var=no |
7580 |
|
;; |
7581 |
|
|
7582 |
#undef dlopen |
openbsd*) |
7583 |
|
hardcode_direct=yes |
7584 |
|
hardcode_shlibpath_var=no |
7585 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7586 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7587 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7588 |
|
export_dynamic_flag_spec='${wl}-E' |
7589 |
|
else |
7590 |
|
case $host_os in |
7591 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7592 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7593 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7594 |
|
;; |
7595 |
|
*) |
7596 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7597 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7598 |
|
;; |
7599 |
|
esac |
7600 |
|
fi |
7601 |
|
;; |
7602 |
|
|
7603 |
/* Override any gcc2 internal prototype to avoid an error. */ |
os2*) |
7604 |
#ifdef __cplusplus |
hardcode_libdir_flag_spec='-L$libdir' |
7605 |
extern "C" |
hardcode_minus_L=yes |
7606 |
{ |
allow_undefined_flag=unsupported |
7607 |
#endif |
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
7608 |
/* We use char because int might match the return type of a gcc2 |
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7609 |
builtin and then its argument prototype would still apply. */ |
;; |
|
char dlopen (); |
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
choke me |
|
|
#else |
|
|
char (*f) () = dlopen; |
|
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
7610 |
|
|
7611 |
int |
osf3*) |
7612 |
main () |
if test "$GCC" = yes; then |
7613 |
{ |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7614 |
return f != dlopen; |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
7615 |
; |
else |
7616 |
return 0; |
allow_undefined_flag=' -expect_unresolved \*' |
7617 |
} |
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
7618 |
_ACEOF |
fi |
7619 |
rm -f conftest.$ac_objext conftest$ac_exeext |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7620 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
hardcode_libdir_separator=: |
7621 |
(eval $ac_link) 2>conftest.er1 |
;; |
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_func_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7622 |
|
|
7623 |
ac_cv_func_dlopen=no |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
7624 |
fi |
if test "$GCC" = yes; then |
7625 |
rm -f conftest.err conftest.$ac_objext \ |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7626 |
conftest$ac_exeext conftest.$ac_ext |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
7627 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7628 |
|
else |
7629 |
|
allow_undefined_flag=' -expect_unresolved \*' |
7630 |
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
7631 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7632 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
7633 |
|
|
7634 |
|
# Both c and cxx compiler support -rpath directly |
7635 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
7636 |
|
fi |
7637 |
|
hardcode_libdir_separator=: |
7638 |
|
;; |
7639 |
|
|
7640 |
|
sco3.2v5*) |
7641 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7642 |
|
hardcode_shlibpath_var=no |
7643 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
7644 |
|
runpath_var=LD_RUN_PATH |
7645 |
|
hardcode_runpath_var=yes |
7646 |
|
;; |
7647 |
|
|
7648 |
|
solaris*) |
7649 |
|
no_undefined_flag=' -z text' |
7650 |
|
if test "$GCC" = yes; then |
7651 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7652 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7653 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7654 |
|
else |
7655 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7656 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7657 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7658 |
|
fi |
7659 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7660 |
|
hardcode_shlibpath_var=no |
7661 |
|
case $host_os in |
7662 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
7663 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
7664 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7665 |
|
esac |
7666 |
|
link_all_deplibs=yes |
7667 |
|
;; |
7668 |
|
|
7669 |
|
sunos4*) |
7670 |
|
if test "x$host_vendor" = xsequent; then |
7671 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
7672 |
|
# files that make .init and .fini sections work. |
7673 |
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7674 |
|
else |
7675 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7676 |
|
fi |
7677 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7678 |
|
hardcode_direct=yes |
7679 |
|
hardcode_minus_L=yes |
7680 |
|
hardcode_shlibpath_var=no |
7681 |
|
;; |
7682 |
|
|
7683 |
|
sysv4) |
7684 |
|
case $host_vendor in |
7685 |
|
sni) |
7686 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7687 |
|
hardcode_direct=yes # is this really true??? |
7688 |
|
;; |
7689 |
|
siemens) |
7690 |
|
## LD is ld it makes a PLAMLIB |
7691 |
|
## CC just makes a GrossModule. |
7692 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7693 |
|
reload_cmds='$CC -r -o $output$reload_objs' |
7694 |
|
hardcode_direct=no |
7695 |
|
;; |
7696 |
|
motorola) |
7697 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7698 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7699 |
|
;; |
7700 |
|
esac |
7701 |
|
runpath_var='LD_RUN_PATH' |
7702 |
|
hardcode_shlibpath_var=no |
7703 |
|
;; |
7704 |
|
|
7705 |
|
sysv4.3*) |
7706 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7707 |
|
hardcode_shlibpath_var=no |
7708 |
|
export_dynamic_flag_spec='-Bexport' |
7709 |
|
;; |
7710 |
|
|
7711 |
|
sysv4*MP*) |
7712 |
|
if test -d /usr/nec; then |
7713 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7714 |
|
hardcode_shlibpath_var=no |
7715 |
|
runpath_var=LD_RUN_PATH |
7716 |
|
hardcode_runpath_var=yes |
7717 |
|
ld_shlibs=yes |
7718 |
|
fi |
7719 |
|
;; |
7720 |
|
|
7721 |
|
sysv4.2uw2*) |
7722 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7723 |
|
hardcode_direct=yes |
7724 |
|
hardcode_minus_L=no |
7725 |
|
hardcode_shlibpath_var=no |
7726 |
|
hardcode_runpath_var=yes |
7727 |
|
runpath_var=LD_RUN_PATH |
7728 |
|
;; |
7729 |
|
|
7730 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
7731 |
|
no_undefined_flag='${wl}-z ${wl}text' |
7732 |
|
if test "$GCC" = yes; then |
7733 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7734 |
|
else |
7735 |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7736 |
|
fi |
7737 |
|
runpath_var='LD_RUN_PATH' |
7738 |
|
hardcode_shlibpath_var=no |
7739 |
|
;; |
7740 |
|
|
7741 |
|
sysv5*) |
7742 |
|
no_undefined_flag=' -z text' |
7743 |
|
# $CC -shared without GNU ld will not create a library from C++ |
7744 |
|
# object files and a static libstdc++, better avoid it by now |
7745 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7746 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7747 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7748 |
|
hardcode_libdir_flag_spec= |
7749 |
|
hardcode_shlibpath_var=no |
7750 |
|
runpath_var='LD_RUN_PATH' |
7751 |
|
;; |
7752 |
|
|
7753 |
|
uts4*) |
7754 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7755 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7756 |
|
hardcode_shlibpath_var=no |
7757 |
|
;; |
7758 |
|
|
7759 |
|
*) |
7760 |
|
ld_shlibs=no |
7761 |
|
;; |
7762 |
|
esac |
7763 |
|
fi |
7764 |
|
|
7765 |
|
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7766 |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
7767 |
|
test "$ld_shlibs" = no && can_build_shared=no |
7768 |
|
|
7769 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
7770 |
|
if test "$GCC" = yes; then |
7771 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
7772 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
if test $ac_cv_func_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-ldl $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
7773 |
|
|
7774 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# |
7775 |
#ifdef __cplusplus |
# Do we need to explicitly link libc? |
7776 |
extern "C" |
# |
7777 |
#endif |
case "x$archive_cmds_need_lc" in |
7778 |
/* We use char because int might match the return type of a gcc2 |
x|xyes) |
7779 |
builtin and then its argument prototype would still apply. */ |
# Assume -lc should be added |
7780 |
char dlopen (); |
archive_cmds_need_lc=yes |
7781 |
int |
|
7782 |
main () |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
7783 |
{ |
case $archive_cmds in |
7784 |
dlopen (); |
*'~'*) |
7785 |
; |
# FIXME: we may have to deal with multi-command sequences. |
7786 |
return 0; |
;; |
7787 |
} |
'$CC '*) |
7788 |
_ACEOF |
# Test whether the compiler implicitly links with -lc since on some |
7789 |
rm -f conftest.$ac_objext conftest$ac_exeext |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
7790 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
# to ld, don't add -lc before -lgcc. |
7791 |
(eval $ac_link) 2>conftest.er1 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7792 |
ac_status=$? |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7793 |
grep -v '^ *+' conftest.er1 >conftest.err |
$rm conftest* |
7794 |
rm -f conftest.er1 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7795 |
cat conftest.err >&5 |
|
7796 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7797 |
(exit $ac_status); } && |
(eval $ac_compile) 2>&5 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
7798 |
ac_status=$? |
ac_status=$? |
7799 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7800 |
(exit $ac_status); }; } && |
(exit $ac_status); } 2>conftest.err; then |
7801 |
{ ac_try='test -s conftest$ac_exeext' |
soname=conftest |
7802 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
lib=conftest |
7803 |
(eval $ac_try) 2>&5 |
libobjs=conftest.$ac_objext |
7804 |
|
deplibs= |
7805 |
|
wl=$lt_prog_compiler_wl |
7806 |
|
compiler_flags=-v |
7807 |
|
linker_flags=-v |
7808 |
|
verstring= |
7809 |
|
output_objdir=. |
7810 |
|
libname=conftest |
7811 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag |
7812 |
|
allow_undefined_flag= |
7813 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7814 |
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7815 |
ac_status=$? |
ac_status=$? |
7816 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7817 |
(exit $ac_status); }; }; then |
(exit $ac_status); } |
7818 |
ac_cv_lib_dl_dlopen=yes |
then |
7819 |
|
archive_cmds_need_lc=no |
7820 |
|
else |
7821 |
|
archive_cmds_need_lc=yes |
7822 |
|
fi |
7823 |
|
allow_undefined_flag=$lt_save_allow_undefined_flag |
7824 |
|
else |
7825 |
|
cat conftest.err 1>&5 |
7826 |
|
fi |
7827 |
|
$rm conftest* |
7828 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7829 |
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7830 |
|
;; |
7831 |
|
esac |
7832 |
|
fi |
7833 |
|
;; |
7834 |
|
esac |
7835 |
|
|
7836 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7837 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7838 |
|
library_names_spec= |
7839 |
|
libname_spec='lib$name' |
7840 |
|
soname_spec= |
7841 |
|
shrext_cmds=".so" |
7842 |
|
postinstall_cmds= |
7843 |
|
postuninstall_cmds= |
7844 |
|
finish_cmds= |
7845 |
|
finish_eval= |
7846 |
|
shlibpath_var= |
7847 |
|
shlibpath_overrides_runpath=unknown |
7848 |
|
version_type=none |
7849 |
|
dynamic_linker="$host_os ld.so" |
7850 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7851 |
|
if test "$GCC" = yes; then |
7852 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7853 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7854 |
|
# if the path contains ";" then we assume it to be the separator |
7855 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
7856 |
|
# assumed that no part of a normal pathname contains ";" but that should |
7857 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
7858 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7859 |
|
else |
7860 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7861 |
|
fi |
7862 |
else |
else |
7863 |
echo "$as_me: failed program was:" >&5 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7864 |
sed 's/^/| /' conftest.$ac_ext >&5 |
fi |
7865 |
|
need_lib_prefix=unknown |
7866 |
|
hardcode_into_libs=no |
7867 |
|
|
7868 |
|
# when you set need_version to no, make sure it does not cause -set_version |
7869 |
|
# flags to be left without arguments |
7870 |
|
need_version=unknown |
7871 |
|
|
7872 |
|
case $host_os in |
7873 |
|
aix3*) |
7874 |
|
version_type=linux |
7875 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7876 |
|
shlibpath_var=LIBPATH |
7877 |
|
|
7878 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
7879 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7880 |
|
;; |
7881 |
|
|
7882 |
|
aix4* | aix5*) |
7883 |
|
version_type=linux |
7884 |
|
need_lib_prefix=no |
7885 |
|
need_version=no |
7886 |
|
hardcode_into_libs=yes |
7887 |
|
if test "$host_cpu" = ia64; then |
7888 |
|
# AIX 5 supports IA64 |
7889 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7890 |
|
shlibpath_var=LD_LIBRARY_PATH |
7891 |
|
else |
7892 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
7893 |
|
# for dependence libraries. The import file would start with |
7894 |
|
# the line `#! .'. This would cause the generated library to |
7895 |
|
# depend on `.', always an invalid library. This was fixed in |
7896 |
|
# development snapshots of GCC prior to 3.0. |
7897 |
|
case $host_os in |
7898 |
|
aix4 | aix4.[01] | aix4.[01].*) |
7899 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7900 |
|
echo ' yes ' |
7901 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7902 |
|
: |
7903 |
|
else |
7904 |
|
can_build_shared=no |
7905 |
|
fi |
7906 |
|
;; |
7907 |
|
esac |
7908 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7909 |
|
# soname into executable. Probably we can add versioning support to |
7910 |
|
# collect2, so additional links can be useful in future. |
7911 |
|
if test "$aix_use_runtimelinking" = yes; then |
7912 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7913 |
|
# instead of lib<name>.a to let people know that these are not |
7914 |
|
# typical AIX shared libraries. |
7915 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7916 |
|
else |
7917 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
7918 |
|
# and later when we are not doing run time linking. |
7919 |
|
library_names_spec='${libname}${release}.a $libname.a' |
7920 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7921 |
|
fi |
7922 |
|
shlibpath_var=LIBPATH |
7923 |
|
fi |
7924 |
|
;; |
7925 |
|
|
7926 |
|
amigaos*) |
7927 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
7928 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
7929 |
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
7930 |
|
;; |
7931 |
|
|
7932 |
|
beos*) |
7933 |
|
library_names_spec='${libname}${shared_ext}' |
7934 |
|
dynamic_linker="$host_os ld.so" |
7935 |
|
shlibpath_var=LIBRARY_PATH |
7936 |
|
;; |
7937 |
|
|
7938 |
|
bsdi4*) |
7939 |
|
version_type=linux |
7940 |
|
need_version=no |
7941 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7942 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7943 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
7944 |
|
shlibpath_var=LD_LIBRARY_PATH |
7945 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
7946 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
7947 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
7948 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
7949 |
|
# libtool to hard-code these into programs |
7950 |
|
;; |
7951 |
|
|
7952 |
|
cygwin* | mingw* | pw32*) |
7953 |
|
version_type=windows |
7954 |
|
shrext_cmds=".dll" |
7955 |
|
need_version=no |
7956 |
|
need_lib_prefix=no |
7957 |
|
|
7958 |
|
case $GCC,$host_os in |
7959 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
7960 |
|
library_names_spec='$libname.dll.a' |
7961 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
7962 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
7963 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
7964 |
|
dldir=$destdir/`dirname \$dlpath`~ |
7965 |
|
test -d \$dldir || mkdir -p \$dldir~ |
7966 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
7967 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
7968 |
|
dlpath=$dir/\$dldll~ |
7969 |
|
$rm \$dlpath' |
7970 |
|
shlibpath_overrides_runpath=yes |
7971 |
|
|
7972 |
|
case $host_os in |
7973 |
|
cygwin*) |
7974 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
7975 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7976 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
7977 |
|
;; |
7978 |
|
mingw*) |
7979 |
|
# MinGW DLLs use traditional 'lib' prefix |
7980 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7981 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7982 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
7983 |
|
# It is most probably a Windows format PATH printed by |
7984 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
7985 |
|
# path with ; separators, and with drive letters. We can handle the |
7986 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
7987 |
|
# especially as we might pass files found there to a mingw objdump, |
7988 |
|
# which wouldn't understand a cygwinified path. Ahh. |
7989 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7990 |
|
else |
7991 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7992 |
|
fi |
7993 |
|
;; |
7994 |
|
pw32*) |
7995 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
7996 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
7997 |
|
;; |
7998 |
|
esac |
7999 |
|
;; |
8000 |
|
|
8001 |
|
*) |
8002 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8003 |
|
;; |
8004 |
|
esac |
8005 |
|
dynamic_linker='Win32 ld.exe' |
8006 |
|
# FIXME: first we should search . and the directory the executable is in |
8007 |
|
shlibpath_var=PATH |
8008 |
|
;; |
8009 |
|
|
8010 |
|
darwin* | rhapsody*) |
8011 |
|
dynamic_linker="$host_os dyld" |
8012 |
|
version_type=darwin |
8013 |
|
need_lib_prefix=no |
8014 |
|
need_version=no |
8015 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8016 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
8017 |
|
shlibpath_overrides_runpath=yes |
8018 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
8019 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
8020 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8021 |
|
if test "$GCC" = yes; then |
8022 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
8023 |
|
else |
8024 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8025 |
|
fi |
8026 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8027 |
|
;; |
8028 |
|
|
8029 |
|
dgux*) |
8030 |
|
version_type=linux |
8031 |
|
need_lib_prefix=no |
8032 |
|
need_version=no |
8033 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8034 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8035 |
|
shlibpath_var=LD_LIBRARY_PATH |
8036 |
|
;; |
8037 |
|
|
8038 |
|
freebsd1*) |
8039 |
|
dynamic_linker=no |
8040 |
|
;; |
8041 |
|
|
8042 |
|
kfreebsd*-gnu) |
8043 |
|
version_type=linux |
8044 |
|
need_lib_prefix=no |
8045 |
|
need_version=no |
8046 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8047 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8048 |
|
shlibpath_var=LD_LIBRARY_PATH |
8049 |
|
shlibpath_overrides_runpath=no |
8050 |
|
hardcode_into_libs=yes |
8051 |
|
dynamic_linker='GNU ld.so' |
8052 |
|
;; |
8053 |
|
|
8054 |
|
freebsd*) |
8055 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
8056 |
|
version_type=freebsd-$objformat |
8057 |
|
case $version_type in |
8058 |
|
freebsd-elf*) |
8059 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8060 |
|
need_version=no |
8061 |
|
need_lib_prefix=no |
8062 |
|
;; |
8063 |
|
freebsd-*) |
8064 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8065 |
|
need_version=yes |
8066 |
|
;; |
8067 |
|
esac |
8068 |
|
shlibpath_var=LD_LIBRARY_PATH |
8069 |
|
case $host_os in |
8070 |
|
freebsd2*) |
8071 |
|
shlibpath_overrides_runpath=yes |
8072 |
|
;; |
8073 |
|
freebsd3.01* | freebsdelf3.01*) |
8074 |
|
shlibpath_overrides_runpath=yes |
8075 |
|
hardcode_into_libs=yes |
8076 |
|
;; |
8077 |
|
*) # from 3.2 on |
8078 |
|
shlibpath_overrides_runpath=no |
8079 |
|
hardcode_into_libs=yes |
8080 |
|
;; |
8081 |
|
esac |
8082 |
|
;; |
8083 |
|
|
8084 |
|
gnu*) |
8085 |
|
version_type=linux |
8086 |
|
need_lib_prefix=no |
8087 |
|
need_version=no |
8088 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8089 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8090 |
|
shlibpath_var=LD_LIBRARY_PATH |
8091 |
|
hardcode_into_libs=yes |
8092 |
|
;; |
8093 |
|
|
8094 |
|
hpux9* | hpux10* | hpux11*) |
8095 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
8096 |
|
# link against other versions. |
8097 |
|
version_type=sunos |
8098 |
|
need_lib_prefix=no |
8099 |
|
need_version=no |
8100 |
|
case "$host_cpu" in |
8101 |
|
ia64*) |
8102 |
|
shrext_cmds='.so' |
8103 |
|
hardcode_into_libs=yes |
8104 |
|
dynamic_linker="$host_os dld.so" |
8105 |
|
shlibpath_var=LD_LIBRARY_PATH |
8106 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8107 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8108 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8109 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
8110 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8111 |
|
else |
8112 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8113 |
|
fi |
8114 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8115 |
|
;; |
8116 |
|
hppa*64*) |
8117 |
|
shrext_cmds='.sl' |
8118 |
|
hardcode_into_libs=yes |
8119 |
|
dynamic_linker="$host_os dld.sl" |
8120 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8121 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8122 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8123 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8124 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8125 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8126 |
|
;; |
8127 |
|
*) |
8128 |
|
shrext_cmds='.sl' |
8129 |
|
dynamic_linker="$host_os dld.sl" |
8130 |
|
shlibpath_var=SHLIB_PATH |
8131 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8132 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8133 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8134 |
|
;; |
8135 |
|
esac |
8136 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
8137 |
|
postinstall_cmds='chmod 555 $lib' |
8138 |
|
;; |
8139 |
|
|
8140 |
|
irix5* | irix6* | nonstopux*) |
8141 |
|
case $host_os in |
8142 |
|
nonstopux*) version_type=nonstopux ;; |
8143 |
|
*) |
8144 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
8145 |
|
version_type=linux |
8146 |
|
else |
8147 |
|
version_type=irix |
8148 |
|
fi ;; |
8149 |
|
esac |
8150 |
|
need_lib_prefix=no |
8151 |
|
need_version=no |
8152 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8153 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8154 |
|
case $host_os in |
8155 |
|
irix5* | nonstopux*) |
8156 |
|
libsuff= shlibsuff= |
8157 |
|
;; |
8158 |
|
*) |
8159 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
8160 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8161 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
8162 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8163 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
8164 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8165 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8166 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
8167 |
|
esac |
8168 |
|
;; |
8169 |
|
esac |
8170 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8171 |
|
shlibpath_overrides_runpath=no |
8172 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8173 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8174 |
|
hardcode_into_libs=yes |
8175 |
|
;; |
8176 |
|
|
8177 |
|
# No shared lib support for Linux oldld, aout, or coff. |
8178 |
|
linux*oldld* | linux*aout* | linux*coff*) |
8179 |
|
dynamic_linker=no |
8180 |
|
;; |
8181 |
|
|
8182 |
|
# This must be Linux ELF. |
8183 |
|
linux*) |
8184 |
|
version_type=linux |
8185 |
|
need_lib_prefix=no |
8186 |
|
need_version=no |
8187 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8188 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8189 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8190 |
|
shlibpath_var=LD_LIBRARY_PATH |
8191 |
|
shlibpath_overrides_runpath=no |
8192 |
|
# This implies no fast_install, which is unacceptable. |
8193 |
|
# Some rework will be needed to allow for fast_install |
8194 |
|
# before this can be enabled. |
8195 |
|
hardcode_into_libs=yes |
8196 |
|
|
8197 |
|
libsuff= |
8198 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
8199 |
|
libsuff=64 |
8200 |
|
fi |
8201 |
|
|
8202 |
|
# Append ld.so.conf contents to the search path |
8203 |
|
if test -f /etc/ld.so.conf; then |
8204 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
8205 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
8206 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
8207 |
|
fi |
8208 |
|
|
8209 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
8210 |
|
# powerpc, because MkLinux only supported shared libraries with the |
8211 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
8212 |
|
# most powerpc-linux boxes support dynamic linking these days and |
8213 |
|
# people can always --disable-shared, the test was removed, and we |
8214 |
|
# assume the GNU/Linux dynamic linker is in use. |
8215 |
|
dynamic_linker='GNU/Linux ld.so' |
8216 |
|
;; |
8217 |
|
|
8218 |
|
knetbsd*-gnu) |
8219 |
|
version_type=linux |
8220 |
|
need_lib_prefix=no |
8221 |
|
need_version=no |
8222 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8223 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8224 |
|
shlibpath_var=LD_LIBRARY_PATH |
8225 |
|
shlibpath_overrides_runpath=no |
8226 |
|
hardcode_into_libs=yes |
8227 |
|
dynamic_linker='GNU ld.so' |
8228 |
|
;; |
8229 |
|
|
8230 |
|
netbsd*) |
8231 |
|
version_type=sunos |
8232 |
|
need_lib_prefix=no |
8233 |
|
need_version=no |
8234 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8235 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8236 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8237 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
8238 |
|
else |
8239 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8240 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8241 |
|
dynamic_linker='NetBSD ld.elf_so' |
8242 |
|
fi |
8243 |
|
shlibpath_var=LD_LIBRARY_PATH |
8244 |
|
shlibpath_overrides_runpath=yes |
8245 |
|
hardcode_into_libs=yes |
8246 |
|
;; |
8247 |
|
|
8248 |
|
newsos6) |
8249 |
|
version_type=linux |
8250 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8251 |
|
shlibpath_var=LD_LIBRARY_PATH |
8252 |
|
shlibpath_overrides_runpath=yes |
8253 |
|
;; |
8254 |
|
|
8255 |
|
nto-qnx*) |
8256 |
|
version_type=linux |
8257 |
|
need_lib_prefix=no |
8258 |
|
need_version=no |
8259 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8260 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8261 |
|
shlibpath_var=LD_LIBRARY_PATH |
8262 |
|
shlibpath_overrides_runpath=yes |
8263 |
|
;; |
8264 |
|
|
8265 |
|
openbsd*) |
8266 |
|
version_type=sunos |
8267 |
|
need_lib_prefix=no |
8268 |
|
need_version=yes |
8269 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8270 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8271 |
|
shlibpath_var=LD_LIBRARY_PATH |
8272 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8273 |
|
case $host_os in |
8274 |
|
openbsd2.[89] | openbsd2.[89].*) |
8275 |
|
shlibpath_overrides_runpath=no |
8276 |
|
;; |
8277 |
|
*) |
8278 |
|
shlibpath_overrides_runpath=yes |
8279 |
|
;; |
8280 |
|
esac |
8281 |
|
else |
8282 |
|
shlibpath_overrides_runpath=yes |
8283 |
|
fi |
8284 |
|
;; |
8285 |
|
|
8286 |
|
os2*) |
8287 |
|
libname_spec='$name' |
8288 |
|
shrext_cmds=".dll" |
8289 |
|
need_lib_prefix=no |
8290 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
8291 |
|
dynamic_linker='OS/2 ld.exe' |
8292 |
|
shlibpath_var=LIBPATH |
8293 |
|
;; |
8294 |
|
|
8295 |
|
osf3* | osf4* | osf5*) |
8296 |
|
version_type=osf |
8297 |
|
need_lib_prefix=no |
8298 |
|
need_version=no |
8299 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8300 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8301 |
|
shlibpath_var=LD_LIBRARY_PATH |
8302 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8303 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8304 |
|
;; |
8305 |
|
|
8306 |
|
sco3.2v5*) |
8307 |
|
version_type=osf |
8308 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8309 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8310 |
|
shlibpath_var=LD_LIBRARY_PATH |
8311 |
|
;; |
8312 |
|
|
8313 |
|
solaris*) |
8314 |
|
version_type=linux |
8315 |
|
need_lib_prefix=no |
8316 |
|
need_version=no |
8317 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8318 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8319 |
|
shlibpath_var=LD_LIBRARY_PATH |
8320 |
|
shlibpath_overrides_runpath=yes |
8321 |
|
hardcode_into_libs=yes |
8322 |
|
# ldd complains unless libraries are executable |
8323 |
|
postinstall_cmds='chmod +x $lib' |
8324 |
|
;; |
8325 |
|
|
8326 |
|
sunos4*) |
8327 |
|
version_type=sunos |
8328 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8329 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8330 |
|
shlibpath_var=LD_LIBRARY_PATH |
8331 |
|
shlibpath_overrides_runpath=yes |
8332 |
|
if test "$with_gnu_ld" = yes; then |
8333 |
|
need_lib_prefix=no |
8334 |
|
fi |
8335 |
|
need_version=yes |
8336 |
|
;; |
8337 |
|
|
8338 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
8339 |
|
version_type=linux |
8340 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8341 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8342 |
|
shlibpath_var=LD_LIBRARY_PATH |
8343 |
|
case $host_vendor in |
8344 |
|
sni) |
8345 |
|
shlibpath_overrides_runpath=no |
8346 |
|
need_lib_prefix=no |
8347 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
8348 |
|
runpath_var=LD_RUN_PATH |
8349 |
|
;; |
8350 |
|
siemens) |
8351 |
|
need_lib_prefix=no |
8352 |
|
;; |
8353 |
|
motorola) |
8354 |
|
need_lib_prefix=no |
8355 |
|
need_version=no |
8356 |
|
shlibpath_overrides_runpath=no |
8357 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8358 |
|
;; |
8359 |
|
esac |
8360 |
|
;; |
8361 |
|
|
8362 |
|
sysv4*MP*) |
8363 |
|
if test -d /usr/nec ;then |
8364 |
|
version_type=linux |
8365 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8366 |
|
soname_spec='$libname${shared_ext}.$major' |
8367 |
|
shlibpath_var=LD_LIBRARY_PATH |
8368 |
|
fi |
8369 |
|
;; |
8370 |
|
|
8371 |
|
uts4*) |
8372 |
|
version_type=linux |
8373 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8374 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8375 |
|
shlibpath_var=LD_LIBRARY_PATH |
8376 |
|
;; |
8377 |
|
|
8378 |
|
*) |
8379 |
|
dynamic_linker=no |
8380 |
|
;; |
8381 |
|
esac |
8382 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8383 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
8384 |
|
test "$dynamic_linker" = no && can_build_shared=no |
8385 |
|
|
8386 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8387 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8388 |
|
hardcode_action= |
8389 |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
8390 |
|
test -n "$runpath_var " || \ |
8391 |
|
test "X$hardcode_automatic"="Xyes" ; then |
8392 |
|
|
8393 |
|
# We can hardcode non-existant directories. |
8394 |
|
if test "$hardcode_direct" != no && |
8395 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
8396 |
|
# have to relink, otherwise we might link with an installed library |
8397 |
|
# when we should be linking with a yet-to-be-installed one |
8398 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8399 |
|
test "$hardcode_minus_L" != no; then |
8400 |
|
# Linking always hardcodes the temporary library directory. |
8401 |
|
hardcode_action=relink |
8402 |
|
else |
8403 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
8404 |
|
hardcode_action=immediate |
8405 |
|
fi |
8406 |
|
else |
8407 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
8408 |
|
# directories. |
8409 |
|
hardcode_action=unsupported |
8410 |
|
fi |
8411 |
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8412 |
|
echo "${ECHO_T}$hardcode_action" >&6 |
8413 |
|
|
8414 |
|
if test "$hardcode_action" = relink; then |
8415 |
|
# Fast installation is not supported |
8416 |
|
enable_fast_install=no |
8417 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
8418 |
|
test "$enable_shared" = no; then |
8419 |
|
# Fast installation is not necessary |
8420 |
|
enable_fast_install=needless |
8421 |
|
fi |
8422 |
|
|
8423 |
|
striplib= |
8424 |
|
old_striplib= |
8425 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8426 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8427 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8428 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8429 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8430 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8431 |
|
echo "${ECHO_T}yes" >&6 |
8432 |
|
else |
8433 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
8434 |
|
case $host_os in |
8435 |
|
darwin*) |
8436 |
|
if test -n "$STRIP" ; then |
8437 |
|
striplib="$STRIP -x" |
8438 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8439 |
|
echo "${ECHO_T}yes" >&6 |
8440 |
|
else |
8441 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8442 |
|
echo "${ECHO_T}no" >&6 |
8443 |
|
fi |
8444 |
|
;; |
8445 |
|
*) |
8446 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8447 |
|
echo "${ECHO_T}no" >&6 |
8448 |
|
;; |
8449 |
|
esac |
8450 |
|
fi |
8451 |
|
|
8452 |
|
if test "x$enable_dlopen" != xyes; then |
8453 |
|
enable_dlopen=unknown |
8454 |
|
enable_dlopen_self=unknown |
8455 |
|
enable_dlopen_self_static=unknown |
8456 |
|
else |
8457 |
|
lt_cv_dlopen=no |
8458 |
|
lt_cv_dlopen_libs= |
8459 |
|
|
8460 |
|
case $host_os in |
8461 |
|
beos*) |
8462 |
|
lt_cv_dlopen="load_add_on" |
8463 |
|
lt_cv_dlopen_libs= |
8464 |
|
lt_cv_dlopen_self=yes |
8465 |
|
;; |
8466 |
|
|
8467 |
|
mingw* | pw32*) |
8468 |
|
lt_cv_dlopen="LoadLibrary" |
8469 |
|
lt_cv_dlopen_libs= |
8470 |
|
;; |
8471 |
|
|
8472 |
|
cygwin*) |
8473 |
|
lt_cv_dlopen="dlopen" |
8474 |
|
lt_cv_dlopen_libs= |
8475 |
|
;; |
8476 |
|
|
8477 |
|
darwin*) |
8478 |
|
# if libdl is installed we need to link against it |
8479 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8480 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8481 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8482 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8483 |
|
else |
8484 |
|
ac_check_lib_save_LIBS=$LIBS |
8485 |
|
LIBS="-ldl $LIBS" |
8486 |
|
cat >conftest.$ac_ext <<_ACEOF |
8487 |
|
/* confdefs.h. */ |
8488 |
|
_ACEOF |
8489 |
|
cat confdefs.h >>conftest.$ac_ext |
8490 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8491 |
|
/* end confdefs.h. */ |
8492 |
|
|
8493 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8494 |
|
#ifdef __cplusplus |
8495 |
|
extern "C" |
8496 |
|
#endif |
8497 |
|
/* We use char because int might match the return type of a gcc2 |
8498 |
|
builtin and then its argument prototype would still apply. */ |
8499 |
|
char dlopen (); |
8500 |
|
int |
8501 |
|
main () |
8502 |
|
{ |
8503 |
|
dlopen (); |
8504 |
|
; |
8505 |
|
return 0; |
8506 |
|
} |
8507 |
|
_ACEOF |
8508 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8509 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8510 |
|
(eval $ac_link) 2>conftest.er1 |
8511 |
|
ac_status=$? |
8512 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8513 |
|
rm -f conftest.er1 |
8514 |
|
cat conftest.err >&5 |
8515 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8516 |
|
(exit $ac_status); } && |
8517 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8518 |
|
|| test ! -s conftest.err' |
8519 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8520 |
|
(eval $ac_try) 2>&5 |
8521 |
|
ac_status=$? |
8522 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8523 |
|
(exit $ac_status); }; } && |
8524 |
|
{ ac_try='test -s conftest$ac_exeext' |
8525 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8526 |
|
(eval $ac_try) 2>&5 |
8527 |
|
ac_status=$? |
8528 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8529 |
|
(exit $ac_status); }; }; then |
8530 |
|
ac_cv_lib_dl_dlopen=yes |
8531 |
|
else |
8532 |
|
echo "$as_me: failed program was:" >&5 |
8533 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8534 |
|
|
8535 |
|
ac_cv_lib_dl_dlopen=no |
8536 |
|
fi |
8537 |
|
rm -f conftest.err conftest.$ac_objext \ |
8538 |
|
conftest$ac_exeext conftest.$ac_ext |
8539 |
|
LIBS=$ac_check_lib_save_LIBS |
8540 |
|
fi |
8541 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8542 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8543 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8544 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8545 |
|
else |
8546 |
|
|
8547 |
|
lt_cv_dlopen="dyld" |
8548 |
|
lt_cv_dlopen_libs= |
8549 |
|
lt_cv_dlopen_self=yes |
8550 |
|
|
8551 |
|
fi |
8552 |
|
|
8553 |
|
;; |
8554 |
|
|
8555 |
|
*) |
8556 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
8557 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8558 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
8559 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8560 |
|
else |
8561 |
|
cat >conftest.$ac_ext <<_ACEOF |
8562 |
|
/* confdefs.h. */ |
8563 |
|
_ACEOF |
8564 |
|
cat confdefs.h >>conftest.$ac_ext |
8565 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8566 |
|
/* end confdefs.h. */ |
8567 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8568 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8569 |
|
#define shl_load innocuous_shl_load |
8570 |
|
|
8571 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8572 |
|
which can conflict with char shl_load (); below. |
8573 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8574 |
|
<limits.h> exists even on freestanding compilers. */ |
8575 |
|
|
8576 |
|
#ifdef __STDC__ |
8577 |
|
# include <limits.h> |
8578 |
|
#else |
8579 |
|
# include <assert.h> |
8580 |
|
#endif |
8581 |
|
|
8582 |
|
#undef shl_load |
8583 |
|
|
8584 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8585 |
|
#ifdef __cplusplus |
8586 |
|
extern "C" |
8587 |
|
{ |
8588 |
|
#endif |
8589 |
|
/* We use char because int might match the return type of a gcc2 |
8590 |
|
builtin and then its argument prototype would still apply. */ |
8591 |
|
char shl_load (); |
8592 |
|
/* The GNU C library defines this for functions which it implements |
8593 |
|
to always fail with ENOSYS. Some functions are actually named |
8594 |
|
something starting with __ and the normal name is an alias. */ |
8595 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
8596 |
|
choke me |
8597 |
|
#else |
8598 |
|
char (*f) () = shl_load; |
8599 |
|
#endif |
8600 |
|
#ifdef __cplusplus |
8601 |
|
} |
8602 |
|
#endif |
8603 |
|
|
8604 |
|
int |
8605 |
|
main () |
8606 |
|
{ |
8607 |
|
return f != shl_load; |
8608 |
|
; |
8609 |
|
return 0; |
8610 |
|
} |
8611 |
|
_ACEOF |
8612 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8613 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8614 |
|
(eval $ac_link) 2>conftest.er1 |
8615 |
|
ac_status=$? |
8616 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8617 |
|
rm -f conftest.er1 |
8618 |
|
cat conftest.err >&5 |
8619 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8620 |
|
(exit $ac_status); } && |
8621 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8622 |
|
|| test ! -s conftest.err' |
8623 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8624 |
|
(eval $ac_try) 2>&5 |
8625 |
|
ac_status=$? |
8626 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8627 |
|
(exit $ac_status); }; } && |
8628 |
|
{ ac_try='test -s conftest$ac_exeext' |
8629 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8630 |
|
(eval $ac_try) 2>&5 |
8631 |
|
ac_status=$? |
8632 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8633 |
|
(exit $ac_status); }; }; then |
8634 |
|
ac_cv_func_shl_load=yes |
8635 |
|
else |
8636 |
|
echo "$as_me: failed program was:" >&5 |
8637 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8638 |
|
|
8639 |
|
ac_cv_func_shl_load=no |
8640 |
|
fi |
8641 |
|
rm -f conftest.err conftest.$ac_objext \ |
8642 |
|
conftest$ac_exeext conftest.$ac_ext |
8643 |
|
fi |
8644 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8645 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8646 |
|
if test $ac_cv_func_shl_load = yes; then |
8647 |
|
lt_cv_dlopen="shl_load" |
8648 |
|
else |
8649 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8650 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8651 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8652 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8653 |
|
else |
8654 |
|
ac_check_lib_save_LIBS=$LIBS |
8655 |
|
LIBS="-ldld $LIBS" |
8656 |
|
cat >conftest.$ac_ext <<_ACEOF |
8657 |
|
/* confdefs.h. */ |
8658 |
|
_ACEOF |
8659 |
|
cat confdefs.h >>conftest.$ac_ext |
8660 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8661 |
|
/* end confdefs.h. */ |
8662 |
|
|
8663 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8664 |
|
#ifdef __cplusplus |
8665 |
|
extern "C" |
8666 |
|
#endif |
8667 |
|
/* We use char because int might match the return type of a gcc2 |
8668 |
|
builtin and then its argument prototype would still apply. */ |
8669 |
|
char shl_load (); |
8670 |
|
int |
8671 |
|
main () |
8672 |
|
{ |
8673 |
|
shl_load (); |
8674 |
|
; |
8675 |
|
return 0; |
8676 |
|
} |
8677 |
|
_ACEOF |
8678 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8679 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8680 |
|
(eval $ac_link) 2>conftest.er1 |
8681 |
|
ac_status=$? |
8682 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8683 |
|
rm -f conftest.er1 |
8684 |
|
cat conftest.err >&5 |
8685 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8686 |
|
(exit $ac_status); } && |
8687 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8688 |
|
|| test ! -s conftest.err' |
8689 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8690 |
|
(eval $ac_try) 2>&5 |
8691 |
|
ac_status=$? |
8692 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8693 |
|
(exit $ac_status); }; } && |
8694 |
|
{ ac_try='test -s conftest$ac_exeext' |
8695 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8696 |
|
(eval $ac_try) 2>&5 |
8697 |
|
ac_status=$? |
8698 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8699 |
|
(exit $ac_status); }; }; then |
8700 |
|
ac_cv_lib_dld_shl_load=yes |
8701 |
|
else |
8702 |
|
echo "$as_me: failed program was:" >&5 |
8703 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8704 |
|
|
8705 |
|
ac_cv_lib_dld_shl_load=no |
8706 |
|
fi |
8707 |
|
rm -f conftest.err conftest.$ac_objext \ |
8708 |
|
conftest$ac_exeext conftest.$ac_ext |
8709 |
|
LIBS=$ac_check_lib_save_LIBS |
8710 |
|
fi |
8711 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8712 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8713 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
8714 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8715 |
|
else |
8716 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
8717 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8718 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
8719 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8720 |
|
else |
8721 |
|
cat >conftest.$ac_ext <<_ACEOF |
8722 |
|
/* confdefs.h. */ |
8723 |
|
_ACEOF |
8724 |
|
cat confdefs.h >>conftest.$ac_ext |
8725 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8726 |
|
/* end confdefs.h. */ |
8727 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8728 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8729 |
|
#define dlopen innocuous_dlopen |
8730 |
|
|
8731 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8732 |
|
which can conflict with char dlopen (); below. |
8733 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8734 |
|
<limits.h> exists even on freestanding compilers. */ |
8735 |
|
|
8736 |
|
#ifdef __STDC__ |
8737 |
|
# include <limits.h> |
8738 |
|
#else |
8739 |
|
# include <assert.h> |
8740 |
|
#endif |
8741 |
|
|
8742 |
|
#undef dlopen |
8743 |
|
|
8744 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8745 |
|
#ifdef __cplusplus |
8746 |
|
extern "C" |
8747 |
|
{ |
8748 |
|
#endif |
8749 |
|
/* We use char because int might match the return type of a gcc2 |
8750 |
|
builtin and then its argument prototype would still apply. */ |
8751 |
|
char dlopen (); |
8752 |
|
/* The GNU C library defines this for functions which it implements |
8753 |
|
to always fail with ENOSYS. Some functions are actually named |
8754 |
|
something starting with __ and the normal name is an alias. */ |
8755 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
8756 |
|
choke me |
8757 |
|
#else |
8758 |
|
char (*f) () = dlopen; |
8759 |
|
#endif |
8760 |
|
#ifdef __cplusplus |
8761 |
|
} |
8762 |
|
#endif |
8763 |
|
|
8764 |
|
int |
8765 |
|
main () |
8766 |
|
{ |
8767 |
|
return f != dlopen; |
8768 |
|
; |
8769 |
|
return 0; |
8770 |
|
} |
8771 |
|
_ACEOF |
8772 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8773 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8774 |
|
(eval $ac_link) 2>conftest.er1 |
8775 |
|
ac_status=$? |
8776 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8777 |
|
rm -f conftest.er1 |
8778 |
|
cat conftest.err >&5 |
8779 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8780 |
|
(exit $ac_status); } && |
8781 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8782 |
|
|| test ! -s conftest.err' |
8783 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8784 |
|
(eval $ac_try) 2>&5 |
8785 |
|
ac_status=$? |
8786 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8787 |
|
(exit $ac_status); }; } && |
8788 |
|
{ ac_try='test -s conftest$ac_exeext' |
8789 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8790 |
|
(eval $ac_try) 2>&5 |
8791 |
|
ac_status=$? |
8792 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8793 |
|
(exit $ac_status); }; }; then |
8794 |
|
ac_cv_func_dlopen=yes |
8795 |
|
else |
8796 |
|
echo "$as_me: failed program was:" >&5 |
8797 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8798 |
|
|
8799 |
|
ac_cv_func_dlopen=no |
8800 |
|
fi |
8801 |
|
rm -f conftest.err conftest.$ac_objext \ |
8802 |
|
conftest$ac_exeext conftest.$ac_ext |
8803 |
|
fi |
8804 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8805 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8806 |
|
if test $ac_cv_func_dlopen = yes; then |
8807 |
|
lt_cv_dlopen="dlopen" |
8808 |
|
else |
8809 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8810 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8811 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8812 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8813 |
|
else |
8814 |
|
ac_check_lib_save_LIBS=$LIBS |
8815 |
|
LIBS="-ldl $LIBS" |
8816 |
|
cat >conftest.$ac_ext <<_ACEOF |
8817 |
|
/* confdefs.h. */ |
8818 |
|
_ACEOF |
8819 |
|
cat confdefs.h >>conftest.$ac_ext |
8820 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8821 |
|
/* end confdefs.h. */ |
8822 |
|
|
8823 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8824 |
|
#ifdef __cplusplus |
8825 |
|
extern "C" |
8826 |
|
#endif |
8827 |
|
/* We use char because int might match the return type of a gcc2 |
8828 |
|
builtin and then its argument prototype would still apply. */ |
8829 |
|
char dlopen (); |
8830 |
|
int |
8831 |
|
main () |
8832 |
|
{ |
8833 |
|
dlopen (); |
8834 |
|
; |
8835 |
|
return 0; |
8836 |
|
} |
8837 |
|
_ACEOF |
8838 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8839 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8840 |
|
(eval $ac_link) 2>conftest.er1 |
8841 |
|
ac_status=$? |
8842 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8843 |
|
rm -f conftest.er1 |
8844 |
|
cat conftest.err >&5 |
8845 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8846 |
|
(exit $ac_status); } && |
8847 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8848 |
|
|| test ! -s conftest.err' |
8849 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8850 |
|
(eval $ac_try) 2>&5 |
8851 |
|
ac_status=$? |
8852 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8853 |
|
(exit $ac_status); }; } && |
8854 |
|
{ ac_try='test -s conftest$ac_exeext' |
8855 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8856 |
|
(eval $ac_try) 2>&5 |
8857 |
|
ac_status=$? |
8858 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8859 |
|
(exit $ac_status); }; }; then |
8860 |
|
ac_cv_lib_dl_dlopen=yes |
8861 |
|
else |
8862 |
|
echo "$as_me: failed program was:" >&5 |
8863 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8864 |
|
|
8865 |
|
ac_cv_lib_dl_dlopen=no |
8866 |
|
fi |
8867 |
|
rm -f conftest.err conftest.$ac_objext \ |
8868 |
|
conftest$ac_exeext conftest.$ac_ext |
8869 |
|
LIBS=$ac_check_lib_save_LIBS |
8870 |
|
fi |
8871 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8872 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8873 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8874 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8875 |
|
else |
8876 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
8877 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
8878 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
8879 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8880 |
|
else |
8881 |
|
ac_check_lib_save_LIBS=$LIBS |
8882 |
|
LIBS="-lsvld $LIBS" |
8883 |
|
cat >conftest.$ac_ext <<_ACEOF |
8884 |
|
/* confdefs.h. */ |
8885 |
|
_ACEOF |
8886 |
|
cat confdefs.h >>conftest.$ac_ext |
8887 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8888 |
|
/* end confdefs.h. */ |
8889 |
|
|
8890 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8891 |
|
#ifdef __cplusplus |
8892 |
|
extern "C" |
8893 |
|
#endif |
8894 |
|
/* We use char because int might match the return type of a gcc2 |
8895 |
|
builtin and then its argument prototype would still apply. */ |
8896 |
|
char dlopen (); |
8897 |
|
int |
8898 |
|
main () |
8899 |
|
{ |
8900 |
|
dlopen (); |
8901 |
|
; |
8902 |
|
return 0; |
8903 |
|
} |
8904 |
|
_ACEOF |
8905 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8906 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8907 |
|
(eval $ac_link) 2>conftest.er1 |
8908 |
|
ac_status=$? |
8909 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8910 |
|
rm -f conftest.er1 |
8911 |
|
cat conftest.err >&5 |
8912 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8913 |
|
(exit $ac_status); } && |
8914 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8915 |
|
|| test ! -s conftest.err' |
8916 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8917 |
|
(eval $ac_try) 2>&5 |
8918 |
|
ac_status=$? |
8919 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8920 |
|
(exit $ac_status); }; } && |
8921 |
|
{ ac_try='test -s conftest$ac_exeext' |
8922 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8923 |
|
(eval $ac_try) 2>&5 |
8924 |
|
ac_status=$? |
8925 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8926 |
|
(exit $ac_status); }; }; then |
8927 |
|
ac_cv_lib_svld_dlopen=yes |
8928 |
|
else |
8929 |
|
echo "$as_me: failed program was:" >&5 |
8930 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8931 |
|
|
8932 |
|
ac_cv_lib_svld_dlopen=no |
8933 |
|
fi |
8934 |
|
rm -f conftest.err conftest.$ac_objext \ |
8935 |
|
conftest$ac_exeext conftest.$ac_ext |
8936 |
|
LIBS=$ac_check_lib_save_LIBS |
8937 |
|
fi |
8938 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
8939 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
8940 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
8941 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
8942 |
|
else |
8943 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
8944 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
8945 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
8946 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8947 |
|
else |
8948 |
|
ac_check_lib_save_LIBS=$LIBS |
8949 |
|
LIBS="-ldld $LIBS" |
8950 |
|
cat >conftest.$ac_ext <<_ACEOF |
8951 |
|
/* confdefs.h. */ |
8952 |
|
_ACEOF |
8953 |
|
cat confdefs.h >>conftest.$ac_ext |
8954 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8955 |
|
/* end confdefs.h. */ |
8956 |
|
|
8957 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8958 |
|
#ifdef __cplusplus |
8959 |
|
extern "C" |
8960 |
|
#endif |
8961 |
|
/* We use char because int might match the return type of a gcc2 |
8962 |
|
builtin and then its argument prototype would still apply. */ |
8963 |
|
char dld_link (); |
8964 |
|
int |
8965 |
|
main () |
8966 |
|
{ |
8967 |
|
dld_link (); |
8968 |
|
; |
8969 |
|
return 0; |
8970 |
|
} |
8971 |
|
_ACEOF |
8972 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8973 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8974 |
|
(eval $ac_link) 2>conftest.er1 |
8975 |
|
ac_status=$? |
8976 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8977 |
|
rm -f conftest.er1 |
8978 |
|
cat conftest.err >&5 |
8979 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8980 |
|
(exit $ac_status); } && |
8981 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8982 |
|
|| test ! -s conftest.err' |
8983 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8984 |
|
(eval $ac_try) 2>&5 |
8985 |
|
ac_status=$? |
8986 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8987 |
|
(exit $ac_status); }; } && |
8988 |
|
{ ac_try='test -s conftest$ac_exeext' |
8989 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8990 |
|
(eval $ac_try) 2>&5 |
8991 |
|
ac_status=$? |
8992 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8993 |
|
(exit $ac_status); }; }; then |
8994 |
|
ac_cv_lib_dld_dld_link=yes |
8995 |
|
else |
8996 |
|
echo "$as_me: failed program was:" >&5 |
8997 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8998 |
|
|
8999 |
|
ac_cv_lib_dld_dld_link=no |
9000 |
|
fi |
9001 |
|
rm -f conftest.err conftest.$ac_objext \ |
9002 |
|
conftest$ac_exeext conftest.$ac_ext |
9003 |
|
LIBS=$ac_check_lib_save_LIBS |
9004 |
|
fi |
9005 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9006 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9007 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
9008 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9009 |
|
fi |
9010 |
|
|
9011 |
|
|
9012 |
|
fi |
9013 |
|
|
9014 |
|
|
9015 |
|
fi |
9016 |
|
|
9017 |
|
|
9018 |
|
fi |
9019 |
|
|
9020 |
|
|
9021 |
|
fi |
9022 |
|
|
9023 |
|
|
9024 |
|
fi |
9025 |
|
|
9026 |
|
;; |
9027 |
|
esac |
9028 |
|
|
9029 |
|
if test "x$lt_cv_dlopen" != xno; then |
9030 |
|
enable_dlopen=yes |
9031 |
|
else |
9032 |
|
enable_dlopen=no |
9033 |
|
fi |
9034 |
|
|
9035 |
|
case $lt_cv_dlopen in |
9036 |
|
dlopen) |
9037 |
|
save_CPPFLAGS="$CPPFLAGS" |
9038 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9039 |
|
|
9040 |
|
save_LDFLAGS="$LDFLAGS" |
9041 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9042 |
|
|
9043 |
|
save_LIBS="$LIBS" |
9044 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
9045 |
|
|
9046 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9047 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9048 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
9049 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9050 |
|
else |
9051 |
|
if test "$cross_compiling" = yes; then : |
9052 |
|
lt_cv_dlopen_self=cross |
9053 |
|
else |
9054 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9055 |
|
lt_status=$lt_dlunknown |
9056 |
|
cat > conftest.$ac_ext <<EOF |
9057 |
|
#line 9057 "configure" |
9058 |
|
#include "confdefs.h" |
9059 |
|
|
9060 |
|
#if HAVE_DLFCN_H |
9061 |
|
#include <dlfcn.h> |
9062 |
|
#endif |
9063 |
|
|
9064 |
|
#include <stdio.h> |
9065 |
|
|
9066 |
|
#ifdef RTLD_GLOBAL |
9067 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9068 |
|
#else |
9069 |
|
# ifdef DL_GLOBAL |
9070 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9071 |
|
# else |
9072 |
|
# define LT_DLGLOBAL 0 |
9073 |
|
# endif |
9074 |
|
#endif |
9075 |
|
|
9076 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9077 |
|
find out it does not work in some platform. */ |
9078 |
|
#ifndef LT_DLLAZY_OR_NOW |
9079 |
|
# ifdef RTLD_LAZY |
9080 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9081 |
|
# else |
9082 |
|
# ifdef DL_LAZY |
9083 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9084 |
|
# else |
9085 |
|
# ifdef RTLD_NOW |
9086 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9087 |
|
# else |
9088 |
|
# ifdef DL_NOW |
9089 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9090 |
|
# else |
9091 |
|
# define LT_DLLAZY_OR_NOW 0 |
9092 |
|
# endif |
9093 |
|
# endif |
9094 |
|
# endif |
9095 |
|
# endif |
9096 |
|
#endif |
9097 |
|
|
9098 |
|
#ifdef __cplusplus |
9099 |
|
extern "C" void exit (int); |
9100 |
|
#endif |
9101 |
|
|
9102 |
|
void fnord() { int i=42;} |
9103 |
|
int main () |
9104 |
|
{ |
9105 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9106 |
|
int status = $lt_dlunknown; |
9107 |
|
|
9108 |
|
if (self) |
9109 |
|
{ |
9110 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9111 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9112 |
|
/* dlclose (self); */ |
9113 |
|
} |
9114 |
|
|
9115 |
|
exit (status); |
9116 |
|
} |
9117 |
|
EOF |
9118 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9119 |
|
(eval $ac_link) 2>&5 |
9120 |
|
ac_status=$? |
9121 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9122 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9123 |
|
(./conftest; exit; ) 2>/dev/null |
9124 |
|
lt_status=$? |
9125 |
|
case x$lt_status in |
9126 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9127 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9128 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
9129 |
|
esac |
9130 |
|
else : |
9131 |
|
# compilation failed |
9132 |
|
lt_cv_dlopen_self=no |
9133 |
|
fi |
9134 |
|
fi |
9135 |
|
rm -fr conftest* |
9136 |
|
|
9137 |
|
|
9138 |
|
fi |
9139 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9140 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9141 |
|
|
9142 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
9143 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
9144 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9145 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9146 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
9147 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9148 |
|
else |
9149 |
|
if test "$cross_compiling" = yes; then : |
9150 |
|
lt_cv_dlopen_self_static=cross |
9151 |
|
else |
9152 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9153 |
|
lt_status=$lt_dlunknown |
9154 |
|
cat > conftest.$ac_ext <<EOF |
9155 |
|
#line 9155 "configure" |
9156 |
|
#include "confdefs.h" |
9157 |
|
|
9158 |
|
#if HAVE_DLFCN_H |
9159 |
|
#include <dlfcn.h> |
9160 |
|
#endif |
9161 |
|
|
9162 |
|
#include <stdio.h> |
9163 |
|
|
9164 |
|
#ifdef RTLD_GLOBAL |
9165 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9166 |
|
#else |
9167 |
|
# ifdef DL_GLOBAL |
9168 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9169 |
|
# else |
9170 |
|
# define LT_DLGLOBAL 0 |
9171 |
|
# endif |
9172 |
|
#endif |
9173 |
|
|
9174 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9175 |
|
find out it does not work in some platform. */ |
9176 |
|
#ifndef LT_DLLAZY_OR_NOW |
9177 |
|
# ifdef RTLD_LAZY |
9178 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9179 |
|
# else |
9180 |
|
# ifdef DL_LAZY |
9181 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9182 |
|
# else |
9183 |
|
# ifdef RTLD_NOW |
9184 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9185 |
|
# else |
9186 |
|
# ifdef DL_NOW |
9187 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9188 |
|
# else |
9189 |
|
# define LT_DLLAZY_OR_NOW 0 |
9190 |
|
# endif |
9191 |
|
# endif |
9192 |
|
# endif |
9193 |
|
# endif |
9194 |
|
#endif |
9195 |
|
|
9196 |
|
#ifdef __cplusplus |
9197 |
|
extern "C" void exit (int); |
9198 |
|
#endif |
9199 |
|
|
9200 |
|
void fnord() { int i=42;} |
9201 |
|
int main () |
9202 |
|
{ |
9203 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9204 |
|
int status = $lt_dlunknown; |
9205 |
|
|
9206 |
|
if (self) |
9207 |
|
{ |
9208 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9209 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9210 |
|
/* dlclose (self); */ |
9211 |
|
} |
9212 |
|
|
9213 |
|
exit (status); |
9214 |
|
} |
9215 |
|
EOF |
9216 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9217 |
|
(eval $ac_link) 2>&5 |
9218 |
|
ac_status=$? |
9219 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9220 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9221 |
|
(./conftest; exit; ) 2>/dev/null |
9222 |
|
lt_status=$? |
9223 |
|
case x$lt_status in |
9224 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9225 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9226 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
9227 |
|
esac |
9228 |
|
else : |
9229 |
|
# compilation failed |
9230 |
|
lt_cv_dlopen_self_static=no |
9231 |
|
fi |
9232 |
|
fi |
9233 |
|
rm -fr conftest* |
9234 |
|
|
9235 |
|
|
9236 |
|
fi |
9237 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9238 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9239 |
|
fi |
9240 |
|
|
9241 |
|
CPPFLAGS="$save_CPPFLAGS" |
9242 |
|
LDFLAGS="$save_LDFLAGS" |
9243 |
|
LIBS="$save_LIBS" |
9244 |
|
;; |
9245 |
|
esac |
9246 |
|
|
9247 |
|
case $lt_cv_dlopen_self in |
9248 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9249 |
|
*) enable_dlopen_self=unknown ;; |
9250 |
|
esac |
9251 |
|
|
9252 |
|
case $lt_cv_dlopen_self_static in |
9253 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9254 |
|
*) enable_dlopen_self_static=unknown ;; |
9255 |
|
esac |
9256 |
|
fi |
9257 |
|
|
9258 |
|
|
9259 |
|
# Report which librarie types wil actually be built |
9260 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9261 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9262 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9263 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
9264 |
|
|
9265 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9266 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9267 |
|
test "$can_build_shared" = "no" && enable_shared=no |
9268 |
|
|
9269 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
9270 |
|
# are all built from PIC. |
9271 |
|
case "$host_os" in |
9272 |
|
aix3*) |
9273 |
|
test "$enable_shared" = yes && enable_static=no |
9274 |
|
if test -n "$RANLIB"; then |
9275 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9276 |
|
postinstall_cmds='$RANLIB $lib' |
9277 |
|
fi |
9278 |
|
;; |
9279 |
|
|
9280 |
|
aix4* | aix5*) |
9281 |
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9282 |
|
test "$enable_shared" = yes && enable_static=no |
9283 |
|
fi |
9284 |
|
;; |
9285 |
|
darwin* | rhapsody*) |
9286 |
|
if test "$GCC" = yes; then |
9287 |
|
archive_cmds_need_lc=no |
9288 |
|
case "$host_os" in |
9289 |
|
rhapsody* | darwin1.[012]) |
9290 |
|
allow_undefined_flag='-undefined suppress' |
9291 |
|
;; |
9292 |
|
*) # Darwin 1.3 on |
9293 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
9294 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
9295 |
|
else |
9296 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
9297 |
|
10.[012]) |
9298 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
9299 |
|
;; |
9300 |
|
10.*) |
9301 |
|
allow_undefined_flag='-undefined dynamic_lookup' |
9302 |
|
;; |
9303 |
|
esac |
9304 |
|
fi |
9305 |
|
;; |
9306 |
|
esac |
9307 |
|
output_verbose_link_cmd='echo' |
9308 |
|
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
9309 |
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
9310 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
9311 |
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
9312 |
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
9313 |
|
hardcode_direct=no |
9314 |
|
hardcode_automatic=yes |
9315 |
|
hardcode_shlibpath_var=unsupported |
9316 |
|
whole_archive_flag_spec='-all_load $convenience' |
9317 |
|
link_all_deplibs=yes |
9318 |
|
else |
9319 |
|
ld_shlibs=no |
9320 |
|
fi |
9321 |
|
;; |
9322 |
|
esac |
9323 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9324 |
|
echo "${ECHO_T}$enable_shared" >&6 |
9325 |
|
|
9326 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9327 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9328 |
|
# Make sure either enable_shared or enable_static is yes. |
9329 |
|
test "$enable_shared" = yes || enable_static=yes |
9330 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
9331 |
|
echo "${ECHO_T}$enable_static" >&6 |
9332 |
|
|
9333 |
|
# The else clause should only fire when bootstrapping the |
9334 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
9335 |
|
# with your package, and you will get complaints that there are |
9336 |
|
# no rules to generate ltmain.sh. |
9337 |
|
if test -f "$ltmain"; then |
9338 |
|
# See if we are running on zsh, and set the options which allow our commands through |
9339 |
|
# without removal of \ escapes. |
9340 |
|
if test -n "${ZSH_VERSION+set}" ; then |
9341 |
|
setopt NO_GLOB_SUBST |
9342 |
|
fi |
9343 |
|
# Now quote all the things that may contain metacharacters while being |
9344 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
9345 |
|
# variables and quote the copies for generation of the libtool script. |
9346 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
9347 |
|
SED SHELL STRIP \ |
9348 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9349 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9350 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
9351 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9352 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
9353 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9354 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
9355 |
|
compiler \ |
9356 |
|
CC \ |
9357 |
|
LD \ |
9358 |
|
lt_prog_compiler_wl \ |
9359 |
|
lt_prog_compiler_pic \ |
9360 |
|
lt_prog_compiler_static \ |
9361 |
|
lt_prog_compiler_no_builtin_flag \ |
9362 |
|
export_dynamic_flag_spec \ |
9363 |
|
thread_safe_flag_spec \ |
9364 |
|
whole_archive_flag_spec \ |
9365 |
|
enable_shared_with_static_runtimes \ |
9366 |
|
old_archive_cmds \ |
9367 |
|
old_archive_from_new_cmds \ |
9368 |
|
predep_objects \ |
9369 |
|
postdep_objects \ |
9370 |
|
predeps \ |
9371 |
|
postdeps \ |
9372 |
|
compiler_lib_search_path \ |
9373 |
|
archive_cmds \ |
9374 |
|
archive_expsym_cmds \ |
9375 |
|
postinstall_cmds \ |
9376 |
|
postuninstall_cmds \ |
9377 |
|
old_archive_from_expsyms_cmds \ |
9378 |
|
allow_undefined_flag \ |
9379 |
|
no_undefined_flag \ |
9380 |
|
export_symbols_cmds \ |
9381 |
|
hardcode_libdir_flag_spec \ |
9382 |
|
hardcode_libdir_flag_spec_ld \ |
9383 |
|
hardcode_libdir_separator \ |
9384 |
|
hardcode_automatic \ |
9385 |
|
module_cmds \ |
9386 |
|
module_expsym_cmds \ |
9387 |
|
lt_cv_prog_compiler_c_o \ |
9388 |
|
exclude_expsyms \ |
9389 |
|
include_expsyms; do |
9390 |
|
|
9391 |
|
case $var in |
9392 |
|
old_archive_cmds | \ |
9393 |
|
old_archive_from_new_cmds | \ |
9394 |
|
archive_cmds | \ |
9395 |
|
archive_expsym_cmds | \ |
9396 |
|
module_cmds | \ |
9397 |
|
module_expsym_cmds | \ |
9398 |
|
old_archive_from_expsyms_cmds | \ |
9399 |
|
export_symbols_cmds | \ |
9400 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9401 |
|
postinstall_cmds | postuninstall_cmds | \ |
9402 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
9403 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9404 |
|
# Double-quote double-evaled strings. |
9405 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9406 |
|
;; |
9407 |
|
*) |
9408 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9409 |
|
;; |
9410 |
|
esac |
9411 |
|
done |
9412 |
|
|
9413 |
|
case $lt_echo in |
9414 |
|
*'\$0 --fallback-echo"') |
9415 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9416 |
|
;; |
9417 |
|
esac |
9418 |
|
|
9419 |
|
cfgfile="${ofile}T" |
9420 |
|
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9421 |
|
$rm -f "$cfgfile" |
9422 |
|
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
9423 |
|
echo "$as_me: creating $ofile" >&6;} |
9424 |
|
|
9425 |
|
cat <<__EOF__ >> "$cfgfile" |
9426 |
|
#! $SHELL |
9427 |
|
|
9428 |
|
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9429 |
|
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9430 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9431 |
|
# |
9432 |
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9433 |
|
# Free Software Foundation, Inc. |
9434 |
|
# |
9435 |
|
# This file is part of GNU Libtool: |
9436 |
|
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9437 |
|
# |
9438 |
|
# This program is free software; you can redistribute it and/or modify |
9439 |
|
# it under the terms of the GNU General Public License as published by |
9440 |
|
# the Free Software Foundation; either version 2 of the License, or |
9441 |
|
# (at your option) any later version. |
9442 |
|
# |
9443 |
|
# This program is distributed in the hope that it will be useful, but |
9444 |
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
9445 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9446 |
|
# General Public License for more details. |
9447 |
|
# |
9448 |
|
# You should have received a copy of the GNU General Public License |
9449 |
|
# along with this program; if not, write to the Free Software |
9450 |
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
9451 |
|
# |
9452 |
|
# As a special exception to the GNU General Public License, if you |
9453 |
|
# distribute this file as part of a program that contains a |
9454 |
|
# configuration script generated by Autoconf, you may include it under |
9455 |
|
# the same distribution terms that you use for the rest of that program. |
9456 |
|
|
9457 |
|
# A sed program that does not truncate output. |
9458 |
|
SED=$lt_SED |
9459 |
|
|
9460 |
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9461 |
|
Xsed="$SED -e s/^X//" |
9462 |
|
|
9463 |
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
9464 |
|
# if CDPATH is set. |
9465 |
|
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
9466 |
|
|
9467 |
|
# The names of the tagged configurations supported by this script. |
9468 |
|
available_tags= |
9469 |
|
|
9470 |
|
# ### BEGIN LIBTOOL CONFIG |
9471 |
|
|
9472 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9473 |
|
|
9474 |
|
# Shell to use when invoking shell scripts. |
9475 |
|
SHELL=$lt_SHELL |
9476 |
|
|
9477 |
|
# Whether or not to build shared libraries. |
9478 |
|
build_libtool_libs=$enable_shared |
9479 |
|
|
9480 |
|
# Whether or not to build static libraries. |
9481 |
|
build_old_libs=$enable_static |
9482 |
|
|
9483 |
|
# Whether or not to add -lc for building shared libraries. |
9484 |
|
build_libtool_need_lc=$archive_cmds_need_lc |
9485 |
|
|
9486 |
|
# Whether or not to disallow shared libs when runtime libs are static |
9487 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9488 |
|
|
9489 |
|
# Whether or not to optimize for fast installation. |
9490 |
|
fast_install=$enable_fast_install |
9491 |
|
|
9492 |
|
# The host system. |
9493 |
|
host_alias=$host_alias |
9494 |
|
host=$host |
9495 |
|
|
9496 |
|
# An echo program that does not interpret backslashes. |
9497 |
|
echo=$lt_echo |
9498 |
|
|
9499 |
|
# The archiver. |
9500 |
|
AR=$lt_AR |
9501 |
|
AR_FLAGS=$lt_AR_FLAGS |
9502 |
|
|
9503 |
|
# A C compiler. |
9504 |
|
LTCC=$lt_LTCC |
9505 |
|
|
9506 |
|
# A language-specific compiler. |
9507 |
|
CC=$lt_compiler |
9508 |
|
|
9509 |
|
# Is the compiler the GNU C compiler? |
9510 |
|
with_gcc=$GCC |
9511 |
|
|
9512 |
|
# An ERE matcher. |
9513 |
|
EGREP=$lt_EGREP |
9514 |
|
|
9515 |
|
# The linker used to build libraries. |
9516 |
|
LD=$lt_LD |
9517 |
|
|
9518 |
|
# Whether we need hard or soft links. |
9519 |
|
LN_S=$lt_LN_S |
9520 |
|
|
9521 |
|
# A BSD-compatible nm program. |
9522 |
|
NM=$lt_NM |
9523 |
|
|
9524 |
|
# A symbol stripping program |
9525 |
|
STRIP=$lt_STRIP |
9526 |
|
|
9527 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
9528 |
|
MAGIC_CMD=$MAGIC_CMD |
9529 |
|
|
9530 |
|
# Used on cygwin: DLL creation program. |
9531 |
|
DLLTOOL="$DLLTOOL" |
9532 |
|
|
9533 |
|
# Used on cygwin: object dumper. |
9534 |
|
OBJDUMP="$OBJDUMP" |
9535 |
|
|
9536 |
|
# Used on cygwin: assembler. |
9537 |
|
AS="$AS" |
9538 |
|
|
9539 |
|
# The name of the directory that contains temporary libtool files. |
9540 |
|
objdir=$objdir |
9541 |
|
|
9542 |
|
# How to create reloadable object files. |
9543 |
|
reload_flag=$lt_reload_flag |
9544 |
|
reload_cmds=$lt_reload_cmds |
9545 |
|
|
9546 |
|
# How to pass a linker flag through the compiler. |
9547 |
|
wl=$lt_lt_prog_compiler_wl |
9548 |
|
|
9549 |
|
# Object file suffix (normally "o"). |
9550 |
|
objext="$ac_objext" |
9551 |
|
|
9552 |
|
# Old archive suffix (normally "a"). |
9553 |
|
libext="$libext" |
9554 |
|
|
9555 |
|
# Shared library suffix (normally ".so"). |
9556 |
|
shrext_cmds='$shrext_cmds' |
9557 |
|
|
9558 |
|
# Executable file suffix (normally ""). |
9559 |
|
exeext="$exeext" |
9560 |
|
|
9561 |
|
# Additional compiler flags for building library objects. |
9562 |
|
pic_flag=$lt_lt_prog_compiler_pic |
9563 |
|
pic_mode=$pic_mode |
9564 |
|
|
9565 |
|
# What is the maximum length of a command? |
9566 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
9567 |
|
|
9568 |
|
# Does compiler simultaneously support -c and -o options? |
9569 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9570 |
|
|
9571 |
|
# Must we lock files when doing compilation ? |
9572 |
|
need_locks=$lt_need_locks |
9573 |
|
|
9574 |
|
# Do we need the lib prefix for modules? |
9575 |
|
need_lib_prefix=$need_lib_prefix |
9576 |
|
|
9577 |
|
# Do we need a version for libraries? |
9578 |
|
need_version=$need_version |
9579 |
|
|
9580 |
|
# Whether dlopen is supported. |
9581 |
|
dlopen_support=$enable_dlopen |
9582 |
|
|
9583 |
|
# Whether dlopen of programs is supported. |
9584 |
|
dlopen_self=$enable_dlopen_self |
9585 |
|
|
9586 |
|
# Whether dlopen of statically linked programs is supported. |
9587 |
|
dlopen_self_static=$enable_dlopen_self_static |
9588 |
|
|
9589 |
|
# Compiler flag to prevent dynamic linking. |
9590 |
|
link_static_flag=$lt_lt_prog_compiler_static |
9591 |
|
|
9592 |
|
# Compiler flag to turn off builtin functions. |
9593 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9594 |
|
|
9595 |
|
# Compiler flag to allow reflexive dlopens. |
9596 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9597 |
|
|
9598 |
|
# Compiler flag to generate shared objects directly from archives. |
9599 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9600 |
|
|
9601 |
|
# Compiler flag to generate thread-safe objects. |
9602 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9603 |
|
|
9604 |
|
# Library versioning type. |
9605 |
|
version_type=$version_type |
9606 |
|
|
9607 |
|
# Format of library name prefix. |
9608 |
|
libname_spec=$lt_libname_spec |
9609 |
|
|
9610 |
|
# List of archive names. First name is the real one, the rest are links. |
9611 |
|
# The last name is the one that the linker finds with -lNAME. |
9612 |
|
library_names_spec=$lt_library_names_spec |
9613 |
|
|
9614 |
|
# The coded name of the library, if different from the real name. |
9615 |
|
soname_spec=$lt_soname_spec |
9616 |
|
|
9617 |
|
# Commands used to build and install an old-style archive. |
9618 |
|
RANLIB=$lt_RANLIB |
9619 |
|
old_archive_cmds=$lt_old_archive_cmds |
9620 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
9621 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9622 |
|
|
9623 |
|
# Create an old-style archive from a shared archive. |
9624 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9625 |
|
|
9626 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
9627 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9628 |
|
|
9629 |
|
# Commands used to build and install a shared archive. |
9630 |
|
archive_cmds=$lt_archive_cmds |
9631 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds |
9632 |
|
postinstall_cmds=$lt_postinstall_cmds |
9633 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
9634 |
|
|
9635 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
9636 |
|
module_cmds=$lt_module_cmds |
9637 |
|
module_expsym_cmds=$lt_module_expsym_cmds |
9638 |
|
|
9639 |
|
# Commands to strip libraries. |
9640 |
|
old_striplib=$lt_old_striplib |
9641 |
|
striplib=$lt_striplib |
9642 |
|
|
9643 |
|
# Dependencies to place before the objects being linked to create a |
9644 |
|
# shared library. |
9645 |
|
predep_objects=$lt_predep_objects |
9646 |
|
|
9647 |
|
# Dependencies to place after the objects being linked to create a |
9648 |
|
# shared library. |
9649 |
|
postdep_objects=$lt_postdep_objects |
9650 |
|
|
9651 |
|
# Dependencies to place before the objects being linked to create a |
9652 |
|
# shared library. |
9653 |
|
predeps=$lt_predeps |
9654 |
|
|
9655 |
|
# Dependencies to place after the objects being linked to create a |
9656 |
|
# shared library. |
9657 |
|
postdeps=$lt_postdeps |
9658 |
|
|
9659 |
|
# The library search path used internally by the compiler when linking |
9660 |
|
# a shared library. |
9661 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path |
9662 |
|
|
9663 |
|
# Method to check whether dependent libraries are shared objects. |
9664 |
|
deplibs_check_method=$lt_deplibs_check_method |
9665 |
|
|
9666 |
|
# Command to use when deplibs_check_method == file_magic. |
9667 |
|
file_magic_cmd=$lt_file_magic_cmd |
9668 |
|
|
9669 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
9670 |
|
allow_undefined_flag=$lt_allow_undefined_flag |
9671 |
|
|
9672 |
|
# Flag that forces no undefined symbols. |
9673 |
|
no_undefined_flag=$lt_no_undefined_flag |
9674 |
|
|
9675 |
|
# Commands used to finish a libtool library installation in a directory. |
9676 |
|
finish_cmds=$lt_finish_cmds |
9677 |
|
|
9678 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
9679 |
|
finish_eval=$lt_finish_eval |
9680 |
|
|
9681 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
9682 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9683 |
|
|
9684 |
|
# Transform the output of nm in a proper C declaration |
9685 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9686 |
|
|
9687 |
|
# Transform the output of nm in a C name address pair |
9688 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9689 |
|
|
9690 |
|
# This is the shared library runtime path variable. |
9691 |
|
runpath_var=$runpath_var |
9692 |
|
|
9693 |
|
# This is the shared library path variable. |
9694 |
|
shlibpath_var=$shlibpath_var |
9695 |
|
|
9696 |
|
# Is shlibpath searched before the hard-coded library search path? |
9697 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9698 |
|
|
9699 |
|
# How to hardcode a shared library path into an executable. |
9700 |
|
hardcode_action=$hardcode_action |
9701 |
|
|
9702 |
|
# Whether we should hardcode library paths into libraries. |
9703 |
|
hardcode_into_libs=$hardcode_into_libs |
9704 |
|
|
9705 |
|
# Flag to hardcode \$libdir into a binary during linking. |
9706 |
|
# This must work even if \$libdir does not exist. |
9707 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9708 |
|
|
9709 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
9710 |
|
# a binary during linking. This must work even if \$libdir does |
9711 |
|
# not exist. |
9712 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9713 |
|
|
9714 |
|
# Whether we need a single -rpath flag with a separated argument. |
9715 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9716 |
|
|
9717 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9718 |
|
# resulting binary. |
9719 |
|
hardcode_direct=$hardcode_direct |
9720 |
|
|
9721 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9722 |
|
# resulting binary. |
9723 |
|
hardcode_minus_L=$hardcode_minus_L |
9724 |
|
|
9725 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9726 |
|
# the resulting binary. |
9727 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var |
9728 |
|
|
9729 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
9730 |
|
# and all subsequent libraries and executables linked against it. |
9731 |
|
hardcode_automatic=$hardcode_automatic |
9732 |
|
|
9733 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
9734 |
|
# restored at relink time. |
9735 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
9736 |
|
|
9737 |
|
# Whether libtool must link a program against all its dependency libraries. |
9738 |
|
link_all_deplibs=$link_all_deplibs |
9739 |
|
|
9740 |
|
# Compile-time system search path for libraries |
9741 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
9742 |
|
|
9743 |
|
# Run-time system search path for libraries |
9744 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9745 |
|
|
9746 |
|
# Fix the shell variable \$srcfile for the compiler. |
9747 |
|
fix_srcfile_path="$fix_srcfile_path" |
9748 |
|
|
9749 |
|
# Set to yes if exported symbols are required. |
9750 |
|
always_export_symbols=$always_export_symbols |
9751 |
|
|
9752 |
|
# The commands to list exported symbols. |
9753 |
|
export_symbols_cmds=$lt_export_symbols_cmds |
9754 |
|
|
9755 |
|
# The commands to extract the exported symbol list from a shared archive. |
9756 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9757 |
|
|
9758 |
|
# Symbols that should not be listed in the preloaded symbols. |
9759 |
|
exclude_expsyms=$lt_exclude_expsyms |
9760 |
|
|
9761 |
|
# Symbols that must always be exported. |
9762 |
|
include_expsyms=$lt_include_expsyms |
9763 |
|
|
9764 |
|
# ### END LIBTOOL CONFIG |
9765 |
|
|
9766 |
|
__EOF__ |
9767 |
|
|
9768 |
|
|
9769 |
|
case $host_os in |
9770 |
|
aix3*) |
9771 |
|
cat <<\EOF >> "$cfgfile" |
9772 |
|
|
9773 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
9774 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
9775 |
|
# vanish in a puff of smoke. |
9776 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
9777 |
|
COLLECT_NAMES= |
9778 |
|
export COLLECT_NAMES |
9779 |
|
fi |
9780 |
|
EOF |
9781 |
|
;; |
9782 |
|
esac |
9783 |
|
|
9784 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
9785 |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
9786 |
|
# text mode, it properly converts lines to CR/LF. This bash problem |
9787 |
|
# is reportedly fixed, but why not run on old versions too? |
9788 |
|
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9789 |
|
|
9790 |
|
mv -f "$cfgfile" "$ofile" || \ |
9791 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9792 |
|
chmod +x "$ofile" |
9793 |
|
|
9794 |
|
else |
9795 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
9796 |
|
# `config.status --recheck' to rerun these tests and create the |
9797 |
|
# libtool script then. |
9798 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9799 |
|
if test -f "$ltmain_in"; then |
9800 |
|
test -f Makefile && make "$ltmain" |
9801 |
|
fi |
9802 |
|
fi |
9803 |
|
|
9804 |
|
|
9805 |
|
ac_ext=c |
9806 |
|
ac_cpp='$CPP $CPPFLAGS' |
9807 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9808 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9809 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9810 |
|
|
9811 |
|
CC="$lt_save_CC" |
9812 |
|
|
9813 |
|
|
9814 |
|
# Check whether --with-tags or --without-tags was given. |
9815 |
|
if test "${with_tags+set}" = set; then |
9816 |
|
withval="$with_tags" |
9817 |
|
tagnames="$withval" |
9818 |
|
fi; |
9819 |
|
|
9820 |
|
if test -f "$ltmain" && test -n "$tagnames"; then |
9821 |
|
if test ! -f "${ofile}"; then |
9822 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9823 |
|
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9824 |
|
fi |
9825 |
|
|
9826 |
|
if test -z "$LTCC"; then |
9827 |
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9828 |
|
if test -z "$LTCC"; then |
9829 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9830 |
|
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9831 |
|
else |
9832 |
|
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9833 |
|
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9834 |
|
fi |
9835 |
|
fi |
9836 |
|
|
9837 |
|
# Extract list of available tagged configurations in $ofile. |
9838 |
|
# Note that this assumes the entire list is on one line. |
9839 |
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9840 |
|
|
9841 |
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9842 |
|
for tagname in $tagnames; do |
9843 |
|
IFS="$lt_save_ifs" |
9844 |
|
# Check whether tagname contains only valid characters |
9845 |
|
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9846 |
|
"") ;; |
9847 |
|
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9848 |
|
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9849 |
|
{ (exit 1); exit 1; }; } |
9850 |
|
;; |
9851 |
|
esac |
9852 |
|
|
9853 |
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9854 |
|
then |
9855 |
|
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9856 |
|
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9857 |
|
{ (exit 1); exit 1; }; } |
9858 |
|
fi |
9859 |
|
|
9860 |
|
# Update the list of available tags. |
9861 |
|
if test -n "$tagname"; then |
9862 |
|
echo appending configuration tag \"$tagname\" to $ofile |
9863 |
|
|
9864 |
|
case $tagname in |
9865 |
|
CXX) |
9866 |
|
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
9867 |
|
ac_ext=cc |
9868 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
9869 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9870 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9871 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9872 |
|
|
9873 |
|
|
9874 |
|
|
9875 |
|
|
9876 |
|
archive_cmds_need_lc_CXX=no |
9877 |
|
allow_undefined_flag_CXX= |
9878 |
|
always_export_symbols_CXX=no |
9879 |
|
archive_expsym_cmds_CXX= |
9880 |
|
export_dynamic_flag_spec_CXX= |
9881 |
|
hardcode_direct_CXX=no |
9882 |
|
hardcode_libdir_flag_spec_CXX= |
9883 |
|
hardcode_libdir_flag_spec_ld_CXX= |
9884 |
|
hardcode_libdir_separator_CXX= |
9885 |
|
hardcode_minus_L_CXX=no |
9886 |
|
hardcode_automatic_CXX=no |
9887 |
|
module_cmds_CXX= |
9888 |
|
module_expsym_cmds_CXX= |
9889 |
|
link_all_deplibs_CXX=unknown |
9890 |
|
old_archive_cmds_CXX=$old_archive_cmds |
9891 |
|
no_undefined_flag_CXX= |
9892 |
|
whole_archive_flag_spec_CXX= |
9893 |
|
enable_shared_with_static_runtimes_CXX=no |
9894 |
|
|
9895 |
|
# Dependencies to place before and after the object being linked: |
9896 |
|
predep_objects_CXX= |
9897 |
|
postdep_objects_CXX= |
9898 |
|
predeps_CXX= |
9899 |
|
postdeps_CXX= |
9900 |
|
compiler_lib_search_path_CXX= |
9901 |
|
|
9902 |
|
# Source file extension for C++ test sources. |
9903 |
|
ac_ext=cc |
9904 |
|
|
9905 |
|
# Object file extension for compiled C++ test sources. |
9906 |
|
objext=o |
9907 |
|
objext_CXX=$objext |
9908 |
|
|
9909 |
|
# Code to be used in simple compile tests |
9910 |
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
9911 |
|
|
9912 |
|
# Code to be used in simple link tests |
9913 |
|
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
9914 |
|
|
9915 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9916 |
|
|
9917 |
|
# If no C compiler was specified, use CC. |
9918 |
|
LTCC=${LTCC-"$CC"} |
9919 |
|
|
9920 |
|
# Allow CC to be a program name with arguments. |
9921 |
|
compiler=$CC |
9922 |
|
|
9923 |
|
|
9924 |
|
# Allow CC to be a program name with arguments. |
9925 |
|
lt_save_CC=$CC |
9926 |
|
lt_save_LD=$LD |
9927 |
|
lt_save_GCC=$GCC |
9928 |
|
GCC=$GXX |
9929 |
|
lt_save_with_gnu_ld=$with_gnu_ld |
9930 |
|
lt_save_path_LD=$lt_cv_path_LD |
9931 |
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
9932 |
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
9933 |
|
else |
9934 |
|
unset lt_cv_prog_gnu_ld |
9935 |
|
fi |
9936 |
|
if test -n "${lt_cv_path_LDCXX+set}"; then |
9937 |
|
lt_cv_path_LD=$lt_cv_path_LDCXX |
9938 |
|
else |
9939 |
|
unset lt_cv_path_LD |
9940 |
|
fi |
9941 |
|
test -z "${LDCXX+set}" || LD=$LDCXX |
9942 |
|
CC=${CXX-"c++"} |
9943 |
|
compiler=$CC |
9944 |
|
compiler_CXX=$CC |
9945 |
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
9946 |
|
|
9947 |
|
# We don't want -fno-exception wen compiling C++ code, so set the |
9948 |
|
# no_builtin_flag separately |
9949 |
|
if test "$GXX" = yes; then |
9950 |
|
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
9951 |
|
else |
9952 |
|
lt_prog_compiler_no_builtin_flag_CXX= |
9953 |
|
fi |
9954 |
|
|
9955 |
|
if test "$GXX" = yes; then |
9956 |
|
# Set up default GNU C++ configuration |
9957 |
|
|
9958 |
|
|
9959 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
9960 |
|
if test "${with_gnu_ld+set}" = set; then |
9961 |
|
withval="$with_gnu_ld" |
9962 |
|
test "$withval" = no || with_gnu_ld=yes |
9963 |
|
else |
9964 |
|
with_gnu_ld=no |
9965 |
|
fi; |
9966 |
|
ac_prog=ld |
9967 |
|
if test "$GCC" = yes; then |
9968 |
|
# Check if gcc -print-prog-name=ld gives a path. |
9969 |
|
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
9970 |
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
9971 |
|
case $host in |
9972 |
|
*-*-mingw*) |
9973 |
|
# gcc leaves a trailing carriage return which upsets mingw |
9974 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
9975 |
|
*) |
9976 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
9977 |
|
esac |
9978 |
|
case $ac_prog in |
9979 |
|
# Accept absolute paths. |
9980 |
|
[\\/]* | ?:[\\/]*) |
9981 |
|
re_direlt='/[^/][^/]*/\.\./' |
9982 |
|
# Canonicalize the pathname of ld |
9983 |
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
9984 |
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
9985 |
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
9986 |
|
done |
9987 |
|
test -z "$LD" && LD="$ac_prog" |
9988 |
|
;; |
9989 |
|
"") |
9990 |
|
# If it fails, then pretend we aren't using GCC. |
9991 |
|
ac_prog=ld |
9992 |
|
;; |
9993 |
|
*) |
9994 |
|
# If it is relative, then search for the first ld in PATH. |
9995 |
|
with_gnu_ld=unknown |
9996 |
|
;; |
9997 |
|
esac |
9998 |
|
elif test "$with_gnu_ld" = yes; then |
9999 |
|
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10000 |
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10001 |
|
else |
10002 |
|
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10003 |
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10004 |
|
fi |
10005 |
|
if test "${lt_cv_path_LD+set}" = set; then |
10006 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10007 |
|
else |
10008 |
|
if test -z "$LD"; then |
10009 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10010 |
|
for ac_dir in $PATH; do |
10011 |
|
IFS="$lt_save_ifs" |
10012 |
|
test -z "$ac_dir" && ac_dir=. |
10013 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10014 |
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
10015 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
10016 |
|
# but apparently some GNU ld's only accept -v. |
10017 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
10018 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10019 |
|
*GNU* | *'with BFD'*) |
10020 |
|
test "$with_gnu_ld" != no && break |
10021 |
|
;; |
10022 |
|
*) |
10023 |
|
test "$with_gnu_ld" != yes && break |
10024 |
|
;; |
10025 |
|
esac |
10026 |
|
fi |
10027 |
|
done |
10028 |
|
IFS="$lt_save_ifs" |
10029 |
|
else |
10030 |
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10031 |
|
fi |
10032 |
|
fi |
10033 |
|
|
10034 |
|
LD="$lt_cv_path_LD" |
10035 |
|
if test -n "$LD"; then |
10036 |
|
echo "$as_me:$LINENO: result: $LD" >&5 |
10037 |
|
echo "${ECHO_T}$LD" >&6 |
10038 |
|
else |
10039 |
|
echo "$as_me:$LINENO: result: no" >&5 |
10040 |
|
echo "${ECHO_T}no" >&6 |
10041 |
|
fi |
10042 |
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10043 |
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10044 |
|
{ (exit 1); exit 1; }; } |
10045 |
|
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10046 |
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10047 |
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10048 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10049 |
|
else |
10050 |
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
10051 |
|
case `$LD -v 2>&1 </dev/null` in |
10052 |
|
*GNU* | *'with BFD'*) |
10053 |
|
lt_cv_prog_gnu_ld=yes |
10054 |
|
;; |
10055 |
|
*) |
10056 |
|
lt_cv_prog_gnu_ld=no |
10057 |
|
;; |
10058 |
|
esac |
10059 |
|
fi |
10060 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10061 |
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10062 |
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
10063 |
|
|
10064 |
|
|
10065 |
|
|
10066 |
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
10067 |
|
# archiving commands below assume that GNU ld is being used. |
10068 |
|
if test "$with_gnu_ld" = yes; then |
10069 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10070 |
|
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10071 |
|
|
10072 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10073 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10074 |
|
|
10075 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
10076 |
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10077 |
|
# investigate it a little bit more. (MM) |
10078 |
|
wlarc='${wl}' |
10079 |
|
|
10080 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
10081 |
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10082 |
|
grep 'no-whole-archive' > /dev/null; then |
10083 |
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10084 |
|
else |
10085 |
|
whole_archive_flag_spec_CXX= |
10086 |
|
fi |
10087 |
|
else |
10088 |
|
with_gnu_ld=no |
10089 |
|
wlarc= |
10090 |
|
|
10091 |
|
# A generic and very simple default shared library creation |
10092 |
|
# command for GNU C++ for the case where it uses the native |
10093 |
|
# linker, instead of GNU ld. If possible, this setting should |
10094 |
|
# overridden to take advantage of the native linker features on |
10095 |
|
# the platform it is being used on. |
10096 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10097 |
|
fi |
10098 |
|
|
10099 |
|
# Commands to make compiler produce verbose output that lists |
10100 |
|
# what "hidden" libraries, object files and flags are used when |
10101 |
|
# linking a shared library. |
10102 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10103 |
|
|
10104 |
|
else |
10105 |
|
GXX=no |
10106 |
|
with_gnu_ld=no |
10107 |
|
wlarc= |
10108 |
|
fi |
10109 |
|
|
10110 |
|
# PORTME: fill in a description of your system's C++ link characteristics |
10111 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10112 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10113 |
|
ld_shlibs_CXX=yes |
10114 |
|
case $host_os in |
10115 |
|
aix3*) |
10116 |
|
# FIXME: insert proper C++ library support |
10117 |
|
ld_shlibs_CXX=no |
10118 |
|
;; |
10119 |
|
aix4* | aix5*) |
10120 |
|
if test "$host_cpu" = ia64; then |
10121 |
|
# On IA64, the linker does run time linking by default, so we don't |
10122 |
|
# have to do anything special. |
10123 |
|
aix_use_runtimelinking=no |
10124 |
|
exp_sym_flag='-Bexport' |
10125 |
|
no_entry_flag="" |
10126 |
|
else |
10127 |
|
aix_use_runtimelinking=no |
10128 |
|
|
10129 |
|
# Test if we are trying to use run time linking or normal |
10130 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10131 |
|
# need to do runtime linking. |
10132 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10133 |
|
for ld_flag in $LDFLAGS; do |
10134 |
|
case $ld_flag in |
10135 |
|
*-brtl*) |
10136 |
|
aix_use_runtimelinking=yes |
10137 |
|
break |
10138 |
|
;; |
10139 |
|
esac |
10140 |
|
done |
10141 |
|
esac |
10142 |
|
|
10143 |
|
exp_sym_flag='-bexport' |
10144 |
|
no_entry_flag='-bnoentry' |
10145 |
|
fi |
10146 |
|
|
10147 |
|
# When large executables or shared objects are built, AIX ld can |
10148 |
|
# have problems creating the table of contents. If linking a library |
10149 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
10150 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10151 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10152 |
|
|
10153 |
|
archive_cmds_CXX='' |
10154 |
|
hardcode_direct_CXX=yes |
10155 |
|
hardcode_libdir_separator_CXX=':' |
10156 |
|
link_all_deplibs_CXX=yes |
10157 |
|
|
10158 |
|
if test "$GXX" = yes; then |
10159 |
|
case $host_os in aix4.012|aix4.012.*) |
10160 |
|
# We only want to do this on AIX 4.2 and lower, the check |
10161 |
|
# below for broken collect2 doesn't work under 4.3+ |
10162 |
|
collect2name=`${CC} -print-prog-name=collect2` |
10163 |
|
if test -f "$collect2name" && \ |
10164 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
10165 |
|
then |
10166 |
|
# We have reworked collect2 |
10167 |
|
hardcode_direct_CXX=yes |
10168 |
|
else |
10169 |
|
# We have old collect2 |
10170 |
|
hardcode_direct_CXX=unsupported |
10171 |
|
# It fails to find uninstalled libraries when the uninstalled |
10172 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
10173 |
|
# to unsupported forces relinking |
10174 |
|
hardcode_minus_L_CXX=yes |
10175 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10176 |
|
hardcode_libdir_separator_CXX= |
10177 |
|
fi |
10178 |
|
esac |
10179 |
|
shared_flag='-shared' |
10180 |
|
else |
10181 |
|
# not using gcc |
10182 |
|
if test "$host_cpu" = ia64; then |
10183 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10184 |
|
# chokes on -Wl,-G. The following line is correct: |
10185 |
|
shared_flag='-G' |
10186 |
|
else |
10187 |
|
if test "$aix_use_runtimelinking" = yes; then |
10188 |
|
shared_flag='${wl}-G' |
10189 |
|
else |
10190 |
|
shared_flag='${wl}-bM:SRE' |
10191 |
|
fi |
10192 |
|
fi |
10193 |
|
fi |
10194 |
|
|
10195 |
|
# It seems that -bexpall does not export symbols beginning with |
10196 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
10197 |
|
always_export_symbols_CXX=yes |
10198 |
|
if test "$aix_use_runtimelinking" = yes; then |
10199 |
|
# Warning - without using the other runtime loading flags (-brtl), |
10200 |
|
# -berok will link without error, but may produce a broken library. |
10201 |
|
allow_undefined_flag_CXX='-berok' |
10202 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10203 |
|
cat >conftest.$ac_ext <<_ACEOF |
10204 |
|
/* confdefs.h. */ |
10205 |
|
_ACEOF |
10206 |
|
cat confdefs.h >>conftest.$ac_ext |
10207 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10208 |
|
/* end confdefs.h. */ |
10209 |
|
|
10210 |
|
int |
10211 |
|
main () |
10212 |
|
{ |
10213 |
|
|
10214 |
|
; |
10215 |
|
return 0; |
10216 |
|
} |
10217 |
|
_ACEOF |
10218 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10219 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10220 |
|
(eval $ac_link) 2>conftest.er1 |
10221 |
|
ac_status=$? |
10222 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10223 |
|
rm -f conftest.er1 |
10224 |
|
cat conftest.err >&5 |
10225 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10226 |
|
(exit $ac_status); } && |
10227 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10228 |
|
|| test ! -s conftest.err' |
10229 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10230 |
|
(eval $ac_try) 2>&5 |
10231 |
|
ac_status=$? |
10232 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10233 |
|
(exit $ac_status); }; } && |
10234 |
|
{ ac_try='test -s conftest$ac_exeext' |
10235 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10236 |
|
(eval $ac_try) 2>&5 |
10237 |
|
ac_status=$? |
10238 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10239 |
|
(exit $ac_status); }; }; then |
10240 |
|
|
10241 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10242 |
|
}'` |
10243 |
|
# Check for a 64-bit object if we didn't find anything. |
10244 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10245 |
|
}'`; fi |
10246 |
|
else |
10247 |
|
echo "$as_me: failed program was:" >&5 |
10248 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10249 |
|
|
10250 |
|
fi |
10251 |
|
rm -f conftest.err conftest.$ac_objext \ |
10252 |
|
conftest$ac_exeext conftest.$ac_ext |
10253 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10254 |
|
|
10255 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10256 |
|
|
10257 |
|
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10258 |
|
else |
10259 |
|
if test "$host_cpu" = ia64; then |
10260 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10261 |
|
allow_undefined_flag_CXX="-z nodefs" |
10262 |
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
10263 |
|
else |
10264 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10265 |
|
cat >conftest.$ac_ext <<_ACEOF |
10266 |
|
/* confdefs.h. */ |
10267 |
|
_ACEOF |
10268 |
|
cat confdefs.h >>conftest.$ac_ext |
10269 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10270 |
|
/* end confdefs.h. */ |
10271 |
|
|
10272 |
|
int |
10273 |
|
main () |
10274 |
|
{ |
10275 |
|
|
10276 |
|
; |
10277 |
|
return 0; |
10278 |
|
} |
10279 |
|
_ACEOF |
10280 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10281 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10282 |
|
(eval $ac_link) 2>conftest.er1 |
10283 |
|
ac_status=$? |
10284 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10285 |
|
rm -f conftest.er1 |
10286 |
|
cat conftest.err >&5 |
10287 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10288 |
|
(exit $ac_status); } && |
10289 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10290 |
|
|| test ! -s conftest.err' |
10291 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10292 |
|
(eval $ac_try) 2>&5 |
10293 |
|
ac_status=$? |
10294 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10295 |
|
(exit $ac_status); }; } && |
10296 |
|
{ ac_try='test -s conftest$ac_exeext' |
10297 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10298 |
|
(eval $ac_try) 2>&5 |
10299 |
|
ac_status=$? |
10300 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10301 |
|
(exit $ac_status); }; }; then |
10302 |
|
|
10303 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10304 |
|
}'` |
10305 |
|
# Check for a 64-bit object if we didn't find anything. |
10306 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10307 |
|
}'`; fi |
10308 |
|
else |
10309 |
|
echo "$as_me: failed program was:" >&5 |
10310 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10311 |
|
|
10312 |
|
fi |
10313 |
|
rm -f conftest.err conftest.$ac_objext \ |
10314 |
|
conftest$ac_exeext conftest.$ac_ext |
10315 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10316 |
|
|
10317 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10318 |
|
# Warning - without using the other run time loading flags, |
10319 |
|
# -berok will link without error, but may produce a broken library. |
10320 |
|
no_undefined_flag_CXX=' ${wl}-bernotok' |
10321 |
|
allow_undefined_flag_CXX=' ${wl}-berok' |
10322 |
|
# -bexpall does not export symbols beginning with underscore (_) |
10323 |
|
always_export_symbols_CXX=yes |
10324 |
|
# Exported symbols can be pulled into shared objects from archives |
10325 |
|
whole_archive_flag_spec_CXX=' ' |
10326 |
|
archive_cmds_need_lc_CXX=yes |
10327 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
10328 |
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10329 |
|
fi |
10330 |
|
fi |
10331 |
|
;; |
10332 |
|
chorus*) |
10333 |
|
case $cc_basename in |
10334 |
|
*) |
10335 |
|
# FIXME: insert proper C++ library support |
10336 |
|
ld_shlibs_CXX=no |
10337 |
|
;; |
10338 |
|
esac |
10339 |
|
;; |
10340 |
|
|
10341 |
|
cygwin* | mingw* | pw32*) |
10342 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10343 |
|
# as there is no search path for DLLs. |
10344 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10345 |
|
allow_undefined_flag_CXX=unsupported |
10346 |
|
always_export_symbols_CXX=no |
10347 |
|
enable_shared_with_static_runtimes_CXX=yes |
10348 |
|
|
10349 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10350 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
10351 |
|
# If the export-symbols file already is a .def file (1st line |
10352 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
10353 |
|
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10354 |
|
cp $export_symbols $output_objdir/$soname.def; |
10355 |
|
else |
10356 |
|
echo EXPORTS > $output_objdir/$soname.def; |
10357 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
10358 |
|
fi~ |
10359 |
|
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
10360 |
|
else |
10361 |
|
ld_shlibs_CXX=no |
10362 |
|
fi |
10363 |
|
;; |
10364 |
|
|
10365 |
|
darwin* | rhapsody*) |
10366 |
|
if test "$GXX" = yes; then |
10367 |
|
archive_cmds_need_lc_CXX=no |
10368 |
|
case "$host_os" in |
10369 |
|
rhapsody* | darwin1.[012]) |
10370 |
|
allow_undefined_flag_CXX='-undefined suppress' |
10371 |
|
;; |
10372 |
|
*) # Darwin 1.3 on |
10373 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10374 |
|
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
10375 |
|
else |
10376 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
10377 |
|
10.[012]) |
10378 |
|
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
10379 |
|
;; |
10380 |
|
10.*) |
10381 |
|
allow_undefined_flag_CXX='-undefined dynamic_lookup' |
10382 |
|
;; |
10383 |
|
esac |
10384 |
|
fi |
10385 |
|
;; |
10386 |
|
esac |
10387 |
|
lt_int_apple_cc_single_mod=no |
10388 |
|
output_verbose_link_cmd='echo' |
10389 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
10390 |
|
lt_int_apple_cc_single_mod=yes |
10391 |
|
fi |
10392 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10393 |
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10394 |
|
else |
10395 |
|
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10396 |
|
fi |
10397 |
|
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10398 |
|
|
10399 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
10400 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10401 |
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10402 |
|
else |
10403 |
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10404 |
|
fi |
10405 |
|
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10406 |
|
hardcode_direct_CXX=no |
10407 |
|
hardcode_automatic_CXX=yes |
10408 |
|
hardcode_shlibpath_var_CXX=unsupported |
10409 |
|
whole_archive_flag_spec_CXX='-all_load $convenience' |
10410 |
|
link_all_deplibs_CXX=yes |
10411 |
|
else |
10412 |
|
ld_shlibs_CXX=no |
10413 |
|
fi |
10414 |
|
;; |
10415 |
|
|
10416 |
|
dgux*) |
10417 |
|
case $cc_basename in |
10418 |
|
ec++) |
10419 |
|
# FIXME: insert proper C++ library support |
10420 |
|
ld_shlibs_CXX=no |
10421 |
|
;; |
10422 |
|
ghcx) |
10423 |
|
# Green Hills C++ Compiler |
10424 |
|
# FIXME: insert proper C++ library support |
10425 |
|
ld_shlibs_CXX=no |
10426 |
|
;; |
10427 |
|
*) |
10428 |
|
# FIXME: insert proper C++ library support |
10429 |
|
ld_shlibs_CXX=no |
10430 |
|
;; |
10431 |
|
esac |
10432 |
|
;; |
10433 |
|
freebsd12*) |
10434 |
|
# C++ shared libraries reported to be fairly broken before switch to ELF |
10435 |
|
ld_shlibs_CXX=no |
10436 |
|
;; |
10437 |
|
freebsd-elf*) |
10438 |
|
archive_cmds_need_lc_CXX=no |
10439 |
|
;; |
10440 |
|
freebsd* | kfreebsd*-gnu) |
10441 |
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10442 |
|
# conventions |
10443 |
|
ld_shlibs_CXX=yes |
10444 |
|
;; |
10445 |
|
gnu*) |
10446 |
|
;; |
10447 |
|
hpux9*) |
10448 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10449 |
|
hardcode_libdir_separator_CXX=: |
10450 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10451 |
|
hardcode_direct_CXX=yes |
10452 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10453 |
|
# but as the default |
10454 |
|
# location of the library. |
10455 |
|
|
10456 |
|
case $cc_basename in |
10457 |
|
CC) |
10458 |
|
# FIXME: insert proper C++ library support |
10459 |
|
ld_shlibs_CXX=no |
10460 |
|
;; |
10461 |
|
aCC) |
10462 |
|
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
10463 |
|
# Commands to make compiler produce verbose output that lists |
10464 |
|
# what "hidden" libraries, object files and flags are used when |
10465 |
|
# linking a shared library. |
10466 |
|
# |
10467 |
|
# There doesn't appear to be a way to prevent this compiler from |
10468 |
|
# explicitly linking system object files so we need to strip them |
10469 |
|
# from the output so that they don't get included in the library |
10470 |
|
# dependencies. |
10471 |
|
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10472 |
|
;; |
10473 |
|
*) |
10474 |
|
if test "$GXX" = yes; then |
10475 |
|
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
10476 |
|
else |
10477 |
|
# FIXME: insert proper C++ library support |
10478 |
|
ld_shlibs_CXX=no |
10479 |
|
fi |
10480 |
|
;; |
10481 |
|
esac |
10482 |
|
;; |
10483 |
|
hpux10*|hpux11*) |
10484 |
|
if test $with_gnu_ld = no; then |
10485 |
|
case "$host_cpu" in |
10486 |
|
hppa*64*) |
10487 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10488 |
|
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10489 |
|
hardcode_libdir_separator_CXX=: |
10490 |
|
;; |
10491 |
|
ia64*) |
10492 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10493 |
|
;; |
10494 |
|
*) |
10495 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10496 |
|
hardcode_libdir_separator_CXX=: |
10497 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10498 |
|
;; |
10499 |
|
esac |
10500 |
|
fi |
10501 |
|
case "$host_cpu" in |
10502 |
|
hppa*64*) |
10503 |
|
hardcode_direct_CXX=no |
10504 |
|
hardcode_shlibpath_var_CXX=no |
10505 |
|
;; |
10506 |
|
ia64*) |
10507 |
|
hardcode_direct_CXX=no |
10508 |
|
hardcode_shlibpath_var_CXX=no |
10509 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10510 |
|
# but as the default |
10511 |
|
# location of the library. |
10512 |
|
;; |
10513 |
|
*) |
10514 |
|
hardcode_direct_CXX=yes |
10515 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10516 |
|
# but as the default |
10517 |
|
# location of the library. |
10518 |
|
;; |
10519 |
|
esac |
10520 |
|
|
10521 |
|
case $cc_basename in |
10522 |
|
CC) |
10523 |
|
# FIXME: insert proper C++ library support |
10524 |
|
ld_shlibs_CXX=no |
10525 |
|
;; |
10526 |
|
aCC) |
10527 |
|
case "$host_cpu" in |
10528 |
|
hppa*64*|ia64*) |
10529 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10530 |
|
;; |
10531 |
|
*) |
10532 |
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10533 |
|
;; |
10534 |
|
esac |
10535 |
|
# Commands to make compiler produce verbose output that lists |
10536 |
|
# what "hidden" libraries, object files and flags are used when |
10537 |
|
# linking a shared library. |
10538 |
|
# |
10539 |
|
# There doesn't appear to be a way to prevent this compiler from |
10540 |
|
# explicitly linking system object files so we need to strip them |
10541 |
|
# from the output so that they don't get included in the library |
10542 |
|
# dependencies. |
10543 |
|
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10544 |
|
;; |
10545 |
|
*) |
10546 |
|
if test "$GXX" = yes; then |
10547 |
|
if test $with_gnu_ld = no; then |
10548 |
|
case "$host_cpu" in |
10549 |
|
ia64*|hppa*64*) |
10550 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10551 |
|
;; |
10552 |
|
*) |
10553 |
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10554 |
|
;; |
10555 |
|
esac |
10556 |
|
fi |
10557 |
|
else |
10558 |
|
# FIXME: insert proper C++ library support |
10559 |
|
ld_shlibs_CXX=no |
10560 |
|
fi |
10561 |
|
;; |
10562 |
|
esac |
10563 |
|
;; |
10564 |
|
irix5* | irix6*) |
10565 |
|
case $cc_basename in |
10566 |
|
CC) |
10567 |
|
# SGI C++ |
10568 |
|
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
10569 |
|
|
10570 |
|
# Archives containing C++ object files must be created using |
10571 |
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10572 |
|
# necessary to make sure instantiated templates are included |
10573 |
|
# in the archive. |
10574 |
|
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10575 |
|
;; |
10576 |
|
*) |
10577 |
|
if test "$GXX" = yes; then |
10578 |
|
if test "$with_gnu_ld" = no; then |
10579 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
10580 |
|
else |
10581 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
10582 |
|
fi |
10583 |
|
fi |
10584 |
|
link_all_deplibs_CXX=yes |
10585 |
|
;; |
10586 |
|
esac |
10587 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10588 |
|
hardcode_libdir_separator_CXX=: |
10589 |
|
;; |
10590 |
|
linux*) |
10591 |
|
case $cc_basename in |
10592 |
|
KCC) |
10593 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10594 |
|
|
10595 |
|
# KCC will only create a shared library if the output file |
10596 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10597 |
|
# to its proper name (with version) after linking. |
10598 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10599 |
|
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
10600 |
|
# Commands to make compiler produce verbose output that lists |
10601 |
|
# what "hidden" libraries, object files and flags are used when |
10602 |
|
# linking a shared library. |
10603 |
|
# |
10604 |
|
# There doesn't appear to be a way to prevent this compiler from |
10605 |
|
# explicitly linking system object files so we need to strip them |
10606 |
|
# from the output so that they don't get included in the library |
10607 |
|
# dependencies. |
10608 |
|
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10609 |
|
|
10610 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10611 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10612 |
|
|
10613 |
|
# Archives containing C++ object files must be created using |
10614 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10615 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10616 |
|
;; |
10617 |
|
icpc) |
10618 |
|
# Intel C++ |
10619 |
|
with_gnu_ld=yes |
10620 |
|
archive_cmds_need_lc_CXX=no |
10621 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10622 |
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10623 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10624 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10625 |
|
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10626 |
|
;; |
10627 |
|
cxx) |
10628 |
|
# Compaq C++ |
10629 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10630 |
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
10631 |
|
|
10632 |
|
runpath_var=LD_RUN_PATH |
10633 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10634 |
|
hardcode_libdir_separator_CXX=: |
10635 |
|
|
10636 |
|
# Commands to make compiler produce verbose output that lists |
10637 |
|
# what "hidden" libraries, object files and flags are used when |
10638 |
|
# linking a shared library. |
10639 |
|
# |
10640 |
|
# There doesn't appear to be a way to prevent this compiler from |
10641 |
|
# explicitly linking system object files so we need to strip them |
10642 |
|
# from the output so that they don't get included in the library |
10643 |
|
# dependencies. |
10644 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10645 |
|
;; |
10646 |
|
esac |
10647 |
|
;; |
10648 |
|
lynxos*) |
10649 |
|
# FIXME: insert proper C++ library support |
10650 |
|
ld_shlibs_CXX=no |
10651 |
|
;; |
10652 |
|
m88k*) |
10653 |
|
# FIXME: insert proper C++ library support |
10654 |
|
ld_shlibs_CXX=no |
10655 |
|
;; |
10656 |
|
mvs*) |
10657 |
|
case $cc_basename in |
10658 |
|
cxx) |
10659 |
|
# FIXME: insert proper C++ library support |
10660 |
|
ld_shlibs_CXX=no |
10661 |
|
;; |
10662 |
|
*) |
10663 |
|
# FIXME: insert proper C++ library support |
10664 |
|
ld_shlibs_CXX=no |
10665 |
|
;; |
10666 |
|
esac |
10667 |
|
;; |
10668 |
|
netbsd*) |
10669 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10670 |
|
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10671 |
|
wlarc= |
10672 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
10673 |
|
hardcode_direct_CXX=yes |
10674 |
|
hardcode_shlibpath_var_CXX=no |
10675 |
|
fi |
10676 |
|
# Workaround some broken pre-1.5 toolchains |
10677 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10678 |
|
;; |
10679 |
|
osf3*) |
10680 |
|
case $cc_basename in |
10681 |
|
KCC) |
10682 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10683 |
|
|
10684 |
|
# KCC will only create a shared library if the output file |
10685 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10686 |
|
# to its proper name (with version) after linking. |
10687 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10688 |
|
|
10689 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10690 |
|
hardcode_libdir_separator_CXX=: |
10691 |
|
|
10692 |
|
# Archives containing C++ object files must be created using |
10693 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10694 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10695 |
|
|
10696 |
|
;; |
10697 |
|
RCC) |
10698 |
|
# Rational C++ 2.4.1 |
10699 |
|
# FIXME: insert proper C++ library support |
10700 |
|
ld_shlibs_CXX=no |
10701 |
|
;; |
10702 |
|
cxx) |
10703 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10704 |
|
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
10705 |
|
|
10706 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10707 |
|
hardcode_libdir_separator_CXX=: |
10708 |
|
|
10709 |
|
# Commands to make compiler produce verbose output that lists |
10710 |
|
# what "hidden" libraries, object files and flags are used when |
10711 |
|
# linking a shared library. |
10712 |
|
# |
10713 |
|
# There doesn't appear to be a way to prevent this compiler from |
10714 |
|
# explicitly linking system object files so we need to strip them |
10715 |
|
# from the output so that they don't get included in the library |
10716 |
|
# dependencies. |
10717 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10718 |
|
;; |
10719 |
|
*) |
10720 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10721 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10722 |
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
10723 |
|
|
10724 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10725 |
|
hardcode_libdir_separator_CXX=: |
10726 |
|
|
10727 |
|
# Commands to make compiler produce verbose output that lists |
10728 |
|
# what "hidden" libraries, object files and flags are used when |
10729 |
|
# linking a shared library. |
10730 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10731 |
|
|
10732 |
|
else |
10733 |
|
# FIXME: insert proper C++ library support |
10734 |
|
ld_shlibs_CXX=no |
10735 |
|
fi |
10736 |
|
;; |
10737 |
|
esac |
10738 |
|
;; |
10739 |
|
osf4* | osf5*) |
10740 |
|
case $cc_basename in |
10741 |
|
KCC) |
10742 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10743 |
|
|
10744 |
|
# KCC will only create a shared library if the output file |
10745 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10746 |
|
# to its proper name (with version) after linking. |
10747 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10748 |
|
|
10749 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10750 |
|
hardcode_libdir_separator_CXX=: |
10751 |
|
|
10752 |
|
# Archives containing C++ object files must be created using |
10753 |
|
# the KAI C++ compiler. |
10754 |
|
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10755 |
|
;; |
10756 |
|
RCC) |
10757 |
|
# Rational C++ 2.4.1 |
10758 |
|
# FIXME: insert proper C++ library support |
10759 |
|
ld_shlibs_CXX=no |
10760 |
|
;; |
10761 |
|
cxx) |
10762 |
|
allow_undefined_flag_CXX=' -expect_unresolved \*' |
10763 |
|
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
10764 |
|
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10765 |
|
echo "-hidden">> $lib.exp~ |
10766 |
|
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
10767 |
|
$rm $lib.exp' |
10768 |
|
|
10769 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10770 |
|
hardcode_libdir_separator_CXX=: |
10771 |
|
|
10772 |
|
# Commands to make compiler produce verbose output that lists |
10773 |
|
# what "hidden" libraries, object files and flags are used when |
10774 |
|
# linking a shared library. |
10775 |
|
# |
10776 |
|
# There doesn't appear to be a way to prevent this compiler from |
10777 |
|
# explicitly linking system object files so we need to strip them |
10778 |
|
# from the output so that they don't get included in the library |
10779 |
|
# dependencies. |
10780 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10781 |
|
;; |
10782 |
|
*) |
10783 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10784 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10785 |
|
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
10786 |
|
|
10787 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10788 |
|
hardcode_libdir_separator_CXX=: |
10789 |
|
|
10790 |
|
# Commands to make compiler produce verbose output that lists |
10791 |
|
# what "hidden" libraries, object files and flags are used when |
10792 |
|
# linking a shared library. |
10793 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10794 |
|
|
10795 |
|
else |
10796 |
|
# FIXME: insert proper C++ library support |
10797 |
|
ld_shlibs_CXX=no |
10798 |
|
fi |
10799 |
|
;; |
10800 |
|
esac |
10801 |
|
;; |
10802 |
|
psos*) |
10803 |
|
# FIXME: insert proper C++ library support |
10804 |
|
ld_shlibs_CXX=no |
10805 |
|
;; |
10806 |
|
sco*) |
10807 |
|
archive_cmds_need_lc_CXX=no |
10808 |
|
case $cc_basename in |
10809 |
|
CC) |
10810 |
|
# FIXME: insert proper C++ library support |
10811 |
|
ld_shlibs_CXX=no |
10812 |
|
;; |
10813 |
|
*) |
10814 |
|
# FIXME: insert proper C++ library support |
10815 |
|
ld_shlibs_CXX=no |
10816 |
|
;; |
10817 |
|
esac |
10818 |
|
;; |
10819 |
|
sunos4*) |
10820 |
|
case $cc_basename in |
10821 |
|
CC) |
10822 |
|
# Sun C++ 4.x |
10823 |
|
# FIXME: insert proper C++ library support |
10824 |
|
ld_shlibs_CXX=no |
10825 |
|
;; |
10826 |
|
lcc) |
10827 |
|
# Lucid |
10828 |
|
# FIXME: insert proper C++ library support |
10829 |
|
ld_shlibs_CXX=no |
10830 |
|
;; |
10831 |
|
*) |
10832 |
|
# FIXME: insert proper C++ library support |
10833 |
|
ld_shlibs_CXX=no |
10834 |
|
;; |
10835 |
|
esac |
10836 |
|
;; |
10837 |
|
solaris*) |
10838 |
|
case $cc_basename in |
10839 |
|
CC) |
10840 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
10841 |
|
no_undefined_flag_CXX=' -zdefs' |
10842 |
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10843 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10844 |
|
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10845 |
|
|
10846 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
10847 |
|
hardcode_shlibpath_var_CXX=no |
10848 |
|
case $host_os in |
10849 |
|
solaris2.0-5 | solaris2.0-5.*) ;; |
10850 |
|
*) |
10851 |
|
# The C++ compiler is used as linker so we must use $wl |
10852 |
|
# flag to pass the commands to the underlying system |
10853 |
|
# linker. |
10854 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10855 |
|
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
10856 |
|
;; |
10857 |
|
esac |
10858 |
|
link_all_deplibs_CXX=yes |
10859 |
|
|
10860 |
|
# Commands to make compiler produce verbose output that lists |
10861 |
|
# what "hidden" libraries, object files and flags are used when |
10862 |
|
# linking a shared library. |
10863 |
|
# |
10864 |
|
# There doesn't appear to be a way to prevent this compiler from |
10865 |
|
# explicitly linking system object files so we need to strip them |
10866 |
|
# from the output so that they don't get included in the library |
10867 |
|
# dependencies. |
10868 |
|
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10869 |
|
|
10870 |
|
# Archives containing C++ object files must be created using |
10871 |
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
10872 |
|
# necessary to make sure instantiated templates are included |
10873 |
|
# in the archive. |
10874 |
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
10875 |
|
;; |
10876 |
|
gcx) |
10877 |
|
# Green Hills C++ Compiler |
10878 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10879 |
|
|
10880 |
|
# The C++ compiler must be used to create the archive. |
10881 |
|
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
10882 |
|
;; |
10883 |
|
*) |
10884 |
|
# GNU C++ compiler with Solaris linker |
10885 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10886 |
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
10887 |
|
if $CC --version | grep -v '^2\.7' > /dev/null; then |
10888 |
|
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10889 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10890 |
|
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10891 |
|
|
10892 |
|
# Commands to make compiler produce verbose output that lists |
10893 |
|
# what "hidden" libraries, object files and flags are used when |
10894 |
|
# linking a shared library. |
10895 |
|
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
10896 |
|
else |
10897 |
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
10898 |
|
# platform. |
10899 |
|
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10900 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10901 |
|
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10902 |
|
|
10903 |
|
# Commands to make compiler produce verbose output that lists |
10904 |
|
# what "hidden" libraries, object files and flags are used when |
10905 |
|
# linking a shared library. |
10906 |
|
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
10907 |
|
fi |
10908 |
|
|
10909 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
10910 |
|
fi |
10911 |
|
;; |
10912 |
|
esac |
10913 |
|
;; |
10914 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
10915 |
|
archive_cmds_need_lc_CXX=no |
10916 |
|
;; |
10917 |
|
tandem*) |
10918 |
|
case $cc_basename in |
10919 |
|
NCC) |
10920 |
|
# NonStop-UX NCC 3.20 |
10921 |
|
# FIXME: insert proper C++ library support |
10922 |
|
ld_shlibs_CXX=no |
10923 |
|
;; |
10924 |
|
*) |
10925 |
|
# FIXME: insert proper C++ library support |
10926 |
|
ld_shlibs_CXX=no |
10927 |
|
;; |
10928 |
|
esac |
10929 |
|
;; |
10930 |
|
vxworks*) |
10931 |
|
# FIXME: insert proper C++ library support |
10932 |
|
ld_shlibs_CXX=no |
10933 |
|
;; |
10934 |
|
*) |
10935 |
|
# FIXME: insert proper C++ library support |
10936 |
|
ld_shlibs_CXX=no |
10937 |
|
;; |
10938 |
|
esac |
10939 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
10940 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
10941 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
10942 |
|
|
10943 |
|
GCC_CXX="$GXX" |
10944 |
|
LD_CXX="$LD" |
10945 |
|
|
10946 |
|
|
10947 |
|
cat > conftest.$ac_ext <<EOF |
10948 |
|
class Foo |
10949 |
|
{ |
10950 |
|
public: |
10951 |
|
Foo (void) { a = 0; } |
10952 |
|
private: |
10953 |
|
int a; |
10954 |
|
}; |
10955 |
|
EOF |
10956 |
|
|
10957 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10958 |
|
(eval $ac_compile) 2>&5 |
10959 |
|
ac_status=$? |
10960 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10961 |
|
(exit $ac_status); }; then |
10962 |
|
# Parse the compiler output and extract the necessary |
10963 |
|
# objects, libraries and library flags. |
10964 |
|
|
10965 |
|
# Sentinel used to keep track of whether or not we are before |
10966 |
|
# the conftest object file. |
10967 |
|
pre_test_object_deps_done=no |
10968 |
|
|
10969 |
|
# The `*' in the case matches for architectures that use `case' in |
10970 |
|
# $output_verbose_cmd can trigger glob expansion during the loop |
10971 |
|
# eval without this substitution. |
10972 |
|
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
10973 |
|
|
10974 |
|
for p in `eval $output_verbose_link_cmd`; do |
10975 |
|
case $p in |
10976 |
|
|
10977 |
|
-L* | -R* | -l*) |
10978 |
|
# Some compilers place space between "-{L,R}" and the path. |
10979 |
|
# Remove the space. |
10980 |
|
if test $p = "-L" \ |
10981 |
|
|| test $p = "-R"; then |
10982 |
|
prev=$p |
10983 |
|
continue |
10984 |
|
else |
10985 |
|
prev= |
10986 |
|
fi |
10987 |
|
|
10988 |
|
if test "$pre_test_object_deps_done" = no; then |
10989 |
|
case $p in |
10990 |
|
-L* | -R*) |
10991 |
|
# Internal compiler library paths should come after those |
10992 |
|
# provided the user. The postdeps already come after the |
10993 |
|
# user supplied libs so there is no need to process them. |
10994 |
|
if test -z "$compiler_lib_search_path_CXX"; then |
10995 |
|
compiler_lib_search_path_CXX="${prev}${p}" |
10996 |
|
else |
10997 |
|
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
10998 |
|
fi |
10999 |
|
;; |
11000 |
|
# The "-l" case would never come before the object being |
11001 |
|
# linked, so don't bother handling this case. |
11002 |
|
esac |
11003 |
|
else |
11004 |
|
if test -z "$postdeps_CXX"; then |
11005 |
|
postdeps_CXX="${prev}${p}" |
11006 |
|
else |
11007 |
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11008 |
|
fi |
11009 |
|
fi |
11010 |
|
;; |
11011 |
|
|
11012 |
|
*.$objext) |
11013 |
|
# This assumes that the test object file only shows up |
11014 |
|
# once in the compiler output. |
11015 |
|
if test "$p" = "conftest.$objext"; then |
11016 |
|
pre_test_object_deps_done=yes |
11017 |
|
continue |
11018 |
|
fi |
11019 |
|
|
11020 |
|
if test "$pre_test_object_deps_done" = no; then |
11021 |
|
if test -z "$predep_objects_CXX"; then |
11022 |
|
predep_objects_CXX="$p" |
11023 |
|
else |
11024 |
|
predep_objects_CXX="$predep_objects_CXX $p" |
11025 |
|
fi |
11026 |
|
else |
11027 |
|
if test -z "$postdep_objects_CXX"; then |
11028 |
|
postdep_objects_CXX="$p" |
11029 |
|
else |
11030 |
|
postdep_objects_CXX="$postdep_objects_CXX $p" |
11031 |
|
fi |
11032 |
|
fi |
11033 |
|
;; |
11034 |
|
|
11035 |
|
*) ;; # Ignore the rest. |
11036 |
|
|
11037 |
|
esac |
11038 |
|
done |
11039 |
|
|
11040 |
|
# Clean up. |
11041 |
|
rm -f a.out a.exe |
11042 |
|
else |
11043 |
|
echo "libtool.m4: error: problem compiling CXX test program" |
11044 |
|
fi |
11045 |
|
|
11046 |
|
$rm -f confest.$objext |
11047 |
|
|
11048 |
|
case " $postdeps_CXX " in |
11049 |
|
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11050 |
|
esac |
11051 |
|
|
11052 |
|
lt_prog_compiler_wl_CXX= |
11053 |
|
lt_prog_compiler_pic_CXX= |
11054 |
|
lt_prog_compiler_static_CXX= |
11055 |
|
|
11056 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11057 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11058 |
|
|
11059 |
|
# C++ specific cases for pic, static, wl, etc. |
11060 |
|
if test "$GXX" = yes; then |
11061 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11062 |
|
lt_prog_compiler_static_CXX='-static' |
11063 |
|
|
11064 |
|
case $host_os in |
11065 |
|
aix*) |
11066 |
|
# All AIX code is PIC. |
11067 |
|
if test "$host_cpu" = ia64; then |
11068 |
|
# AIX 5 now supports IA64 processor |
11069 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11070 |
|
fi |
11071 |
|
;; |
11072 |
|
amigaos*) |
11073 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
11074 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
11075 |
|
# like `-m68040'. |
11076 |
|
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11077 |
|
;; |
11078 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11079 |
|
# PIC is the default for these OSes. |
11080 |
|
;; |
11081 |
|
mingw* | os2* | pw32*) |
11082 |
|
# This hack is so that the source file can tell whether it is being |
11083 |
|
# built for inclusion in a dll (and should export symbols for example). |
11084 |
|
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11085 |
|
;; |
11086 |
|
darwin* | rhapsody*) |
11087 |
|
# PIC is the default on this platform |
11088 |
|
# Common symbols not allowed in MH_DYLIB files |
11089 |
|
lt_prog_compiler_pic_CXX='-fno-common' |
11090 |
|
;; |
11091 |
|
*djgpp*) |
11092 |
|
# DJGPP does not support shared libraries at all |
11093 |
|
lt_prog_compiler_pic_CXX= |
11094 |
|
;; |
11095 |
|
sysv4*MP*) |
11096 |
|
if test -d /usr/nec; then |
11097 |
|
lt_prog_compiler_pic_CXX=-Kconform_pic |
11098 |
|
fi |
11099 |
|
;; |
11100 |
|
hpux*) |
11101 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11102 |
|
# not for PA HP-UX. |
11103 |
|
case "$host_cpu" in |
11104 |
|
hppa*64*|ia64*) |
11105 |
|
;; |
11106 |
|
*) |
11107 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11108 |
|
;; |
11109 |
|
esac |
11110 |
|
;; |
11111 |
|
*) |
11112 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11113 |
|
;; |
11114 |
|
esac |
11115 |
|
else |
11116 |
|
case $host_os in |
11117 |
|
aix4* | aix5*) |
11118 |
|
# All AIX code is PIC. |
11119 |
|
if test "$host_cpu" = ia64; then |
11120 |
|
# AIX 5 now supports IA64 processor |
11121 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11122 |
|
else |
11123 |
|
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11124 |
|
fi |
11125 |
|
;; |
11126 |
|
chorus*) |
11127 |
|
case $cc_basename in |
11128 |
|
cxch68) |
11129 |
|
# Green Hills C++ Compiler |
11130 |
|
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
11131 |
|
;; |
11132 |
|
esac |
11133 |
|
;; |
11134 |
|
dgux*) |
11135 |
|
case $cc_basename in |
11136 |
|
ec++) |
11137 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11138 |
|
;; |
11139 |
|
ghcx) |
11140 |
|
# Green Hills C++ Compiler |
11141 |
|
lt_prog_compiler_pic_CXX='-pic' |
11142 |
|
;; |
11143 |
|
*) |
11144 |
|
;; |
11145 |
|
esac |
11146 |
|
;; |
11147 |
|
freebsd* | kfreebsd*-gnu) |
11148 |
|
# FreeBSD uses GNU C++ |
11149 |
|
;; |
11150 |
|
hpux9* | hpux10* | hpux11*) |
11151 |
|
case $cc_basename in |
11152 |
|
CC) |
11153 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11154 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11155 |
|
if test "$host_cpu" != ia64; then |
11156 |
|
lt_prog_compiler_pic_CXX='+Z' |
11157 |
|
fi |
11158 |
|
;; |
11159 |
|
aCC) |
11160 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11161 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11162 |
|
case "$host_cpu" in |
11163 |
|
hppa*64*|ia64*) |
11164 |
|
# +Z the default |
11165 |
|
;; |
11166 |
|
*) |
11167 |
|
lt_prog_compiler_pic_CXX='+Z' |
11168 |
|
;; |
11169 |
|
esac |
11170 |
|
;; |
11171 |
|
*) |
11172 |
|
;; |
11173 |
|
esac |
11174 |
|
;; |
11175 |
|
irix5* | irix6* | nonstopux*) |
11176 |
|
case $cc_basename in |
11177 |
|
CC) |
11178 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11179 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11180 |
|
# CC pic flag -KPIC is the default. |
11181 |
|
;; |
11182 |
|
*) |
11183 |
|
;; |
11184 |
|
esac |
11185 |
|
;; |
11186 |
|
linux*) |
11187 |
|
case $cc_basename in |
11188 |
|
KCC) |
11189 |
|
# KAI C++ Compiler |
11190 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11191 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11192 |
|
;; |
11193 |
|
icpc) |
11194 |
|
# Intel C++ |
11195 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11196 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11197 |
|
lt_prog_compiler_static_CXX='-static' |
11198 |
|
;; |
11199 |
|
cxx) |
11200 |
|
# Compaq C++ |
11201 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11202 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11203 |
|
lt_prog_compiler_pic_CXX= |
11204 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11205 |
|
;; |
11206 |
|
*) |
11207 |
|
;; |
11208 |
|
esac |
11209 |
|
;; |
11210 |
|
lynxos*) |
11211 |
|
;; |
11212 |
|
m88k*) |
11213 |
|
;; |
11214 |
|
mvs*) |
11215 |
|
case $cc_basename in |
11216 |
|
cxx) |
11217 |
|
lt_prog_compiler_pic_CXX='-W c,exportall' |
11218 |
|
;; |
11219 |
|
*) |
11220 |
|
;; |
11221 |
|
esac |
11222 |
|
;; |
11223 |
|
netbsd*) |
11224 |
|
;; |
11225 |
|
osf3* | osf4* | osf5*) |
11226 |
|
case $cc_basename in |
11227 |
|
KCC) |
11228 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11229 |
|
;; |
11230 |
|
RCC) |
11231 |
|
# Rational C++ 2.4.1 |
11232 |
|
lt_prog_compiler_pic_CXX='-pic' |
11233 |
|
;; |
11234 |
|
cxx) |
11235 |
|
# Digital/Compaq C++ |
11236 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11237 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11238 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11239 |
|
lt_prog_compiler_pic_CXX= |
11240 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11241 |
|
;; |
11242 |
|
*) |
11243 |
|
;; |
11244 |
|
esac |
11245 |
|
;; |
11246 |
|
psos*) |
11247 |
|
;; |
11248 |
|
sco*) |
11249 |
|
case $cc_basename in |
11250 |
|
CC) |
11251 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11252 |
|
;; |
11253 |
|
*) |
11254 |
|
;; |
11255 |
|
esac |
11256 |
|
;; |
11257 |
|
solaris*) |
11258 |
|
case $cc_basename in |
11259 |
|
CC) |
11260 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
11261 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11262 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11263 |
|
lt_prog_compiler_wl_CXX='-Qoption ld ' |
11264 |
|
;; |
11265 |
|
gcx) |
11266 |
|
# Green Hills C++ Compiler |
11267 |
|
lt_prog_compiler_pic_CXX='-PIC' |
11268 |
|
;; |
11269 |
|
*) |
11270 |
|
;; |
11271 |
|
esac |
11272 |
|
;; |
11273 |
|
sunos4*) |
11274 |
|
case $cc_basename in |
11275 |
|
CC) |
11276 |
|
# Sun C++ 4.x |
11277 |
|
lt_prog_compiler_pic_CXX='-pic' |
11278 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11279 |
|
;; |
11280 |
|
lcc) |
11281 |
|
# Lucid |
11282 |
|
lt_prog_compiler_pic_CXX='-pic' |
11283 |
|
;; |
11284 |
|
*) |
11285 |
|
;; |
11286 |
|
esac |
11287 |
|
;; |
11288 |
|
tandem*) |
11289 |
|
case $cc_basename in |
11290 |
|
NCC) |
11291 |
|
# NonStop-UX NCC 3.20 |
11292 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11293 |
|
;; |
11294 |
|
*) |
11295 |
|
;; |
11296 |
|
esac |
11297 |
|
;; |
11298 |
|
unixware*) |
11299 |
|
;; |
11300 |
|
vxworks*) |
11301 |
|
;; |
11302 |
|
*) |
11303 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11304 |
|
;; |
11305 |
|
esac |
11306 |
|
fi |
11307 |
|
|
11308 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11309 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11310 |
|
|
11311 |
|
# |
11312 |
|
# Check to make sure the PIC flag actually works. |
11313 |
|
# |
11314 |
|
if test -n "$lt_prog_compiler_pic_CXX"; then |
11315 |
|
|
11316 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11317 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11318 |
|
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11319 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11320 |
|
else |
11321 |
|
lt_prog_compiler_pic_works_CXX=no |
11322 |
|
ac_outfile=conftest.$ac_objext |
11323 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11324 |
|
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11325 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11326 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11327 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11328 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11329 |
|
# The option is referenced via a variable to avoid confusing sed. |
11330 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11331 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11332 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11333 |
|
-e 's:$: $lt_compiler_flag:'` |
11334 |
|
(eval echo "\"\$as_me:11334: $lt_compile\"" >&5) |
11335 |
|
(eval "$lt_compile" 2>conftest.err) |
11336 |
|
ac_status=$? |
11337 |
|
cat conftest.err >&5 |
11338 |
|
echo "$as_me:11338: \$? = $ac_status" >&5 |
11339 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
11340 |
|
# The compiler can only warn and ignore the option if not recognized |
11341 |
|
# So say no if there are warnings |
11342 |
|
if test ! -s conftest.err; then |
11343 |
|
lt_prog_compiler_pic_works_CXX=yes |
11344 |
|
fi |
11345 |
|
fi |
11346 |
|
$rm conftest* |
11347 |
|
|
11348 |
|
fi |
11349 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11350 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11351 |
|
|
11352 |
|
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11353 |
|
case $lt_prog_compiler_pic_CXX in |
11354 |
|
"" | " "*) ;; |
11355 |
|
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11356 |
|
esac |
11357 |
|
else |
11358 |
|
lt_prog_compiler_pic_CXX= |
11359 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11360 |
|
fi |
11361 |
|
|
11362 |
|
fi |
11363 |
|
case "$host_os" in |
11364 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
11365 |
|
*djgpp*) |
11366 |
|
lt_prog_compiler_pic_CXX= |
11367 |
|
;; |
11368 |
|
*) |
11369 |
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11370 |
|
;; |
11371 |
|
esac |
11372 |
|
|
11373 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11374 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11375 |
|
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11376 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11377 |
|
else |
11378 |
|
lt_cv_prog_compiler_c_o_CXX=no |
11379 |
|
$rm -r conftest 2>/dev/null |
11380 |
|
mkdir conftest |
11381 |
|
cd conftest |
11382 |
|
mkdir out |
11383 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11384 |
|
|
11385 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
11386 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11387 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11388 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11389 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11390 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11391 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11392 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11393 |
|
-e 's:$: $lt_compiler_flag:'` |
11394 |
|
(eval echo "\"\$as_me:11394: $lt_compile\"" >&5) |
11395 |
|
(eval "$lt_compile" 2>out/conftest.err) |
11396 |
|
ac_status=$? |
11397 |
|
cat out/conftest.err >&5 |
11398 |
|
echo "$as_me:11398: \$? = $ac_status" >&5 |
11399 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11400 |
|
then |
11401 |
|
# The compiler can only warn and ignore the option if not recognized |
11402 |
|
# So say no if there are warnings |
11403 |
|
if test ! -s out/conftest.err; then |
11404 |
|
lt_cv_prog_compiler_c_o_CXX=yes |
11405 |
|
fi |
11406 |
|
fi |
11407 |
|
chmod u+w . |
11408 |
|
$rm conftest* |
11409 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
11410 |
|
# template instantiation |
11411 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11412 |
|
$rm out/* && rmdir out |
11413 |
|
cd .. |
11414 |
|
rmdir conftest |
11415 |
|
$rm conftest* |
11416 |
|
|
11417 |
|
fi |
11418 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11419 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11420 |
|
|
11421 |
|
|
11422 |
|
hard_links="nottested" |
11423 |
|
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11424 |
|
# do not overwrite the value of need_locks provided by the user |
11425 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11426 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11427 |
|
hard_links=yes |
11428 |
|
$rm conftest* |
11429 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11430 |
|
touch conftest.a |
11431 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
11432 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11433 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
11434 |
|
echo "${ECHO_T}$hard_links" >&6 |
11435 |
|
if test "$hard_links" = no; then |
11436 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11437 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11438 |
|
need_locks=warn |
11439 |
|
fi |
11440 |
|
else |
11441 |
|
need_locks=no |
11442 |
|
fi |
11443 |
|
|
11444 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11445 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11446 |
|
|
11447 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11448 |
|
case $host_os in |
11449 |
|
aix4* | aix5*) |
11450 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
11451 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
11452 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11453 |
|
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
11454 |
|
else |
11455 |
|
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
11456 |
|
fi |
11457 |
|
;; |
11458 |
|
pw32*) |
11459 |
|
export_symbols_cmds_CXX="$ltdll_cmds" |
11460 |
|
;; |
11461 |
|
cygwin* | mingw*) |
11462 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
11463 |
|
;; |
11464 |
|
*) |
11465 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11466 |
|
;; |
11467 |
|
esac |
11468 |
|
|
11469 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11470 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11471 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
11472 |
|
|
11473 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11474 |
|
if test "$GCC" = yes; then |
11475 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11476 |
|
fi |
11477 |
|
|
11478 |
|
# |
11479 |
|
# Do we need to explicitly link libc? |
11480 |
|
# |
11481 |
|
case "x$archive_cmds_need_lc_CXX" in |
11482 |
|
x|xyes) |
11483 |
|
# Assume -lc should be added |
11484 |
|
archive_cmds_need_lc_CXX=yes |
11485 |
|
|
11486 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
11487 |
|
case $archive_cmds_CXX in |
11488 |
|
*'~'*) |
11489 |
|
# FIXME: we may have to deal with multi-command sequences. |
11490 |
|
;; |
11491 |
|
'$CC '*) |
11492 |
|
# Test whether the compiler implicitly links with -lc since on some |
11493 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
11494 |
|
# to ld, don't add -lc before -lgcc. |
11495 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11496 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11497 |
|
$rm conftest* |
11498 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11499 |
|
|
11500 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11501 |
|
(eval $ac_compile) 2>&5 |
11502 |
|
ac_status=$? |
11503 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11504 |
|
(exit $ac_status); } 2>conftest.err; then |
11505 |
|
soname=conftest |
11506 |
|
lib=conftest |
11507 |
|
libobjs=conftest.$ac_objext |
11508 |
|
deplibs= |
11509 |
|
wl=$lt_prog_compiler_wl_CXX |
11510 |
|
compiler_flags=-v |
11511 |
|
linker_flags=-v |
11512 |
|
verstring= |
11513 |
|
output_objdir=. |
11514 |
|
libname=conftest |
11515 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11516 |
|
allow_undefined_flag_CXX= |
11517 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11518 |
|
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11519 |
|
ac_status=$? |
11520 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11521 |
|
(exit $ac_status); } |
11522 |
|
then |
11523 |
|
archive_cmds_need_lc_CXX=no |
11524 |
|
else |
11525 |
|
archive_cmds_need_lc_CXX=yes |
11526 |
|
fi |
11527 |
|
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11528 |
|
else |
11529 |
|
cat conftest.err 1>&5 |
11530 |
|
fi |
11531 |
|
$rm conftest* |
11532 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11533 |
|
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11534 |
|
;; |
11535 |
|
esac |
11536 |
|
fi |
11537 |
|
;; |
11538 |
|
esac |
11539 |
|
|
11540 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11541 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11542 |
|
library_names_spec= |
11543 |
|
libname_spec='lib$name' |
11544 |
|
soname_spec= |
11545 |
|
shrext_cmds=".so" |
11546 |
|
postinstall_cmds= |
11547 |
|
postuninstall_cmds= |
11548 |
|
finish_cmds= |
11549 |
|
finish_eval= |
11550 |
|
shlibpath_var= |
11551 |
|
shlibpath_overrides_runpath=unknown |
11552 |
|
version_type=none |
11553 |
|
dynamic_linker="$host_os ld.so" |
11554 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11555 |
|
if test "$GCC" = yes; then |
11556 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11557 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11558 |
|
# if the path contains ";" then we assume it to be the separator |
11559 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
11560 |
|
# assumed that no part of a normal pathname contains ";" but that should |
11561 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
11562 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11563 |
|
else |
11564 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11565 |
|
fi |
11566 |
|
else |
11567 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11568 |
|
fi |
11569 |
|
need_lib_prefix=unknown |
11570 |
|
hardcode_into_libs=no |
11571 |
|
|
11572 |
|
# when you set need_version to no, make sure it does not cause -set_version |
11573 |
|
# flags to be left without arguments |
11574 |
|
need_version=unknown |
11575 |
|
|
11576 |
|
case $host_os in |
11577 |
|
aix3*) |
11578 |
|
version_type=linux |
11579 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11580 |
|
shlibpath_var=LIBPATH |
11581 |
|
|
11582 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
11583 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11584 |
|
;; |
11585 |
|
|
11586 |
|
aix4* | aix5*) |
11587 |
|
version_type=linux |
11588 |
|
need_lib_prefix=no |
11589 |
|
need_version=no |
11590 |
|
hardcode_into_libs=yes |
11591 |
|
if test "$host_cpu" = ia64; then |
11592 |
|
# AIX 5 supports IA64 |
11593 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11594 |
|
shlibpath_var=LD_LIBRARY_PATH |
11595 |
|
else |
11596 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
11597 |
|
# for dependence libraries. The import file would start with |
11598 |
|
# the line `#! .'. This would cause the generated library to |
11599 |
|
# depend on `.', always an invalid library. This was fixed in |
11600 |
|
# development snapshots of GCC prior to 3.0. |
11601 |
|
case $host_os in |
11602 |
|
aix4 | aix4.[01] | aix4.[01].*) |
11603 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11604 |
|
echo ' yes ' |
11605 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11606 |
|
: |
11607 |
|
else |
11608 |
|
can_build_shared=no |
11609 |
|
fi |
11610 |
|
;; |
11611 |
|
esac |
11612 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11613 |
|
# soname into executable. Probably we can add versioning support to |
11614 |
|
# collect2, so additional links can be useful in future. |
11615 |
|
if test "$aix_use_runtimelinking" = yes; then |
11616 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11617 |
|
# instead of lib<name>.a to let people know that these are not |
11618 |
|
# typical AIX shared libraries. |
11619 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11620 |
|
else |
11621 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
11622 |
|
# and later when we are not doing run time linking. |
11623 |
|
library_names_spec='${libname}${release}.a $libname.a' |
11624 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11625 |
|
fi |
11626 |
|
shlibpath_var=LIBPATH |
11627 |
|
fi |
11628 |
|
;; |
11629 |
|
|
11630 |
|
amigaos*) |
11631 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
11632 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
11633 |
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
11634 |
|
;; |
11635 |
|
|
11636 |
|
beos*) |
11637 |
|
library_names_spec='${libname}${shared_ext}' |
11638 |
|
dynamic_linker="$host_os ld.so" |
11639 |
|
shlibpath_var=LIBRARY_PATH |
11640 |
|
;; |
11641 |
|
|
11642 |
|
bsdi4*) |
11643 |
|
version_type=linux |
11644 |
|
need_version=no |
11645 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11646 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11647 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11648 |
|
shlibpath_var=LD_LIBRARY_PATH |
11649 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11650 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11651 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
11652 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11653 |
|
# libtool to hard-code these into programs |
11654 |
|
;; |
11655 |
|
|
11656 |
|
cygwin* | mingw* | pw32*) |
11657 |
|
version_type=windows |
11658 |
|
shrext_cmds=".dll" |
11659 |
|
need_version=no |
11660 |
|
need_lib_prefix=no |
11661 |
|
|
11662 |
|
case $GCC,$host_os in |
11663 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
11664 |
|
library_names_spec='$libname.dll.a' |
11665 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11666 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
11667 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
11668 |
|
dldir=$destdir/`dirname \$dlpath`~ |
11669 |
|
test -d \$dldir || mkdir -p \$dldir~ |
11670 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
11671 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11672 |
|
dlpath=$dir/\$dldll~ |
11673 |
|
$rm \$dlpath' |
11674 |
|
shlibpath_overrides_runpath=yes |
11675 |
|
|
11676 |
|
case $host_os in |
11677 |
|
cygwin*) |
11678 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11679 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11680 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
11681 |
|
;; |
11682 |
|
mingw*) |
11683 |
|
# MinGW DLLs use traditional 'lib' prefix |
11684 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11685 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11686 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
11687 |
|
# It is most probably a Windows format PATH printed by |
11688 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
11689 |
|
# path with ; separators, and with drive letters. We can handle the |
11690 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
11691 |
|
# especially as we might pass files found there to a mingw objdump, |
11692 |
|
# which wouldn't understand a cygwinified path. Ahh. |
11693 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11694 |
|
else |
11695 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11696 |
|
fi |
11697 |
|
;; |
11698 |
|
pw32*) |
11699 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
11700 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
11701 |
|
;; |
11702 |
|
esac |
11703 |
|
;; |
11704 |
|
|
11705 |
|
*) |
11706 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
11707 |
|
;; |
11708 |
|
esac |
11709 |
|
dynamic_linker='Win32 ld.exe' |
11710 |
|
# FIXME: first we should search . and the directory the executable is in |
11711 |
|
shlibpath_var=PATH |
11712 |
|
;; |
11713 |
|
|
11714 |
|
darwin* | rhapsody*) |
11715 |
|
dynamic_linker="$host_os dyld" |
11716 |
|
version_type=darwin |
11717 |
|
need_lib_prefix=no |
11718 |
|
need_version=no |
11719 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
11720 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
11721 |
|
shlibpath_overrides_runpath=yes |
11722 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
11723 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
11724 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
11725 |
|
if test "$GCC" = yes; then |
11726 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
11727 |
|
else |
11728 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
11729 |
|
fi |
11730 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11731 |
|
;; |
11732 |
|
|
11733 |
|
dgux*) |
11734 |
|
version_type=linux |
11735 |
|
need_lib_prefix=no |
11736 |
|
need_version=no |
11737 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
11738 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11739 |
|
shlibpath_var=LD_LIBRARY_PATH |
11740 |
|
;; |
11741 |
|
|
11742 |
|
freebsd1*) |
11743 |
|
dynamic_linker=no |
11744 |
|
;; |
11745 |
|
|
11746 |
|
kfreebsd*-gnu) |
11747 |
|
version_type=linux |
11748 |
|
need_lib_prefix=no |
11749 |
|
need_version=no |
11750 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11751 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11752 |
|
shlibpath_var=LD_LIBRARY_PATH |
11753 |
|
shlibpath_overrides_runpath=no |
11754 |
|
hardcode_into_libs=yes |
11755 |
|
dynamic_linker='GNU ld.so' |
11756 |
|
;; |
11757 |
|
|
11758 |
|
freebsd*) |
11759 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
11760 |
|
version_type=freebsd-$objformat |
11761 |
|
case $version_type in |
11762 |
|
freebsd-elf*) |
11763 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11764 |
|
need_version=no |
11765 |
|
need_lib_prefix=no |
11766 |
|
;; |
11767 |
|
freebsd-*) |
11768 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
11769 |
|
need_version=yes |
11770 |
|
;; |
11771 |
|
esac |
11772 |
|
shlibpath_var=LD_LIBRARY_PATH |
11773 |
|
case $host_os in |
11774 |
|
freebsd2*) |
11775 |
|
shlibpath_overrides_runpath=yes |
11776 |
|
;; |
11777 |
|
freebsd3.01* | freebsdelf3.01*) |
11778 |
|
shlibpath_overrides_runpath=yes |
11779 |
|
hardcode_into_libs=yes |
11780 |
|
;; |
11781 |
|
*) # from 3.2 on |
11782 |
|
shlibpath_overrides_runpath=no |
11783 |
|
hardcode_into_libs=yes |
11784 |
|
;; |
11785 |
|
esac |
11786 |
|
;; |
11787 |
|
|
11788 |
|
gnu*) |
11789 |
|
version_type=linux |
11790 |
|
need_lib_prefix=no |
11791 |
|
need_version=no |
11792 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
11793 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11794 |
|
shlibpath_var=LD_LIBRARY_PATH |
11795 |
|
hardcode_into_libs=yes |
11796 |
|
;; |
11797 |
|
|
11798 |
|
hpux9* | hpux10* | hpux11*) |
11799 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
11800 |
|
# link against other versions. |
11801 |
|
version_type=sunos |
11802 |
|
need_lib_prefix=no |
11803 |
|
need_version=no |
11804 |
|
case "$host_cpu" in |
11805 |
|
ia64*) |
11806 |
|
shrext_cmds='.so' |
11807 |
|
hardcode_into_libs=yes |
11808 |
|
dynamic_linker="$host_os dld.so" |
11809 |
|
shlibpath_var=LD_LIBRARY_PATH |
11810 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11811 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11812 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11813 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
11814 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
11815 |
|
else |
11816 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
11817 |
|
fi |
11818 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11819 |
|
;; |
11820 |
|
hppa*64*) |
11821 |
|
shrext_cmds='.sl' |
11822 |
|
hardcode_into_libs=yes |
11823 |
|
dynamic_linker="$host_os dld.sl" |
11824 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
11825 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11826 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11827 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11828 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11829 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11830 |
|
;; |
11831 |
|
*) |
11832 |
|
shrext_cmds='.sl' |
11833 |
|
dynamic_linker="$host_os dld.sl" |
11834 |
|
shlibpath_var=SHLIB_PATH |
11835 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
11836 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11837 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11838 |
|
;; |
11839 |
|
esac |
11840 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
11841 |
|
postinstall_cmds='chmod 555 $lib' |
11842 |
|
;; |
11843 |
|
|
11844 |
|
irix5* | irix6* | nonstopux*) |
11845 |
|
case $host_os in |
11846 |
|
nonstopux*) version_type=nonstopux ;; |
11847 |
|
*) |
11848 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
11849 |
|
version_type=linux |
11850 |
|
else |
11851 |
|
version_type=irix |
11852 |
|
fi ;; |
11853 |
|
esac |
11854 |
|
need_lib_prefix=no |
11855 |
|
need_version=no |
11856 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11857 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
11858 |
|
case $host_os in |
11859 |
|
irix5* | nonstopux*) |
11860 |
|
libsuff= shlibsuff= |
11861 |
|
;; |
11862 |
|
*) |
11863 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
11864 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
11865 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
11866 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
11867 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
11868 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
11869 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
11870 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
11871 |
|
esac |
11872 |
|
;; |
11873 |
|
esac |
11874 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
11875 |
|
shlibpath_overrides_runpath=no |
11876 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
11877 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
11878 |
|
hardcode_into_libs=yes |
11879 |
|
;; |
11880 |
|
|
11881 |
|
# No shared lib support for Linux oldld, aout, or coff. |
11882 |
|
linux*oldld* | linux*aout* | linux*coff*) |
11883 |
|
dynamic_linker=no |
11884 |
|
;; |
11885 |
|
|
11886 |
|
# This must be Linux ELF. |
11887 |
|
linux*) |
11888 |
|
version_type=linux |
11889 |
|
need_lib_prefix=no |
11890 |
|
need_version=no |
11891 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11892 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11893 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11894 |
|
shlibpath_var=LD_LIBRARY_PATH |
11895 |
|
shlibpath_overrides_runpath=no |
11896 |
|
# This implies no fast_install, which is unacceptable. |
11897 |
|
# Some rework will be needed to allow for fast_install |
11898 |
|
# before this can be enabled. |
11899 |
|
hardcode_into_libs=yes |
11900 |
|
|
11901 |
|
libsuff= |
11902 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
11903 |
|
libsuff=64 |
11904 |
|
fi |
11905 |
|
|
11906 |
|
# Append ld.so.conf contents to the search path |
11907 |
|
if test -f /etc/ld.so.conf; then |
11908 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
11909 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
11910 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
11911 |
|
fi |
11912 |
|
|
11913 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
11914 |
|
# powerpc, because MkLinux only supported shared libraries with the |
11915 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
11916 |
|
# most powerpc-linux boxes support dynamic linking these days and |
11917 |
|
# people can always --disable-shared, the test was removed, and we |
11918 |
|
# assume the GNU/Linux dynamic linker is in use. |
11919 |
|
dynamic_linker='GNU/Linux ld.so' |
11920 |
|
;; |
11921 |
|
|
11922 |
|
knetbsd*-gnu) |
11923 |
|
version_type=linux |
11924 |
|
need_lib_prefix=no |
11925 |
|
need_version=no |
11926 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11927 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11928 |
|
shlibpath_var=LD_LIBRARY_PATH |
11929 |
|
shlibpath_overrides_runpath=no |
11930 |
|
hardcode_into_libs=yes |
11931 |
|
dynamic_linker='GNU ld.so' |
11932 |
|
;; |
11933 |
|
|
11934 |
|
netbsd*) |
11935 |
|
version_type=sunos |
11936 |
|
need_lib_prefix=no |
11937 |
|
need_version=no |
11938 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11939 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11940 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11941 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
11942 |
|
else |
11943 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11944 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11945 |
|
dynamic_linker='NetBSD ld.elf_so' |
11946 |
|
fi |
11947 |
|
shlibpath_var=LD_LIBRARY_PATH |
11948 |
|
shlibpath_overrides_runpath=yes |
11949 |
|
hardcode_into_libs=yes |
11950 |
|
;; |
11951 |
|
|
11952 |
|
newsos6) |
11953 |
|
version_type=linux |
11954 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11955 |
|
shlibpath_var=LD_LIBRARY_PATH |
11956 |
|
shlibpath_overrides_runpath=yes |
11957 |
|
;; |
11958 |
|
|
11959 |
|
nto-qnx*) |
11960 |
|
version_type=linux |
11961 |
|
need_lib_prefix=no |
11962 |
|
need_version=no |
11963 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11964 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11965 |
|
shlibpath_var=LD_LIBRARY_PATH |
11966 |
|
shlibpath_overrides_runpath=yes |
11967 |
|
;; |
11968 |
|
|
11969 |
|
openbsd*) |
11970 |
|
version_type=sunos |
11971 |
|
need_lib_prefix=no |
11972 |
|
need_version=yes |
11973 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11974 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11975 |
|
shlibpath_var=LD_LIBRARY_PATH |
11976 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11977 |
|
case $host_os in |
11978 |
|
openbsd2.[89] | openbsd2.[89].*) |
11979 |
|
shlibpath_overrides_runpath=no |
11980 |
|
;; |
11981 |
|
*) |
11982 |
|
shlibpath_overrides_runpath=yes |
11983 |
|
;; |
11984 |
|
esac |
11985 |
|
else |
11986 |
|
shlibpath_overrides_runpath=yes |
11987 |
|
fi |
11988 |
|
;; |
11989 |
|
|
11990 |
|
os2*) |
11991 |
|
libname_spec='$name' |
11992 |
|
shrext_cmds=".dll" |
11993 |
|
need_lib_prefix=no |
11994 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
11995 |
|
dynamic_linker='OS/2 ld.exe' |
11996 |
|
shlibpath_var=LIBPATH |
11997 |
|
;; |
11998 |
|
|
11999 |
|
osf3* | osf4* | osf5*) |
12000 |
|
version_type=osf |
12001 |
|
need_lib_prefix=no |
12002 |
|
need_version=no |
12003 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12004 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12005 |
|
shlibpath_var=LD_LIBRARY_PATH |
12006 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12007 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12008 |
|
;; |
12009 |
|
|
12010 |
|
sco3.2v5*) |
12011 |
|
version_type=osf |
12012 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12013 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12014 |
|
shlibpath_var=LD_LIBRARY_PATH |
12015 |
|
;; |
12016 |
|
|
12017 |
|
solaris*) |
12018 |
|
version_type=linux |
12019 |
|
need_lib_prefix=no |
12020 |
|
need_version=no |
12021 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12022 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12023 |
|
shlibpath_var=LD_LIBRARY_PATH |
12024 |
|
shlibpath_overrides_runpath=yes |
12025 |
|
hardcode_into_libs=yes |
12026 |
|
# ldd complains unless libraries are executable |
12027 |
|
postinstall_cmds='chmod +x $lib' |
12028 |
|
;; |
12029 |
|
|
12030 |
|
sunos4*) |
12031 |
|
version_type=sunos |
12032 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12033 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12034 |
|
shlibpath_var=LD_LIBRARY_PATH |
12035 |
|
shlibpath_overrides_runpath=yes |
12036 |
|
if test "$with_gnu_ld" = yes; then |
12037 |
|
need_lib_prefix=no |
12038 |
|
fi |
12039 |
|
need_version=yes |
12040 |
|
;; |
12041 |
|
|
12042 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
12043 |
|
version_type=linux |
12044 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12045 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12046 |
|
shlibpath_var=LD_LIBRARY_PATH |
12047 |
|
case $host_vendor in |
12048 |
|
sni) |
12049 |
|
shlibpath_overrides_runpath=no |
12050 |
|
need_lib_prefix=no |
12051 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
12052 |
|
runpath_var=LD_RUN_PATH |
12053 |
|
;; |
12054 |
|
siemens) |
12055 |
|
need_lib_prefix=no |
12056 |
|
;; |
12057 |
|
motorola) |
12058 |
|
need_lib_prefix=no |
12059 |
|
need_version=no |
12060 |
|
shlibpath_overrides_runpath=no |
12061 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12062 |
|
;; |
12063 |
|
esac |
12064 |
|
;; |
12065 |
|
|
12066 |
|
sysv4*MP*) |
12067 |
|
if test -d /usr/nec ;then |
12068 |
|
version_type=linux |
12069 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12070 |
|
soname_spec='$libname${shared_ext}.$major' |
12071 |
|
shlibpath_var=LD_LIBRARY_PATH |
12072 |
|
fi |
12073 |
|
;; |
12074 |
|
|
12075 |
|
uts4*) |
12076 |
|
version_type=linux |
12077 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12078 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12079 |
|
shlibpath_var=LD_LIBRARY_PATH |
12080 |
|
;; |
12081 |
|
|
12082 |
|
*) |
12083 |
|
dynamic_linker=no |
12084 |
|
;; |
12085 |
|
esac |
12086 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12087 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
12088 |
|
test "$dynamic_linker" = no && can_build_shared=no |
12089 |
|
|
12090 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12091 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12092 |
|
hardcode_action_CXX= |
12093 |
|
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12094 |
|
test -n "$runpath_var CXX" || \ |
12095 |
|
test "X$hardcode_automatic_CXX"="Xyes" ; then |
12096 |
|
|
12097 |
|
# We can hardcode non-existant directories. |
12098 |
|
if test "$hardcode_direct_CXX" != no && |
12099 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
12100 |
|
# have to relink, otherwise we might link with an installed library |
12101 |
|
# when we should be linking with a yet-to-be-installed one |
12102 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12103 |
|
test "$hardcode_minus_L_CXX" != no; then |
12104 |
|
# Linking always hardcodes the temporary library directory. |
12105 |
|
hardcode_action_CXX=relink |
12106 |
|
else |
12107 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
12108 |
|
hardcode_action_CXX=immediate |
12109 |
|
fi |
12110 |
|
else |
12111 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
12112 |
|
# directories. |
12113 |
|
hardcode_action_CXX=unsupported |
12114 |
|
fi |
12115 |
|
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12116 |
|
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12117 |
|
|
12118 |
|
if test "$hardcode_action_CXX" = relink; then |
12119 |
|
# Fast installation is not supported |
12120 |
|
enable_fast_install=no |
12121 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
12122 |
|
test "$enable_shared" = no; then |
12123 |
|
# Fast installation is not necessary |
12124 |
|
enable_fast_install=needless |
12125 |
|
fi |
12126 |
|
|
12127 |
|
striplib= |
12128 |
|
old_striplib= |
12129 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
12130 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
12131 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
12132 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
12133 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
12134 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12135 |
|
echo "${ECHO_T}yes" >&6 |
12136 |
|
else |
12137 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
12138 |
|
case $host_os in |
12139 |
|
darwin*) |
12140 |
|
if test -n "$STRIP" ; then |
12141 |
|
striplib="$STRIP -x" |
12142 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12143 |
|
echo "${ECHO_T}yes" >&6 |
12144 |
|
else |
12145 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12146 |
|
echo "${ECHO_T}no" >&6 |
12147 |
|
fi |
12148 |
|
;; |
12149 |
|
*) |
12150 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12151 |
|
echo "${ECHO_T}no" >&6 |
12152 |
|
;; |
12153 |
|
esac |
12154 |
|
fi |
12155 |
|
|
12156 |
|
if test "x$enable_dlopen" != xyes; then |
12157 |
|
enable_dlopen=unknown |
12158 |
|
enable_dlopen_self=unknown |
12159 |
|
enable_dlopen_self_static=unknown |
12160 |
|
else |
12161 |
|
lt_cv_dlopen=no |
12162 |
|
lt_cv_dlopen_libs= |
12163 |
|
|
12164 |
|
case $host_os in |
12165 |
|
beos*) |
12166 |
|
lt_cv_dlopen="load_add_on" |
12167 |
|
lt_cv_dlopen_libs= |
12168 |
|
lt_cv_dlopen_self=yes |
12169 |
|
;; |
12170 |
|
|
12171 |
|
mingw* | pw32*) |
12172 |
|
lt_cv_dlopen="LoadLibrary" |
12173 |
|
lt_cv_dlopen_libs= |
12174 |
|
;; |
12175 |
|
|
12176 |
|
cygwin*) |
12177 |
|
lt_cv_dlopen="dlopen" |
12178 |
|
lt_cv_dlopen_libs= |
12179 |
|
;; |
12180 |
|
|
12181 |
|
darwin*) |
12182 |
|
# if libdl is installed we need to link against it |
12183 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12184 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12185 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12186 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12187 |
|
else |
12188 |
|
ac_check_lib_save_LIBS=$LIBS |
12189 |
|
LIBS="-ldl $LIBS" |
12190 |
|
cat >conftest.$ac_ext <<_ACEOF |
12191 |
|
/* confdefs.h. */ |
12192 |
|
_ACEOF |
12193 |
|
cat confdefs.h >>conftest.$ac_ext |
12194 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12195 |
|
/* end confdefs.h. */ |
12196 |
|
|
12197 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12198 |
|
#ifdef __cplusplus |
12199 |
|
extern "C" |
12200 |
|
#endif |
12201 |
|
/* We use char because int might match the return type of a gcc2 |
12202 |
|
builtin and then its argument prototype would still apply. */ |
12203 |
|
char dlopen (); |
12204 |
|
int |
12205 |
|
main () |
12206 |
|
{ |
12207 |
|
dlopen (); |
12208 |
|
; |
12209 |
|
return 0; |
12210 |
|
} |
12211 |
|
_ACEOF |
12212 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12213 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12214 |
|
(eval $ac_link) 2>conftest.er1 |
12215 |
|
ac_status=$? |
12216 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12217 |
|
rm -f conftest.er1 |
12218 |
|
cat conftest.err >&5 |
12219 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12220 |
|
(exit $ac_status); } && |
12221 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12222 |
|
|| test ! -s conftest.err' |
12223 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12224 |
|
(eval $ac_try) 2>&5 |
12225 |
|
ac_status=$? |
12226 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12227 |
|
(exit $ac_status); }; } && |
12228 |
|
{ ac_try='test -s conftest$ac_exeext' |
12229 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12230 |
|
(eval $ac_try) 2>&5 |
12231 |
|
ac_status=$? |
12232 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12233 |
|
(exit $ac_status); }; }; then |
12234 |
|
ac_cv_lib_dl_dlopen=yes |
12235 |
|
else |
12236 |
|
echo "$as_me: failed program was:" >&5 |
12237 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12238 |
|
|
12239 |
|
ac_cv_lib_dl_dlopen=no |
12240 |
|
fi |
12241 |
|
rm -f conftest.err conftest.$ac_objext \ |
12242 |
|
conftest$ac_exeext conftest.$ac_ext |
12243 |
|
LIBS=$ac_check_lib_save_LIBS |
12244 |
|
fi |
12245 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12246 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12247 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12248 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12249 |
|
else |
12250 |
|
|
12251 |
|
lt_cv_dlopen="dyld" |
12252 |
|
lt_cv_dlopen_libs= |
12253 |
|
lt_cv_dlopen_self=yes |
12254 |
|
|
12255 |
|
fi |
12256 |
|
|
12257 |
|
;; |
12258 |
|
|
12259 |
|
*) |
12260 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
12261 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
12262 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
12263 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12264 |
|
else |
12265 |
|
cat >conftest.$ac_ext <<_ACEOF |
12266 |
|
/* confdefs.h. */ |
12267 |
|
_ACEOF |
12268 |
|
cat confdefs.h >>conftest.$ac_ext |
12269 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12270 |
|
/* end confdefs.h. */ |
12271 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
12272 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12273 |
|
#define shl_load innocuous_shl_load |
12274 |
|
|
12275 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12276 |
|
which can conflict with char shl_load (); below. |
12277 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12278 |
|
<limits.h> exists even on freestanding compilers. */ |
12279 |
|
|
12280 |
|
#ifdef __STDC__ |
12281 |
|
# include <limits.h> |
12282 |
|
#else |
12283 |
|
# include <assert.h> |
12284 |
|
#endif |
12285 |
|
|
12286 |
|
#undef shl_load |
12287 |
|
|
12288 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12289 |
|
#ifdef __cplusplus |
12290 |
|
extern "C" |
12291 |
|
{ |
12292 |
|
#endif |
12293 |
|
/* We use char because int might match the return type of a gcc2 |
12294 |
|
builtin and then its argument prototype would still apply. */ |
12295 |
|
char shl_load (); |
12296 |
|
/* The GNU C library defines this for functions which it implements |
12297 |
|
to always fail with ENOSYS. Some functions are actually named |
12298 |
|
something starting with __ and the normal name is an alias. */ |
12299 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
12300 |
|
choke me |
12301 |
|
#else |
12302 |
|
char (*f) () = shl_load; |
12303 |
|
#endif |
12304 |
|
#ifdef __cplusplus |
12305 |
|
} |
12306 |
|
#endif |
12307 |
|
|
12308 |
|
int |
12309 |
|
main () |
12310 |
|
{ |
12311 |
|
return f != shl_load; |
12312 |
|
; |
12313 |
|
return 0; |
12314 |
|
} |
12315 |
|
_ACEOF |
12316 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12317 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12318 |
|
(eval $ac_link) 2>conftest.er1 |
12319 |
|
ac_status=$? |
12320 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12321 |
|
rm -f conftest.er1 |
12322 |
|
cat conftest.err >&5 |
12323 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12324 |
|
(exit $ac_status); } && |
12325 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12326 |
|
|| test ! -s conftest.err' |
12327 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12328 |
|
(eval $ac_try) 2>&5 |
12329 |
|
ac_status=$? |
12330 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12331 |
|
(exit $ac_status); }; } && |
12332 |
|
{ ac_try='test -s conftest$ac_exeext' |
12333 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12334 |
|
(eval $ac_try) 2>&5 |
12335 |
|
ac_status=$? |
12336 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12337 |
|
(exit $ac_status); }; }; then |
12338 |
|
ac_cv_func_shl_load=yes |
12339 |
|
else |
12340 |
|
echo "$as_me: failed program was:" >&5 |
12341 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12342 |
|
|
12343 |
|
ac_cv_func_shl_load=no |
12344 |
|
fi |
12345 |
|
rm -f conftest.err conftest.$ac_objext \ |
12346 |
|
conftest$ac_exeext conftest.$ac_ext |
12347 |
|
fi |
12348 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
12349 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
12350 |
|
if test $ac_cv_func_shl_load = yes; then |
12351 |
|
lt_cv_dlopen="shl_load" |
12352 |
|
else |
12353 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
12354 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
12355 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
12356 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12357 |
|
else |
12358 |
|
ac_check_lib_save_LIBS=$LIBS |
12359 |
|
LIBS="-ldld $LIBS" |
12360 |
|
cat >conftest.$ac_ext <<_ACEOF |
12361 |
|
/* confdefs.h. */ |
12362 |
|
_ACEOF |
12363 |
|
cat confdefs.h >>conftest.$ac_ext |
12364 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12365 |
|
/* end confdefs.h. */ |
12366 |
|
|
12367 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12368 |
|
#ifdef __cplusplus |
12369 |
|
extern "C" |
12370 |
|
#endif |
12371 |
|
/* We use char because int might match the return type of a gcc2 |
12372 |
|
builtin and then its argument prototype would still apply. */ |
12373 |
|
char shl_load (); |
12374 |
|
int |
12375 |
|
main () |
12376 |
|
{ |
12377 |
|
shl_load (); |
12378 |
|
; |
12379 |
|
return 0; |
12380 |
|
} |
12381 |
|
_ACEOF |
12382 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12383 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12384 |
|
(eval $ac_link) 2>conftest.er1 |
12385 |
|
ac_status=$? |
12386 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12387 |
|
rm -f conftest.er1 |
12388 |
|
cat conftest.err >&5 |
12389 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12390 |
|
(exit $ac_status); } && |
12391 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12392 |
|
|| test ! -s conftest.err' |
12393 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12394 |
|
(eval $ac_try) 2>&5 |
12395 |
|
ac_status=$? |
12396 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12397 |
|
(exit $ac_status); }; } && |
12398 |
|
{ ac_try='test -s conftest$ac_exeext' |
12399 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12400 |
|
(eval $ac_try) 2>&5 |
12401 |
|
ac_status=$? |
12402 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12403 |
|
(exit $ac_status); }; }; then |
12404 |
|
ac_cv_lib_dld_shl_load=yes |
12405 |
|
else |
12406 |
|
echo "$as_me: failed program was:" >&5 |
12407 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12408 |
|
|
12409 |
|
ac_cv_lib_dld_shl_load=no |
12410 |
|
fi |
12411 |
|
rm -f conftest.err conftest.$ac_objext \ |
12412 |
|
conftest$ac_exeext conftest.$ac_ext |
12413 |
|
LIBS=$ac_check_lib_save_LIBS |
12414 |
|
fi |
12415 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
12416 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
12417 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
12418 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
12419 |
|
else |
12420 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
12421 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
12422 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
12423 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12424 |
|
else |
12425 |
|
cat >conftest.$ac_ext <<_ACEOF |
12426 |
|
/* confdefs.h. */ |
12427 |
|
_ACEOF |
12428 |
|
cat confdefs.h >>conftest.$ac_ext |
12429 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12430 |
|
/* end confdefs.h. */ |
12431 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
12432 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12433 |
|
#define dlopen innocuous_dlopen |
12434 |
|
|
12435 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12436 |
|
which can conflict with char dlopen (); below. |
12437 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12438 |
|
<limits.h> exists even on freestanding compilers. */ |
12439 |
|
|
12440 |
|
#ifdef __STDC__ |
12441 |
|
# include <limits.h> |
12442 |
|
#else |
12443 |
|
# include <assert.h> |
12444 |
|
#endif |
12445 |
|
|
12446 |
|
#undef dlopen |
12447 |
|
|
12448 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12449 |
|
#ifdef __cplusplus |
12450 |
|
extern "C" |
12451 |
|
{ |
12452 |
|
#endif |
12453 |
|
/* We use char because int might match the return type of a gcc2 |
12454 |
|
builtin and then its argument prototype would still apply. */ |
12455 |
|
char dlopen (); |
12456 |
|
/* The GNU C library defines this for functions which it implements |
12457 |
|
to always fail with ENOSYS. Some functions are actually named |
12458 |
|
something starting with __ and the normal name is an alias. */ |
12459 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
12460 |
|
choke me |
12461 |
|
#else |
12462 |
|
char (*f) () = dlopen; |
12463 |
|
#endif |
12464 |
|
#ifdef __cplusplus |
12465 |
|
} |
12466 |
|
#endif |
12467 |
|
|
12468 |
|
int |
12469 |
|
main () |
12470 |
|
{ |
12471 |
|
return f != dlopen; |
12472 |
|
; |
12473 |
|
return 0; |
12474 |
|
} |
12475 |
|
_ACEOF |
12476 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12477 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12478 |
|
(eval $ac_link) 2>conftest.er1 |
12479 |
|
ac_status=$? |
12480 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12481 |
|
rm -f conftest.er1 |
12482 |
|
cat conftest.err >&5 |
12483 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12484 |
|
(exit $ac_status); } && |
12485 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12486 |
|
|| test ! -s conftest.err' |
12487 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12488 |
|
(eval $ac_try) 2>&5 |
12489 |
|
ac_status=$? |
12490 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12491 |
|
(exit $ac_status); }; } && |
12492 |
|
{ ac_try='test -s conftest$ac_exeext' |
12493 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12494 |
|
(eval $ac_try) 2>&5 |
12495 |
|
ac_status=$? |
12496 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12497 |
|
(exit $ac_status); }; }; then |
12498 |
|
ac_cv_func_dlopen=yes |
12499 |
|
else |
12500 |
|
echo "$as_me: failed program was:" >&5 |
12501 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12502 |
|
|
12503 |
|
ac_cv_func_dlopen=no |
12504 |
|
fi |
12505 |
|
rm -f conftest.err conftest.$ac_objext \ |
12506 |
|
conftest$ac_exeext conftest.$ac_ext |
12507 |
|
fi |
12508 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
12509 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
12510 |
|
if test $ac_cv_func_dlopen = yes; then |
12511 |
|
lt_cv_dlopen="dlopen" |
12512 |
|
else |
12513 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12514 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12515 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12516 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12517 |
|
else |
12518 |
|
ac_check_lib_save_LIBS=$LIBS |
12519 |
|
LIBS="-ldl $LIBS" |
12520 |
|
cat >conftest.$ac_ext <<_ACEOF |
12521 |
|
/* confdefs.h. */ |
12522 |
|
_ACEOF |
12523 |
|
cat confdefs.h >>conftest.$ac_ext |
12524 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12525 |
|
/* end confdefs.h. */ |
12526 |
|
|
12527 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12528 |
|
#ifdef __cplusplus |
12529 |
|
extern "C" |
12530 |
|
#endif |
12531 |
|
/* We use char because int might match the return type of a gcc2 |
12532 |
|
builtin and then its argument prototype would still apply. */ |
12533 |
|
char dlopen (); |
12534 |
|
int |
12535 |
|
main () |
12536 |
|
{ |
12537 |
|
dlopen (); |
12538 |
|
; |
12539 |
|
return 0; |
12540 |
|
} |
12541 |
|
_ACEOF |
12542 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12543 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12544 |
|
(eval $ac_link) 2>conftest.er1 |
12545 |
|
ac_status=$? |
12546 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12547 |
|
rm -f conftest.er1 |
12548 |
|
cat conftest.err >&5 |
12549 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12550 |
|
(exit $ac_status); } && |
12551 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12552 |
|
|| test ! -s conftest.err' |
12553 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12554 |
|
(eval $ac_try) 2>&5 |
12555 |
|
ac_status=$? |
12556 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12557 |
|
(exit $ac_status); }; } && |
12558 |
|
{ ac_try='test -s conftest$ac_exeext' |
12559 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12560 |
|
(eval $ac_try) 2>&5 |
12561 |
|
ac_status=$? |
12562 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12563 |
|
(exit $ac_status); }; }; then |
12564 |
|
ac_cv_lib_dl_dlopen=yes |
12565 |
|
else |
12566 |
|
echo "$as_me: failed program was:" >&5 |
12567 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12568 |
|
|
12569 |
|
ac_cv_lib_dl_dlopen=no |
12570 |
|
fi |
12571 |
|
rm -f conftest.err conftest.$ac_objext \ |
12572 |
|
conftest$ac_exeext conftest.$ac_ext |
12573 |
|
LIBS=$ac_check_lib_save_LIBS |
12574 |
|
fi |
12575 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12576 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12577 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12578 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12579 |
|
else |
12580 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
12581 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
12582 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
12583 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12584 |
|
else |
12585 |
|
ac_check_lib_save_LIBS=$LIBS |
12586 |
|
LIBS="-lsvld $LIBS" |
12587 |
|
cat >conftest.$ac_ext <<_ACEOF |
12588 |
|
/* confdefs.h. */ |
12589 |
|
_ACEOF |
12590 |
|
cat confdefs.h >>conftest.$ac_ext |
12591 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12592 |
|
/* end confdefs.h. */ |
12593 |
|
|
12594 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12595 |
|
#ifdef __cplusplus |
12596 |
|
extern "C" |
12597 |
|
#endif |
12598 |
|
/* We use char because int might match the return type of a gcc2 |
12599 |
|
builtin and then its argument prototype would still apply. */ |
12600 |
|
char dlopen (); |
12601 |
|
int |
12602 |
|
main () |
12603 |
|
{ |
12604 |
|
dlopen (); |
12605 |
|
; |
12606 |
|
return 0; |
12607 |
|
} |
12608 |
|
_ACEOF |
12609 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12610 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12611 |
|
(eval $ac_link) 2>conftest.er1 |
12612 |
|
ac_status=$? |
12613 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12614 |
|
rm -f conftest.er1 |
12615 |
|
cat conftest.err >&5 |
12616 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12617 |
|
(exit $ac_status); } && |
12618 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12619 |
|
|| test ! -s conftest.err' |
12620 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12621 |
|
(eval $ac_try) 2>&5 |
12622 |
|
ac_status=$? |
12623 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12624 |
|
(exit $ac_status); }; } && |
12625 |
|
{ ac_try='test -s conftest$ac_exeext' |
12626 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12627 |
|
(eval $ac_try) 2>&5 |
12628 |
|
ac_status=$? |
12629 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12630 |
|
(exit $ac_status); }; }; then |
12631 |
|
ac_cv_lib_svld_dlopen=yes |
12632 |
|
else |
12633 |
|
echo "$as_me: failed program was:" >&5 |
12634 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12635 |
|
|
12636 |
|
ac_cv_lib_svld_dlopen=no |
12637 |
|
fi |
12638 |
|
rm -f conftest.err conftest.$ac_objext \ |
12639 |
|
conftest$ac_exeext conftest.$ac_ext |
12640 |
|
LIBS=$ac_check_lib_save_LIBS |
12641 |
|
fi |
12642 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
12643 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
12644 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
12645 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12646 |
|
else |
12647 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
12648 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
12649 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
12650 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12651 |
|
else |
12652 |
|
ac_check_lib_save_LIBS=$LIBS |
12653 |
|
LIBS="-ldld $LIBS" |
12654 |
|
cat >conftest.$ac_ext <<_ACEOF |
12655 |
|
/* confdefs.h. */ |
12656 |
|
_ACEOF |
12657 |
|
cat confdefs.h >>conftest.$ac_ext |
12658 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12659 |
|
/* end confdefs.h. */ |
12660 |
|
|
12661 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12662 |
|
#ifdef __cplusplus |
12663 |
|
extern "C" |
12664 |
|
#endif |
12665 |
|
/* We use char because int might match the return type of a gcc2 |
12666 |
|
builtin and then its argument prototype would still apply. */ |
12667 |
|
char dld_link (); |
12668 |
|
int |
12669 |
|
main () |
12670 |
|
{ |
12671 |
|
dld_link (); |
12672 |
|
; |
12673 |
|
return 0; |
12674 |
|
} |
12675 |
|
_ACEOF |
12676 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12677 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12678 |
|
(eval $ac_link) 2>conftest.er1 |
12679 |
|
ac_status=$? |
12680 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12681 |
|
rm -f conftest.er1 |
12682 |
|
cat conftest.err >&5 |
12683 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12684 |
|
(exit $ac_status); } && |
12685 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12686 |
|
|| test ! -s conftest.err' |
12687 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12688 |
|
(eval $ac_try) 2>&5 |
12689 |
|
ac_status=$? |
12690 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12691 |
|
(exit $ac_status); }; } && |
12692 |
|
{ ac_try='test -s conftest$ac_exeext' |
12693 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12694 |
|
(eval $ac_try) 2>&5 |
12695 |
|
ac_status=$? |
12696 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12697 |
|
(exit $ac_status); }; }; then |
12698 |
|
ac_cv_lib_dld_dld_link=yes |
12699 |
|
else |
12700 |
|
echo "$as_me: failed program was:" >&5 |
12701 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12702 |
|
|
12703 |
|
ac_cv_lib_dld_dld_link=no |
12704 |
|
fi |
12705 |
|
rm -f conftest.err conftest.$ac_objext \ |
12706 |
|
conftest$ac_exeext conftest.$ac_ext |
12707 |
|
LIBS=$ac_check_lib_save_LIBS |
12708 |
|
fi |
12709 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
12710 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
12711 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
12712 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
12713 |
|
fi |
12714 |
|
|
12715 |
|
|
12716 |
|
fi |
12717 |
|
|
12718 |
|
|
12719 |
|
fi |
12720 |
|
|
12721 |
|
|
12722 |
|
fi |
12723 |
|
|
12724 |
|
|
12725 |
|
fi |
12726 |
|
|
12727 |
|
|
12728 |
|
fi |
12729 |
|
|
12730 |
|
;; |
12731 |
|
esac |
12732 |
|
|
12733 |
|
if test "x$lt_cv_dlopen" != xno; then |
12734 |
|
enable_dlopen=yes |
12735 |
|
else |
12736 |
|
enable_dlopen=no |
12737 |
|
fi |
12738 |
|
|
12739 |
|
case $lt_cv_dlopen in |
12740 |
|
dlopen) |
12741 |
|
save_CPPFLAGS="$CPPFLAGS" |
12742 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
12743 |
|
|
12744 |
|
save_LDFLAGS="$LDFLAGS" |
12745 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
12746 |
|
|
12747 |
|
save_LIBS="$LIBS" |
12748 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
12749 |
|
|
12750 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
12751 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
12752 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
12753 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12754 |
|
else |
12755 |
|
if test "$cross_compiling" = yes; then : |
12756 |
|
lt_cv_dlopen_self=cross |
12757 |
|
else |
12758 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12759 |
|
lt_status=$lt_dlunknown |
12760 |
|
cat > conftest.$ac_ext <<EOF |
12761 |
|
#line 12761 "configure" |
12762 |
|
#include "confdefs.h" |
12763 |
|
|
12764 |
|
#if HAVE_DLFCN_H |
12765 |
|
#include <dlfcn.h> |
12766 |
|
#endif |
12767 |
|
|
12768 |
|
#include <stdio.h> |
12769 |
|
|
12770 |
|
#ifdef RTLD_GLOBAL |
12771 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
12772 |
|
#else |
12773 |
|
# ifdef DL_GLOBAL |
12774 |
|
# define LT_DLGLOBAL DL_GLOBAL |
12775 |
|
# else |
12776 |
|
# define LT_DLGLOBAL 0 |
12777 |
|
# endif |
12778 |
|
#endif |
12779 |
|
|
12780 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12781 |
|
find out it does not work in some platform. */ |
12782 |
|
#ifndef LT_DLLAZY_OR_NOW |
12783 |
|
# ifdef RTLD_LAZY |
12784 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12785 |
|
# else |
12786 |
|
# ifdef DL_LAZY |
12787 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
12788 |
|
# else |
12789 |
|
# ifdef RTLD_NOW |
12790 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12791 |
|
# else |
12792 |
|
# ifdef DL_NOW |
12793 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
12794 |
|
# else |
12795 |
|
# define LT_DLLAZY_OR_NOW 0 |
12796 |
|
# endif |
12797 |
|
# endif |
12798 |
|
# endif |
12799 |
|
# endif |
12800 |
|
#endif |
12801 |
|
|
12802 |
|
#ifdef __cplusplus |
12803 |
|
extern "C" void exit (int); |
12804 |
|
#endif |
12805 |
|
|
12806 |
|
void fnord() { int i=42;} |
12807 |
|
int main () |
12808 |
|
{ |
12809 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12810 |
|
int status = $lt_dlunknown; |
12811 |
|
|
12812 |
|
if (self) |
12813 |
|
{ |
12814 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12815 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12816 |
|
/* dlclose (self); */ |
12817 |
|
} |
12818 |
|
|
12819 |
|
exit (status); |
12820 |
|
} |
12821 |
|
EOF |
12822 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12823 |
|
(eval $ac_link) 2>&5 |
12824 |
|
ac_status=$? |
12825 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12826 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
12827 |
|
(./conftest; exit; ) 2>/dev/null |
12828 |
|
lt_status=$? |
12829 |
|
case x$lt_status in |
12830 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
12831 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
12832 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
12833 |
|
esac |
12834 |
|
else : |
12835 |
|
# compilation failed |
12836 |
|
lt_cv_dlopen_self=no |
12837 |
|
fi |
12838 |
|
fi |
12839 |
|
rm -fr conftest* |
12840 |
|
|
12841 |
|
|
12842 |
|
fi |
12843 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
12844 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
12845 |
|
|
12846 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
12847 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
12848 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
12849 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
12850 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
12851 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12852 |
|
else |
12853 |
|
if test "$cross_compiling" = yes; then : |
12854 |
|
lt_cv_dlopen_self_static=cross |
12855 |
|
else |
12856 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12857 |
|
lt_status=$lt_dlunknown |
12858 |
|
cat > conftest.$ac_ext <<EOF |
12859 |
|
#line 12859 "configure" |
12860 |
|
#include "confdefs.h" |
12861 |
|
|
12862 |
|
#if HAVE_DLFCN_H |
12863 |
|
#include <dlfcn.h> |
12864 |
|
#endif |
12865 |
|
|
12866 |
|
#include <stdio.h> |
12867 |
|
|
12868 |
|
#ifdef RTLD_GLOBAL |
12869 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
12870 |
|
#else |
12871 |
|
# ifdef DL_GLOBAL |
12872 |
|
# define LT_DLGLOBAL DL_GLOBAL |
12873 |
|
# else |
12874 |
|
# define LT_DLGLOBAL 0 |
12875 |
|
# endif |
12876 |
|
#endif |
12877 |
|
|
12878 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12879 |
|
find out it does not work in some platform. */ |
12880 |
|
#ifndef LT_DLLAZY_OR_NOW |
12881 |
|
# ifdef RTLD_LAZY |
12882 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12883 |
|
# else |
12884 |
|
# ifdef DL_LAZY |
12885 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
12886 |
|
# else |
12887 |
|
# ifdef RTLD_NOW |
12888 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12889 |
|
# else |
12890 |
|
# ifdef DL_NOW |
12891 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
12892 |
|
# else |
12893 |
|
# define LT_DLLAZY_OR_NOW 0 |
12894 |
|
# endif |
12895 |
|
# endif |
12896 |
|
# endif |
12897 |
|
# endif |
12898 |
|
#endif |
12899 |
|
|
12900 |
|
#ifdef __cplusplus |
12901 |
|
extern "C" void exit (int); |
12902 |
|
#endif |
12903 |
|
|
12904 |
|
void fnord() { int i=42;} |
12905 |
|
int main () |
12906 |
|
{ |
12907 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12908 |
|
int status = $lt_dlunknown; |
12909 |
|
|
12910 |
|
if (self) |
12911 |
|
{ |
12912 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12913 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12914 |
|
/* dlclose (self); */ |
12915 |
|
} |
12916 |
|
|
12917 |
|
exit (status); |
12918 |
|
} |
12919 |
|
EOF |
12920 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12921 |
|
(eval $ac_link) 2>&5 |
12922 |
|
ac_status=$? |
12923 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12924 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
12925 |
|
(./conftest; exit; ) 2>/dev/null |
12926 |
|
lt_status=$? |
12927 |
|
case x$lt_status in |
12928 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12929 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
12930 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
12931 |
|
esac |
12932 |
|
else : |
12933 |
|
# compilation failed |
12934 |
|
lt_cv_dlopen_self_static=no |
12935 |
|
fi |
12936 |
|
fi |
12937 |
|
rm -fr conftest* |
12938 |
|
|
12939 |
|
|
12940 |
|
fi |
12941 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
12942 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
12943 |
|
fi |
12944 |
|
|
12945 |
|
CPPFLAGS="$save_CPPFLAGS" |
12946 |
|
LDFLAGS="$save_LDFLAGS" |
12947 |
|
LIBS="$save_LIBS" |
12948 |
|
;; |
12949 |
|
esac |
12950 |
|
|
12951 |
|
case $lt_cv_dlopen_self in |
12952 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
12953 |
|
*) enable_dlopen_self=unknown ;; |
12954 |
|
esac |
12955 |
|
|
12956 |
|
case $lt_cv_dlopen_self_static in |
12957 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
12958 |
|
*) enable_dlopen_self_static=unknown ;; |
12959 |
|
esac |
12960 |
|
fi |
12961 |
|
|
12962 |
|
|
12963 |
|
# The else clause should only fire when bootstrapping the |
12964 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
12965 |
|
# with your package, and you will get complaints that there are |
12966 |
|
# no rules to generate ltmain.sh. |
12967 |
|
if test -f "$ltmain"; then |
12968 |
|
# See if we are running on zsh, and set the options which allow our commands through |
12969 |
|
# without removal of \ escapes. |
12970 |
|
if test -n "${ZSH_VERSION+set}" ; then |
12971 |
|
setopt NO_GLOB_SUBST |
12972 |
|
fi |
12973 |
|
# Now quote all the things that may contain metacharacters while being |
12974 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
12975 |
|
# variables and quote the copies for generation of the libtool script. |
12976 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
12977 |
|
SED SHELL STRIP \ |
12978 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12979 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12980 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
12981 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12982 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
12983 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12984 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
12985 |
|
compiler_CXX \ |
12986 |
|
CC_CXX \ |
12987 |
|
LD_CXX \ |
12988 |
|
lt_prog_compiler_wl_CXX \ |
12989 |
|
lt_prog_compiler_pic_CXX \ |
12990 |
|
lt_prog_compiler_static_CXX \ |
12991 |
|
lt_prog_compiler_no_builtin_flag_CXX \ |
12992 |
|
export_dynamic_flag_spec_CXX \ |
12993 |
|
thread_safe_flag_spec_CXX \ |
12994 |
|
whole_archive_flag_spec_CXX \ |
12995 |
|
enable_shared_with_static_runtimes_CXX \ |
12996 |
|
old_archive_cmds_CXX \ |
12997 |
|
old_archive_from_new_cmds_CXX \ |
12998 |
|
predep_objects_CXX \ |
12999 |
|
postdep_objects_CXX \ |
13000 |
|
predeps_CXX \ |
13001 |
|
postdeps_CXX \ |
13002 |
|
compiler_lib_search_path_CXX \ |
13003 |
|
archive_cmds_CXX \ |
13004 |
|
archive_expsym_cmds_CXX \ |
13005 |
|
postinstall_cmds_CXX \ |
13006 |
|
postuninstall_cmds_CXX \ |
13007 |
|
old_archive_from_expsyms_cmds_CXX \ |
13008 |
|
allow_undefined_flag_CXX \ |
13009 |
|
no_undefined_flag_CXX \ |
13010 |
|
export_symbols_cmds_CXX \ |
13011 |
|
hardcode_libdir_flag_spec_CXX \ |
13012 |
|
hardcode_libdir_flag_spec_ld_CXX \ |
13013 |
|
hardcode_libdir_separator_CXX \ |
13014 |
|
hardcode_automatic_CXX \ |
13015 |
|
module_cmds_CXX \ |
13016 |
|
module_expsym_cmds_CXX \ |
13017 |
|
lt_cv_prog_compiler_c_o_CXX \ |
13018 |
|
exclude_expsyms_CXX \ |
13019 |
|
include_expsyms_CXX; do |
13020 |
|
|
13021 |
|
case $var in |
13022 |
|
old_archive_cmds_CXX | \ |
13023 |
|
old_archive_from_new_cmds_CXX | \ |
13024 |
|
archive_cmds_CXX | \ |
13025 |
|
archive_expsym_cmds_CXX | \ |
13026 |
|
module_cmds_CXX | \ |
13027 |
|
module_expsym_cmds_CXX | \ |
13028 |
|
old_archive_from_expsyms_cmds_CXX | \ |
13029 |
|
export_symbols_cmds_CXX | \ |
13030 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13031 |
|
postinstall_cmds | postuninstall_cmds | \ |
13032 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
13033 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13034 |
|
# Double-quote double-evaled strings. |
13035 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13036 |
|
;; |
13037 |
|
*) |
13038 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13039 |
|
;; |
13040 |
|
esac |
13041 |
|
done |
13042 |
|
|
13043 |
|
case $lt_echo in |
13044 |
|
*'\$0 --fallback-echo"') |
13045 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13046 |
|
;; |
13047 |
|
esac |
13048 |
|
|
13049 |
|
cfgfile="$ofile" |
13050 |
|
|
13051 |
|
cat <<__EOF__ >> "$cfgfile" |
13052 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13053 |
|
|
13054 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13055 |
|
|
13056 |
|
# Shell to use when invoking shell scripts. |
13057 |
|
SHELL=$lt_SHELL |
13058 |
|
|
13059 |
|
# Whether or not to build shared libraries. |
13060 |
|
build_libtool_libs=$enable_shared |
13061 |
|
|
13062 |
|
# Whether or not to build static libraries. |
13063 |
|
build_old_libs=$enable_static |
13064 |
|
|
13065 |
|
# Whether or not to add -lc for building shared libraries. |
13066 |
|
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13067 |
|
|
13068 |
|
# Whether or not to disallow shared libs when runtime libs are static |
13069 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13070 |
|
|
13071 |
|
# Whether or not to optimize for fast installation. |
13072 |
|
fast_install=$enable_fast_install |
13073 |
|
|
13074 |
|
# The host system. |
13075 |
|
host_alias=$host_alias |
13076 |
|
host=$host |
13077 |
|
|
13078 |
|
# An echo program that does not interpret backslashes. |
13079 |
|
echo=$lt_echo |
13080 |
|
|
13081 |
|
# The archiver. |
13082 |
|
AR=$lt_AR |
13083 |
|
AR_FLAGS=$lt_AR_FLAGS |
13084 |
|
|
13085 |
|
# A C compiler. |
13086 |
|
LTCC=$lt_LTCC |
13087 |
|
|
13088 |
|
# A language-specific compiler. |
13089 |
|
CC=$lt_compiler_CXX |
13090 |
|
|
13091 |
|
# Is the compiler the GNU C compiler? |
13092 |
|
with_gcc=$GCC_CXX |
13093 |
|
|
13094 |
|
# An ERE matcher. |
13095 |
|
EGREP=$lt_EGREP |
13096 |
|
|
13097 |
|
# The linker used to build libraries. |
13098 |
|
LD=$lt_LD_CXX |
13099 |
|
|
13100 |
|
# Whether we need hard or soft links. |
13101 |
|
LN_S=$lt_LN_S |
13102 |
|
|
13103 |
|
# A BSD-compatible nm program. |
13104 |
|
NM=$lt_NM |
13105 |
|
|
13106 |
|
# A symbol stripping program |
13107 |
|
STRIP=$lt_STRIP |
13108 |
|
|
13109 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
13110 |
|
MAGIC_CMD=$MAGIC_CMD |
13111 |
|
|
13112 |
|
# Used on cygwin: DLL creation program. |
13113 |
|
DLLTOOL="$DLLTOOL" |
13114 |
|
|
13115 |
|
# Used on cygwin: object dumper. |
13116 |
|
OBJDUMP="$OBJDUMP" |
13117 |
|
|
13118 |
|
# Used on cygwin: assembler. |
13119 |
|
AS="$AS" |
13120 |
|
|
13121 |
|
# The name of the directory that contains temporary libtool files. |
13122 |
|
objdir=$objdir |
13123 |
|
|
13124 |
|
# How to create reloadable object files. |
13125 |
|
reload_flag=$lt_reload_flag |
13126 |
|
reload_cmds=$lt_reload_cmds |
13127 |
|
|
13128 |
|
# How to pass a linker flag through the compiler. |
13129 |
|
wl=$lt_lt_prog_compiler_wl_CXX |
13130 |
|
|
13131 |
|
# Object file suffix (normally "o"). |
13132 |
|
objext="$ac_objext" |
13133 |
|
|
13134 |
|
# Old archive suffix (normally "a"). |
13135 |
|
libext="$libext" |
13136 |
|
|
13137 |
|
# Shared library suffix (normally ".so"). |
13138 |
|
shrext_cmds='$shrext_cmds' |
13139 |
|
|
13140 |
|
# Executable file suffix (normally ""). |
13141 |
|
exeext="$exeext" |
13142 |
|
|
13143 |
|
# Additional compiler flags for building library objects. |
13144 |
|
pic_flag=$lt_lt_prog_compiler_pic_CXX |
13145 |
|
pic_mode=$pic_mode |
13146 |
|
|
13147 |
|
# What is the maximum length of a command? |
13148 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
13149 |
|
|
13150 |
|
# Does compiler simultaneously support -c and -o options? |
13151 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13152 |
|
|
13153 |
|
# Must we lock files when doing compilation ? |
13154 |
|
need_locks=$lt_need_locks |
13155 |
|
|
13156 |
|
# Do we need the lib prefix for modules? |
13157 |
|
need_lib_prefix=$need_lib_prefix |
13158 |
|
|
13159 |
|
# Do we need a version for libraries? |
13160 |
|
need_version=$need_version |
13161 |
|
|
13162 |
|
# Whether dlopen is supported. |
13163 |
|
dlopen_support=$enable_dlopen |
13164 |
|
|
13165 |
|
# Whether dlopen of programs is supported. |
13166 |
|
dlopen_self=$enable_dlopen_self |
13167 |
|
|
13168 |
|
# Whether dlopen of statically linked programs is supported. |
13169 |
|
dlopen_self_static=$enable_dlopen_self_static |
13170 |
|
|
13171 |
|
# Compiler flag to prevent dynamic linking. |
13172 |
|
link_static_flag=$lt_lt_prog_compiler_static_CXX |
13173 |
|
|
13174 |
|
# Compiler flag to turn off builtin functions. |
13175 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13176 |
|
|
13177 |
|
# Compiler flag to allow reflexive dlopens. |
13178 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13179 |
|
|
13180 |
|
# Compiler flag to generate shared objects directly from archives. |
13181 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13182 |
|
|
13183 |
|
# Compiler flag to generate thread-safe objects. |
13184 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13185 |
|
|
13186 |
|
# Library versioning type. |
13187 |
|
version_type=$version_type |
13188 |
|
|
13189 |
|
# Format of library name prefix. |
13190 |
|
libname_spec=$lt_libname_spec |
13191 |
|
|
13192 |
|
# List of archive names. First name is the real one, the rest are links. |
13193 |
|
# The last name is the one that the linker finds with -lNAME. |
13194 |
|
library_names_spec=$lt_library_names_spec |
13195 |
|
|
13196 |
|
# The coded name of the library, if different from the real name. |
13197 |
|
soname_spec=$lt_soname_spec |
13198 |
|
|
13199 |
|
# Commands used to build and install an old-style archive. |
13200 |
|
RANLIB=$lt_RANLIB |
13201 |
|
old_archive_cmds=$lt_old_archive_cmds_CXX |
13202 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
13203 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13204 |
|
|
13205 |
|
# Create an old-style archive from a shared archive. |
13206 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13207 |
|
|
13208 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
13209 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13210 |
|
|
13211 |
|
# Commands used to build and install a shared archive. |
13212 |
|
archive_cmds=$lt_archive_cmds_CXX |
13213 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13214 |
|
postinstall_cmds=$lt_postinstall_cmds |
13215 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
13216 |
|
|
13217 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
13218 |
|
module_cmds=$lt_module_cmds_CXX |
13219 |
|
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13220 |
|
|
13221 |
|
# Commands to strip libraries. |
13222 |
|
old_striplib=$lt_old_striplib |
13223 |
|
striplib=$lt_striplib |
13224 |
|
|
13225 |
|
# Dependencies to place before the objects being linked to create a |
13226 |
|
# shared library. |
13227 |
|
predep_objects=$lt_predep_objects_CXX |
13228 |
|
|
13229 |
|
# Dependencies to place after the objects being linked to create a |
13230 |
|
# shared library. |
13231 |
|
postdep_objects=$lt_postdep_objects_CXX |
13232 |
|
|
13233 |
|
# Dependencies to place before the objects being linked to create a |
13234 |
|
# shared library. |
13235 |
|
predeps=$lt_predeps_CXX |
13236 |
|
|
13237 |
|
# Dependencies to place after the objects being linked to create a |
13238 |
|
# shared library. |
13239 |
|
postdeps=$lt_postdeps_CXX |
13240 |
|
|
13241 |
|
# The library search path used internally by the compiler when linking |
13242 |
|
# a shared library. |
13243 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
13244 |
|
|
13245 |
|
# Method to check whether dependent libraries are shared objects. |
13246 |
|
deplibs_check_method=$lt_deplibs_check_method |
13247 |
|
|
13248 |
|
# Command to use when deplibs_check_method == file_magic. |
13249 |
|
file_magic_cmd=$lt_file_magic_cmd |
13250 |
|
|
13251 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
13252 |
|
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13253 |
|
|
13254 |
|
# Flag that forces no undefined symbols. |
13255 |
|
no_undefined_flag=$lt_no_undefined_flag_CXX |
13256 |
|
|
13257 |
|
# Commands used to finish a libtool library installation in a directory. |
13258 |
|
finish_cmds=$lt_finish_cmds |
13259 |
|
|
13260 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
13261 |
|
finish_eval=$lt_finish_eval |
13262 |
|
|
13263 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
13264 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13265 |
|
|
13266 |
|
# Transform the output of nm in a proper C declaration |
13267 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13268 |
|
|
13269 |
|
# Transform the output of nm in a C name address pair |
13270 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13271 |
|
|
13272 |
|
# This is the shared library runtime path variable. |
13273 |
|
runpath_var=$runpath_var |
13274 |
|
|
13275 |
|
# This is the shared library path variable. |
13276 |
|
shlibpath_var=$shlibpath_var |
13277 |
|
|
13278 |
|
# Is shlibpath searched before the hard-coded library search path? |
13279 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13280 |
|
|
13281 |
|
# How to hardcode a shared library path into an executable. |
13282 |
|
hardcode_action=$hardcode_action_CXX |
13283 |
|
|
13284 |
|
# Whether we should hardcode library paths into libraries. |
13285 |
|
hardcode_into_libs=$hardcode_into_libs |
13286 |
|
|
13287 |
|
# Flag to hardcode \$libdir into a binary during linking. |
13288 |
|
# This must work even if \$libdir does not exist. |
13289 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13290 |
|
|
13291 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
13292 |
|
# a binary during linking. This must work even if \$libdir does |
13293 |
|
# not exist. |
13294 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13295 |
|
|
13296 |
|
# Whether we need a single -rpath flag with a separated argument. |
13297 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13298 |
|
|
13299 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13300 |
|
# resulting binary. |
13301 |
|
hardcode_direct=$hardcode_direct_CXX |
13302 |
|
|
13303 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13304 |
|
# resulting binary. |
13305 |
|
hardcode_minus_L=$hardcode_minus_L_CXX |
13306 |
|
|
13307 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13308 |
|
# the resulting binary. |
13309 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13310 |
|
|
13311 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
13312 |
|
# and all subsequent libraries and executables linked against it. |
13313 |
|
hardcode_automatic=$hardcode_automatic_CXX |
13314 |
|
|
13315 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
13316 |
|
# restored at relink time. |
13317 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
13318 |
|
|
13319 |
|
# Whether libtool must link a program against all its dependency libraries. |
13320 |
|
link_all_deplibs=$link_all_deplibs_CXX |
13321 |
|
|
13322 |
|
# Compile-time system search path for libraries |
13323 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
13324 |
|
|
13325 |
|
# Run-time system search path for libraries |
13326 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13327 |
|
|
13328 |
|
# Fix the shell variable \$srcfile for the compiler. |
13329 |
|
fix_srcfile_path="$fix_srcfile_path_CXX" |
13330 |
|
|
13331 |
|
# Set to yes if exported symbols are required. |
13332 |
|
always_export_symbols=$always_export_symbols_CXX |
13333 |
|
|
13334 |
|
# The commands to list exported symbols. |
13335 |
|
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13336 |
|
|
13337 |
|
# The commands to extract the exported symbol list from a shared archive. |
13338 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13339 |
|
|
13340 |
|
# Symbols that should not be listed in the preloaded symbols. |
13341 |
|
exclude_expsyms=$lt_exclude_expsyms_CXX |
13342 |
|
|
13343 |
|
# Symbols that must always be exported. |
13344 |
|
include_expsyms=$lt_include_expsyms_CXX |
13345 |
|
|
13346 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
13347 |
|
|
13348 |
|
__EOF__ |
13349 |
|
|
13350 |
|
|
13351 |
|
else |
13352 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
13353 |
|
# `config.status --recheck' to rerun these tests and create the |
13354 |
|
# libtool script then. |
13355 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13356 |
|
if test -f "$ltmain_in"; then |
13357 |
|
test -f Makefile && make "$ltmain" |
13358 |
|
fi |
13359 |
|
fi |
13360 |
|
|
13361 |
|
|
13362 |
|
ac_ext=c |
13363 |
|
ac_cpp='$CPP $CPPFLAGS' |
13364 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13365 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13366 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13367 |
|
|
13368 |
|
CC=$lt_save_CC |
13369 |
|
LDCXX=$LD |
13370 |
|
LD=$lt_save_LD |
13371 |
|
GCC=$lt_save_GCC |
13372 |
|
with_gnu_ldcxx=$with_gnu_ld |
13373 |
|
with_gnu_ld=$lt_save_with_gnu_ld |
13374 |
|
lt_cv_path_LDCXX=$lt_cv_path_LD |
13375 |
|
lt_cv_path_LD=$lt_save_path_LD |
13376 |
|
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13377 |
|
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13378 |
|
|
13379 |
|
else |
13380 |
|
tagname="" |
13381 |
|
fi |
13382 |
|
;; |
13383 |
|
|
13384 |
|
F77) |
13385 |
|
if test -n "$F77" && test "X$F77" != "Xno"; then |
13386 |
|
|
13387 |
|
ac_ext=f |
13388 |
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13389 |
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13390 |
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13391 |
|
|
13392 |
|
|
13393 |
|
archive_cmds_need_lc_F77=no |
13394 |
|
allow_undefined_flag_F77= |
13395 |
|
always_export_symbols_F77=no |
13396 |
|
archive_expsym_cmds_F77= |
13397 |
|
export_dynamic_flag_spec_F77= |
13398 |
|
hardcode_direct_F77=no |
13399 |
|
hardcode_libdir_flag_spec_F77= |
13400 |
|
hardcode_libdir_flag_spec_ld_F77= |
13401 |
|
hardcode_libdir_separator_F77= |
13402 |
|
hardcode_minus_L_F77=no |
13403 |
|
hardcode_automatic_F77=no |
13404 |
|
module_cmds_F77= |
13405 |
|
module_expsym_cmds_F77= |
13406 |
|
link_all_deplibs_F77=unknown |
13407 |
|
old_archive_cmds_F77=$old_archive_cmds |
13408 |
|
no_undefined_flag_F77= |
13409 |
|
whole_archive_flag_spec_F77= |
13410 |
|
enable_shared_with_static_runtimes_F77=no |
13411 |
|
|
13412 |
|
# Source file extension for f77 test sources. |
13413 |
|
ac_ext=f |
13414 |
|
|
13415 |
|
# Object file extension for compiled f77 test sources. |
13416 |
|
objext=o |
13417 |
|
objext_F77=$objext |
13418 |
|
|
13419 |
|
# Code to be used in simple compile tests |
13420 |
|
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13421 |
|
|
13422 |
|
# Code to be used in simple link tests |
13423 |
|
lt_simple_link_test_code=" program t\n end\n" |
13424 |
|
|
13425 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13426 |
|
|
13427 |
|
# If no C compiler was specified, use CC. |
13428 |
|
LTCC=${LTCC-"$CC"} |
13429 |
|
|
13430 |
|
# Allow CC to be a program name with arguments. |
13431 |
|
compiler=$CC |
13432 |
|
|
13433 |
|
|
13434 |
|
# Allow CC to be a program name with arguments. |
13435 |
|
lt_save_CC="$CC" |
13436 |
|
CC=${F77-"f77"} |
13437 |
|
compiler=$CC |
13438 |
|
compiler_F77=$CC |
13439 |
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
13440 |
|
|
13441 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13442 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13443 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13444 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
13445 |
|
|
13446 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13447 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13448 |
|
test "$can_build_shared" = "no" && enable_shared=no |
13449 |
|
|
13450 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
13451 |
|
# are all built from PIC. |
13452 |
|
case "$host_os" in |
13453 |
|
aix3*) |
13454 |
|
test "$enable_shared" = yes && enable_static=no |
13455 |
|
if test -n "$RANLIB"; then |
13456 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13457 |
|
postinstall_cmds='$RANLIB $lib' |
13458 |
|
fi |
13459 |
|
;; |
13460 |
|
aix4* | aix5*) |
13461 |
|
test "$enable_shared" = yes && enable_static=no |
13462 |
|
;; |
13463 |
|
esac |
13464 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13465 |
|
echo "${ECHO_T}$enable_shared" >&6 |
13466 |
|
|
13467 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13468 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13469 |
|
# Make sure either enable_shared or enable_static is yes. |
13470 |
|
test "$enable_shared" = yes || enable_static=yes |
13471 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
13472 |
|
echo "${ECHO_T}$enable_static" >&6 |
13473 |
|
|
13474 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
13475 |
|
|
13476 |
|
GCC_F77="$G77" |
13477 |
|
LD_F77="$LD" |
13478 |
|
|
13479 |
|
lt_prog_compiler_wl_F77= |
13480 |
|
lt_prog_compiler_pic_F77= |
13481 |
|
lt_prog_compiler_static_F77= |
13482 |
|
|
13483 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13484 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13485 |
|
|
13486 |
|
if test "$GCC" = yes; then |
13487 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13488 |
|
lt_prog_compiler_static_F77='-static' |
13489 |
|
|
13490 |
|
case $host_os in |
13491 |
|
aix*) |
13492 |
|
# All AIX code is PIC. |
13493 |
|
if test "$host_cpu" = ia64; then |
13494 |
|
# AIX 5 now supports IA64 processor |
13495 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13496 |
|
fi |
13497 |
|
;; |
13498 |
|
|
13499 |
|
amigaos*) |
13500 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
13501 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
13502 |
|
# like `-m68040'. |
13503 |
|
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13504 |
|
;; |
13505 |
|
|
13506 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13507 |
|
# PIC is the default for these OSes. |
13508 |
|
;; |
13509 |
|
|
13510 |
|
mingw* | pw32* | os2*) |
13511 |
|
# This hack is so that the source file can tell whether it is being |
13512 |
|
# built for inclusion in a dll (and should export symbols for example). |
13513 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13514 |
|
;; |
13515 |
|
|
13516 |
|
darwin* | rhapsody*) |
13517 |
|
# PIC is the default on this platform |
13518 |
|
# Common symbols not allowed in MH_DYLIB files |
13519 |
|
lt_prog_compiler_pic_F77='-fno-common' |
13520 |
|
;; |
13521 |
|
|
13522 |
|
msdosdjgpp*) |
13523 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
13524 |
|
# on systems that don't support them. |
13525 |
|
lt_prog_compiler_can_build_shared_F77=no |
13526 |
|
enable_shared=no |
13527 |
|
;; |
13528 |
|
|
13529 |
|
sysv4*MP*) |
13530 |
|
if test -d /usr/nec; then |
13531 |
|
lt_prog_compiler_pic_F77=-Kconform_pic |
13532 |
|
fi |
13533 |
|
;; |
13534 |
|
|
13535 |
|
hpux*) |
13536 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13537 |
|
# not for PA HP-UX. |
13538 |
|
case "$host_cpu" in |
13539 |
|
hppa*64*|ia64*) |
13540 |
|
# +Z the default |
13541 |
|
;; |
13542 |
|
*) |
13543 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13544 |
|
;; |
13545 |
|
esac |
13546 |
|
;; |
13547 |
|
|
13548 |
|
*) |
13549 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13550 |
|
;; |
13551 |
|
esac |
13552 |
|
else |
13553 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
13554 |
|
case $host_os in |
13555 |
|
aix*) |
13556 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13557 |
|
if test "$host_cpu" = ia64; then |
13558 |
|
# AIX 5 now supports IA64 processor |
13559 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13560 |
|
else |
13561 |
|
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13562 |
|
fi |
13563 |
|
;; |
13564 |
|
|
13565 |
|
mingw* | pw32* | os2*) |
13566 |
|
# This hack is so that the source file can tell whether it is being |
13567 |
|
# built for inclusion in a dll (and should export symbols for example). |
13568 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13569 |
|
;; |
13570 |
|
|
13571 |
|
hpux9* | hpux10* | hpux11*) |
13572 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13573 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13574 |
|
# not for PA HP-UX. |
13575 |
|
case "$host_cpu" in |
13576 |
|
hppa*64*|ia64*) |
13577 |
|
# +Z the default |
13578 |
|
;; |
13579 |
|
*) |
13580 |
|
lt_prog_compiler_pic_F77='+Z' |
13581 |
|
;; |
13582 |
|
esac |
13583 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
13584 |
|
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13585 |
|
;; |
13586 |
|
|
13587 |
|
irix5* | irix6* | nonstopux*) |
13588 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13589 |
|
# PIC (with -KPIC) is the default. |
13590 |
|
lt_prog_compiler_static_F77='-non_shared' |
13591 |
|
;; |
13592 |
|
|
13593 |
|
newsos6) |
13594 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13595 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13596 |
|
;; |
13597 |
|
|
13598 |
|
linux*) |
13599 |
|
case $CC in |
13600 |
|
icc* | ecc*) |
13601 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13602 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13603 |
|
lt_prog_compiler_static_F77='-static' |
13604 |
|
;; |
13605 |
|
ccc*) |
13606 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13607 |
|
# All Alpha code is PIC. |
13608 |
|
lt_prog_compiler_static_F77='-non_shared' |
13609 |
|
;; |
13610 |
|
esac |
13611 |
|
;; |
13612 |
|
|
13613 |
|
osf3* | osf4* | osf5*) |
13614 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13615 |
|
# All OSF/1 code is PIC. |
13616 |
|
lt_prog_compiler_static_F77='-non_shared' |
13617 |
|
;; |
13618 |
|
|
13619 |
|
sco3.2v5*) |
13620 |
|
lt_prog_compiler_pic_F77='-Kpic' |
13621 |
|
lt_prog_compiler_static_F77='-dn' |
13622 |
|
;; |
13623 |
|
|
13624 |
|
solaris*) |
13625 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13626 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13627 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13628 |
|
;; |
13629 |
|
|
13630 |
|
sunos4*) |
13631 |
|
lt_prog_compiler_wl_F77='-Qoption ld ' |
13632 |
|
lt_prog_compiler_pic_F77='-PIC' |
13633 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13634 |
|
;; |
13635 |
|
|
13636 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13637 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13638 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13639 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13640 |
|
;; |
13641 |
|
|
13642 |
|
sysv4*MP*) |
13643 |
|
if test -d /usr/nec ;then |
13644 |
|
lt_prog_compiler_pic_F77='-Kconform_pic' |
13645 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13646 |
|
fi |
13647 |
|
;; |
13648 |
|
|
13649 |
|
uts4*) |
13650 |
|
lt_prog_compiler_pic_F77='-pic' |
13651 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13652 |
|
;; |
13653 |
|
|
13654 |
|
*) |
13655 |
|
lt_prog_compiler_can_build_shared_F77=no |
13656 |
|
;; |
13657 |
|
esac |
13658 |
|
fi |
13659 |
|
|
13660 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13661 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13662 |
|
|
13663 |
|
# |
13664 |
|
# Check to make sure the PIC flag actually works. |
13665 |
|
# |
13666 |
|
if test -n "$lt_prog_compiler_pic_F77"; then |
13667 |
|
|
13668 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13669 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13670 |
|
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13671 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13672 |
|
else |
13673 |
|
lt_prog_compiler_pic_works_F77=no |
13674 |
|
ac_outfile=conftest.$ac_objext |
13675 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13676 |
|
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13677 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
13678 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
13679 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
13680 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
13681 |
|
# The option is referenced via a variable to avoid confusing sed. |
13682 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
13683 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13684 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13685 |
|
-e 's:$: $lt_compiler_flag:'` |
13686 |
|
(eval echo "\"\$as_me:13686: $lt_compile\"" >&5) |
13687 |
|
(eval "$lt_compile" 2>conftest.err) |
13688 |
|
ac_status=$? |
13689 |
|
cat conftest.err >&5 |
13690 |
|
echo "$as_me:13690: \$? = $ac_status" >&5 |
13691 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
13692 |
|
# The compiler can only warn and ignore the option if not recognized |
13693 |
|
# So say no if there are warnings |
13694 |
|
if test ! -s conftest.err; then |
13695 |
|
lt_prog_compiler_pic_works_F77=yes |
13696 |
|
fi |
13697 |
|
fi |
13698 |
|
$rm conftest* |
13699 |
|
|
13700 |
|
fi |
13701 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13702 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13703 |
|
|
13704 |
|
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13705 |
|
case $lt_prog_compiler_pic_F77 in |
13706 |
|
"" | " "*) ;; |
13707 |
|
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13708 |
|
esac |
13709 |
|
else |
13710 |
|
lt_prog_compiler_pic_F77= |
13711 |
|
lt_prog_compiler_can_build_shared_F77=no |
13712 |
|
fi |
13713 |
|
|
13714 |
|
fi |
13715 |
|
case "$host_os" in |
13716 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
13717 |
|
*djgpp*) |
13718 |
|
lt_prog_compiler_pic_F77= |
13719 |
|
;; |
13720 |
|
*) |
13721 |
|
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13722 |
|
;; |
13723 |
|
esac |
13724 |
|
|
13725 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13726 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13727 |
|
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13728 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13729 |
|
else |
13730 |
|
lt_cv_prog_compiler_c_o_F77=no |
13731 |
|
$rm -r conftest 2>/dev/null |
13732 |
|
mkdir conftest |
13733 |
|
cd conftest |
13734 |
|
mkdir out |
13735 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13736 |
|
|
13737 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
13738 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
13739 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
13740 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
13741 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
13742 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
13743 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13744 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13745 |
|
-e 's:$: $lt_compiler_flag:'` |
13746 |
|
(eval echo "\"\$as_me:13746: $lt_compile\"" >&5) |
13747 |
|
(eval "$lt_compile" 2>out/conftest.err) |
13748 |
|
ac_status=$? |
13749 |
|
cat out/conftest.err >&5 |
13750 |
|
echo "$as_me:13750: \$? = $ac_status" >&5 |
13751 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13752 |
|
then |
13753 |
|
# The compiler can only warn and ignore the option if not recognized |
13754 |
|
# So say no if there are warnings |
13755 |
|
if test ! -s out/conftest.err; then |
13756 |
|
lt_cv_prog_compiler_c_o_F77=yes |
13757 |
|
fi |
13758 |
|
fi |
13759 |
|
chmod u+w . |
13760 |
|
$rm conftest* |
13761 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
13762 |
|
# template instantiation |
13763 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13764 |
|
$rm out/* && rmdir out |
13765 |
|
cd .. |
13766 |
|
rmdir conftest |
13767 |
|
$rm conftest* |
13768 |
|
|
13769 |
|
fi |
13770 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13771 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13772 |
|
|
13773 |
|
|
13774 |
|
hard_links="nottested" |
13775 |
|
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13776 |
|
# do not overwrite the value of need_locks provided by the user |
13777 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13778 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13779 |
|
hard_links=yes |
13780 |
|
$rm conftest* |
13781 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13782 |
|
touch conftest.a |
13783 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
13784 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13785 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
13786 |
|
echo "${ECHO_T}$hard_links" >&6 |
13787 |
|
if test "$hard_links" = no; then |
13788 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13789 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13790 |
|
need_locks=warn |
13791 |
|
fi |
13792 |
|
else |
13793 |
|
need_locks=no |
13794 |
|
fi |
13795 |
|
|
13796 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13797 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13798 |
|
|
13799 |
|
runpath_var= |
13800 |
|
allow_undefined_flag_F77= |
13801 |
|
enable_shared_with_static_runtimes_F77=no |
13802 |
|
archive_cmds_F77= |
13803 |
|
archive_expsym_cmds_F77= |
13804 |
|
old_archive_From_new_cmds_F77= |
13805 |
|
old_archive_from_expsyms_cmds_F77= |
13806 |
|
export_dynamic_flag_spec_F77= |
13807 |
|
whole_archive_flag_spec_F77= |
13808 |
|
thread_safe_flag_spec_F77= |
13809 |
|
hardcode_libdir_flag_spec_F77= |
13810 |
|
hardcode_libdir_flag_spec_ld_F77= |
13811 |
|
hardcode_libdir_separator_F77= |
13812 |
|
hardcode_direct_F77=no |
13813 |
|
hardcode_minus_L_F77=no |
13814 |
|
hardcode_shlibpath_var_F77=unsupported |
13815 |
|
link_all_deplibs_F77=unknown |
13816 |
|
hardcode_automatic_F77=no |
13817 |
|
module_cmds_F77= |
13818 |
|
module_expsym_cmds_F77= |
13819 |
|
always_export_symbols_F77=no |
13820 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13821 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
13822 |
|
# included in the symbol list |
13823 |
|
include_expsyms_F77= |
13824 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
13825 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
13826 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13827 |
|
# as well as any symbol that contains `d'. |
13828 |
|
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13829 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13830 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
13831 |
|
# the symbol is explicitly referenced. Since portable code cannot |
13832 |
|
# rely on this symbol name, it's probably fine to never include it in |
13833 |
|
# preloaded symbol tables. |
13834 |
|
extract_expsyms_cmds= |
13835 |
|
|
13836 |
|
case $host_os in |
13837 |
|
cygwin* | mingw* | pw32*) |
13838 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
13839 |
|
# When not using gcc, we currently assume that we are using |
13840 |
|
# Microsoft Visual C++. |
13841 |
|
if test "$GCC" != yes; then |
13842 |
|
with_gnu_ld=no |
13843 |
|
fi |
13844 |
|
;; |
13845 |
|
openbsd*) |
13846 |
|
with_gnu_ld=no |
13847 |
|
;; |
13848 |
|
esac |
13849 |
|
|
13850 |
|
ld_shlibs_F77=yes |
13851 |
|
if test "$with_gnu_ld" = yes; then |
13852 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
13853 |
|
wlarc='${wl}' |
13854 |
|
|
13855 |
|
# See if GNU ld supports shared libraries. |
13856 |
|
case $host_os in |
13857 |
|
aix3* | aix4* | aix5*) |
13858 |
|
# On AIX/PPC, the GNU linker is very broken |
13859 |
|
if test "$host_cpu" != ia64; then |
13860 |
|
ld_shlibs_F77=no |
13861 |
|
cat <<EOF 1>&2 |
13862 |
|
|
13863 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13864 |
|
*** to be unable to reliably create shared libraries on AIX. |
13865 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
13866 |
|
*** really care for shared libraries, you may want to modify your PATH |
13867 |
|
*** so that a non-GNU linker is found, and then restart. |
13868 |
|
|
13869 |
|
EOF |
13870 |
|
fi |
13871 |
|
;; |
13872 |
|
|
13873 |
|
amigaos*) |
13874 |
|
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
13875 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
13876 |
|
hardcode_minus_L_F77=yes |
13877 |
|
|
13878 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13879 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
13880 |
|
# to version 4, is to share data among multiple programs linked |
13881 |
|
# with the same dynamic library. Since this doesn't match the |
13882 |
|
# behavior of shared libraries on other platforms, we can't use |
13883 |
|
# them. |
13884 |
|
ld_shlibs_F77=no |
13885 |
|
;; |
13886 |
|
|
13887 |
|
beos*) |
13888 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13889 |
|
allow_undefined_flag_F77=unsupported |
13890 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13891 |
|
# support --undefined. This deserves some investigation. FIXME |
13892 |
|
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13893 |
|
else |
13894 |
|
ld_shlibs_F77=no |
13895 |
|
fi |
13896 |
|
;; |
13897 |
|
|
13898 |
|
cygwin* | mingw* | pw32*) |
13899 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13900 |
|
# as there is no search path for DLLs. |
13901 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
13902 |
|
allow_undefined_flag_F77=unsupported |
13903 |
|
always_export_symbols_F77=no |
13904 |
|
enable_shared_with_static_runtimes_F77=yes |
13905 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13906 |
|
|
13907 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13908 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
13909 |
|
# If the export-symbols file already is a .def file (1st line |
13910 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
13911 |
|
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13912 |
|
cp $export_symbols $output_objdir/$soname.def; |
13913 |
|
else |
13914 |
|
echo EXPORTS > $output_objdir/$soname.def; |
13915 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
13916 |
|
fi~ |
13917 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
13918 |
|
else |
13919 |
|
ld_shlibs=no |
13920 |
|
fi |
13921 |
|
;; |
13922 |
|
|
13923 |
|
netbsd*) |
13924 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13925 |
|
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13926 |
|
wlarc= |
13927 |
|
else |
13928 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13929 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13930 |
|
fi |
13931 |
|
;; |
13932 |
|
|
13933 |
|
solaris* | sysv5*) |
13934 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13935 |
|
ld_shlibs_F77=no |
13936 |
|
cat <<EOF 1>&2 |
13937 |
|
|
13938 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13939 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
13940 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
13941 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
13942 |
|
*** your PATH or compiler configuration so that the native linker is |
13943 |
|
*** used, and then restart. |
13944 |
|
|
13945 |
|
EOF |
13946 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13947 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13948 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13949 |
|
else |
13950 |
|
ld_shlibs_F77=no |
13951 |
|
fi |
13952 |
|
;; |
13953 |
|
|
13954 |
|
sunos4*) |
13955 |
|
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13956 |
|
wlarc= |
13957 |
|
hardcode_direct_F77=yes |
13958 |
|
hardcode_shlibpath_var_F77=no |
13959 |
|
;; |
13960 |
|
|
13961 |
|
linux*) |
13962 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13963 |
|
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13964 |
|
archive_cmds_F77="$tmp_archive_cmds" |
13965 |
|
supports_anon_versioning=no |
13966 |
|
case `$LD -v 2>/dev/null` in |
13967 |
|
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13968 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13969 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13970 |
|
*\ 2.11.*) ;; # other 2.11 versions |
13971 |
|
*) supports_anon_versioning=yes ;; |
13972 |
|
esac |
13973 |
|
if test $supports_anon_versioning = yes; then |
13974 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13975 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13976 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
13977 |
|
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13978 |
|
else |
13979 |
|
archive_expsym_cmds_F77="$tmp_archive_cmds" |
13980 |
|
fi |
13981 |
|
else |
13982 |
|
ld_shlibs_F77=no |
13983 |
|
fi |
13984 |
|
;; |
13985 |
|
|
13986 |
|
*) |
13987 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13988 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13989 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13990 |
|
else |
13991 |
|
ld_shlibs_F77=no |
13992 |
|
fi |
13993 |
|
;; |
13994 |
|
esac |
13995 |
|
|
13996 |
|
if test "$ld_shlibs_F77" = yes; then |
13997 |
|
runpath_var=LD_RUN_PATH |
13998 |
|
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13999 |
|
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14000 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
14001 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14002 |
|
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14003 |
|
else |
14004 |
|
whole_archive_flag_spec_F77= |
14005 |
|
fi |
14006 |
|
fi |
14007 |
|
else |
14008 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
14009 |
|
case $host_os in |
14010 |
|
aix3*) |
14011 |
|
allow_undefined_flag_F77=unsupported |
14012 |
|
always_export_symbols_F77=yes |
14013 |
|
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
14014 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
14015 |
|
# are no directories specified by -L. |
14016 |
|
hardcode_minus_L_F77=yes |
14017 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
14018 |
|
# Neither direct hardcoding nor static linking is supported with a |
14019 |
|
# broken collect2. |
14020 |
|
hardcode_direct_F77=unsupported |
14021 |
|
fi |
14022 |
|
;; |
14023 |
|
|
14024 |
|
aix4* | aix5*) |
14025 |
|
if test "$host_cpu" = ia64; then |
14026 |
|
# On IA64, the linker does run time linking by default, so we don't |
14027 |
|
# have to do anything special. |
14028 |
|
aix_use_runtimelinking=no |
14029 |
|
exp_sym_flag='-Bexport' |
14030 |
|
no_entry_flag="" |
14031 |
|
else |
14032 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
14033 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
14034 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14035 |
|
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14036 |
|
else |
14037 |
|
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
14038 |
|
fi |
14039 |
|
aix_use_runtimelinking=no |
14040 |
|
|
14041 |
|
# Test if we are trying to use run time linking or normal |
14042 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14043 |
|
# need to do runtime linking. |
14044 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14045 |
|
for ld_flag in $LDFLAGS; do |
14046 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14047 |
|
aix_use_runtimelinking=yes |
14048 |
|
break |
14049 |
|
fi |
14050 |
|
done |
14051 |
|
esac |
14052 |
|
|
14053 |
|
exp_sym_flag='-bexport' |
14054 |
|
no_entry_flag='-bnoentry' |
14055 |
|
fi |
14056 |
|
|
14057 |
|
# When large executables or shared objects are built, AIX ld can |
14058 |
|
# have problems creating the table of contents. If linking a library |
14059 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
14060 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14061 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14062 |
|
|
14063 |
|
archive_cmds_F77='' |
14064 |
|
hardcode_direct_F77=yes |
14065 |
|
hardcode_libdir_separator_F77=':' |
14066 |
|
link_all_deplibs_F77=yes |
14067 |
|
|
14068 |
|
if test "$GCC" = yes; then |
14069 |
|
case $host_os in aix4.012|aix4.012.*) |
14070 |
|
# We only want to do this on AIX 4.2 and lower, the check |
14071 |
|
# below for broken collect2 doesn't work under 4.3+ |
14072 |
|
collect2name=`${CC} -print-prog-name=collect2` |
14073 |
|
if test -f "$collect2name" && \ |
14074 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
14075 |
|
then |
14076 |
|
# We have reworked collect2 |
14077 |
|
hardcode_direct_F77=yes |
14078 |
|
else |
14079 |
|
# We have old collect2 |
14080 |
|
hardcode_direct_F77=unsupported |
14081 |
|
# It fails to find uninstalled libraries when the uninstalled |
14082 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
14083 |
|
# to unsupported forces relinking |
14084 |
|
hardcode_minus_L_F77=yes |
14085 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14086 |
|
hardcode_libdir_separator_F77= |
14087 |
|
fi |
14088 |
|
esac |
14089 |
|
shared_flag='-shared' |
14090 |
|
else |
14091 |
|
# not using gcc |
14092 |
|
if test "$host_cpu" = ia64; then |
14093 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14094 |
|
# chokes on -Wl,-G. The following line is correct: |
14095 |
|
shared_flag='-G' |
14096 |
|
else |
14097 |
|
if test "$aix_use_runtimelinking" = yes; then |
14098 |
|
shared_flag='${wl}-G' |
14099 |
|
else |
14100 |
|
shared_flag='${wl}-bM:SRE' |
14101 |
|
fi |
14102 |
|
fi |
14103 |
|
fi |
14104 |
|
|
14105 |
|
# It seems that -bexpall does not export symbols beginning with |
14106 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
14107 |
|
always_export_symbols_F77=yes |
14108 |
|
if test "$aix_use_runtimelinking" = yes; then |
14109 |
|
# Warning - without using the other runtime loading flags (-brtl), |
14110 |
|
# -berok will link without error, but may produce a broken library. |
14111 |
|
allow_undefined_flag_F77='-berok' |
14112 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14113 |
|
cat >conftest.$ac_ext <<_ACEOF |
14114 |
|
program main |
14115 |
|
|
14116 |
|
end |
14117 |
|
_ACEOF |
14118 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14119 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14120 |
|
(eval $ac_link) 2>conftest.er1 |
14121 |
|
ac_status=$? |
14122 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14123 |
|
rm -f conftest.er1 |
14124 |
|
cat conftest.err >&5 |
14125 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14126 |
|
(exit $ac_status); } && |
14127 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14128 |
|
|| test ! -s conftest.err' |
14129 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14130 |
|
(eval $ac_try) 2>&5 |
14131 |
|
ac_status=$? |
14132 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14133 |
|
(exit $ac_status); }; } && |
14134 |
|
{ ac_try='test -s conftest$ac_exeext' |
14135 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14136 |
|
(eval $ac_try) 2>&5 |
14137 |
|
ac_status=$? |
14138 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14139 |
|
(exit $ac_status); }; }; then |
14140 |
|
|
14141 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14142 |
|
}'` |
14143 |
|
# Check for a 64-bit object if we didn't find anything. |
14144 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14145 |
|
}'`; fi |
14146 |
|
else |
14147 |
|
echo "$as_me: failed program was:" >&5 |
14148 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14149 |
|
|
14150 |
|
fi |
14151 |
|
rm -f conftest.err conftest.$ac_objext \ |
14152 |
|
conftest$ac_exeext conftest.$ac_ext |
14153 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14154 |
|
|
14155 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14156 |
|
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14157 |
|
else |
14158 |
|
if test "$host_cpu" = ia64; then |
14159 |
|
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14160 |
|
allow_undefined_flag_F77="-z nodefs" |
14161 |
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
14162 |
|
else |
14163 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14164 |
|
cat >conftest.$ac_ext <<_ACEOF |
14165 |
|
program main |
14166 |
|
|
14167 |
|
end |
14168 |
|
_ACEOF |
14169 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14170 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14171 |
|
(eval $ac_link) 2>conftest.er1 |
14172 |
|
ac_status=$? |
14173 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14174 |
|
rm -f conftest.er1 |
14175 |
|
cat conftest.err >&5 |
14176 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14177 |
|
(exit $ac_status); } && |
14178 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14179 |
|
|| test ! -s conftest.err' |
14180 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14181 |
|
(eval $ac_try) 2>&5 |
14182 |
|
ac_status=$? |
14183 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14184 |
|
(exit $ac_status); }; } && |
14185 |
|
{ ac_try='test -s conftest$ac_exeext' |
14186 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14187 |
|
(eval $ac_try) 2>&5 |
14188 |
|
ac_status=$? |
14189 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14190 |
|
(exit $ac_status); }; }; then |
14191 |
|
|
14192 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14193 |
|
}'` |
14194 |
|
# Check for a 64-bit object if we didn't find anything. |
14195 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14196 |
|
}'`; fi |
14197 |
|
else |
14198 |
|
echo "$as_me: failed program was:" >&5 |
14199 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14200 |
|
|
14201 |
|
fi |
14202 |
|
rm -f conftest.err conftest.$ac_objext \ |
14203 |
|
conftest$ac_exeext conftest.$ac_ext |
14204 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14205 |
|
|
14206 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14207 |
|
# Warning - without using the other run time loading flags, |
14208 |
|
# -berok will link without error, but may produce a broken library. |
14209 |
|
no_undefined_flag_F77=' ${wl}-bernotok' |
14210 |
|
allow_undefined_flag_F77=' ${wl}-berok' |
14211 |
|
# -bexpall does not export symbols beginning with underscore (_) |
14212 |
|
always_export_symbols_F77=yes |
14213 |
|
# Exported symbols can be pulled into shared objects from archives |
14214 |
|
whole_archive_flag_spec_F77=' ' |
14215 |
|
archive_cmds_need_lc_F77=yes |
14216 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
14217 |
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14218 |
|
fi |
14219 |
|
fi |
14220 |
|
;; |
14221 |
|
|
14222 |
|
amigaos*) |
14223 |
|
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
14224 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14225 |
|
hardcode_minus_L_F77=yes |
14226 |
|
# see comment about different semantics on the GNU ld section |
14227 |
|
ld_shlibs_F77=no |
14228 |
|
;; |
14229 |
|
|
14230 |
|
bsdi4*) |
14231 |
|
export_dynamic_flag_spec_F77=-rdynamic |
14232 |
|
;; |
14233 |
|
|
14234 |
|
cygwin* | mingw* | pw32*) |
14235 |
|
# When not using gcc, we currently assume that we are using |
14236 |
|
# Microsoft Visual C++. |
14237 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
14238 |
|
# no search path for DLLs. |
14239 |
|
hardcode_libdir_flag_spec_F77=' ' |
14240 |
|
allow_undefined_flag_F77=unsupported |
14241 |
|
# Tell ltmain to make .lib files, not .a files. |
14242 |
|
libext=lib |
14243 |
|
# Tell ltmain to make .dll files, not .so files. |
14244 |
|
shrext_cmds=".dll" |
14245 |
|
# FIXME: Setting linknames here is a bad hack. |
14246 |
|
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14247 |
|
# The linker will automatically build a .lib file if we build a DLL. |
14248 |
|
old_archive_From_new_cmds_F77='true' |
14249 |
|
# FIXME: Should let the user specify the lib program. |
14250 |
|
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14251 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
14252 |
|
enable_shared_with_static_runtimes_F77=yes |
14253 |
|
;; |
14254 |
|
|
14255 |
|
darwin* | rhapsody*) |
14256 |
|
if test "$GXX" = yes ; then |
14257 |
|
archive_cmds_need_lc_F77=no |
14258 |
|
case "$host_os" in |
14259 |
|
rhapsody* | darwin1.[012]) |
14260 |
|
allow_undefined_flag_F77='-undefined suppress' |
14261 |
|
;; |
14262 |
|
*) # Darwin 1.3 on |
14263 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14264 |
|
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
14265 |
|
else |
14266 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
14267 |
|
10.[012]) |
14268 |
|
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
14269 |
|
;; |
14270 |
|
10.*) |
14271 |
|
allow_undefined_flag_F77='-undefined dynamic_lookup' |
14272 |
|
;; |
14273 |
|
esac |
14274 |
|
fi |
14275 |
|
;; |
14276 |
|
esac |
14277 |
|
lt_int_apple_cc_single_mod=no |
14278 |
|
output_verbose_link_cmd='echo' |
14279 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
14280 |
|
lt_int_apple_cc_single_mod=yes |
14281 |
|
fi |
14282 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
14283 |
|
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14284 |
|
else |
14285 |
|
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14286 |
|
fi |
14287 |
|
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14288 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
14289 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
14290 |
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14291 |
|
else |
14292 |
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14293 |
|
fi |
14294 |
|
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14295 |
|
hardcode_direct_F77=no |
14296 |
|
hardcode_automatic_F77=yes |
14297 |
|
hardcode_shlibpath_var_F77=unsupported |
14298 |
|
whole_archive_flag_spec_F77='-all_load $convenience' |
14299 |
|
link_all_deplibs_F77=yes |
14300 |
|
else |
14301 |
|
ld_shlibs_F77=no |
14302 |
|
fi |
14303 |
|
;; |
14304 |
|
|
14305 |
|
dgux*) |
14306 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14307 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14308 |
|
hardcode_shlibpath_var_F77=no |
14309 |
|
;; |
14310 |
|
|
14311 |
|
freebsd1*) |
14312 |
|
ld_shlibs_F77=no |
14313 |
|
;; |
14314 |
|
|
14315 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14316 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
14317 |
|
# does not break anything, and helps significantly (at the cost of a little |
14318 |
|
# extra space). |
14319 |
|
freebsd2.2*) |
14320 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14321 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14322 |
|
hardcode_direct_F77=yes |
14323 |
|
hardcode_shlibpath_var_F77=no |
14324 |
|
;; |
14325 |
|
|
14326 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14327 |
|
freebsd2*) |
14328 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14329 |
|
hardcode_direct_F77=yes |
14330 |
|
hardcode_minus_L_F77=yes |
14331 |
|
hardcode_shlibpath_var_F77=no |
14332 |
|
;; |
14333 |
|
|
14334 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14335 |
|
freebsd* | kfreebsd*-gnu) |
14336 |
|
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14337 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14338 |
|
hardcode_direct_F77=yes |
14339 |
|
hardcode_shlibpath_var_F77=no |
14340 |
|
;; |
14341 |
|
|
14342 |
|
hpux9*) |
14343 |
|
if test "$GCC" = yes; then |
14344 |
|
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
14345 |
|
else |
14346 |
|
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
14347 |
|
fi |
14348 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14349 |
|
hardcode_libdir_separator_F77=: |
14350 |
|
hardcode_direct_F77=yes |
14351 |
|
|
14352 |
|
# hardcode_minus_L: Not really in the search PATH, |
14353 |
|
# but as the default location of the library. |
14354 |
|
hardcode_minus_L_F77=yes |
14355 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14356 |
|
;; |
14357 |
|
|
14358 |
|
hpux10* | hpux11*) |
14359 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14360 |
|
case "$host_cpu" in |
14361 |
|
hppa*64*|ia64*) |
14362 |
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14363 |
|
;; |
14364 |
|
*) |
14365 |
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14366 |
|
;; |
14367 |
|
esac |
14368 |
|
else |
14369 |
|
case "$host_cpu" in |
14370 |
|
hppa*64*|ia64*) |
14371 |
|
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
14372 |
|
;; |
14373 |
|
*) |
14374 |
|
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14375 |
|
;; |
14376 |
|
esac |
14377 |
|
fi |
14378 |
|
if test "$with_gnu_ld" = no; then |
14379 |
|
case "$host_cpu" in |
14380 |
|
hppa*64*) |
14381 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14382 |
|
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14383 |
|
hardcode_libdir_separator_F77=: |
14384 |
|
hardcode_direct_F77=no |
14385 |
|
hardcode_shlibpath_var_F77=no |
14386 |
|
;; |
14387 |
|
ia64*) |
14388 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14389 |
|
hardcode_direct_F77=no |
14390 |
|
hardcode_shlibpath_var_F77=no |
14391 |
|
|
14392 |
|
# hardcode_minus_L: Not really in the search PATH, |
14393 |
|
# but as the default location of the library. |
14394 |
|
hardcode_minus_L_F77=yes |
14395 |
|
;; |
14396 |
|
*) |
14397 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14398 |
|
hardcode_libdir_separator_F77=: |
14399 |
|
hardcode_direct_F77=yes |
14400 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14401 |
|
|
14402 |
|
# hardcode_minus_L: Not really in the search PATH, |
14403 |
|
# but as the default location of the library. |
14404 |
|
hardcode_minus_L_F77=yes |
14405 |
|
;; |
14406 |
|
esac |
14407 |
|
fi |
14408 |
|
;; |
14409 |
|
|
14410 |
|
irix5* | irix6* | nonstopux*) |
14411 |
|
if test "$GCC" = yes; then |
14412 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
14413 |
|
else |
14414 |
|
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14415 |
|
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14416 |
|
fi |
14417 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14418 |
|
hardcode_libdir_separator_F77=: |
14419 |
|
link_all_deplibs_F77=yes |
14420 |
|
;; |
14421 |
|
|
14422 |
|
netbsd*) |
14423 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14424 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14425 |
|
else |
14426 |
|
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14427 |
|
fi |
14428 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14429 |
|
hardcode_direct_F77=yes |
14430 |
|
hardcode_shlibpath_var_F77=no |
14431 |
|
;; |
14432 |
|
|
14433 |
|
newsos6) |
14434 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14435 |
|
hardcode_direct_F77=yes |
14436 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14437 |
|
hardcode_libdir_separator_F77=: |
14438 |
|
hardcode_shlibpath_var_F77=no |
14439 |
|
;; |
14440 |
|
|
14441 |
|
openbsd*) |
14442 |
|
hardcode_direct_F77=yes |
14443 |
|
hardcode_shlibpath_var_F77=no |
14444 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14445 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14446 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14447 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14448 |
|
else |
14449 |
|
case $host_os in |
14450 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14451 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14452 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14453 |
|
;; |
14454 |
|
*) |
14455 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14456 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14457 |
|
;; |
14458 |
|
esac |
14459 |
|
fi |
14460 |
|
;; |
14461 |
|
|
14462 |
|
os2*) |
14463 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14464 |
|
hardcode_minus_L_F77=yes |
14465 |
|
allow_undefined_flag_F77=unsupported |
14466 |
|
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
14467 |
|
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14468 |
|
;; |
14469 |
|
|
14470 |
|
osf3*) |
14471 |
|
if test "$GCC" = yes; then |
14472 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14473 |
|
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
14474 |
|
else |
14475 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14476 |
|
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14477 |
|
fi |
14478 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14479 |
|
hardcode_libdir_separator_F77=: |
14480 |
|
;; |
14481 |
|
|
14482 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
14483 |
|
if test "$GCC" = yes; then |
14484 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14485 |
|
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
14486 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14487 |
|
else |
14488 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14489 |
|
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14490 |
|
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
14491 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
14492 |
|
|
14493 |
|
# Both c and cxx compiler support -rpath directly |
14494 |
|
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14495 |
|
fi |
14496 |
|
hardcode_libdir_separator_F77=: |
14497 |
|
;; |
14498 |
|
|
14499 |
|
sco3.2v5*) |
14500 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14501 |
|
hardcode_shlibpath_var_F77=no |
14502 |
|
export_dynamic_flag_spec_F77='${wl}-Bexport' |
14503 |
|
runpath_var=LD_RUN_PATH |
14504 |
|
hardcode_runpath_var=yes |
14505 |
|
;; |
14506 |
|
|
14507 |
|
solaris*) |
14508 |
|
no_undefined_flag_F77=' -z text' |
14509 |
|
if test "$GCC" = yes; then |
14510 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14511 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14512 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14513 |
|
else |
14514 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14515 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14516 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14517 |
|
fi |
14518 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14519 |
|
hardcode_shlibpath_var_F77=no |
14520 |
|
case $host_os in |
14521 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
14522 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
14523 |
|
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14524 |
|
esac |
14525 |
|
link_all_deplibs_F77=yes |
14526 |
|
;; |
14527 |
|
|
14528 |
|
sunos4*) |
14529 |
|
if test "x$host_vendor" = xsequent; then |
14530 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
14531 |
|
# files that make .init and .fini sections work. |
14532 |
|
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14533 |
|
else |
14534 |
|
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14535 |
|
fi |
14536 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14537 |
|
hardcode_direct_F77=yes |
14538 |
|
hardcode_minus_L_F77=yes |
14539 |
|
hardcode_shlibpath_var_F77=no |
14540 |
|
;; |
14541 |
|
|
14542 |
|
sysv4) |
14543 |
|
case $host_vendor in |
14544 |
|
sni) |
14545 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14546 |
|
hardcode_direct_F77=yes # is this really true??? |
14547 |
|
;; |
14548 |
|
siemens) |
14549 |
|
## LD is ld it makes a PLAMLIB |
14550 |
|
## CC just makes a GrossModule. |
14551 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14552 |
|
reload_cmds_F77='$CC -r -o $output$reload_objs' |
14553 |
|
hardcode_direct_F77=no |
14554 |
|
;; |
14555 |
|
motorola) |
14556 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14557 |
|
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14558 |
|
;; |
14559 |
|
esac |
14560 |
|
runpath_var='LD_RUN_PATH' |
14561 |
|
hardcode_shlibpath_var_F77=no |
14562 |
|
;; |
14563 |
|
|
14564 |
|
sysv4.3*) |
14565 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14566 |
|
hardcode_shlibpath_var_F77=no |
14567 |
|
export_dynamic_flag_spec_F77='-Bexport' |
14568 |
|
;; |
14569 |
|
|
14570 |
|
sysv4*MP*) |
14571 |
|
if test -d /usr/nec; then |
14572 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14573 |
|
hardcode_shlibpath_var_F77=no |
14574 |
|
runpath_var=LD_RUN_PATH |
14575 |
|
hardcode_runpath_var=yes |
14576 |
|
ld_shlibs_F77=yes |
14577 |
|
fi |
14578 |
|
;; |
14579 |
|
|
14580 |
|
sysv4.2uw2*) |
14581 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14582 |
|
hardcode_direct_F77=yes |
14583 |
|
hardcode_minus_L_F77=no |
14584 |
|
hardcode_shlibpath_var_F77=no |
14585 |
|
hardcode_runpath_var=yes |
14586 |
|
runpath_var=LD_RUN_PATH |
14587 |
|
;; |
14588 |
|
|
14589 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
14590 |
|
no_undefined_flag_F77='${wl}-z ${wl}text' |
14591 |
|
if test "$GCC" = yes; then |
14592 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14593 |
|
else |
14594 |
|
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14595 |
|
fi |
14596 |
|
runpath_var='LD_RUN_PATH' |
14597 |
|
hardcode_shlibpath_var_F77=no |
14598 |
|
;; |
14599 |
|
|
14600 |
|
sysv5*) |
14601 |
|
no_undefined_flag_F77=' -z text' |
14602 |
|
# $CC -shared without GNU ld will not create a library from C++ |
14603 |
|
# object files and a static libstdc++, better avoid it by now |
14604 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14605 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14606 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14607 |
|
hardcode_libdir_flag_spec_F77= |
14608 |
|
hardcode_shlibpath_var_F77=no |
14609 |
|
runpath_var='LD_RUN_PATH' |
14610 |
|
;; |
14611 |
|
|
14612 |
|
uts4*) |
14613 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14614 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14615 |
|
hardcode_shlibpath_var_F77=no |
14616 |
|
;; |
14617 |
|
|
14618 |
|
*) |
14619 |
|
ld_shlibs_F77=no |
14620 |
|
;; |
14621 |
|
esac |
14622 |
|
fi |
14623 |
|
|
14624 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14625 |
|
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14626 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
14627 |
|
|
14628 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14629 |
|
if test "$GCC" = yes; then |
14630 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
14631 |
|
fi |
14632 |
|
|
14633 |
|
# |
14634 |
|
# Do we need to explicitly link libc? |
14635 |
|
# |
14636 |
|
case "x$archive_cmds_need_lc_F77" in |
14637 |
|
x|xyes) |
14638 |
|
# Assume -lc should be added |
14639 |
|
archive_cmds_need_lc_F77=yes |
14640 |
|
|
14641 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
14642 |
|
case $archive_cmds_F77 in |
14643 |
|
*'~'*) |
14644 |
|
# FIXME: we may have to deal with multi-command sequences. |
14645 |
|
;; |
14646 |
|
'$CC '*) |
14647 |
|
# Test whether the compiler implicitly links with -lc since on some |
14648 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
14649 |
|
# to ld, don't add -lc before -lgcc. |
14650 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14651 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14652 |
|
$rm conftest* |
14653 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14654 |
|
|
14655 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14656 |
|
(eval $ac_compile) 2>&5 |
14657 |
|
ac_status=$? |
14658 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14659 |
|
(exit $ac_status); } 2>conftest.err; then |
14660 |
|
soname=conftest |
14661 |
|
lib=conftest |
14662 |
|
libobjs=conftest.$ac_objext |
14663 |
|
deplibs= |
14664 |
|
wl=$lt_prog_compiler_wl_F77 |
14665 |
|
compiler_flags=-v |
14666 |
|
linker_flags=-v |
14667 |
|
verstring= |
14668 |
|
output_objdir=. |
14669 |
|
libname=conftest |
14670 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14671 |
|
allow_undefined_flag_F77= |
14672 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14673 |
|
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14674 |
|
ac_status=$? |
14675 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14676 |
|
(exit $ac_status); } |
14677 |
|
then |
14678 |
|
archive_cmds_need_lc_F77=no |
14679 |
|
else |
14680 |
|
archive_cmds_need_lc_F77=yes |
14681 |
|
fi |
14682 |
|
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14683 |
|
else |
14684 |
|
cat conftest.err 1>&5 |
14685 |
|
fi |
14686 |
|
$rm conftest* |
14687 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14688 |
|
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14689 |
|
;; |
14690 |
|
esac |
14691 |
|
fi |
14692 |
|
;; |
14693 |
|
esac |
14694 |
|
|
14695 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14696 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14697 |
|
library_names_spec= |
14698 |
|
libname_spec='lib$name' |
14699 |
|
soname_spec= |
14700 |
|
shrext_cmds=".so" |
14701 |
|
postinstall_cmds= |
14702 |
|
postuninstall_cmds= |
14703 |
|
finish_cmds= |
14704 |
|
finish_eval= |
14705 |
|
shlibpath_var= |
14706 |
|
shlibpath_overrides_runpath=unknown |
14707 |
|
version_type=none |
14708 |
|
dynamic_linker="$host_os ld.so" |
14709 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14710 |
|
if test "$GCC" = yes; then |
14711 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14712 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14713 |
|
# if the path contains ";" then we assume it to be the separator |
14714 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
14715 |
|
# assumed that no part of a normal pathname contains ";" but that should |
14716 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
14717 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14718 |
|
else |
14719 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14720 |
|
fi |
14721 |
|
else |
14722 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14723 |
|
fi |
14724 |
|
need_lib_prefix=unknown |
14725 |
|
hardcode_into_libs=no |
14726 |
|
|
14727 |
|
# when you set need_version to no, make sure it does not cause -set_version |
14728 |
|
# flags to be left without arguments |
14729 |
|
need_version=unknown |
14730 |
|
|
14731 |
|
case $host_os in |
14732 |
|
aix3*) |
14733 |
|
version_type=linux |
14734 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14735 |
|
shlibpath_var=LIBPATH |
14736 |
|
|
14737 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
14738 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14739 |
|
;; |
14740 |
|
|
14741 |
|
aix4* | aix5*) |
14742 |
|
version_type=linux |
14743 |
|
need_lib_prefix=no |
14744 |
|
need_version=no |
14745 |
|
hardcode_into_libs=yes |
14746 |
|
if test "$host_cpu" = ia64; then |
14747 |
|
# AIX 5 supports IA64 |
14748 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14749 |
|
shlibpath_var=LD_LIBRARY_PATH |
14750 |
|
else |
14751 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
14752 |
|
# for dependence libraries. The import file would start with |
14753 |
|
# the line `#! .'. This would cause the generated library to |
14754 |
|
# depend on `.', always an invalid library. This was fixed in |
14755 |
|
# development snapshots of GCC prior to 3.0. |
14756 |
|
case $host_os in |
14757 |
|
aix4 | aix4.[01] | aix4.[01].*) |
14758 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14759 |
|
echo ' yes ' |
14760 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14761 |
|
: |
14762 |
|
else |
14763 |
|
can_build_shared=no |
14764 |
|
fi |
14765 |
|
;; |
14766 |
|
esac |
14767 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14768 |
|
# soname into executable. Probably we can add versioning support to |
14769 |
|
# collect2, so additional links can be useful in future. |
14770 |
|
if test "$aix_use_runtimelinking" = yes; then |
14771 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14772 |
|
# instead of lib<name>.a to let people know that these are not |
14773 |
|
# typical AIX shared libraries. |
14774 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14775 |
|
else |
14776 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
14777 |
|
# and later when we are not doing run time linking. |
14778 |
|
library_names_spec='${libname}${release}.a $libname.a' |
14779 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14780 |
|
fi |
14781 |
|
shlibpath_var=LIBPATH |
14782 |
|
fi |
14783 |
|
;; |
14784 |
|
|
14785 |
|
amigaos*) |
14786 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
14787 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
14788 |
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
14789 |
|
;; |
14790 |
|
|
14791 |
|
beos*) |
14792 |
|
library_names_spec='${libname}${shared_ext}' |
14793 |
|
dynamic_linker="$host_os ld.so" |
14794 |
|
shlibpath_var=LIBRARY_PATH |
14795 |
|
;; |
14796 |
|
|
14797 |
|
bsdi4*) |
14798 |
|
version_type=linux |
14799 |
|
need_version=no |
14800 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14801 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14802 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14803 |
|
shlibpath_var=LD_LIBRARY_PATH |
14804 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14805 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14806 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
14807 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14808 |
|
# libtool to hard-code these into programs |
14809 |
|
;; |
14810 |
|
|
14811 |
|
cygwin* | mingw* | pw32*) |
14812 |
|
version_type=windows |
14813 |
|
shrext_cmds=".dll" |
14814 |
|
need_version=no |
14815 |
|
need_lib_prefix=no |
14816 |
|
|
14817 |
|
case $GCC,$host_os in |
14818 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
14819 |
|
library_names_spec='$libname.dll.a' |
14820 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
14821 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
14822 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14823 |
|
dldir=$destdir/`dirname \$dlpath`~ |
14824 |
|
test -d \$dldir || mkdir -p \$dldir~ |
14825 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
14826 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14827 |
|
dlpath=$dir/\$dldll~ |
14828 |
|
$rm \$dlpath' |
14829 |
|
shlibpath_overrides_runpath=yes |
14830 |
|
|
14831 |
|
case $host_os in |
14832 |
|
cygwin*) |
14833 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14834 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14835 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14836 |
|
;; |
14837 |
|
mingw*) |
14838 |
|
# MinGW DLLs use traditional 'lib' prefix |
14839 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14840 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14841 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14842 |
|
# It is most probably a Windows format PATH printed by |
14843 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
14844 |
|
# path with ; separators, and with drive letters. We can handle the |
14845 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
14846 |
|
# especially as we might pass files found there to a mingw objdump, |
14847 |
|
# which wouldn't understand a cygwinified path. Ahh. |
14848 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14849 |
|
else |
14850 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14851 |
|
fi |
14852 |
|
;; |
14853 |
|
pw32*) |
14854 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
14855 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
14856 |
|
;; |
14857 |
|
esac |
14858 |
|
;; |
14859 |
|
|
14860 |
|
*) |
14861 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14862 |
|
;; |
14863 |
|
esac |
14864 |
|
dynamic_linker='Win32 ld.exe' |
14865 |
|
# FIXME: first we should search . and the directory the executable is in |
14866 |
|
shlibpath_var=PATH |
14867 |
|
;; |
14868 |
|
|
14869 |
|
darwin* | rhapsody*) |
14870 |
|
dynamic_linker="$host_os dyld" |
14871 |
|
version_type=darwin |
14872 |
|
need_lib_prefix=no |
14873 |
|
need_version=no |
14874 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14875 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
14876 |
|
shlibpath_overrides_runpath=yes |
14877 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
14878 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
14879 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14880 |
|
if test "$GCC" = yes; then |
14881 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
14882 |
|
else |
14883 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14884 |
|
fi |
14885 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14886 |
|
;; |
14887 |
|
|
14888 |
|
dgux*) |
14889 |
|
version_type=linux |
14890 |
|
need_lib_prefix=no |
14891 |
|
need_version=no |
14892 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14893 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14894 |
|
shlibpath_var=LD_LIBRARY_PATH |
14895 |
|
;; |
14896 |
|
|
14897 |
|
freebsd1*) |
14898 |
|
dynamic_linker=no |
14899 |
|
;; |
14900 |
|
|
14901 |
|
kfreebsd*-gnu) |
14902 |
|
version_type=linux |
14903 |
|
need_lib_prefix=no |
14904 |
|
need_version=no |
14905 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14906 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14907 |
|
shlibpath_var=LD_LIBRARY_PATH |
14908 |
|
shlibpath_overrides_runpath=no |
14909 |
|
hardcode_into_libs=yes |
14910 |
|
dynamic_linker='GNU ld.so' |
14911 |
|
;; |
14912 |
|
|
14913 |
|
freebsd*) |
14914 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
14915 |
|
version_type=freebsd-$objformat |
14916 |
|
case $version_type in |
14917 |
|
freebsd-elf*) |
14918 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14919 |
|
need_version=no |
14920 |
|
need_lib_prefix=no |
14921 |
|
;; |
14922 |
|
freebsd-*) |
14923 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14924 |
|
need_version=yes |
14925 |
|
;; |
14926 |
|
esac |
14927 |
|
shlibpath_var=LD_LIBRARY_PATH |
14928 |
|
case $host_os in |
14929 |
|
freebsd2*) |
14930 |
|
shlibpath_overrides_runpath=yes |
14931 |
|
;; |
14932 |
|
freebsd3.01* | freebsdelf3.01*) |
14933 |
|
shlibpath_overrides_runpath=yes |
14934 |
|
hardcode_into_libs=yes |
14935 |
|
;; |
14936 |
|
*) # from 3.2 on |
14937 |
|
shlibpath_overrides_runpath=no |
14938 |
|
hardcode_into_libs=yes |
14939 |
|
;; |
14940 |
|
esac |
14941 |
|
;; |
14942 |
|
|
14943 |
|
gnu*) |
14944 |
|
version_type=linux |
14945 |
|
need_lib_prefix=no |
14946 |
|
need_version=no |
14947 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14948 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14949 |
|
shlibpath_var=LD_LIBRARY_PATH |
14950 |
|
hardcode_into_libs=yes |
14951 |
|
;; |
14952 |
|
|
14953 |
|
hpux9* | hpux10* | hpux11*) |
14954 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
14955 |
|
# link against other versions. |
14956 |
|
version_type=sunos |
14957 |
|
need_lib_prefix=no |
14958 |
|
need_version=no |
14959 |
|
case "$host_cpu" in |
14960 |
|
ia64*) |
14961 |
|
shrext_cmds='.so' |
14962 |
|
hardcode_into_libs=yes |
14963 |
|
dynamic_linker="$host_os dld.so" |
14964 |
|
shlibpath_var=LD_LIBRARY_PATH |
14965 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14966 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14967 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14968 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
14969 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14970 |
|
else |
14971 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14972 |
|
fi |
14973 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14974 |
|
;; |
14975 |
|
hppa*64*) |
14976 |
|
shrext_cmds='.sl' |
14977 |
|
hardcode_into_libs=yes |
14978 |
|
dynamic_linker="$host_os dld.sl" |
14979 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14980 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14981 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14982 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14983 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14984 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14985 |
|
;; |
14986 |
|
*) |
14987 |
|
shrext_cmds='.sl' |
14988 |
|
dynamic_linker="$host_os dld.sl" |
14989 |
|
shlibpath_var=SHLIB_PATH |
14990 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14991 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14992 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14993 |
|
;; |
14994 |
|
esac |
14995 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
14996 |
|
postinstall_cmds='chmod 555 $lib' |
14997 |
|
;; |
14998 |
|
|
14999 |
|
irix5* | irix6* | nonstopux*) |
15000 |
|
case $host_os in |
15001 |
|
nonstopux*) version_type=nonstopux ;; |
15002 |
|
*) |
15003 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
15004 |
|
version_type=linux |
15005 |
|
else |
15006 |
|
version_type=irix |
15007 |
|
fi ;; |
15008 |
|
esac |
15009 |
|
need_lib_prefix=no |
15010 |
|
need_version=no |
15011 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15012 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15013 |
|
case $host_os in |
15014 |
|
irix5* | nonstopux*) |
15015 |
|
libsuff= shlibsuff= |
15016 |
|
;; |
15017 |
|
*) |
15018 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
15019 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15020 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
15021 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15022 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
15023 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15024 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15025 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
15026 |
|
esac |
15027 |
|
;; |
15028 |
|
esac |
15029 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15030 |
|
shlibpath_overrides_runpath=no |
15031 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15032 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15033 |
|
hardcode_into_libs=yes |
15034 |
|
;; |
15035 |
|
|
15036 |
|
# No shared lib support for Linux oldld, aout, or coff. |
15037 |
|
linux*oldld* | linux*aout* | linux*coff*) |
15038 |
|
dynamic_linker=no |
15039 |
|
;; |
15040 |
|
|
15041 |
|
# This must be Linux ELF. |
15042 |
|
linux*) |
15043 |
|
version_type=linux |
15044 |
|
need_lib_prefix=no |
15045 |
|
need_version=no |
15046 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15047 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15048 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15049 |
|
shlibpath_var=LD_LIBRARY_PATH |
15050 |
|
shlibpath_overrides_runpath=no |
15051 |
|
# This implies no fast_install, which is unacceptable. |
15052 |
|
# Some rework will be needed to allow for fast_install |
15053 |
|
# before this can be enabled. |
15054 |
|
hardcode_into_libs=yes |
15055 |
|
|
15056 |
|
libsuff= |
15057 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
15058 |
|
libsuff=64 |
15059 |
|
fi |
15060 |
|
|
15061 |
|
# Append ld.so.conf contents to the search path |
15062 |
|
if test -f /etc/ld.so.conf; then |
15063 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
15064 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
15065 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
15066 |
|
fi |
15067 |
|
|
15068 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
15069 |
|
# powerpc, because MkLinux only supported shared libraries with the |
15070 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
15071 |
|
# most powerpc-linux boxes support dynamic linking these days and |
15072 |
|
# people can always --disable-shared, the test was removed, and we |
15073 |
|
# assume the GNU/Linux dynamic linker is in use. |
15074 |
|
dynamic_linker='GNU/Linux ld.so' |
15075 |
|
;; |
15076 |
|
|
15077 |
|
knetbsd*-gnu) |
15078 |
|
version_type=linux |
15079 |
|
need_lib_prefix=no |
15080 |
|
need_version=no |
15081 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15082 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15083 |
|
shlibpath_var=LD_LIBRARY_PATH |
15084 |
|
shlibpath_overrides_runpath=no |
15085 |
|
hardcode_into_libs=yes |
15086 |
|
dynamic_linker='GNU ld.so' |
15087 |
|
;; |
15088 |
|
|
15089 |
|
netbsd*) |
15090 |
|
version_type=sunos |
15091 |
|
need_lib_prefix=no |
15092 |
|
need_version=no |
15093 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15094 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15095 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15096 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
15097 |
|
else |
15098 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15099 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15100 |
|
dynamic_linker='NetBSD ld.elf_so' |
15101 |
|
fi |
15102 |
|
shlibpath_var=LD_LIBRARY_PATH |
15103 |
|
shlibpath_overrides_runpath=yes |
15104 |
|
hardcode_into_libs=yes |
15105 |
|
;; |
15106 |
|
|
15107 |
|
newsos6) |
15108 |
|
version_type=linux |
15109 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15110 |
|
shlibpath_var=LD_LIBRARY_PATH |
15111 |
|
shlibpath_overrides_runpath=yes |
15112 |
|
;; |
15113 |
|
|
15114 |
|
nto-qnx*) |
15115 |
|
version_type=linux |
15116 |
|
need_lib_prefix=no |
15117 |
|
need_version=no |
15118 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15119 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15120 |
|
shlibpath_var=LD_LIBRARY_PATH |
15121 |
|
shlibpath_overrides_runpath=yes |
15122 |
|
;; |
15123 |
|
|
15124 |
|
openbsd*) |
15125 |
|
version_type=sunos |
15126 |
|
need_lib_prefix=no |
15127 |
|
need_version=yes |
15128 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15129 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15130 |
|
shlibpath_var=LD_LIBRARY_PATH |
15131 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15132 |
|
case $host_os in |
15133 |
|
openbsd2.[89] | openbsd2.[89].*) |
15134 |
|
shlibpath_overrides_runpath=no |
15135 |
|
;; |
15136 |
|
*) |
15137 |
|
shlibpath_overrides_runpath=yes |
15138 |
|
;; |
15139 |
|
esac |
15140 |
|
else |
15141 |
|
shlibpath_overrides_runpath=yes |
15142 |
|
fi |
15143 |
|
;; |
15144 |
|
|
15145 |
|
os2*) |
15146 |
|
libname_spec='$name' |
15147 |
|
shrext_cmds=".dll" |
15148 |
|
need_lib_prefix=no |
15149 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
15150 |
|
dynamic_linker='OS/2 ld.exe' |
15151 |
|
shlibpath_var=LIBPATH |
15152 |
|
;; |
15153 |
|
|
15154 |
|
osf3* | osf4* | osf5*) |
15155 |
|
version_type=osf |
15156 |
|
need_lib_prefix=no |
15157 |
|
need_version=no |
15158 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15159 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15160 |
|
shlibpath_var=LD_LIBRARY_PATH |
15161 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15162 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15163 |
|
;; |
15164 |
|
|
15165 |
|
sco3.2v5*) |
15166 |
|
version_type=osf |
15167 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15168 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15169 |
|
shlibpath_var=LD_LIBRARY_PATH |
15170 |
|
;; |
15171 |
|
|
15172 |
|
solaris*) |
15173 |
|
version_type=linux |
15174 |
|
need_lib_prefix=no |
15175 |
|
need_version=no |
15176 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15177 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15178 |
|
shlibpath_var=LD_LIBRARY_PATH |
15179 |
|
shlibpath_overrides_runpath=yes |
15180 |
|
hardcode_into_libs=yes |
15181 |
|
# ldd complains unless libraries are executable |
15182 |
|
postinstall_cmds='chmod +x $lib' |
15183 |
|
;; |
15184 |
|
|
15185 |
|
sunos4*) |
15186 |
|
version_type=sunos |
15187 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15188 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15189 |
|
shlibpath_var=LD_LIBRARY_PATH |
15190 |
|
shlibpath_overrides_runpath=yes |
15191 |
|
if test "$with_gnu_ld" = yes; then |
15192 |
|
need_lib_prefix=no |
15193 |
|
fi |
15194 |
|
need_version=yes |
15195 |
|
;; |
15196 |
|
|
15197 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15198 |
|
version_type=linux |
15199 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15200 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15201 |
|
shlibpath_var=LD_LIBRARY_PATH |
15202 |
|
case $host_vendor in |
15203 |
|
sni) |
15204 |
|
shlibpath_overrides_runpath=no |
15205 |
|
need_lib_prefix=no |
15206 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
15207 |
|
runpath_var=LD_RUN_PATH |
15208 |
|
;; |
15209 |
|
siemens) |
15210 |
|
need_lib_prefix=no |
15211 |
|
;; |
15212 |
|
motorola) |
15213 |
|
need_lib_prefix=no |
15214 |
|
need_version=no |
15215 |
|
shlibpath_overrides_runpath=no |
15216 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15217 |
|
;; |
15218 |
|
esac |
15219 |
|
;; |
15220 |
|
|
15221 |
|
sysv4*MP*) |
15222 |
|
if test -d /usr/nec ;then |
15223 |
|
version_type=linux |
15224 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15225 |
|
soname_spec='$libname${shared_ext}.$major' |
15226 |
|
shlibpath_var=LD_LIBRARY_PATH |
15227 |
|
fi |
15228 |
|
;; |
15229 |
|
|
15230 |
|
uts4*) |
15231 |
|
version_type=linux |
15232 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15233 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15234 |
|
shlibpath_var=LD_LIBRARY_PATH |
15235 |
|
;; |
15236 |
|
|
15237 |
|
*) |
15238 |
|
dynamic_linker=no |
15239 |
|
;; |
15240 |
|
esac |
15241 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15242 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
15243 |
|
test "$dynamic_linker" = no && can_build_shared=no |
15244 |
|
|
15245 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15246 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15247 |
|
hardcode_action_F77= |
15248 |
|
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15249 |
|
test -n "$runpath_var F77" || \ |
15250 |
|
test "X$hardcode_automatic_F77"="Xyes" ; then |
15251 |
|
|
15252 |
|
# We can hardcode non-existant directories. |
15253 |
|
if test "$hardcode_direct_F77" != no && |
15254 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
15255 |
|
# have to relink, otherwise we might link with an installed library |
15256 |
|
# when we should be linking with a yet-to-be-installed one |
15257 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15258 |
|
test "$hardcode_minus_L_F77" != no; then |
15259 |
|
# Linking always hardcodes the temporary library directory. |
15260 |
|
hardcode_action_F77=relink |
15261 |
|
else |
15262 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
15263 |
|
hardcode_action_F77=immediate |
15264 |
|
fi |
15265 |
|
else |
15266 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
15267 |
|
# directories. |
15268 |
|
hardcode_action_F77=unsupported |
15269 |
|
fi |
15270 |
|
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15271 |
|
echo "${ECHO_T}$hardcode_action_F77" >&6 |
15272 |
|
|
15273 |
|
if test "$hardcode_action_F77" = relink; then |
15274 |
|
# Fast installation is not supported |
15275 |
|
enable_fast_install=no |
15276 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
15277 |
|
test "$enable_shared" = no; then |
15278 |
|
# Fast installation is not necessary |
15279 |
|
enable_fast_install=needless |
15280 |
|
fi |
15281 |
|
|
15282 |
|
striplib= |
15283 |
|
old_striplib= |
15284 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
15285 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
15286 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
15287 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
15288 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
15289 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15290 |
|
echo "${ECHO_T}yes" >&6 |
15291 |
|
else |
15292 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
15293 |
|
case $host_os in |
15294 |
|
darwin*) |
15295 |
|
if test -n "$STRIP" ; then |
15296 |
|
striplib="$STRIP -x" |
15297 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15298 |
|
echo "${ECHO_T}yes" >&6 |
15299 |
|
else |
15300 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15301 |
|
echo "${ECHO_T}no" >&6 |
15302 |
|
fi |
15303 |
|
;; |
15304 |
|
*) |
15305 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15306 |
|
echo "${ECHO_T}no" >&6 |
15307 |
|
;; |
15308 |
|
esac |
15309 |
|
fi |
15310 |
|
|
15311 |
|
|
15312 |
|
|
15313 |
|
# The else clause should only fire when bootstrapping the |
15314 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
15315 |
|
# with your package, and you will get complaints that there are |
15316 |
|
# no rules to generate ltmain.sh. |
15317 |
|
if test -f "$ltmain"; then |
15318 |
|
# See if we are running on zsh, and set the options which allow our commands through |
15319 |
|
# without removal of \ escapes. |
15320 |
|
if test -n "${ZSH_VERSION+set}" ; then |
15321 |
|
setopt NO_GLOB_SUBST |
15322 |
|
fi |
15323 |
|
# Now quote all the things that may contain metacharacters while being |
15324 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
15325 |
|
# variables and quote the copies for generation of the libtool script. |
15326 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
15327 |
|
SED SHELL STRIP \ |
15328 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15329 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15330 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
15331 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15332 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
15333 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15334 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
15335 |
|
compiler_F77 \ |
15336 |
|
CC_F77 \ |
15337 |
|
LD_F77 \ |
15338 |
|
lt_prog_compiler_wl_F77 \ |
15339 |
|
lt_prog_compiler_pic_F77 \ |
15340 |
|
lt_prog_compiler_static_F77 \ |
15341 |
|
lt_prog_compiler_no_builtin_flag_F77 \ |
15342 |
|
export_dynamic_flag_spec_F77 \ |
15343 |
|
thread_safe_flag_spec_F77 \ |
15344 |
|
whole_archive_flag_spec_F77 \ |
15345 |
|
enable_shared_with_static_runtimes_F77 \ |
15346 |
|
old_archive_cmds_F77 \ |
15347 |
|
old_archive_from_new_cmds_F77 \ |
15348 |
|
predep_objects_F77 \ |
15349 |
|
postdep_objects_F77 \ |
15350 |
|
predeps_F77 \ |
15351 |
|
postdeps_F77 \ |
15352 |
|
compiler_lib_search_path_F77 \ |
15353 |
|
archive_cmds_F77 \ |
15354 |
|
archive_expsym_cmds_F77 \ |
15355 |
|
postinstall_cmds_F77 \ |
15356 |
|
postuninstall_cmds_F77 \ |
15357 |
|
old_archive_from_expsyms_cmds_F77 \ |
15358 |
|
allow_undefined_flag_F77 \ |
15359 |
|
no_undefined_flag_F77 \ |
15360 |
|
export_symbols_cmds_F77 \ |
15361 |
|
hardcode_libdir_flag_spec_F77 \ |
15362 |
|
hardcode_libdir_flag_spec_ld_F77 \ |
15363 |
|
hardcode_libdir_separator_F77 \ |
15364 |
|
hardcode_automatic_F77 \ |
15365 |
|
module_cmds_F77 \ |
15366 |
|
module_expsym_cmds_F77 \ |
15367 |
|
lt_cv_prog_compiler_c_o_F77 \ |
15368 |
|
exclude_expsyms_F77 \ |
15369 |
|
include_expsyms_F77; do |
15370 |
|
|
15371 |
|
case $var in |
15372 |
|
old_archive_cmds_F77 | \ |
15373 |
|
old_archive_from_new_cmds_F77 | \ |
15374 |
|
archive_cmds_F77 | \ |
15375 |
|
archive_expsym_cmds_F77 | \ |
15376 |
|
module_cmds_F77 | \ |
15377 |
|
module_expsym_cmds_F77 | \ |
15378 |
|
old_archive_from_expsyms_cmds_F77 | \ |
15379 |
|
export_symbols_cmds_F77 | \ |
15380 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15381 |
|
postinstall_cmds | postuninstall_cmds | \ |
15382 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
15383 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15384 |
|
# Double-quote double-evaled strings. |
15385 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15386 |
|
;; |
15387 |
|
*) |
15388 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15389 |
|
;; |
15390 |
|
esac |
15391 |
|
done |
15392 |
|
|
15393 |
|
case $lt_echo in |
15394 |
|
*'\$0 --fallback-echo"') |
15395 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15396 |
|
;; |
15397 |
|
esac |
15398 |
|
|
15399 |
|
cfgfile="$ofile" |
15400 |
|
|
15401 |
|
cat <<__EOF__ >> "$cfgfile" |
15402 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15403 |
|
|
15404 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15405 |
|
|
15406 |
|
# Shell to use when invoking shell scripts. |
15407 |
|
SHELL=$lt_SHELL |
15408 |
|
|
15409 |
|
# Whether or not to build shared libraries. |
15410 |
|
build_libtool_libs=$enable_shared |
15411 |
|
|
15412 |
|
# Whether or not to build static libraries. |
15413 |
|
build_old_libs=$enable_static |
15414 |
|
|
15415 |
|
# Whether or not to add -lc for building shared libraries. |
15416 |
|
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15417 |
|
|
15418 |
|
# Whether or not to disallow shared libs when runtime libs are static |
15419 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15420 |
|
|
15421 |
|
# Whether or not to optimize for fast installation. |
15422 |
|
fast_install=$enable_fast_install |
15423 |
|
|
15424 |
|
# The host system. |
15425 |
|
host_alias=$host_alias |
15426 |
|
host=$host |
15427 |
|
|
15428 |
|
# An echo program that does not interpret backslashes. |
15429 |
|
echo=$lt_echo |
15430 |
|
|
15431 |
|
# The archiver. |
15432 |
|
AR=$lt_AR |
15433 |
|
AR_FLAGS=$lt_AR_FLAGS |
15434 |
|
|
15435 |
|
# A C compiler. |
15436 |
|
LTCC=$lt_LTCC |
15437 |
|
|
15438 |
|
# A language-specific compiler. |
15439 |
|
CC=$lt_compiler_F77 |
15440 |
|
|
15441 |
|
# Is the compiler the GNU C compiler? |
15442 |
|
with_gcc=$GCC_F77 |
15443 |
|
|
15444 |
|
# An ERE matcher. |
15445 |
|
EGREP=$lt_EGREP |
15446 |
|
|
15447 |
|
# The linker used to build libraries. |
15448 |
|
LD=$lt_LD_F77 |
15449 |
|
|
15450 |
|
# Whether we need hard or soft links. |
15451 |
|
LN_S=$lt_LN_S |
15452 |
|
|
15453 |
|
# A BSD-compatible nm program. |
15454 |
|
NM=$lt_NM |
15455 |
|
|
15456 |
|
# A symbol stripping program |
15457 |
|
STRIP=$lt_STRIP |
15458 |
|
|
15459 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
15460 |
|
MAGIC_CMD=$MAGIC_CMD |
15461 |
|
|
15462 |
|
# Used on cygwin: DLL creation program. |
15463 |
|
DLLTOOL="$DLLTOOL" |
15464 |
|
|
15465 |
|
# Used on cygwin: object dumper. |
15466 |
|
OBJDUMP="$OBJDUMP" |
15467 |
|
|
15468 |
|
# Used on cygwin: assembler. |
15469 |
|
AS="$AS" |
15470 |
|
|
15471 |
|
# The name of the directory that contains temporary libtool files. |
15472 |
|
objdir=$objdir |
15473 |
|
|
15474 |
|
# How to create reloadable object files. |
15475 |
|
reload_flag=$lt_reload_flag |
15476 |
|
reload_cmds=$lt_reload_cmds |
15477 |
|
|
15478 |
|
# How to pass a linker flag through the compiler. |
15479 |
|
wl=$lt_lt_prog_compiler_wl_F77 |
15480 |
|
|
15481 |
|
# Object file suffix (normally "o"). |
15482 |
|
objext="$ac_objext" |
15483 |
|
|
15484 |
|
# Old archive suffix (normally "a"). |
15485 |
|
libext="$libext" |
15486 |
|
|
15487 |
|
# Shared library suffix (normally ".so"). |
15488 |
|
shrext_cmds='$shrext_cmds' |
15489 |
|
|
15490 |
|
# Executable file suffix (normally ""). |
15491 |
|
exeext="$exeext" |
15492 |
|
|
15493 |
|
# Additional compiler flags for building library objects. |
15494 |
|
pic_flag=$lt_lt_prog_compiler_pic_F77 |
15495 |
|
pic_mode=$pic_mode |
15496 |
|
|
15497 |
|
# What is the maximum length of a command? |
15498 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
15499 |
|
|
15500 |
|
# Does compiler simultaneously support -c and -o options? |
15501 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15502 |
|
|
15503 |
|
# Must we lock files when doing compilation ? |
15504 |
|
need_locks=$lt_need_locks |
15505 |
|
|
15506 |
|
# Do we need the lib prefix for modules? |
15507 |
|
need_lib_prefix=$need_lib_prefix |
15508 |
|
|
15509 |
|
# Do we need a version for libraries? |
15510 |
|
need_version=$need_version |
15511 |
|
|
15512 |
|
# Whether dlopen is supported. |
15513 |
|
dlopen_support=$enable_dlopen |
15514 |
|
|
15515 |
|
# Whether dlopen of programs is supported. |
15516 |
|
dlopen_self=$enable_dlopen_self |
15517 |
|
|
15518 |
|
# Whether dlopen of statically linked programs is supported. |
15519 |
|
dlopen_self_static=$enable_dlopen_self_static |
15520 |
|
|
15521 |
|
# Compiler flag to prevent dynamic linking. |
15522 |
|
link_static_flag=$lt_lt_prog_compiler_static_F77 |
15523 |
|
|
15524 |
|
# Compiler flag to turn off builtin functions. |
15525 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15526 |
|
|
15527 |
|
# Compiler flag to allow reflexive dlopens. |
15528 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15529 |
|
|
15530 |
|
# Compiler flag to generate shared objects directly from archives. |
15531 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15532 |
|
|
15533 |
|
# Compiler flag to generate thread-safe objects. |
15534 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15535 |
|
|
15536 |
|
# Library versioning type. |
15537 |
|
version_type=$version_type |
15538 |
|
|
15539 |
|
# Format of library name prefix. |
15540 |
|
libname_spec=$lt_libname_spec |
15541 |
|
|
15542 |
|
# List of archive names. First name is the real one, the rest are links. |
15543 |
|
# The last name is the one that the linker finds with -lNAME. |
15544 |
|
library_names_spec=$lt_library_names_spec |
15545 |
|
|
15546 |
|
# The coded name of the library, if different from the real name. |
15547 |
|
soname_spec=$lt_soname_spec |
15548 |
|
|
15549 |
|
# Commands used to build and install an old-style archive. |
15550 |
|
RANLIB=$lt_RANLIB |
15551 |
|
old_archive_cmds=$lt_old_archive_cmds_F77 |
15552 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
15553 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15554 |
|
|
15555 |
|
# Create an old-style archive from a shared archive. |
15556 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15557 |
|
|
15558 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
15559 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15560 |
|
|
15561 |
|
# Commands used to build and install a shared archive. |
15562 |
|
archive_cmds=$lt_archive_cmds_F77 |
15563 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15564 |
|
postinstall_cmds=$lt_postinstall_cmds |
15565 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
15566 |
|
|
15567 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
15568 |
|
module_cmds=$lt_module_cmds_F77 |
15569 |
|
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15570 |
|
|
15571 |
|
# Commands to strip libraries. |
15572 |
|
old_striplib=$lt_old_striplib |
15573 |
|
striplib=$lt_striplib |
15574 |
|
|
15575 |
|
# Dependencies to place before the objects being linked to create a |
15576 |
|
# shared library. |
15577 |
|
predep_objects=$lt_predep_objects_F77 |
15578 |
|
|
15579 |
|
# Dependencies to place after the objects being linked to create a |
15580 |
|
# shared library. |
15581 |
|
postdep_objects=$lt_postdep_objects_F77 |
15582 |
|
|
15583 |
|
# Dependencies to place before the objects being linked to create a |
15584 |
|
# shared library. |
15585 |
|
predeps=$lt_predeps_F77 |
15586 |
|
|
15587 |
|
# Dependencies to place after the objects being linked to create a |
15588 |
|
# shared library. |
15589 |
|
postdeps=$lt_postdeps_F77 |
15590 |
|
|
15591 |
|
# The library search path used internally by the compiler when linking |
15592 |
|
# a shared library. |
15593 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
15594 |
|
|
15595 |
|
# Method to check whether dependent libraries are shared objects. |
15596 |
|
deplibs_check_method=$lt_deplibs_check_method |
15597 |
|
|
15598 |
|
# Command to use when deplibs_check_method == file_magic. |
15599 |
|
file_magic_cmd=$lt_file_magic_cmd |
15600 |
|
|
15601 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
15602 |
|
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15603 |
|
|
15604 |
|
# Flag that forces no undefined symbols. |
15605 |
|
no_undefined_flag=$lt_no_undefined_flag_F77 |
15606 |
|
|
15607 |
|
# Commands used to finish a libtool library installation in a directory. |
15608 |
|
finish_cmds=$lt_finish_cmds |
15609 |
|
|
15610 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
15611 |
|
finish_eval=$lt_finish_eval |
15612 |
|
|
15613 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
15614 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15615 |
|
|
15616 |
|
# Transform the output of nm in a proper C declaration |
15617 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15618 |
|
|
15619 |
|
# Transform the output of nm in a C name address pair |
15620 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15621 |
|
|
15622 |
|
# This is the shared library runtime path variable. |
15623 |
|
runpath_var=$runpath_var |
15624 |
|
|
15625 |
|
# This is the shared library path variable. |
15626 |
|
shlibpath_var=$shlibpath_var |
15627 |
|
|
15628 |
|
# Is shlibpath searched before the hard-coded library search path? |
15629 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15630 |
|
|
15631 |
|
# How to hardcode a shared library path into an executable. |
15632 |
|
hardcode_action=$hardcode_action_F77 |
15633 |
|
|
15634 |
|
# Whether we should hardcode library paths into libraries. |
15635 |
|
hardcode_into_libs=$hardcode_into_libs |
15636 |
|
|
15637 |
|
# Flag to hardcode \$libdir into a binary during linking. |
15638 |
|
# This must work even if \$libdir does not exist. |
15639 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15640 |
|
|
15641 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
15642 |
|
# a binary during linking. This must work even if \$libdir does |
15643 |
|
# not exist. |
15644 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15645 |
|
|
15646 |
|
# Whether we need a single -rpath flag with a separated argument. |
15647 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15648 |
|
|
15649 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15650 |
|
# resulting binary. |
15651 |
|
hardcode_direct=$hardcode_direct_F77 |
15652 |
|
|
15653 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15654 |
|
# resulting binary. |
15655 |
|
hardcode_minus_L=$hardcode_minus_L_F77 |
15656 |
|
|
15657 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15658 |
|
# the resulting binary. |
15659 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15660 |
|
|
15661 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
15662 |
|
# and all subsequent libraries and executables linked against it. |
15663 |
|
hardcode_automatic=$hardcode_automatic_F77 |
15664 |
|
|
15665 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
15666 |
|
# restored at relink time. |
15667 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
15668 |
|
|
15669 |
|
# Whether libtool must link a program against all its dependency libraries. |
15670 |
|
link_all_deplibs=$link_all_deplibs_F77 |
15671 |
|
|
15672 |
|
# Compile-time system search path for libraries |
15673 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
15674 |
|
|
15675 |
|
# Run-time system search path for libraries |
15676 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15677 |
|
|
15678 |
|
# Fix the shell variable \$srcfile for the compiler. |
15679 |
|
fix_srcfile_path="$fix_srcfile_path_F77" |
15680 |
|
|
15681 |
|
# Set to yes if exported symbols are required. |
15682 |
|
always_export_symbols=$always_export_symbols_F77 |
15683 |
|
|
15684 |
|
# The commands to list exported symbols. |
15685 |
|
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15686 |
|
|
15687 |
|
# The commands to extract the exported symbol list from a shared archive. |
15688 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15689 |
|
|
15690 |
|
# Symbols that should not be listed in the preloaded symbols. |
15691 |
|
exclude_expsyms=$lt_exclude_expsyms_F77 |
15692 |
|
|
15693 |
|
# Symbols that must always be exported. |
15694 |
|
include_expsyms=$lt_include_expsyms_F77 |
15695 |
|
|
15696 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
15697 |
|
|
15698 |
|
__EOF__ |
15699 |
|
|
15700 |
|
|
15701 |
|
else |
15702 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
15703 |
|
# `config.status --recheck' to rerun these tests and create the |
15704 |
|
# libtool script then. |
15705 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15706 |
|
if test -f "$ltmain_in"; then |
15707 |
|
test -f Makefile && make "$ltmain" |
15708 |
|
fi |
15709 |
|
fi |
15710 |
|
|
15711 |
|
|
15712 |
|
ac_ext=c |
15713 |
|
ac_cpp='$CPP $CPPFLAGS' |
15714 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15715 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15716 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15717 |
|
|
15718 |
|
CC="$lt_save_CC" |
15719 |
|
|
15720 |
|
else |
15721 |
|
tagname="" |
15722 |
|
fi |
15723 |
|
;; |
15724 |
|
|
15725 |
|
GCJ) |
15726 |
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15727 |
|
|
15728 |
|
|
15729 |
|
|
15730 |
|
# Source file extension for Java test sources. |
15731 |
|
ac_ext=java |
15732 |
|
|
15733 |
|
# Object file extension for compiled Java test sources. |
15734 |
|
objext=o |
15735 |
|
objext_GCJ=$objext |
15736 |
|
|
15737 |
|
# Code to be used in simple compile tests |
15738 |
|
lt_simple_compile_test_code="class foo {}\n" |
15739 |
|
|
15740 |
|
# Code to be used in simple link tests |
15741 |
|
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
15742 |
|
|
15743 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15744 |
|
|
15745 |
|
# If no C compiler was specified, use CC. |
15746 |
|
LTCC=${LTCC-"$CC"} |
15747 |
|
|
15748 |
|
# Allow CC to be a program name with arguments. |
15749 |
|
compiler=$CC |
15750 |
|
|
15751 |
|
|
15752 |
|
# Allow CC to be a program name with arguments. |
15753 |
|
lt_save_CC="$CC" |
15754 |
|
CC=${GCJ-"gcj"} |
15755 |
|
compiler=$CC |
15756 |
|
compiler_GCJ=$CC |
15757 |
|
|
15758 |
|
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
15759 |
|
archive_cmds_need_lc_GCJ=no |
15760 |
|
|
15761 |
|
|
15762 |
|
lt_prog_compiler_no_builtin_flag_GCJ= |
15763 |
|
|
15764 |
|
if test "$GCC" = yes; then |
15765 |
|
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15766 |
|
|
15767 |
|
|
15768 |
|
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15769 |
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15770 |
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15771 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
15772 |
|
else |
15773 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
15774 |
|
ac_outfile=conftest.$ac_objext |
15775 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15776 |
|
lt_compiler_flag="-fno-rtti -fno-exceptions" |
15777 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
15778 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
15779 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
15780 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
15781 |
|
# The option is referenced via a variable to avoid confusing sed. |
15782 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
15783 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
15784 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15785 |
|
-e 's:$: $lt_compiler_flag:'` |
15786 |
|
(eval echo "\"\$as_me:15786: $lt_compile\"" >&5) |
15787 |
|
(eval "$lt_compile" 2>conftest.err) |
15788 |
|
ac_status=$? |
15789 |
|
cat conftest.err >&5 |
15790 |
|
echo "$as_me:15790: \$? = $ac_status" >&5 |
15791 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
15792 |
|
# The compiler can only warn and ignore the option if not recognized |
15793 |
|
# So say no if there are warnings |
15794 |
|
if test ! -s conftest.err; then |
15795 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
15796 |
|
fi |
15797 |
|
fi |
15798 |
|
$rm conftest* |
15799 |
|
|
15800 |
|
fi |
15801 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15802 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15803 |
|
|
15804 |
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15805 |
|
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15806 |
|
else |
15807 |
|
: |
15808 |
|
fi |
15809 |
|
|
15810 |
|
fi |
15811 |
|
|
15812 |
|
lt_prog_compiler_wl_GCJ= |
15813 |
|
lt_prog_compiler_pic_GCJ= |
15814 |
|
lt_prog_compiler_static_GCJ= |
15815 |
|
|
15816 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15817 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15818 |
|
|
15819 |
|
if test "$GCC" = yes; then |
15820 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15821 |
|
lt_prog_compiler_static_GCJ='-static' |
15822 |
|
|
15823 |
|
case $host_os in |
15824 |
|
aix*) |
15825 |
|
# All AIX code is PIC. |
15826 |
|
if test "$host_cpu" = ia64; then |
15827 |
|
# AIX 5 now supports IA64 processor |
15828 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15829 |
|
fi |
15830 |
|
;; |
15831 |
|
|
15832 |
|
amigaos*) |
15833 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
15834 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
15835 |
|
# like `-m68040'. |
15836 |
|
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15837 |
|
;; |
15838 |
|
|
15839 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15840 |
|
# PIC is the default for these OSes. |
15841 |
|
;; |
15842 |
|
|
15843 |
|
mingw* | pw32* | os2*) |
15844 |
|
# This hack is so that the source file can tell whether it is being |
15845 |
|
# built for inclusion in a dll (and should export symbols for example). |
15846 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15847 |
|
;; |
15848 |
|
|
15849 |
|
darwin* | rhapsody*) |
15850 |
|
# PIC is the default on this platform |
15851 |
|
# Common symbols not allowed in MH_DYLIB files |
15852 |
|
lt_prog_compiler_pic_GCJ='-fno-common' |
15853 |
|
;; |
15854 |
|
|
15855 |
|
msdosdjgpp*) |
15856 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
15857 |
|
# on systems that don't support them. |
15858 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
15859 |
|
enable_shared=no |
15860 |
|
;; |
15861 |
|
|
15862 |
|
sysv4*MP*) |
15863 |
|
if test -d /usr/nec; then |
15864 |
|
lt_prog_compiler_pic_GCJ=-Kconform_pic |
15865 |
|
fi |
15866 |
|
;; |
15867 |
|
|
15868 |
|
hpux*) |
15869 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15870 |
|
# not for PA HP-UX. |
15871 |
|
case "$host_cpu" in |
15872 |
|
hppa*64*|ia64*) |
15873 |
|
# +Z the default |
15874 |
|
;; |
15875 |
|
*) |
15876 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
15877 |
|
;; |
15878 |
|
esac |
15879 |
|
;; |
15880 |
|
|
15881 |
|
*) |
15882 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
15883 |
|
;; |
15884 |
|
esac |
15885 |
|
else |
15886 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
15887 |
|
case $host_os in |
15888 |
|
aix*) |
15889 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15890 |
|
if test "$host_cpu" = ia64; then |
15891 |
|
# AIX 5 now supports IA64 processor |
15892 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15893 |
|
else |
15894 |
|
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15895 |
|
fi |
15896 |
|
;; |
15897 |
|
|
15898 |
|
mingw* | pw32* | os2*) |
15899 |
|
# This hack is so that the source file can tell whether it is being |
15900 |
|
# built for inclusion in a dll (and should export symbols for example). |
15901 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15902 |
|
;; |
15903 |
|
|
15904 |
|
hpux9* | hpux10* | hpux11*) |
15905 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15906 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15907 |
|
# not for PA HP-UX. |
15908 |
|
case "$host_cpu" in |
15909 |
|
hppa*64*|ia64*) |
15910 |
|
# +Z the default |
15911 |
|
;; |
15912 |
|
*) |
15913 |
|
lt_prog_compiler_pic_GCJ='+Z' |
15914 |
|
;; |
15915 |
|
esac |
15916 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
15917 |
|
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15918 |
|
;; |
15919 |
|
|
15920 |
|
irix5* | irix6* | nonstopux*) |
15921 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15922 |
|
# PIC (with -KPIC) is the default. |
15923 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15924 |
|
;; |
15925 |
|
|
15926 |
|
newsos6) |
15927 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15928 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15929 |
|
;; |
15930 |
|
|
15931 |
|
linux*) |
15932 |
|
case $CC in |
15933 |
|
icc* | ecc*) |
15934 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15935 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15936 |
|
lt_prog_compiler_static_GCJ='-static' |
15937 |
|
;; |
15938 |
|
ccc*) |
15939 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15940 |
|
# All Alpha code is PIC. |
15941 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15942 |
|
;; |
15943 |
|
esac |
15944 |
|
;; |
15945 |
|
|
15946 |
|
osf3* | osf4* | osf5*) |
15947 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15948 |
|
# All OSF/1 code is PIC. |
15949 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15950 |
|
;; |
15951 |
|
|
15952 |
|
sco3.2v5*) |
15953 |
|
lt_prog_compiler_pic_GCJ='-Kpic' |
15954 |
|
lt_prog_compiler_static_GCJ='-dn' |
15955 |
|
;; |
15956 |
|
|
15957 |
|
solaris*) |
15958 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15959 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15960 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15961 |
|
;; |
15962 |
|
|
15963 |
|
sunos4*) |
15964 |
|
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15965 |
|
lt_prog_compiler_pic_GCJ='-PIC' |
15966 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15967 |
|
;; |
15968 |
|
|
15969 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15970 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15971 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15972 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15973 |
|
;; |
15974 |
|
|
15975 |
|
sysv4*MP*) |
15976 |
|
if test -d /usr/nec ;then |
15977 |
|
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15978 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15979 |
|
fi |
15980 |
|
;; |
15981 |
|
|
15982 |
|
uts4*) |
15983 |
|
lt_prog_compiler_pic_GCJ='-pic' |
15984 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15985 |
|
;; |
15986 |
|
|
15987 |
|
*) |
15988 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
15989 |
|
;; |
15990 |
|
esac |
15991 |
|
fi |
15992 |
|
|
15993 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15994 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15995 |
|
|
15996 |
|
# |
15997 |
|
# Check to make sure the PIC flag actually works. |
15998 |
|
# |
15999 |
|
if test -n "$lt_prog_compiler_pic_GCJ"; then |
16000 |
|
|
16001 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16002 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
16003 |
|
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16004 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16005 |
|
else |
16006 |
|
lt_prog_compiler_pic_works_GCJ=no |
16007 |
|
ac_outfile=conftest.$ac_objext |
16008 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16009 |
|
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16010 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16011 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16012 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16013 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16014 |
|
# The option is referenced via a variable to avoid confusing sed. |
16015 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16016 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16017 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16018 |
|
-e 's:$: $lt_compiler_flag:'` |
16019 |
|
(eval echo "\"\$as_me:16019: $lt_compile\"" >&5) |
16020 |
|
(eval "$lt_compile" 2>conftest.err) |
16021 |
|
ac_status=$? |
16022 |
|
cat conftest.err >&5 |
16023 |
|
echo "$as_me:16023: \$? = $ac_status" >&5 |
16024 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
16025 |
|
# The compiler can only warn and ignore the option if not recognized |
16026 |
|
# So say no if there are warnings |
16027 |
|
if test ! -s conftest.err; then |
16028 |
|
lt_prog_compiler_pic_works_GCJ=yes |
16029 |
|
fi |
16030 |
|
fi |
16031 |
|
$rm conftest* |
16032 |
|
|
16033 |
|
fi |
16034 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16035 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
16036 |
|
|
16037 |
|
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16038 |
|
case $lt_prog_compiler_pic_GCJ in |
16039 |
|
"" | " "*) ;; |
16040 |
|
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16041 |
|
esac |
16042 |
|
else |
16043 |
|
lt_prog_compiler_pic_GCJ= |
16044 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
16045 |
|
fi |
16046 |
|
|
16047 |
|
fi |
16048 |
|
case "$host_os" in |
16049 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
16050 |
|
*djgpp*) |
16051 |
|
lt_prog_compiler_pic_GCJ= |
16052 |
|
;; |
16053 |
|
*) |
16054 |
|
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16055 |
|
;; |
16056 |
|
esac |
16057 |
|
|
16058 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16059 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16060 |
|
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16061 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16062 |
|
else |
16063 |
|
lt_cv_prog_compiler_c_o_GCJ=no |
16064 |
|
$rm -r conftest 2>/dev/null |
16065 |
|
mkdir conftest |
16066 |
|
cd conftest |
16067 |
|
mkdir out |
16068 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16069 |
|
|
16070 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
16071 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16072 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16073 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16074 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16075 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16076 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16077 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16078 |
|
-e 's:$: $lt_compiler_flag:'` |
16079 |
|
(eval echo "\"\$as_me:16079: $lt_compile\"" >&5) |
16080 |
|
(eval "$lt_compile" 2>out/conftest.err) |
16081 |
|
ac_status=$? |
16082 |
|
cat out/conftest.err >&5 |
16083 |
|
echo "$as_me:16083: \$? = $ac_status" >&5 |
16084 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16085 |
|
then |
16086 |
|
# The compiler can only warn and ignore the option if not recognized |
16087 |
|
# So say no if there are warnings |
16088 |
|
if test ! -s out/conftest.err; then |
16089 |
|
lt_cv_prog_compiler_c_o_GCJ=yes |
16090 |
|
fi |
16091 |
|
fi |
16092 |
|
chmod u+w . |
16093 |
|
$rm conftest* |
16094 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
16095 |
|
# template instantiation |
16096 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16097 |
|
$rm out/* && rmdir out |
16098 |
|
cd .. |
16099 |
|
rmdir conftest |
16100 |
|
$rm conftest* |
16101 |
|
|
16102 |
|
fi |
16103 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16104 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16105 |
|
|
16106 |
|
|
16107 |
|
hard_links="nottested" |
16108 |
|
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16109 |
|
# do not overwrite the value of need_locks provided by the user |
16110 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16111 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16112 |
|
hard_links=yes |
16113 |
|
$rm conftest* |
16114 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16115 |
|
touch conftest.a |
16116 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
16117 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16118 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
16119 |
|
echo "${ECHO_T}$hard_links" >&6 |
16120 |
|
if test "$hard_links" = no; then |
16121 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16122 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16123 |
|
need_locks=warn |
16124 |
|
fi |
16125 |
|
else |
16126 |
|
need_locks=no |
16127 |
|
fi |
16128 |
|
|
16129 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16130 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16131 |
|
|
16132 |
|
runpath_var= |
16133 |
|
allow_undefined_flag_GCJ= |
16134 |
|
enable_shared_with_static_runtimes_GCJ=no |
16135 |
|
archive_cmds_GCJ= |
16136 |
|
archive_expsym_cmds_GCJ= |
16137 |
|
old_archive_From_new_cmds_GCJ= |
16138 |
|
old_archive_from_expsyms_cmds_GCJ= |
16139 |
|
export_dynamic_flag_spec_GCJ= |
16140 |
|
whole_archive_flag_spec_GCJ= |
16141 |
|
thread_safe_flag_spec_GCJ= |
16142 |
|
hardcode_libdir_flag_spec_GCJ= |
16143 |
|
hardcode_libdir_flag_spec_ld_GCJ= |
16144 |
|
hardcode_libdir_separator_GCJ= |
16145 |
|
hardcode_direct_GCJ=no |
16146 |
|
hardcode_minus_L_GCJ=no |
16147 |
|
hardcode_shlibpath_var_GCJ=unsupported |
16148 |
|
link_all_deplibs_GCJ=unknown |
16149 |
|
hardcode_automatic_GCJ=no |
16150 |
|
module_cmds_GCJ= |
16151 |
|
module_expsym_cmds_GCJ= |
16152 |
|
always_export_symbols_GCJ=no |
16153 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16154 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
16155 |
|
# included in the symbol list |
16156 |
|
include_expsyms_GCJ= |
16157 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
16158 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
16159 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16160 |
|
# as well as any symbol that contains `d'. |
16161 |
|
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16162 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16163 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
16164 |
|
# the symbol is explicitly referenced. Since portable code cannot |
16165 |
|
# rely on this symbol name, it's probably fine to never include it in |
16166 |
|
# preloaded symbol tables. |
16167 |
|
extract_expsyms_cmds= |
16168 |
|
|
16169 |
|
case $host_os in |
16170 |
|
cygwin* | mingw* | pw32*) |
16171 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
16172 |
|
# When not using gcc, we currently assume that we are using |
16173 |
|
# Microsoft Visual C++. |
16174 |
|
if test "$GCC" != yes; then |
16175 |
|
with_gnu_ld=no |
16176 |
|
fi |
16177 |
|
;; |
16178 |
|
openbsd*) |
16179 |
|
with_gnu_ld=no |
16180 |
|
;; |
16181 |
|
esac |
16182 |
|
|
16183 |
|
ld_shlibs_GCJ=yes |
16184 |
|
if test "$with_gnu_ld" = yes; then |
16185 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
16186 |
|
wlarc='${wl}' |
16187 |
|
|
16188 |
|
# See if GNU ld supports shared libraries. |
16189 |
|
case $host_os in |
16190 |
|
aix3* | aix4* | aix5*) |
16191 |
|
# On AIX/PPC, the GNU linker is very broken |
16192 |
|
if test "$host_cpu" != ia64; then |
16193 |
|
ld_shlibs_GCJ=no |
16194 |
|
cat <<EOF 1>&2 |
16195 |
|
|
16196 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16197 |
|
*** to be unable to reliably create shared libraries on AIX. |
16198 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
16199 |
|
*** really care for shared libraries, you may want to modify your PATH |
16200 |
|
*** so that a non-GNU linker is found, and then restart. |
16201 |
|
|
16202 |
|
EOF |
16203 |
|
fi |
16204 |
|
;; |
16205 |
|
|
16206 |
|
amigaos*) |
16207 |
|
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
16208 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16209 |
|
hardcode_minus_L_GCJ=yes |
16210 |
|
|
16211 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16212 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
16213 |
|
# to version 4, is to share data among multiple programs linked |
16214 |
|
# with the same dynamic library. Since this doesn't match the |
16215 |
|
# behavior of shared libraries on other platforms, we can't use |
16216 |
|
# them. |
16217 |
|
ld_shlibs_GCJ=no |
16218 |
|
;; |
16219 |
|
|
16220 |
|
beos*) |
16221 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16222 |
|
allow_undefined_flag_GCJ=unsupported |
16223 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16224 |
|
# support --undefined. This deserves some investigation. FIXME |
16225 |
|
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16226 |
|
else |
16227 |
|
ld_shlibs_GCJ=no |
16228 |
|
fi |
16229 |
|
;; |
16230 |
|
|
16231 |
|
cygwin* | mingw* | pw32*) |
16232 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16233 |
|
# as there is no search path for DLLs. |
16234 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16235 |
|
allow_undefined_flag_GCJ=unsupported |
16236 |
|
always_export_symbols_GCJ=no |
16237 |
|
enable_shared_with_static_runtimes_GCJ=yes |
16238 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16239 |
|
|
16240 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16241 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16242 |
|
# If the export-symbols file already is a .def file (1st line |
16243 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
16244 |
|
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16245 |
|
cp $export_symbols $output_objdir/$soname.def; |
16246 |
|
else |
16247 |
|
echo EXPORTS > $output_objdir/$soname.def; |
16248 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
16249 |
|
fi~ |
16250 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16251 |
|
else |
16252 |
|
ld_shlibs=no |
16253 |
|
fi |
16254 |
|
;; |
16255 |
|
|
16256 |
|
netbsd*) |
16257 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16258 |
|
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16259 |
|
wlarc= |
16260 |
|
else |
16261 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16262 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16263 |
|
fi |
16264 |
|
;; |
16265 |
|
|
16266 |
|
solaris* | sysv5*) |
16267 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16268 |
|
ld_shlibs_GCJ=no |
16269 |
|
cat <<EOF 1>&2 |
16270 |
|
|
16271 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16272 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
16273 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
16274 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
16275 |
|
*** your PATH or compiler configuration so that the native linker is |
16276 |
|
*** used, and then restart. |
16277 |
|
|
16278 |
|
EOF |
16279 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16280 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16281 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16282 |
|
else |
16283 |
|
ld_shlibs_GCJ=no |
16284 |
|
fi |
16285 |
|
;; |
16286 |
|
|
16287 |
|
sunos4*) |
16288 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16289 |
|
wlarc= |
16290 |
|
hardcode_direct_GCJ=yes |
16291 |
|
hardcode_shlibpath_var_GCJ=no |
16292 |
|
;; |
16293 |
|
|
16294 |
|
linux*) |
16295 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16296 |
|
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16297 |
|
archive_cmds_GCJ="$tmp_archive_cmds" |
16298 |
|
supports_anon_versioning=no |
16299 |
|
case `$LD -v 2>/dev/null` in |
16300 |
|
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16301 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16302 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16303 |
|
*\ 2.11.*) ;; # other 2.11 versions |
16304 |
|
*) supports_anon_versioning=yes ;; |
16305 |
|
esac |
16306 |
|
if test $supports_anon_versioning = yes; then |
16307 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16308 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16309 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
16310 |
|
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16311 |
|
else |
16312 |
|
archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
16313 |
|
fi |
16314 |
|
else |
16315 |
|
ld_shlibs_GCJ=no |
16316 |
|
fi |
16317 |
|
;; |
16318 |
|
|
16319 |
|
*) |
16320 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16321 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16322 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16323 |
|
else |
16324 |
|
ld_shlibs_GCJ=no |
16325 |
|
fi |
16326 |
|
;; |
16327 |
|
esac |
16328 |
|
|
16329 |
|
if test "$ld_shlibs_GCJ" = yes; then |
16330 |
|
runpath_var=LD_RUN_PATH |
16331 |
|
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16332 |
|
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16333 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
16334 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16335 |
|
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16336 |
|
else |
16337 |
|
whole_archive_flag_spec_GCJ= |
16338 |
|
fi |
16339 |
|
fi |
16340 |
|
else |
16341 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
16342 |
|
case $host_os in |
16343 |
|
aix3*) |
16344 |
|
allow_undefined_flag_GCJ=unsupported |
16345 |
|
always_export_symbols_GCJ=yes |
16346 |
|
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
16347 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
16348 |
|
# are no directories specified by -L. |
16349 |
|
hardcode_minus_L_GCJ=yes |
16350 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
16351 |
|
# Neither direct hardcoding nor static linking is supported with a |
16352 |
|
# broken collect2. |
16353 |
|
hardcode_direct_GCJ=unsupported |
16354 |
|
fi |
16355 |
|
;; |
16356 |
|
|
16357 |
|
aix4* | aix5*) |
16358 |
|
if test "$host_cpu" = ia64; then |
16359 |
|
# On IA64, the linker does run time linking by default, so we don't |
16360 |
|
# have to do anything special. |
16361 |
|
aix_use_runtimelinking=no |
16362 |
|
exp_sym_flag='-Bexport' |
16363 |
|
no_entry_flag="" |
16364 |
|
else |
16365 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
16366 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
16367 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16368 |
|
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
16369 |
|
else |
16370 |
|
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
16371 |
|
fi |
16372 |
|
aix_use_runtimelinking=no |
16373 |
|
|
16374 |
|
# Test if we are trying to use run time linking or normal |
16375 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16376 |
|
# need to do runtime linking. |
16377 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16378 |
|
for ld_flag in $LDFLAGS; do |
16379 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16380 |
|
aix_use_runtimelinking=yes |
16381 |
|
break |
16382 |
|
fi |
16383 |
|
done |
16384 |
|
esac |
16385 |
|
|
16386 |
|
exp_sym_flag='-bexport' |
16387 |
|
no_entry_flag='-bnoentry' |
16388 |
|
fi |
16389 |
|
|
16390 |
|
# When large executables or shared objects are built, AIX ld can |
16391 |
|
# have problems creating the table of contents. If linking a library |
16392 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
16393 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16394 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16395 |
|
|
16396 |
|
archive_cmds_GCJ='' |
16397 |
|
hardcode_direct_GCJ=yes |
16398 |
|
hardcode_libdir_separator_GCJ=':' |
16399 |
|
link_all_deplibs_GCJ=yes |
16400 |
|
|
16401 |
|
if test "$GCC" = yes; then |
16402 |
|
case $host_os in aix4.012|aix4.012.*) |
16403 |
|
# We only want to do this on AIX 4.2 and lower, the check |
16404 |
|
# below for broken collect2 doesn't work under 4.3+ |
16405 |
|
collect2name=`${CC} -print-prog-name=collect2` |
16406 |
|
if test -f "$collect2name" && \ |
16407 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
16408 |
|
then |
16409 |
|
# We have reworked collect2 |
16410 |
|
hardcode_direct_GCJ=yes |
16411 |
|
else |
16412 |
|
# We have old collect2 |
16413 |
|
hardcode_direct_GCJ=unsupported |
16414 |
|
# It fails to find uninstalled libraries when the uninstalled |
16415 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
16416 |
|
# to unsupported forces relinking |
16417 |
|
hardcode_minus_L_GCJ=yes |
16418 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16419 |
|
hardcode_libdir_separator_GCJ= |
16420 |
|
fi |
16421 |
|
esac |
16422 |
|
shared_flag='-shared' |
16423 |
|
else |
16424 |
|
# not using gcc |
16425 |
|
if test "$host_cpu" = ia64; then |
16426 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16427 |
|
# chokes on -Wl,-G. The following line is correct: |
16428 |
|
shared_flag='-G' |
16429 |
|
else |
16430 |
|
if test "$aix_use_runtimelinking" = yes; then |
16431 |
|
shared_flag='${wl}-G' |
16432 |
|
else |
16433 |
|
shared_flag='${wl}-bM:SRE' |
16434 |
|
fi |
16435 |
|
fi |
16436 |
|
fi |
16437 |
|
|
16438 |
|
# It seems that -bexpall does not export symbols beginning with |
16439 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
16440 |
|
always_export_symbols_GCJ=yes |
16441 |
|
if test "$aix_use_runtimelinking" = yes; then |
16442 |
|
# Warning - without using the other runtime loading flags (-brtl), |
16443 |
|
# -berok will link without error, but may produce a broken library. |
16444 |
|
allow_undefined_flag_GCJ='-berok' |
16445 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16446 |
|
cat >conftest.$ac_ext <<_ACEOF |
16447 |
|
/* confdefs.h. */ |
16448 |
|
_ACEOF |
16449 |
|
cat confdefs.h >>conftest.$ac_ext |
16450 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16451 |
|
/* end confdefs.h. */ |
16452 |
|
|
16453 |
|
int |
16454 |
|
main () |
16455 |
|
{ |
16456 |
|
|
16457 |
|
; |
16458 |
|
return 0; |
16459 |
|
} |
16460 |
|
_ACEOF |
16461 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16462 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16463 |
|
(eval $ac_link) 2>conftest.er1 |
16464 |
|
ac_status=$? |
16465 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16466 |
|
rm -f conftest.er1 |
16467 |
|
cat conftest.err >&5 |
16468 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16469 |
|
(exit $ac_status); } && |
16470 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16471 |
|
|| test ! -s conftest.err' |
16472 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16473 |
|
(eval $ac_try) 2>&5 |
16474 |
|
ac_status=$? |
16475 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16476 |
|
(exit $ac_status); }; } && |
16477 |
|
{ ac_try='test -s conftest$ac_exeext' |
16478 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16479 |
|
(eval $ac_try) 2>&5 |
16480 |
|
ac_status=$? |
16481 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16482 |
|
(exit $ac_status); }; }; then |
16483 |
|
|
16484 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16485 |
|
}'` |
16486 |
|
# Check for a 64-bit object if we didn't find anything. |
16487 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16488 |
|
}'`; fi |
16489 |
|
else |
16490 |
|
echo "$as_me: failed program was:" >&5 |
16491 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16492 |
|
|
16493 |
|
fi |
16494 |
|
rm -f conftest.err conftest.$ac_objext \ |
16495 |
|
conftest$ac_exeext conftest.$ac_ext |
16496 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16497 |
|
|
16498 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16499 |
|
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
16500 |
|
else |
16501 |
|
if test "$host_cpu" = ia64; then |
16502 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16503 |
|
allow_undefined_flag_GCJ="-z nodefs" |
16504 |
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
16505 |
|
else |
16506 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16507 |
|
cat >conftest.$ac_ext <<_ACEOF |
16508 |
|
/* confdefs.h. */ |
16509 |
|
_ACEOF |
16510 |
|
cat confdefs.h >>conftest.$ac_ext |
16511 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16512 |
|
/* end confdefs.h. */ |
16513 |
|
|
16514 |
|
int |
16515 |
|
main () |
16516 |
|
{ |
16517 |
|
|
16518 |
|
; |
16519 |
|
return 0; |
16520 |
|
} |
16521 |
|
_ACEOF |
16522 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16523 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16524 |
|
(eval $ac_link) 2>conftest.er1 |
16525 |
|
ac_status=$? |
16526 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16527 |
|
rm -f conftest.er1 |
16528 |
|
cat conftest.err >&5 |
16529 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16530 |
|
(exit $ac_status); } && |
16531 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16532 |
|
|| test ! -s conftest.err' |
16533 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16534 |
|
(eval $ac_try) 2>&5 |
16535 |
|
ac_status=$? |
16536 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16537 |
|
(exit $ac_status); }; } && |
16538 |
|
{ ac_try='test -s conftest$ac_exeext' |
16539 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16540 |
|
(eval $ac_try) 2>&5 |
16541 |
|
ac_status=$? |
16542 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16543 |
|
(exit $ac_status); }; }; then |
16544 |
|
|
16545 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16546 |
|
}'` |
16547 |
|
# Check for a 64-bit object if we didn't find anything. |
16548 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16549 |
|
}'`; fi |
16550 |
|
else |
16551 |
|
echo "$as_me: failed program was:" >&5 |
16552 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16553 |
|
|
16554 |
|
fi |
16555 |
|
rm -f conftest.err conftest.$ac_objext \ |
16556 |
|
conftest$ac_exeext conftest.$ac_ext |
16557 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16558 |
|
|
16559 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16560 |
|
# Warning - without using the other run time loading flags, |
16561 |
|
# -berok will link without error, but may produce a broken library. |
16562 |
|
no_undefined_flag_GCJ=' ${wl}-bernotok' |
16563 |
|
allow_undefined_flag_GCJ=' ${wl}-berok' |
16564 |
|
# -bexpall does not export symbols beginning with underscore (_) |
16565 |
|
always_export_symbols_GCJ=yes |
16566 |
|
# Exported symbols can be pulled into shared objects from archives |
16567 |
|
whole_archive_flag_spec_GCJ=' ' |
16568 |
|
archive_cmds_need_lc_GCJ=yes |
16569 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
16570 |
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
16571 |
|
fi |
16572 |
|
fi |
16573 |
|
;; |
16574 |
|
|
16575 |
|
amigaos*) |
16576 |
|
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
16577 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16578 |
|
hardcode_minus_L_GCJ=yes |
16579 |
|
# see comment about different semantics on the GNU ld section |
16580 |
|
ld_shlibs_GCJ=no |
16581 |
|
;; |
16582 |
|
|
16583 |
|
bsdi4*) |
16584 |
|
export_dynamic_flag_spec_GCJ=-rdynamic |
16585 |
|
;; |
16586 |
|
|
16587 |
|
cygwin* | mingw* | pw32*) |
16588 |
|
# When not using gcc, we currently assume that we are using |
16589 |
|
# Microsoft Visual C++. |
16590 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
16591 |
|
# no search path for DLLs. |
16592 |
|
hardcode_libdir_flag_spec_GCJ=' ' |
16593 |
|
allow_undefined_flag_GCJ=unsupported |
16594 |
|
# Tell ltmain to make .lib files, not .a files. |
16595 |
|
libext=lib |
16596 |
|
# Tell ltmain to make .dll files, not .so files. |
16597 |
|
shrext_cmds=".dll" |
16598 |
|
# FIXME: Setting linknames here is a bad hack. |
16599 |
|
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16600 |
|
# The linker will automatically build a .lib file if we build a DLL. |
16601 |
|
old_archive_From_new_cmds_GCJ='true' |
16602 |
|
# FIXME: Should let the user specify the lib program. |
16603 |
|
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16604 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
16605 |
|
enable_shared_with_static_runtimes_GCJ=yes |
16606 |
|
;; |
16607 |
|
|
16608 |
|
darwin* | rhapsody*) |
16609 |
|
if test "$GXX" = yes ; then |
16610 |
|
archive_cmds_need_lc_GCJ=no |
16611 |
|
case "$host_os" in |
16612 |
|
rhapsody* | darwin1.[012]) |
16613 |
|
allow_undefined_flag_GCJ='-undefined suppress' |
16614 |
|
;; |
16615 |
|
*) # Darwin 1.3 on |
16616 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16617 |
|
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
16618 |
|
else |
16619 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
16620 |
|
10.[012]) |
16621 |
|
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
16622 |
|
;; |
16623 |
|
10.*) |
16624 |
|
allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
16625 |
|
;; |
16626 |
|
esac |
16627 |
|
fi |
16628 |
|
;; |
16629 |
|
esac |
16630 |
|
lt_int_apple_cc_single_mod=no |
16631 |
|
output_verbose_link_cmd='echo' |
16632 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
16633 |
|
lt_int_apple_cc_single_mod=yes |
16634 |
|
fi |
16635 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
16636 |
|
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16637 |
|
else |
16638 |
|
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16639 |
|
fi |
16640 |
|
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16641 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
16642 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
16643 |
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16644 |
|
else |
16645 |
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16646 |
|
fi |
16647 |
|
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16648 |
|
hardcode_direct_GCJ=no |
16649 |
|
hardcode_automatic_GCJ=yes |
16650 |
|
hardcode_shlibpath_var_GCJ=unsupported |
16651 |
|
whole_archive_flag_spec_GCJ='-all_load $convenience' |
16652 |
|
link_all_deplibs_GCJ=yes |
16653 |
|
else |
16654 |
|
ld_shlibs_GCJ=no |
16655 |
|
fi |
16656 |
|
;; |
16657 |
|
|
16658 |
|
dgux*) |
16659 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16660 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16661 |
|
hardcode_shlibpath_var_GCJ=no |
16662 |
|
;; |
16663 |
|
|
16664 |
|
freebsd1*) |
16665 |
|
ld_shlibs_GCJ=no |
16666 |
|
;; |
16667 |
|
|
16668 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16669 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
16670 |
|
# does not break anything, and helps significantly (at the cost of a little |
16671 |
|
# extra space). |
16672 |
|
freebsd2.2*) |
16673 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16674 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16675 |
|
hardcode_direct_GCJ=yes |
16676 |
|
hardcode_shlibpath_var_GCJ=no |
16677 |
|
;; |
16678 |
|
|
16679 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16680 |
|
freebsd2*) |
16681 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16682 |
|
hardcode_direct_GCJ=yes |
16683 |
|
hardcode_minus_L_GCJ=yes |
16684 |
|
hardcode_shlibpath_var_GCJ=no |
16685 |
|
;; |
16686 |
|
|
16687 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16688 |
|
freebsd* | kfreebsd*-gnu) |
16689 |
|
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16690 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16691 |
|
hardcode_direct_GCJ=yes |
16692 |
|
hardcode_shlibpath_var_GCJ=no |
16693 |
|
;; |
16694 |
|
|
16695 |
|
hpux9*) |
16696 |
|
if test "$GCC" = yes; then |
16697 |
|
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
16698 |
|
else |
16699 |
|
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
16700 |
|
fi |
16701 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16702 |
|
hardcode_libdir_separator_GCJ=: |
16703 |
|
hardcode_direct_GCJ=yes |
16704 |
|
|
16705 |
|
# hardcode_minus_L: Not really in the search PATH, |
16706 |
|
# but as the default location of the library. |
16707 |
|
hardcode_minus_L_GCJ=yes |
16708 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16709 |
|
;; |
16710 |
|
|
16711 |
|
hpux10* | hpux11*) |
16712 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16713 |
|
case "$host_cpu" in |
16714 |
|
hppa*64*|ia64*) |
16715 |
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16716 |
|
;; |
16717 |
|
*) |
16718 |
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16719 |
|
;; |
16720 |
|
esac |
16721 |
|
else |
16722 |
|
case "$host_cpu" in |
16723 |
|
hppa*64*|ia64*) |
16724 |
|
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
16725 |
|
;; |
16726 |
|
*) |
16727 |
|
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16728 |
|
;; |
16729 |
|
esac |
16730 |
|
fi |
16731 |
|
if test "$with_gnu_ld" = no; then |
16732 |
|
case "$host_cpu" in |
16733 |
|
hppa*64*) |
16734 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16735 |
|
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16736 |
|
hardcode_libdir_separator_GCJ=: |
16737 |
|
hardcode_direct_GCJ=no |
16738 |
|
hardcode_shlibpath_var_GCJ=no |
16739 |
|
;; |
16740 |
|
ia64*) |
16741 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16742 |
|
hardcode_direct_GCJ=no |
16743 |
|
hardcode_shlibpath_var_GCJ=no |
16744 |
|
|
16745 |
|
# hardcode_minus_L: Not really in the search PATH, |
16746 |
|
# but as the default location of the library. |
16747 |
|
hardcode_minus_L_GCJ=yes |
16748 |
|
;; |
16749 |
|
*) |
16750 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16751 |
|
hardcode_libdir_separator_GCJ=: |
16752 |
|
hardcode_direct_GCJ=yes |
16753 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16754 |
|
|
16755 |
|
# hardcode_minus_L: Not really in the search PATH, |
16756 |
|
# but as the default location of the library. |
16757 |
|
hardcode_minus_L_GCJ=yes |
16758 |
|
;; |
16759 |
|
esac |
16760 |
|
fi |
16761 |
|
;; |
16762 |
|
|
16763 |
|
irix5* | irix6* | nonstopux*) |
16764 |
|
if test "$GCC" = yes; then |
16765 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
16766 |
|
else |
16767 |
|
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
16768 |
|
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16769 |
|
fi |
16770 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16771 |
|
hardcode_libdir_separator_GCJ=: |
16772 |
|
link_all_deplibs_GCJ=yes |
16773 |
|
;; |
16774 |
|
|
16775 |
|
netbsd*) |
16776 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16777 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16778 |
|
else |
16779 |
|
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16780 |
|
fi |
16781 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16782 |
|
hardcode_direct_GCJ=yes |
16783 |
|
hardcode_shlibpath_var_GCJ=no |
16784 |
|
;; |
16785 |
|
|
16786 |
|
newsos6) |
16787 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16788 |
|
hardcode_direct_GCJ=yes |
16789 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16790 |
|
hardcode_libdir_separator_GCJ=: |
16791 |
|
hardcode_shlibpath_var_GCJ=no |
16792 |
|
;; |
16793 |
|
|
16794 |
|
openbsd*) |
16795 |
|
hardcode_direct_GCJ=yes |
16796 |
|
hardcode_shlibpath_var_GCJ=no |
16797 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16798 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16799 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16800 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16801 |
|
else |
16802 |
|
case $host_os in |
16803 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16804 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16805 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16806 |
|
;; |
16807 |
|
*) |
16808 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16809 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16810 |
|
;; |
16811 |
|
esac |
16812 |
|
fi |
16813 |
|
;; |
16814 |
|
|
16815 |
|
os2*) |
16816 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16817 |
|
hardcode_minus_L_GCJ=yes |
16818 |
|
allow_undefined_flag_GCJ=unsupported |
16819 |
|
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
16820 |
|
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16821 |
|
;; |
16822 |
|
|
16823 |
|
osf3*) |
16824 |
|
if test "$GCC" = yes; then |
16825 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16826 |
|
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
16827 |
|
else |
16828 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16829 |
|
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
16830 |
|
fi |
16831 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16832 |
|
hardcode_libdir_separator_GCJ=: |
16833 |
|
;; |
16834 |
|
|
16835 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
16836 |
|
if test "$GCC" = yes; then |
16837 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16838 |
|
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
16839 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16840 |
|
else |
16841 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16842 |
|
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
16843 |
|
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
16844 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
16845 |
|
|
16846 |
|
# Both c and cxx compiler support -rpath directly |
16847 |
|
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16848 |
|
fi |
16849 |
|
hardcode_libdir_separator_GCJ=: |
16850 |
|
;; |
16851 |
|
|
16852 |
|
sco3.2v5*) |
16853 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16854 |
|
hardcode_shlibpath_var_GCJ=no |
16855 |
|
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
16856 |
|
runpath_var=LD_RUN_PATH |
16857 |
|
hardcode_runpath_var=yes |
16858 |
|
;; |
16859 |
|
|
16860 |
|
solaris*) |
16861 |
|
no_undefined_flag_GCJ=' -z text' |
16862 |
|
if test "$GCC" = yes; then |
16863 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16864 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16865 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16866 |
|
else |
16867 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16868 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16869 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16870 |
|
fi |
16871 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16872 |
|
hardcode_shlibpath_var_GCJ=no |
16873 |
|
case $host_os in |
16874 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
16875 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
16876 |
|
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16877 |
|
esac |
16878 |
|
link_all_deplibs_GCJ=yes |
16879 |
|
;; |
16880 |
|
|
16881 |
|
sunos4*) |
16882 |
|
if test "x$host_vendor" = xsequent; then |
16883 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
16884 |
|
# files that make .init and .fini sections work. |
16885 |
|
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16886 |
|
else |
16887 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16888 |
|
fi |
16889 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16890 |
|
hardcode_direct_GCJ=yes |
16891 |
|
hardcode_minus_L_GCJ=yes |
16892 |
|
hardcode_shlibpath_var_GCJ=no |
16893 |
|
;; |
16894 |
|
|
16895 |
|
sysv4) |
16896 |
|
case $host_vendor in |
16897 |
|
sni) |
16898 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16899 |
|
hardcode_direct_GCJ=yes # is this really true??? |
16900 |
|
;; |
16901 |
|
siemens) |
16902 |
|
## LD is ld it makes a PLAMLIB |
16903 |
|
## CC just makes a GrossModule. |
16904 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16905 |
|
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16906 |
|
hardcode_direct_GCJ=no |
16907 |
|
;; |
16908 |
|
motorola) |
16909 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16910 |
|
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16911 |
|
;; |
16912 |
|
esac |
16913 |
|
runpath_var='LD_RUN_PATH' |
16914 |
|
hardcode_shlibpath_var_GCJ=no |
16915 |
|
;; |
16916 |
|
|
16917 |
|
sysv4.3*) |
16918 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16919 |
|
hardcode_shlibpath_var_GCJ=no |
16920 |
|
export_dynamic_flag_spec_GCJ='-Bexport' |
16921 |
|
;; |
16922 |
|
|
16923 |
|
sysv4*MP*) |
16924 |
|
if test -d /usr/nec; then |
16925 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16926 |
|
hardcode_shlibpath_var_GCJ=no |
16927 |
|
runpath_var=LD_RUN_PATH |
16928 |
|
hardcode_runpath_var=yes |
16929 |
|
ld_shlibs_GCJ=yes |
16930 |
|
fi |
16931 |
|
;; |
16932 |
|
|
16933 |
|
sysv4.2uw2*) |
16934 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16935 |
|
hardcode_direct_GCJ=yes |
16936 |
|
hardcode_minus_L_GCJ=no |
16937 |
|
hardcode_shlibpath_var_GCJ=no |
16938 |
|
hardcode_runpath_var=yes |
16939 |
|
runpath_var=LD_RUN_PATH |
16940 |
|
;; |
16941 |
|
|
16942 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
16943 |
|
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
16944 |
|
if test "$GCC" = yes; then |
16945 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16946 |
|
else |
16947 |
|
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16948 |
|
fi |
16949 |
|
runpath_var='LD_RUN_PATH' |
16950 |
|
hardcode_shlibpath_var_GCJ=no |
16951 |
|
;; |
16952 |
|
|
16953 |
|
sysv5*) |
16954 |
|
no_undefined_flag_GCJ=' -z text' |
16955 |
|
# $CC -shared without GNU ld will not create a library from C++ |
16956 |
|
# object files and a static libstdc++, better avoid it by now |
16957 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16958 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16959 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16960 |
|
hardcode_libdir_flag_spec_GCJ= |
16961 |
|
hardcode_shlibpath_var_GCJ=no |
16962 |
|
runpath_var='LD_RUN_PATH' |
16963 |
|
;; |
16964 |
|
|
16965 |
|
uts4*) |
16966 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16967 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16968 |
|
hardcode_shlibpath_var_GCJ=no |
16969 |
|
;; |
16970 |
|
|
16971 |
|
*) |
16972 |
|
ld_shlibs_GCJ=no |
16973 |
|
;; |
16974 |
|
esac |
16975 |
|
fi |
16976 |
|
|
16977 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
16978 |
|
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
16979 |
|
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
16980 |
|
|
16981 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16982 |
|
if test "$GCC" = yes; then |
16983 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16984 |
|
fi |
16985 |
|
|
16986 |
|
# |
16987 |
|
# Do we need to explicitly link libc? |
16988 |
|
# |
16989 |
|
case "x$archive_cmds_need_lc_GCJ" in |
16990 |
|
x|xyes) |
16991 |
|
# Assume -lc should be added |
16992 |
|
archive_cmds_need_lc_GCJ=yes |
16993 |
|
|
16994 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
16995 |
|
case $archive_cmds_GCJ in |
16996 |
|
*'~'*) |
16997 |
|
# FIXME: we may have to deal with multi-command sequences. |
16998 |
|
;; |
16999 |
|
'$CC '*) |
17000 |
|
# Test whether the compiler implicitly links with -lc since on some |
17001 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
17002 |
|
# to ld, don't add -lc before -lgcc. |
17003 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17004 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17005 |
|
$rm conftest* |
17006 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17007 |
|
|
17008 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17009 |
|
(eval $ac_compile) 2>&5 |
17010 |
|
ac_status=$? |
17011 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17012 |
|
(exit $ac_status); } 2>conftest.err; then |
17013 |
|
soname=conftest |
17014 |
|
lib=conftest |
17015 |
|
libobjs=conftest.$ac_objext |
17016 |
|
deplibs= |
17017 |
|
wl=$lt_prog_compiler_wl_GCJ |
17018 |
|
compiler_flags=-v |
17019 |
|
linker_flags=-v |
17020 |
|
verstring= |
17021 |
|
output_objdir=. |
17022 |
|
libname=conftest |
17023 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17024 |
|
allow_undefined_flag_GCJ= |
17025 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17026 |
|
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17027 |
|
ac_status=$? |
17028 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17029 |
|
(exit $ac_status); } |
17030 |
|
then |
17031 |
|
archive_cmds_need_lc_GCJ=no |
17032 |
|
else |
17033 |
|
archive_cmds_need_lc_GCJ=yes |
17034 |
|
fi |
17035 |
|
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17036 |
|
else |
17037 |
|
cat conftest.err 1>&5 |
17038 |
|
fi |
17039 |
|
$rm conftest* |
17040 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17041 |
|
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17042 |
|
;; |
17043 |
|
esac |
17044 |
|
fi |
17045 |
|
;; |
17046 |
|
esac |
17047 |
|
|
17048 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17049 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17050 |
|
library_names_spec= |
17051 |
|
libname_spec='lib$name' |
17052 |
|
soname_spec= |
17053 |
|
shrext_cmds=".so" |
17054 |
|
postinstall_cmds= |
17055 |
|
postuninstall_cmds= |
17056 |
|
finish_cmds= |
17057 |
|
finish_eval= |
17058 |
|
shlibpath_var= |
17059 |
|
shlibpath_overrides_runpath=unknown |
17060 |
|
version_type=none |
17061 |
|
dynamic_linker="$host_os ld.so" |
17062 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17063 |
|
if test "$GCC" = yes; then |
17064 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17065 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17066 |
|
# if the path contains ";" then we assume it to be the separator |
17067 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
17068 |
|
# assumed that no part of a normal pathname contains ";" but that should |
17069 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
17070 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17071 |
|
else |
17072 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17073 |
|
fi |
17074 |
|
else |
17075 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17076 |
|
fi |
17077 |
|
need_lib_prefix=unknown |
17078 |
|
hardcode_into_libs=no |
17079 |
|
|
17080 |
|
# when you set need_version to no, make sure it does not cause -set_version |
17081 |
|
# flags to be left without arguments |
17082 |
|
need_version=unknown |
17083 |
|
|
17084 |
|
case $host_os in |
17085 |
|
aix3*) |
17086 |
|
version_type=linux |
17087 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17088 |
|
shlibpath_var=LIBPATH |
17089 |
|
|
17090 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
17091 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17092 |
|
;; |
17093 |
|
|
17094 |
|
aix4* | aix5*) |
17095 |
|
version_type=linux |
17096 |
|
need_lib_prefix=no |
17097 |
|
need_version=no |
17098 |
|
hardcode_into_libs=yes |
17099 |
|
if test "$host_cpu" = ia64; then |
17100 |
|
# AIX 5 supports IA64 |
17101 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17102 |
|
shlibpath_var=LD_LIBRARY_PATH |
17103 |
|
else |
17104 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
17105 |
|
# for dependence libraries. The import file would start with |
17106 |
|
# the line `#! .'. This would cause the generated library to |
17107 |
|
# depend on `.', always an invalid library. This was fixed in |
17108 |
|
# development snapshots of GCC prior to 3.0. |
17109 |
|
case $host_os in |
17110 |
|
aix4 | aix4.[01] | aix4.[01].*) |
17111 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17112 |
|
echo ' yes ' |
17113 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17114 |
|
: |
17115 |
|
else |
17116 |
|
can_build_shared=no |
17117 |
|
fi |
17118 |
|
;; |
17119 |
|
esac |
17120 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17121 |
|
# soname into executable. Probably we can add versioning support to |
17122 |
|
# collect2, so additional links can be useful in future. |
17123 |
|
if test "$aix_use_runtimelinking" = yes; then |
17124 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17125 |
|
# instead of lib<name>.a to let people know that these are not |
17126 |
|
# typical AIX shared libraries. |
17127 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17128 |
|
else |
17129 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
17130 |
|
# and later when we are not doing run time linking. |
17131 |
|
library_names_spec='${libname}${release}.a $libname.a' |
17132 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17133 |
|
fi |
17134 |
|
shlibpath_var=LIBPATH |
17135 |
|
fi |
17136 |
|
;; |
17137 |
|
|
17138 |
|
amigaos*) |
17139 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
17140 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
17141 |
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
17142 |
|
;; |
17143 |
|
|
17144 |
|
beos*) |
17145 |
|
library_names_spec='${libname}${shared_ext}' |
17146 |
|
dynamic_linker="$host_os ld.so" |
17147 |
|
shlibpath_var=LIBRARY_PATH |
17148 |
|
;; |
17149 |
|
|
17150 |
|
bsdi4*) |
17151 |
|
version_type=linux |
17152 |
|
need_version=no |
17153 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17154 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17155 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17156 |
|
shlibpath_var=LD_LIBRARY_PATH |
17157 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17158 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17159 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
17160 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17161 |
|
# libtool to hard-code these into programs |
17162 |
|
;; |
17163 |
|
|
17164 |
|
cygwin* | mingw* | pw32*) |
17165 |
|
version_type=windows |
17166 |
|
shrext_cmds=".dll" |
17167 |
|
need_version=no |
17168 |
|
need_lib_prefix=no |
17169 |
|
|
17170 |
|
case $GCC,$host_os in |
17171 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
17172 |
|
library_names_spec='$libname.dll.a' |
17173 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
17174 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
17175 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17176 |
|
dldir=$destdir/`dirname \$dlpath`~ |
17177 |
|
test -d \$dldir || mkdir -p \$dldir~ |
17178 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
17179 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17180 |
|
dlpath=$dir/\$dldll~ |
17181 |
|
$rm \$dlpath' |
17182 |
|
shlibpath_overrides_runpath=yes |
17183 |
|
|
17184 |
|
case $host_os in |
17185 |
|
cygwin*) |
17186 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17187 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17188 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17189 |
|
;; |
17190 |
|
mingw*) |
17191 |
|
# MinGW DLLs use traditional 'lib' prefix |
17192 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17193 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17194 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17195 |
|
# It is most probably a Windows format PATH printed by |
17196 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
17197 |
|
# path with ; separators, and with drive letters. We can handle the |
17198 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
17199 |
|
# especially as we might pass files found there to a mingw objdump, |
17200 |
|
# which wouldn't understand a cygwinified path. Ahh. |
17201 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17202 |
|
else |
17203 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17204 |
|
fi |
17205 |
|
;; |
17206 |
|
pw32*) |
17207 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
17208 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
17209 |
|
;; |
17210 |
|
esac |
17211 |
|
;; |
17212 |
|
|
17213 |
|
*) |
17214 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17215 |
|
;; |
17216 |
|
esac |
17217 |
|
dynamic_linker='Win32 ld.exe' |
17218 |
|
# FIXME: first we should search . and the directory the executable is in |
17219 |
|
shlibpath_var=PATH |
17220 |
|
;; |
17221 |
|
|
17222 |
|
darwin* | rhapsody*) |
17223 |
|
dynamic_linker="$host_os dyld" |
17224 |
|
version_type=darwin |
17225 |
|
need_lib_prefix=no |
17226 |
|
need_version=no |
17227 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17228 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
17229 |
|
shlibpath_overrides_runpath=yes |
17230 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
17231 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
17232 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17233 |
|
if test "$GCC" = yes; then |
17234 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
17235 |
|
else |
17236 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17237 |
|
fi |
17238 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17239 |
|
;; |
17240 |
|
|
17241 |
|
dgux*) |
17242 |
|
version_type=linux |
17243 |
|
need_lib_prefix=no |
17244 |
|
need_version=no |
17245 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17246 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17247 |
|
shlibpath_var=LD_LIBRARY_PATH |
17248 |
|
;; |
17249 |
|
|
17250 |
|
freebsd1*) |
17251 |
|
dynamic_linker=no |
17252 |
|
;; |
17253 |
|
|
17254 |
|
kfreebsd*-gnu) |
17255 |
|
version_type=linux |
17256 |
|
need_lib_prefix=no |
17257 |
|
need_version=no |
17258 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17259 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17260 |
|
shlibpath_var=LD_LIBRARY_PATH |
17261 |
|
shlibpath_overrides_runpath=no |
17262 |
|
hardcode_into_libs=yes |
17263 |
|
dynamic_linker='GNU ld.so' |
17264 |
|
;; |
17265 |
|
|
17266 |
|
freebsd*) |
17267 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
17268 |
|
version_type=freebsd-$objformat |
17269 |
|
case $version_type in |
17270 |
|
freebsd-elf*) |
17271 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17272 |
|
need_version=no |
17273 |
|
need_lib_prefix=no |
17274 |
|
;; |
17275 |
|
freebsd-*) |
17276 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17277 |
|
need_version=yes |
17278 |
|
;; |
17279 |
|
esac |
17280 |
|
shlibpath_var=LD_LIBRARY_PATH |
17281 |
|
case $host_os in |
17282 |
|
freebsd2*) |
17283 |
|
shlibpath_overrides_runpath=yes |
17284 |
|
;; |
17285 |
|
freebsd3.01* | freebsdelf3.01*) |
17286 |
|
shlibpath_overrides_runpath=yes |
17287 |
|
hardcode_into_libs=yes |
17288 |
|
;; |
17289 |
|
*) # from 3.2 on |
17290 |
|
shlibpath_overrides_runpath=no |
17291 |
|
hardcode_into_libs=yes |
17292 |
|
;; |
17293 |
|
esac |
17294 |
|
;; |
17295 |
|
|
17296 |
|
gnu*) |
17297 |
|
version_type=linux |
17298 |
|
need_lib_prefix=no |
17299 |
|
need_version=no |
17300 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17301 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17302 |
|
shlibpath_var=LD_LIBRARY_PATH |
17303 |
|
hardcode_into_libs=yes |
17304 |
|
;; |
17305 |
|
|
17306 |
|
hpux9* | hpux10* | hpux11*) |
17307 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
17308 |
|
# link against other versions. |
17309 |
|
version_type=sunos |
17310 |
|
need_lib_prefix=no |
17311 |
|
need_version=no |
17312 |
|
case "$host_cpu" in |
17313 |
|
ia64*) |
17314 |
|
shrext_cmds='.so' |
17315 |
|
hardcode_into_libs=yes |
17316 |
|
dynamic_linker="$host_os dld.so" |
17317 |
|
shlibpath_var=LD_LIBRARY_PATH |
17318 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17319 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17320 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17321 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
17322 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17323 |
|
else |
17324 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17325 |
|
fi |
17326 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17327 |
|
;; |
17328 |
|
hppa*64*) |
17329 |
|
shrext_cmds='.sl' |
17330 |
|
hardcode_into_libs=yes |
17331 |
|
dynamic_linker="$host_os dld.sl" |
17332 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17333 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17334 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17335 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17336 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17337 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17338 |
|
;; |
17339 |
|
*) |
17340 |
|
shrext_cmds='.sl' |
17341 |
|
dynamic_linker="$host_os dld.sl" |
17342 |
|
shlibpath_var=SHLIB_PATH |
17343 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17344 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17345 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17346 |
|
;; |
17347 |
|
esac |
17348 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
17349 |
|
postinstall_cmds='chmod 555 $lib' |
17350 |
|
;; |
17351 |
|
|
17352 |
|
irix5* | irix6* | nonstopux*) |
17353 |
|
case $host_os in |
17354 |
|
nonstopux*) version_type=nonstopux ;; |
17355 |
|
*) |
17356 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
17357 |
|
version_type=linux |
17358 |
|
else |
17359 |
|
version_type=irix |
17360 |
|
fi ;; |
17361 |
|
esac |
17362 |
|
need_lib_prefix=no |
17363 |
|
need_version=no |
17364 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17365 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17366 |
|
case $host_os in |
17367 |
|
irix5* | nonstopux*) |
17368 |
|
libsuff= shlibsuff= |
17369 |
|
;; |
17370 |
|
*) |
17371 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
17372 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17373 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
17374 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17375 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
17376 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17377 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17378 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
17379 |
|
esac |
17380 |
|
;; |
17381 |
|
esac |
17382 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17383 |
|
shlibpath_overrides_runpath=no |
17384 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17385 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17386 |
|
hardcode_into_libs=yes |
17387 |
|
;; |
17388 |
|
|
17389 |
|
# No shared lib support for Linux oldld, aout, or coff. |
17390 |
|
linux*oldld* | linux*aout* | linux*coff*) |
17391 |
|
dynamic_linker=no |
17392 |
|
;; |
17393 |
|
|
17394 |
|
# This must be Linux ELF. |
17395 |
|
linux*) |
17396 |
|
version_type=linux |
17397 |
|
need_lib_prefix=no |
17398 |
|
need_version=no |
17399 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17400 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17401 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17402 |
|
shlibpath_var=LD_LIBRARY_PATH |
17403 |
|
shlibpath_overrides_runpath=no |
17404 |
|
# This implies no fast_install, which is unacceptable. |
17405 |
|
# Some rework will be needed to allow for fast_install |
17406 |
|
# before this can be enabled. |
17407 |
|
hardcode_into_libs=yes |
17408 |
|
|
17409 |
|
libsuff= |
17410 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
17411 |
|
libsuff=64 |
17412 |
|
fi |
17413 |
|
|
17414 |
|
# Append ld.so.conf contents to the search path |
17415 |
|
if test -f /etc/ld.so.conf; then |
17416 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
17417 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
17418 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
17419 |
|
fi |
17420 |
|
|
17421 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
17422 |
|
# powerpc, because MkLinux only supported shared libraries with the |
17423 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
17424 |
|
# most powerpc-linux boxes support dynamic linking these days and |
17425 |
|
# people can always --disable-shared, the test was removed, and we |
17426 |
|
# assume the GNU/Linux dynamic linker is in use. |
17427 |
|
dynamic_linker='GNU/Linux ld.so' |
17428 |
|
;; |
17429 |
|
|
17430 |
|
knetbsd*-gnu) |
17431 |
|
version_type=linux |
17432 |
|
need_lib_prefix=no |
17433 |
|
need_version=no |
17434 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17435 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17436 |
|
shlibpath_var=LD_LIBRARY_PATH |
17437 |
|
shlibpath_overrides_runpath=no |
17438 |
|
hardcode_into_libs=yes |
17439 |
|
dynamic_linker='GNU ld.so' |
17440 |
|
;; |
17441 |
|
|
17442 |
|
netbsd*) |
17443 |
|
version_type=sunos |
17444 |
|
need_lib_prefix=no |
17445 |
|
need_version=no |
17446 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17447 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17448 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17449 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
17450 |
|
else |
17451 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17452 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17453 |
|
dynamic_linker='NetBSD ld.elf_so' |
17454 |
|
fi |
17455 |
|
shlibpath_var=LD_LIBRARY_PATH |
17456 |
|
shlibpath_overrides_runpath=yes |
17457 |
|
hardcode_into_libs=yes |
17458 |
|
;; |
17459 |
|
|
17460 |
|
newsos6) |
17461 |
|
version_type=linux |
17462 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17463 |
|
shlibpath_var=LD_LIBRARY_PATH |
17464 |
|
shlibpath_overrides_runpath=yes |
17465 |
|
;; |
17466 |
|
|
17467 |
|
nto-qnx*) |
17468 |
|
version_type=linux |
17469 |
|
need_lib_prefix=no |
17470 |
|
need_version=no |
17471 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17472 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17473 |
|
shlibpath_var=LD_LIBRARY_PATH |
17474 |
|
shlibpath_overrides_runpath=yes |
17475 |
|
;; |
17476 |
|
|
17477 |
|
openbsd*) |
17478 |
|
version_type=sunos |
17479 |
|
need_lib_prefix=no |
17480 |
|
need_version=yes |
17481 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17482 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17483 |
|
shlibpath_var=LD_LIBRARY_PATH |
17484 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17485 |
|
case $host_os in |
17486 |
|
openbsd2.[89] | openbsd2.[89].*) |
17487 |
|
shlibpath_overrides_runpath=no |
17488 |
|
;; |
17489 |
|
*) |
17490 |
|
shlibpath_overrides_runpath=yes |
17491 |
|
;; |
17492 |
|
esac |
17493 |
|
else |
17494 |
|
shlibpath_overrides_runpath=yes |
17495 |
|
fi |
17496 |
|
;; |
17497 |
|
|
17498 |
|
os2*) |
17499 |
|
libname_spec='$name' |
17500 |
|
shrext_cmds=".dll" |
17501 |
|
need_lib_prefix=no |
17502 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
17503 |
|
dynamic_linker='OS/2 ld.exe' |
17504 |
|
shlibpath_var=LIBPATH |
17505 |
|
;; |
17506 |
|
|
17507 |
|
osf3* | osf4* | osf5*) |
17508 |
|
version_type=osf |
17509 |
|
need_lib_prefix=no |
17510 |
|
need_version=no |
17511 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17512 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17513 |
|
shlibpath_var=LD_LIBRARY_PATH |
17514 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17515 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17516 |
|
;; |
17517 |
|
|
17518 |
|
sco3.2v5*) |
17519 |
|
version_type=osf |
17520 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17521 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17522 |
|
shlibpath_var=LD_LIBRARY_PATH |
17523 |
|
;; |
17524 |
|
|
17525 |
|
solaris*) |
17526 |
|
version_type=linux |
17527 |
|
need_lib_prefix=no |
17528 |
|
need_version=no |
17529 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17530 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17531 |
|
shlibpath_var=LD_LIBRARY_PATH |
17532 |
|
shlibpath_overrides_runpath=yes |
17533 |
|
hardcode_into_libs=yes |
17534 |
|
# ldd complains unless libraries are executable |
17535 |
|
postinstall_cmds='chmod +x $lib' |
17536 |
|
;; |
17537 |
|
|
17538 |
|
sunos4*) |
17539 |
|
version_type=sunos |
17540 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17541 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17542 |
|
shlibpath_var=LD_LIBRARY_PATH |
17543 |
|
shlibpath_overrides_runpath=yes |
17544 |
|
if test "$with_gnu_ld" = yes; then |
17545 |
|
need_lib_prefix=no |
17546 |
|
fi |
17547 |
|
need_version=yes |
17548 |
|
;; |
17549 |
|
|
17550 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
17551 |
|
version_type=linux |
17552 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17553 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17554 |
|
shlibpath_var=LD_LIBRARY_PATH |
17555 |
|
case $host_vendor in |
17556 |
|
sni) |
17557 |
|
shlibpath_overrides_runpath=no |
17558 |
|
need_lib_prefix=no |
17559 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
17560 |
|
runpath_var=LD_RUN_PATH |
17561 |
|
;; |
17562 |
|
siemens) |
17563 |
|
need_lib_prefix=no |
17564 |
|
;; |
17565 |
|
motorola) |
17566 |
|
need_lib_prefix=no |
17567 |
|
need_version=no |
17568 |
|
shlibpath_overrides_runpath=no |
17569 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17570 |
|
;; |
17571 |
|
esac |
17572 |
|
;; |
17573 |
|
|
17574 |
|
sysv4*MP*) |
17575 |
|
if test -d /usr/nec ;then |
17576 |
|
version_type=linux |
17577 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17578 |
|
soname_spec='$libname${shared_ext}.$major' |
17579 |
|
shlibpath_var=LD_LIBRARY_PATH |
17580 |
|
fi |
17581 |
|
;; |
17582 |
|
|
17583 |
|
uts4*) |
17584 |
|
version_type=linux |
17585 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17586 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17587 |
|
shlibpath_var=LD_LIBRARY_PATH |
17588 |
|
;; |
17589 |
|
|
17590 |
|
*) |
17591 |
|
dynamic_linker=no |
17592 |
|
;; |
17593 |
|
esac |
17594 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17595 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
17596 |
|
test "$dynamic_linker" = no && can_build_shared=no |
17597 |
|
|
17598 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17599 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17600 |
|
hardcode_action_GCJ= |
17601 |
|
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17602 |
|
test -n "$runpath_var GCJ" || \ |
17603 |
|
test "X$hardcode_automatic_GCJ"="Xyes" ; then |
17604 |
|
|
17605 |
|
# We can hardcode non-existant directories. |
17606 |
|
if test "$hardcode_direct_GCJ" != no && |
17607 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
17608 |
|
# have to relink, otherwise we might link with an installed library |
17609 |
|
# when we should be linking with a yet-to-be-installed one |
17610 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17611 |
|
test "$hardcode_minus_L_GCJ" != no; then |
17612 |
|
# Linking always hardcodes the temporary library directory. |
17613 |
|
hardcode_action_GCJ=relink |
17614 |
|
else |
17615 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
17616 |
|
hardcode_action_GCJ=immediate |
17617 |
|
fi |
17618 |
|
else |
17619 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
17620 |
|
# directories. |
17621 |
|
hardcode_action_GCJ=unsupported |
17622 |
|
fi |
17623 |
|
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17624 |
|
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17625 |
|
|
17626 |
|
if test "$hardcode_action_GCJ" = relink; then |
17627 |
|
# Fast installation is not supported |
17628 |
|
enable_fast_install=no |
17629 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
17630 |
|
test "$enable_shared" = no; then |
17631 |
|
# Fast installation is not necessary |
17632 |
|
enable_fast_install=needless |
17633 |
|
fi |
17634 |
|
|
17635 |
|
striplib= |
17636 |
|
old_striplib= |
17637 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
17638 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
17639 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
17640 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
17641 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
17642 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
17643 |
|
echo "${ECHO_T}yes" >&6 |
17644 |
|
else |
17645 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
17646 |
|
case $host_os in |
17647 |
|
darwin*) |
17648 |
|
if test -n "$STRIP" ; then |
17649 |
|
striplib="$STRIP -x" |
17650 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
17651 |
|
echo "${ECHO_T}yes" >&6 |
17652 |
|
else |
17653 |
|
echo "$as_me:$LINENO: result: no" >&5 |
17654 |
|
echo "${ECHO_T}no" >&6 |
17655 |
|
fi |
17656 |
|
;; |
17657 |
|
*) |
17658 |
|
echo "$as_me:$LINENO: result: no" >&5 |
17659 |
|
echo "${ECHO_T}no" >&6 |
17660 |
|
;; |
17661 |
|
esac |
17662 |
|
fi |
17663 |
|
|
17664 |
|
if test "x$enable_dlopen" != xyes; then |
17665 |
|
enable_dlopen=unknown |
17666 |
|
enable_dlopen_self=unknown |
17667 |
|
enable_dlopen_self_static=unknown |
17668 |
|
else |
17669 |
|
lt_cv_dlopen=no |
17670 |
|
lt_cv_dlopen_libs= |
17671 |
|
|
17672 |
|
case $host_os in |
17673 |
|
beos*) |
17674 |
|
lt_cv_dlopen="load_add_on" |
17675 |
|
lt_cv_dlopen_libs= |
17676 |
|
lt_cv_dlopen_self=yes |
17677 |
|
;; |
17678 |
|
|
17679 |
|
mingw* | pw32*) |
17680 |
|
lt_cv_dlopen="LoadLibrary" |
17681 |
|
lt_cv_dlopen_libs= |
17682 |
|
;; |
17683 |
|
|
17684 |
|
cygwin*) |
17685 |
|
lt_cv_dlopen="dlopen" |
17686 |
|
lt_cv_dlopen_libs= |
17687 |
|
;; |
17688 |
|
|
17689 |
|
darwin*) |
17690 |
|
# if libdl is installed we need to link against it |
17691 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
17692 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
17693 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
17694 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17695 |
|
else |
17696 |
|
ac_check_lib_save_LIBS=$LIBS |
17697 |
|
LIBS="-ldl $LIBS" |
17698 |
|
cat >conftest.$ac_ext <<_ACEOF |
17699 |
|
/* confdefs.h. */ |
17700 |
|
_ACEOF |
17701 |
|
cat confdefs.h >>conftest.$ac_ext |
17702 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17703 |
|
/* end confdefs.h. */ |
17704 |
|
|
17705 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17706 |
|
#ifdef __cplusplus |
17707 |
|
extern "C" |
17708 |
|
#endif |
17709 |
|
/* We use char because int might match the return type of a gcc2 |
17710 |
|
builtin and then its argument prototype would still apply. */ |
17711 |
|
char dlopen (); |
17712 |
|
int |
17713 |
|
main () |
17714 |
|
{ |
17715 |
|
dlopen (); |
17716 |
|
; |
17717 |
|
return 0; |
17718 |
|
} |
17719 |
|
_ACEOF |
17720 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17721 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17722 |
|
(eval $ac_link) 2>conftest.er1 |
17723 |
|
ac_status=$? |
17724 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17725 |
|
rm -f conftest.er1 |
17726 |
|
cat conftest.err >&5 |
17727 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17728 |
|
(exit $ac_status); } && |
17729 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17730 |
|
|| test ! -s conftest.err' |
17731 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17732 |
|
(eval $ac_try) 2>&5 |
17733 |
|
ac_status=$? |
17734 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17735 |
|
(exit $ac_status); }; } && |
17736 |
|
{ ac_try='test -s conftest$ac_exeext' |
17737 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17738 |
|
(eval $ac_try) 2>&5 |
17739 |
|
ac_status=$? |
17740 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17741 |
|
(exit $ac_status); }; }; then |
17742 |
|
ac_cv_lib_dl_dlopen=yes |
17743 |
|
else |
17744 |
|
echo "$as_me: failed program was:" >&5 |
17745 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17746 |
|
|
17747 |
|
ac_cv_lib_dl_dlopen=no |
17748 |
|
fi |
17749 |
|
rm -f conftest.err conftest.$ac_objext \ |
17750 |
|
conftest$ac_exeext conftest.$ac_ext |
17751 |
|
LIBS=$ac_check_lib_save_LIBS |
17752 |
|
fi |
17753 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
17754 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
17755 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
17756 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
17757 |
|
else |
17758 |
|
|
17759 |
|
lt_cv_dlopen="dyld" |
17760 |
|
lt_cv_dlopen_libs= |
17761 |
|
lt_cv_dlopen_self=yes |
17762 |
|
|
17763 |
|
fi |
17764 |
|
|
17765 |
|
;; |
17766 |
|
|
17767 |
|
*) |
17768 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
17769 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
17770 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
17771 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17772 |
|
else |
17773 |
|
cat >conftest.$ac_ext <<_ACEOF |
17774 |
|
/* confdefs.h. */ |
17775 |
|
_ACEOF |
17776 |
|
cat confdefs.h >>conftest.$ac_ext |
17777 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17778 |
|
/* end confdefs.h. */ |
17779 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
17780 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
17781 |
|
#define shl_load innocuous_shl_load |
17782 |
|
|
17783 |
|
/* System header to define __stub macros and hopefully few prototypes, |
17784 |
|
which can conflict with char shl_load (); below. |
17785 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17786 |
|
<limits.h> exists even on freestanding compilers. */ |
17787 |
|
|
17788 |
|
#ifdef __STDC__ |
17789 |
|
# include <limits.h> |
17790 |
|
#else |
17791 |
|
# include <assert.h> |
17792 |
|
#endif |
17793 |
|
|
17794 |
|
#undef shl_load |
17795 |
|
|
17796 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17797 |
|
#ifdef __cplusplus |
17798 |
|
extern "C" |
17799 |
|
{ |
17800 |
|
#endif |
17801 |
|
/* We use char because int might match the return type of a gcc2 |
17802 |
|
builtin and then its argument prototype would still apply. */ |
17803 |
|
char shl_load (); |
17804 |
|
/* The GNU C library defines this for functions which it implements |
17805 |
|
to always fail with ENOSYS. Some functions are actually named |
17806 |
|
something starting with __ and the normal name is an alias. */ |
17807 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
17808 |
|
choke me |
17809 |
|
#else |
17810 |
|
char (*f) () = shl_load; |
17811 |
|
#endif |
17812 |
|
#ifdef __cplusplus |
17813 |
|
} |
17814 |
|
#endif |
17815 |
|
|
17816 |
|
int |
17817 |
|
main () |
17818 |
|
{ |
17819 |
|
return f != shl_load; |
17820 |
|
; |
17821 |
|
return 0; |
17822 |
|
} |
17823 |
|
_ACEOF |
17824 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17825 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17826 |
|
(eval $ac_link) 2>conftest.er1 |
17827 |
|
ac_status=$? |
17828 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17829 |
|
rm -f conftest.er1 |
17830 |
|
cat conftest.err >&5 |
17831 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17832 |
|
(exit $ac_status); } && |
17833 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17834 |
|
|| test ! -s conftest.err' |
17835 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17836 |
|
(eval $ac_try) 2>&5 |
17837 |
|
ac_status=$? |
17838 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17839 |
|
(exit $ac_status); }; } && |
17840 |
|
{ ac_try='test -s conftest$ac_exeext' |
17841 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17842 |
|
(eval $ac_try) 2>&5 |
17843 |
|
ac_status=$? |
17844 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17845 |
|
(exit $ac_status); }; }; then |
17846 |
|
ac_cv_func_shl_load=yes |
17847 |
|
else |
17848 |
|
echo "$as_me: failed program was:" >&5 |
17849 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17850 |
|
|
17851 |
|
ac_cv_func_shl_load=no |
17852 |
|
fi |
17853 |
|
rm -f conftest.err conftest.$ac_objext \ |
17854 |
|
conftest$ac_exeext conftest.$ac_ext |
17855 |
|
fi |
17856 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
17857 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
17858 |
|
if test $ac_cv_func_shl_load = yes; then |
17859 |
|
lt_cv_dlopen="shl_load" |
17860 |
|
else |
17861 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
17862 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
17863 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
17864 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17865 |
|
else |
17866 |
|
ac_check_lib_save_LIBS=$LIBS |
17867 |
|
LIBS="-ldld $LIBS" |
17868 |
|
cat >conftest.$ac_ext <<_ACEOF |
17869 |
|
/* confdefs.h. */ |
17870 |
|
_ACEOF |
17871 |
|
cat confdefs.h >>conftest.$ac_ext |
17872 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17873 |
|
/* end confdefs.h. */ |
17874 |
|
|
17875 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17876 |
|
#ifdef __cplusplus |
17877 |
|
extern "C" |
17878 |
|
#endif |
17879 |
|
/* We use char because int might match the return type of a gcc2 |
17880 |
|
builtin and then its argument prototype would still apply. */ |
17881 |
|
char shl_load (); |
17882 |
|
int |
17883 |
|
main () |
17884 |
|
{ |
17885 |
|
shl_load (); |
17886 |
|
; |
17887 |
|
return 0; |
17888 |
|
} |
17889 |
|
_ACEOF |
17890 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17891 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17892 |
|
(eval $ac_link) 2>conftest.er1 |
17893 |
|
ac_status=$? |
17894 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17895 |
|
rm -f conftest.er1 |
17896 |
|
cat conftest.err >&5 |
17897 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17898 |
|
(exit $ac_status); } && |
17899 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17900 |
|
|| test ! -s conftest.err' |
17901 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17902 |
|
(eval $ac_try) 2>&5 |
17903 |
|
ac_status=$? |
17904 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17905 |
|
(exit $ac_status); }; } && |
17906 |
|
{ ac_try='test -s conftest$ac_exeext' |
17907 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17908 |
|
(eval $ac_try) 2>&5 |
17909 |
|
ac_status=$? |
17910 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17911 |
|
(exit $ac_status); }; }; then |
17912 |
|
ac_cv_lib_dld_shl_load=yes |
17913 |
|
else |
17914 |
|
echo "$as_me: failed program was:" >&5 |
17915 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17916 |
|
|
17917 |
|
ac_cv_lib_dld_shl_load=no |
17918 |
|
fi |
17919 |
|
rm -f conftest.err conftest.$ac_objext \ |
17920 |
|
conftest$ac_exeext conftest.$ac_ext |
17921 |
|
LIBS=$ac_check_lib_save_LIBS |
17922 |
|
fi |
17923 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
17924 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
17925 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
17926 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
17927 |
|
else |
17928 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
17929 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
17930 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
17931 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17932 |
|
else |
17933 |
|
cat >conftest.$ac_ext <<_ACEOF |
17934 |
|
/* confdefs.h. */ |
17935 |
|
_ACEOF |
17936 |
|
cat confdefs.h >>conftest.$ac_ext |
17937 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17938 |
|
/* end confdefs.h. */ |
17939 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
17940 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
17941 |
|
#define dlopen innocuous_dlopen |
17942 |
|
|
17943 |
|
/* System header to define __stub macros and hopefully few prototypes, |
17944 |
|
which can conflict with char dlopen (); below. |
17945 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17946 |
|
<limits.h> exists even on freestanding compilers. */ |
17947 |
|
|
17948 |
|
#ifdef __STDC__ |
17949 |
|
# include <limits.h> |
17950 |
|
#else |
17951 |
|
# include <assert.h> |
17952 |
|
#endif |
17953 |
|
|
17954 |
|
#undef dlopen |
17955 |
|
|
17956 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17957 |
|
#ifdef __cplusplus |
17958 |
|
extern "C" |
17959 |
|
{ |
17960 |
|
#endif |
17961 |
|
/* We use char because int might match the return type of a gcc2 |
17962 |
|
builtin and then its argument prototype would still apply. */ |
17963 |
|
char dlopen (); |
17964 |
|
/* The GNU C library defines this for functions which it implements |
17965 |
|
to always fail with ENOSYS. Some functions are actually named |
17966 |
|
something starting with __ and the normal name is an alias. */ |
17967 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
17968 |
|
choke me |
17969 |
|
#else |
17970 |
|
char (*f) () = dlopen; |
17971 |
|
#endif |
17972 |
|
#ifdef __cplusplus |
17973 |
|
} |
17974 |
|
#endif |
17975 |
|
|
17976 |
|
int |
17977 |
|
main () |
17978 |
|
{ |
17979 |
|
return f != dlopen; |
17980 |
|
; |
17981 |
|
return 0; |
17982 |
|
} |
17983 |
|
_ACEOF |
17984 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17985 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17986 |
|
(eval $ac_link) 2>conftest.er1 |
17987 |
|
ac_status=$? |
17988 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17989 |
|
rm -f conftest.er1 |
17990 |
|
cat conftest.err >&5 |
17991 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17992 |
|
(exit $ac_status); } && |
17993 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17994 |
|
|| test ! -s conftest.err' |
17995 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17996 |
|
(eval $ac_try) 2>&5 |
17997 |
|
ac_status=$? |
17998 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17999 |
|
(exit $ac_status); }; } && |
18000 |
|
{ ac_try='test -s conftest$ac_exeext' |
18001 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18002 |
|
(eval $ac_try) 2>&5 |
18003 |
|
ac_status=$? |
18004 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18005 |
|
(exit $ac_status); }; }; then |
18006 |
|
ac_cv_func_dlopen=yes |
18007 |
|
else |
18008 |
|
echo "$as_me: failed program was:" >&5 |
18009 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18010 |
|
|
18011 |
|
ac_cv_func_dlopen=no |
18012 |
|
fi |
18013 |
|
rm -f conftest.err conftest.$ac_objext \ |
18014 |
|
conftest$ac_exeext conftest.$ac_ext |
18015 |
|
fi |
18016 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
18017 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
18018 |
|
if test $ac_cv_func_dlopen = yes; then |
18019 |
|
lt_cv_dlopen="dlopen" |
18020 |
|
else |
18021 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18022 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
18023 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
18024 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18025 |
|
else |
18026 |
|
ac_check_lib_save_LIBS=$LIBS |
18027 |
|
LIBS="-ldl $LIBS" |
18028 |
|
cat >conftest.$ac_ext <<_ACEOF |
18029 |
|
/* confdefs.h. */ |
18030 |
|
_ACEOF |
18031 |
|
cat confdefs.h >>conftest.$ac_ext |
18032 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18033 |
|
/* end confdefs.h. */ |
18034 |
|
|
18035 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18036 |
|
#ifdef __cplusplus |
18037 |
|
extern "C" |
18038 |
|
#endif |
18039 |
|
/* We use char because int might match the return type of a gcc2 |
18040 |
|
builtin and then its argument prototype would still apply. */ |
18041 |
|
char dlopen (); |
18042 |
|
int |
18043 |
|
main () |
18044 |
|
{ |
18045 |
|
dlopen (); |
18046 |
|
; |
18047 |
|
return 0; |
18048 |
|
} |
18049 |
|
_ACEOF |
18050 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18051 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18052 |
|
(eval $ac_link) 2>conftest.er1 |
18053 |
|
ac_status=$? |
18054 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18055 |
|
rm -f conftest.er1 |
18056 |
|
cat conftest.err >&5 |
18057 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18058 |
|
(exit $ac_status); } && |
18059 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18060 |
|
|| test ! -s conftest.err' |
18061 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18062 |
|
(eval $ac_try) 2>&5 |
18063 |
|
ac_status=$? |
18064 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18065 |
|
(exit $ac_status); }; } && |
18066 |
|
{ ac_try='test -s conftest$ac_exeext' |
18067 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18068 |
|
(eval $ac_try) 2>&5 |
18069 |
|
ac_status=$? |
18070 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18071 |
|
(exit $ac_status); }; }; then |
18072 |
|
ac_cv_lib_dl_dlopen=yes |
18073 |
|
else |
18074 |
|
echo "$as_me: failed program was:" >&5 |
18075 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18076 |
|
|
18077 |
|
ac_cv_lib_dl_dlopen=no |
18078 |
|
fi |
18079 |
|
rm -f conftest.err conftest.$ac_objext \ |
18080 |
|
conftest$ac_exeext conftest.$ac_ext |
18081 |
|
LIBS=$ac_check_lib_save_LIBS |
18082 |
|
fi |
18083 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18084 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
18085 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
18086 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
18087 |
|
else |
18088 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
18089 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
18090 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
18091 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18092 |
|
else |
18093 |
|
ac_check_lib_save_LIBS=$LIBS |
18094 |
|
LIBS="-lsvld $LIBS" |
18095 |
|
cat >conftest.$ac_ext <<_ACEOF |
18096 |
|
/* confdefs.h. */ |
18097 |
|
_ACEOF |
18098 |
|
cat confdefs.h >>conftest.$ac_ext |
18099 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18100 |
|
/* end confdefs.h. */ |
18101 |
|
|
18102 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18103 |
|
#ifdef __cplusplus |
18104 |
|
extern "C" |
18105 |
|
#endif |
18106 |
|
/* We use char because int might match the return type of a gcc2 |
18107 |
|
builtin and then its argument prototype would still apply. */ |
18108 |
|
char dlopen (); |
18109 |
|
int |
18110 |
|
main () |
18111 |
|
{ |
18112 |
|
dlopen (); |
18113 |
|
; |
18114 |
|
return 0; |
18115 |
|
} |
18116 |
|
_ACEOF |
18117 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18118 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18119 |
|
(eval $ac_link) 2>conftest.er1 |
18120 |
|
ac_status=$? |
18121 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18122 |
|
rm -f conftest.er1 |
18123 |
|
cat conftest.err >&5 |
18124 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18125 |
|
(exit $ac_status); } && |
18126 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18127 |
|
|| test ! -s conftest.err' |
18128 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18129 |
|
(eval $ac_try) 2>&5 |
18130 |
|
ac_status=$? |
18131 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18132 |
|
(exit $ac_status); }; } && |
18133 |
|
{ ac_try='test -s conftest$ac_exeext' |
18134 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18135 |
|
(eval $ac_try) 2>&5 |
18136 |
|
ac_status=$? |
18137 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18138 |
|
(exit $ac_status); }; }; then |
18139 |
|
ac_cv_lib_svld_dlopen=yes |
18140 |
|
else |
18141 |
|
echo "$as_me: failed program was:" >&5 |
18142 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18143 |
|
|
18144 |
|
ac_cv_lib_svld_dlopen=no |
18145 |
|
fi |
18146 |
|
rm -f conftest.err conftest.$ac_objext \ |
18147 |
|
conftest$ac_exeext conftest.$ac_ext |
18148 |
|
LIBS=$ac_check_lib_save_LIBS |
18149 |
|
fi |
18150 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
18151 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
18152 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
18153 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
18154 |
|
else |
18155 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
18156 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
18157 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
18158 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18159 |
|
else |
18160 |
|
ac_check_lib_save_LIBS=$LIBS |
18161 |
|
LIBS="-ldld $LIBS" |
18162 |
|
cat >conftest.$ac_ext <<_ACEOF |
18163 |
|
/* confdefs.h. */ |
18164 |
|
_ACEOF |
18165 |
|
cat confdefs.h >>conftest.$ac_ext |
18166 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18167 |
|
/* end confdefs.h. */ |
18168 |
|
|
18169 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18170 |
|
#ifdef __cplusplus |
18171 |
|
extern "C" |
18172 |
|
#endif |
18173 |
|
/* We use char because int might match the return type of a gcc2 |
18174 |
|
builtin and then its argument prototype would still apply. */ |
18175 |
|
char dld_link (); |
18176 |
|
int |
18177 |
|
main () |
18178 |
|
{ |
18179 |
|
dld_link (); |
18180 |
|
; |
18181 |
|
return 0; |
18182 |
|
} |
18183 |
|
_ACEOF |
18184 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18185 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18186 |
|
(eval $ac_link) 2>conftest.er1 |
18187 |
|
ac_status=$? |
18188 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18189 |
|
rm -f conftest.er1 |
18190 |
|
cat conftest.err >&5 |
18191 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18192 |
|
(exit $ac_status); } && |
18193 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18194 |
|
|| test ! -s conftest.err' |
18195 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18196 |
|
(eval $ac_try) 2>&5 |
18197 |
|
ac_status=$? |
18198 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18199 |
|
(exit $ac_status); }; } && |
18200 |
|
{ ac_try='test -s conftest$ac_exeext' |
18201 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18202 |
|
(eval $ac_try) 2>&5 |
18203 |
|
ac_status=$? |
18204 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18205 |
|
(exit $ac_status); }; }; then |
18206 |
|
ac_cv_lib_dld_dld_link=yes |
18207 |
|
else |
18208 |
|
echo "$as_me: failed program was:" >&5 |
18209 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18210 |
|
|
18211 |
|
ac_cv_lib_dld_dld_link=no |
18212 |
|
fi |
18213 |
|
rm -f conftest.err conftest.$ac_objext \ |
18214 |
|
conftest$ac_exeext conftest.$ac_ext |
18215 |
|
LIBS=$ac_check_lib_save_LIBS |
18216 |
|
fi |
18217 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
18218 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
18219 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
18220 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
18221 |
|
fi |
18222 |
|
|
18223 |
|
|
18224 |
|
fi |
18225 |
|
|
18226 |
|
|
18227 |
|
fi |
18228 |
|
|
18229 |
|
|
18230 |
|
fi |
18231 |
|
|
18232 |
|
|
18233 |
|
fi |
18234 |
|
|
18235 |
|
|
18236 |
|
fi |
18237 |
|
|
18238 |
|
;; |
18239 |
|
esac |
18240 |
|
|
18241 |
|
if test "x$lt_cv_dlopen" != xno; then |
18242 |
|
enable_dlopen=yes |
18243 |
|
else |
18244 |
|
enable_dlopen=no |
18245 |
|
fi |
18246 |
|
|
18247 |
|
case $lt_cv_dlopen in |
18248 |
|
dlopen) |
18249 |
|
save_CPPFLAGS="$CPPFLAGS" |
18250 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
18251 |
|
|
18252 |
|
save_LDFLAGS="$LDFLAGS" |
18253 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
18254 |
|
|
18255 |
|
save_LIBS="$LIBS" |
18256 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
18257 |
|
|
18258 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
18259 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
18260 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
18261 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18262 |
|
else |
18263 |
|
if test "$cross_compiling" = yes; then : |
18264 |
|
lt_cv_dlopen_self=cross |
18265 |
|
else |
18266 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18267 |
|
lt_status=$lt_dlunknown |
18268 |
|
cat > conftest.$ac_ext <<EOF |
18269 |
|
#line 18269 "configure" |
18270 |
|
#include "confdefs.h" |
18271 |
|
|
18272 |
|
#if HAVE_DLFCN_H |
18273 |
|
#include <dlfcn.h> |
18274 |
|
#endif |
18275 |
|
|
18276 |
|
#include <stdio.h> |
18277 |
|
|
18278 |
|
#ifdef RTLD_GLOBAL |
18279 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18280 |
|
#else |
18281 |
|
# ifdef DL_GLOBAL |
18282 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18283 |
|
# else |
18284 |
|
# define LT_DLGLOBAL 0 |
18285 |
|
# endif |
18286 |
|
#endif |
18287 |
|
|
18288 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18289 |
|
find out it does not work in some platform. */ |
18290 |
|
#ifndef LT_DLLAZY_OR_NOW |
18291 |
|
# ifdef RTLD_LAZY |
18292 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18293 |
|
# else |
18294 |
|
# ifdef DL_LAZY |
18295 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18296 |
|
# else |
18297 |
|
# ifdef RTLD_NOW |
18298 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18299 |
|
# else |
18300 |
|
# ifdef DL_NOW |
18301 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18302 |
|
# else |
18303 |
|
# define LT_DLLAZY_OR_NOW 0 |
18304 |
|
# endif |
18305 |
|
# endif |
18306 |
|
# endif |
18307 |
|
# endif |
18308 |
|
#endif |
18309 |
|
|
18310 |
|
#ifdef __cplusplus |
18311 |
|
extern "C" void exit (int); |
18312 |
|
#endif |
18313 |
|
|
18314 |
|
void fnord() { int i=42;} |
18315 |
|
int main () |
18316 |
|
{ |
18317 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18318 |
|
int status = $lt_dlunknown; |
18319 |
|
|
18320 |
|
if (self) |
18321 |
|
{ |
18322 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18323 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18324 |
|
/* dlclose (self); */ |
18325 |
|
} |
18326 |
|
|
18327 |
|
exit (status); |
18328 |
|
} |
18329 |
|
EOF |
18330 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18331 |
|
(eval $ac_link) 2>&5 |
18332 |
|
ac_status=$? |
18333 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18334 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18335 |
|
(./conftest; exit; ) 2>/dev/null |
18336 |
|
lt_status=$? |
18337 |
|
case x$lt_status in |
18338 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
18339 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
18340 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
18341 |
|
esac |
18342 |
|
else : |
18343 |
|
# compilation failed |
18344 |
|
lt_cv_dlopen_self=no |
18345 |
|
fi |
18346 |
|
fi |
18347 |
|
rm -fr conftest* |
18348 |
|
|
18349 |
|
|
18350 |
|
fi |
18351 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
18352 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
18353 |
|
|
18354 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
18355 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
18356 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
18357 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
18358 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
18359 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18360 |
|
else |
18361 |
|
if test "$cross_compiling" = yes; then : |
18362 |
|
lt_cv_dlopen_self_static=cross |
18363 |
|
else |
18364 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18365 |
|
lt_status=$lt_dlunknown |
18366 |
|
cat > conftest.$ac_ext <<EOF |
18367 |
|
#line 18367 "configure" |
18368 |
|
#include "confdefs.h" |
18369 |
|
|
18370 |
|
#if HAVE_DLFCN_H |
18371 |
|
#include <dlfcn.h> |
18372 |
|
#endif |
18373 |
|
|
18374 |
|
#include <stdio.h> |
18375 |
|
|
18376 |
|
#ifdef RTLD_GLOBAL |
18377 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18378 |
|
#else |
18379 |
|
# ifdef DL_GLOBAL |
18380 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18381 |
|
# else |
18382 |
|
# define LT_DLGLOBAL 0 |
18383 |
|
# endif |
18384 |
|
#endif |
18385 |
|
|
18386 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18387 |
|
find out it does not work in some platform. */ |
18388 |
|
#ifndef LT_DLLAZY_OR_NOW |
18389 |
|
# ifdef RTLD_LAZY |
18390 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18391 |
|
# else |
18392 |
|
# ifdef DL_LAZY |
18393 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18394 |
|
# else |
18395 |
|
# ifdef RTLD_NOW |
18396 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18397 |
|
# else |
18398 |
|
# ifdef DL_NOW |
18399 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18400 |
|
# else |
18401 |
|
# define LT_DLLAZY_OR_NOW 0 |
18402 |
|
# endif |
18403 |
|
# endif |
18404 |
|
# endif |
18405 |
|
# endif |
18406 |
|
#endif |
18407 |
|
|
18408 |
|
#ifdef __cplusplus |
18409 |
|
extern "C" void exit (int); |
18410 |
|
#endif |
18411 |
|
|
18412 |
|
void fnord() { int i=42;} |
18413 |
|
int main () |
18414 |
|
{ |
18415 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18416 |
|
int status = $lt_dlunknown; |
18417 |
|
|
18418 |
|
if (self) |
18419 |
|
{ |
18420 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18421 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18422 |
|
/* dlclose (self); */ |
18423 |
|
} |
18424 |
|
|
18425 |
|
exit (status); |
18426 |
|
} |
18427 |
|
EOF |
18428 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18429 |
|
(eval $ac_link) 2>&5 |
18430 |
|
ac_status=$? |
18431 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18432 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18433 |
|
(./conftest; exit; ) 2>/dev/null |
18434 |
|
lt_status=$? |
18435 |
|
case x$lt_status in |
18436 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
18437 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
18438 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
18439 |
|
esac |
18440 |
|
else : |
18441 |
|
# compilation failed |
18442 |
|
lt_cv_dlopen_self_static=no |
18443 |
|
fi |
18444 |
|
fi |
18445 |
|
rm -fr conftest* |
18446 |
|
|
18447 |
|
|
18448 |
|
fi |
18449 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
18450 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
18451 |
|
fi |
18452 |
|
|
18453 |
|
CPPFLAGS="$save_CPPFLAGS" |
18454 |
|
LDFLAGS="$save_LDFLAGS" |
18455 |
|
LIBS="$save_LIBS" |
18456 |
|
;; |
18457 |
|
esac |
18458 |
|
|
18459 |
|
case $lt_cv_dlopen_self in |
18460 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
18461 |
|
*) enable_dlopen_self=unknown ;; |
18462 |
|
esac |
18463 |
|
|
18464 |
|
case $lt_cv_dlopen_self_static in |
18465 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
18466 |
|
*) enable_dlopen_self_static=unknown ;; |
18467 |
|
esac |
18468 |
|
fi |
18469 |
|
|
18470 |
|
|
18471 |
|
# The else clause should only fire when bootstrapping the |
18472 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
18473 |
|
# with your package, and you will get complaints that there are |
18474 |
|
# no rules to generate ltmain.sh. |
18475 |
|
if test -f "$ltmain"; then |
18476 |
|
# See if we are running on zsh, and set the options which allow our commands through |
18477 |
|
# without removal of \ escapes. |
18478 |
|
if test -n "${ZSH_VERSION+set}" ; then |
18479 |
|
setopt NO_GLOB_SUBST |
18480 |
|
fi |
18481 |
|
# Now quote all the things that may contain metacharacters while being |
18482 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
18483 |
|
# variables and quote the copies for generation of the libtool script. |
18484 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18485 |
|
SED SHELL STRIP \ |
18486 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18487 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18488 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
18489 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18490 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
18491 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18492 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
18493 |
|
compiler_GCJ \ |
18494 |
|
CC_GCJ \ |
18495 |
|
LD_GCJ \ |
18496 |
|
lt_prog_compiler_wl_GCJ \ |
18497 |
|
lt_prog_compiler_pic_GCJ \ |
18498 |
|
lt_prog_compiler_static_GCJ \ |
18499 |
|
lt_prog_compiler_no_builtin_flag_GCJ \ |
18500 |
|
export_dynamic_flag_spec_GCJ \ |
18501 |
|
thread_safe_flag_spec_GCJ \ |
18502 |
|
whole_archive_flag_spec_GCJ \ |
18503 |
|
enable_shared_with_static_runtimes_GCJ \ |
18504 |
|
old_archive_cmds_GCJ \ |
18505 |
|
old_archive_from_new_cmds_GCJ \ |
18506 |
|
predep_objects_GCJ \ |
18507 |
|
postdep_objects_GCJ \ |
18508 |
|
predeps_GCJ \ |
18509 |
|
postdeps_GCJ \ |
18510 |
|
compiler_lib_search_path_GCJ \ |
18511 |
|
archive_cmds_GCJ \ |
18512 |
|
archive_expsym_cmds_GCJ \ |
18513 |
|
postinstall_cmds_GCJ \ |
18514 |
|
postuninstall_cmds_GCJ \ |
18515 |
|
old_archive_from_expsyms_cmds_GCJ \ |
18516 |
|
allow_undefined_flag_GCJ \ |
18517 |
|
no_undefined_flag_GCJ \ |
18518 |
|
export_symbols_cmds_GCJ \ |
18519 |
|
hardcode_libdir_flag_spec_GCJ \ |
18520 |
|
hardcode_libdir_flag_spec_ld_GCJ \ |
18521 |
|
hardcode_libdir_separator_GCJ \ |
18522 |
|
hardcode_automatic_GCJ \ |
18523 |
|
module_cmds_GCJ \ |
18524 |
|
module_expsym_cmds_GCJ \ |
18525 |
|
lt_cv_prog_compiler_c_o_GCJ \ |
18526 |
|
exclude_expsyms_GCJ \ |
18527 |
|
include_expsyms_GCJ; do |
18528 |
|
|
18529 |
|
case $var in |
18530 |
|
old_archive_cmds_GCJ | \ |
18531 |
|
old_archive_from_new_cmds_GCJ | \ |
18532 |
|
archive_cmds_GCJ | \ |
18533 |
|
archive_expsym_cmds_GCJ | \ |
18534 |
|
module_cmds_GCJ | \ |
18535 |
|
module_expsym_cmds_GCJ | \ |
18536 |
|
old_archive_from_expsyms_cmds_GCJ | \ |
18537 |
|
export_symbols_cmds_GCJ | \ |
18538 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18539 |
|
postinstall_cmds | postuninstall_cmds | \ |
18540 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
18541 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18542 |
|
# Double-quote double-evaled strings. |
18543 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18544 |
|
;; |
18545 |
|
*) |
18546 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18547 |
|
;; |
18548 |
|
esac |
18549 |
|
done |
18550 |
|
|
18551 |
|
case $lt_echo in |
18552 |
|
*'\$0 --fallback-echo"') |
18553 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18554 |
|
;; |
18555 |
|
esac |
18556 |
|
|
18557 |
|
cfgfile="$ofile" |
18558 |
|
|
18559 |
|
cat <<__EOF__ >> "$cfgfile" |
18560 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18561 |
|
|
18562 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18563 |
|
|
18564 |
|
# Shell to use when invoking shell scripts. |
18565 |
|
SHELL=$lt_SHELL |
18566 |
|
|
18567 |
|
# Whether or not to build shared libraries. |
18568 |
|
build_libtool_libs=$enable_shared |
18569 |
|
|
18570 |
|
# Whether or not to build static libraries. |
18571 |
|
build_old_libs=$enable_static |
18572 |
|
|
18573 |
|
# Whether or not to add -lc for building shared libraries. |
18574 |
|
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18575 |
|
|
18576 |
|
# Whether or not to disallow shared libs when runtime libs are static |
18577 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18578 |
|
|
18579 |
|
# Whether or not to optimize for fast installation. |
18580 |
|
fast_install=$enable_fast_install |
18581 |
|
|
18582 |
|
# The host system. |
18583 |
|
host_alias=$host_alias |
18584 |
|
host=$host |
18585 |
|
|
18586 |
|
# An echo program that does not interpret backslashes. |
18587 |
|
echo=$lt_echo |
18588 |
|
|
18589 |
|
# The archiver. |
18590 |
|
AR=$lt_AR |
18591 |
|
AR_FLAGS=$lt_AR_FLAGS |
18592 |
|
|
18593 |
|
# A C compiler. |
18594 |
|
LTCC=$lt_LTCC |
18595 |
|
|
18596 |
|
# A language-specific compiler. |
18597 |
|
CC=$lt_compiler_GCJ |
18598 |
|
|
18599 |
|
# Is the compiler the GNU C compiler? |
18600 |
|
with_gcc=$GCC_GCJ |
18601 |
|
|
18602 |
|
# An ERE matcher. |
18603 |
|
EGREP=$lt_EGREP |
18604 |
|
|
18605 |
|
# The linker used to build libraries. |
18606 |
|
LD=$lt_LD_GCJ |
18607 |
|
|
18608 |
|
# Whether we need hard or soft links. |
18609 |
|
LN_S=$lt_LN_S |
18610 |
|
|
18611 |
|
# A BSD-compatible nm program. |
18612 |
|
NM=$lt_NM |
18613 |
|
|
18614 |
|
# A symbol stripping program |
18615 |
|
STRIP=$lt_STRIP |
18616 |
|
|
18617 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
18618 |
|
MAGIC_CMD=$MAGIC_CMD |
18619 |
|
|
18620 |
|
# Used on cygwin: DLL creation program. |
18621 |
|
DLLTOOL="$DLLTOOL" |
18622 |
|
|
18623 |
|
# Used on cygwin: object dumper. |
18624 |
|
OBJDUMP="$OBJDUMP" |
18625 |
|
|
18626 |
|
# Used on cygwin: assembler. |
18627 |
|
AS="$AS" |
18628 |
|
|
18629 |
|
# The name of the directory that contains temporary libtool files. |
18630 |
|
objdir=$objdir |
18631 |
|
|
18632 |
|
# How to create reloadable object files. |
18633 |
|
reload_flag=$lt_reload_flag |
18634 |
|
reload_cmds=$lt_reload_cmds |
18635 |
|
|
18636 |
|
# How to pass a linker flag through the compiler. |
18637 |
|
wl=$lt_lt_prog_compiler_wl_GCJ |
18638 |
|
|
18639 |
|
# Object file suffix (normally "o"). |
18640 |
|
objext="$ac_objext" |
18641 |
|
|
18642 |
|
# Old archive suffix (normally "a"). |
18643 |
|
libext="$libext" |
18644 |
|
|
18645 |
|
# Shared library suffix (normally ".so"). |
18646 |
|
shrext_cmds='$shrext_cmds' |
18647 |
|
|
18648 |
|
# Executable file suffix (normally ""). |
18649 |
|
exeext="$exeext" |
18650 |
|
|
18651 |
|
# Additional compiler flags for building library objects. |
18652 |
|
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18653 |
|
pic_mode=$pic_mode |
18654 |
|
|
18655 |
|
# What is the maximum length of a command? |
18656 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
18657 |
|
|
18658 |
|
# Does compiler simultaneously support -c and -o options? |
18659 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18660 |
|
|
18661 |
|
# Must we lock files when doing compilation ? |
18662 |
|
need_locks=$lt_need_locks |
18663 |
|
|
18664 |
|
# Do we need the lib prefix for modules? |
18665 |
|
need_lib_prefix=$need_lib_prefix |
18666 |
|
|
18667 |
|
# Do we need a version for libraries? |
18668 |
|
need_version=$need_version |
18669 |
|
|
18670 |
|
# Whether dlopen is supported. |
18671 |
|
dlopen_support=$enable_dlopen |
18672 |
|
|
18673 |
|
# Whether dlopen of programs is supported. |
18674 |
|
dlopen_self=$enable_dlopen_self |
18675 |
|
|
18676 |
|
# Whether dlopen of statically linked programs is supported. |
18677 |
|
dlopen_self_static=$enable_dlopen_self_static |
18678 |
|
|
18679 |
|
# Compiler flag to prevent dynamic linking. |
18680 |
|
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18681 |
|
|
18682 |
|
# Compiler flag to turn off builtin functions. |
18683 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18684 |
|
|
18685 |
|
# Compiler flag to allow reflexive dlopens. |
18686 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18687 |
|
|
18688 |
|
# Compiler flag to generate shared objects directly from archives. |
18689 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18690 |
|
|
18691 |
ac_cv_lib_dl_dlopen=no |
# Compiler flag to generate thread-safe objects. |
18692 |
fi |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-lsvld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
18693 |
|
|
18694 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# Library versioning type. |
18695 |
#ifdef __cplusplus |
version_type=$version_type |
|
extern "C" |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char dlopen (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
dlopen (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_svld_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18696 |
|
|
18697 |
ac_cv_lib_svld_dlopen=no |
# Format of library name prefix. |
18698 |
fi |
libname_spec=$lt_libname_spec |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-ldld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
18699 |
|
|
18700 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# List of archive names. First name is the real one, the rest are links. |
18701 |
#ifdef __cplusplus |
# The last name is the one that the linker finds with -lNAME. |
18702 |
extern "C" |
library_names_spec=$lt_library_names_spec |
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char dld_link (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
dld_link (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_dld_dld_link=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
18703 |
|
|
18704 |
ac_cv_lib_dld_dld_link=no |
# The coded name of the library, if different from the real name. |
18705 |
fi |
soname_spec=$lt_soname_spec |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
fi |
|
18706 |
|
|
18707 |
|
# Commands used to build and install an old-style archive. |
18708 |
|
RANLIB=$lt_RANLIB |
18709 |
|
old_archive_cmds=$lt_old_archive_cmds_GCJ |
18710 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
18711 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18712 |
|
|
18713 |
fi |
# Create an old-style archive from a shared archive. |
18714 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18715 |
|
|
18716 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
18717 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18718 |
|
|
18719 |
fi |
# Commands used to build and install a shared archive. |
18720 |
|
archive_cmds=$lt_archive_cmds_GCJ |
18721 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18722 |
|
postinstall_cmds=$lt_postinstall_cmds |
18723 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
18724 |
|
|
18725 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
18726 |
|
module_cmds=$lt_module_cmds_GCJ |
18727 |
|
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18728 |
|
|
18729 |
fi |
# Commands to strip libraries. |
18730 |
|
old_striplib=$lt_old_striplib |
18731 |
|
striplib=$lt_striplib |
18732 |
|
|
18733 |
|
# Dependencies to place before the objects being linked to create a |
18734 |
|
# shared library. |
18735 |
|
predep_objects=$lt_predep_objects_GCJ |
18736 |
|
|
18737 |
|
# Dependencies to place after the objects being linked to create a |
18738 |
|
# shared library. |
18739 |
|
postdep_objects=$lt_postdep_objects_GCJ |
18740 |
|
|
18741 |
|
# Dependencies to place before the objects being linked to create a |
18742 |
|
# shared library. |
18743 |
|
predeps=$lt_predeps_GCJ |
18744 |
|
|
18745 |
|
# Dependencies to place after the objects being linked to create a |
18746 |
|
# shared library. |
18747 |
|
postdeps=$lt_postdeps_GCJ |
18748 |
|
|
18749 |
|
# The library search path used internally by the compiler when linking |
18750 |
|
# a shared library. |
18751 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
18752 |
|
|
18753 |
fi |
# Method to check whether dependent libraries are shared objects. |
18754 |
|
deplibs_check_method=$lt_deplibs_check_method |
18755 |
|
|
18756 |
|
# Command to use when deplibs_check_method == file_magic. |
18757 |
|
file_magic_cmd=$lt_file_magic_cmd |
18758 |
|
|
18759 |
fi |
# Flag that allows shared libraries with undefined symbols to be built. |
18760 |
|
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18761 |
|
|
18762 |
;; |
# Flag that forces no undefined symbols. |
18763 |
esac |
no_undefined_flag=$lt_no_undefined_flag_GCJ |
18764 |
|
|
18765 |
if test "x$lt_cv_dlopen" != xno; then |
# Commands used to finish a libtool library installation in a directory. |
18766 |
enable_dlopen=yes |
finish_cmds=$lt_finish_cmds |
|
else |
|
|
enable_dlopen=no |
|
|
fi |
|
18767 |
|
|
18768 |
case $lt_cv_dlopen in |
# Same as above, but a single script fragment to be evaled but not shown. |
18769 |
dlopen) |
finish_eval=$lt_finish_eval |
|
save_CPPFLAGS="$CPPFLAGS" |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
18770 |
|
|
18771 |
save_LDFLAGS="$LDFLAGS" |
# Take the output of nm and produce a listing of raw symbols and C names. |
18772 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18773 |
|
|
18774 |
save_LIBS="$LIBS" |
# Transform the output of nm in a proper C declaration |
18775 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18776 |
|
|
18777 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
# Transform the output of nm in a C name address pair |
18778 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$cross_compiling" = yes; then : |
|
|
lt_cv_dlopen_self=cross |
|
|
else |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
lt_status=$lt_dlunknown |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 7857 "configure" |
|
|
#include "confdefs.h" |
|
18779 |
|
|
18780 |
#if HAVE_DLFCN_H |
# This is the shared library runtime path variable. |
18781 |
#include <dlfcn.h> |
runpath_var=$runpath_var |
|
#endif |
|
18782 |
|
|
18783 |
#include <stdio.h> |
# This is the shared library path variable. |
18784 |
|
shlibpath_var=$shlibpath_var |
18785 |
|
|
18786 |
#ifdef RTLD_GLOBAL |
# Is shlibpath searched before the hard-coded library search path? |
18787 |
# define LT_DLGLOBAL RTLD_GLOBAL |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
#else |
|
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
18788 |
|
|
18789 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# How to hardcode a shared library path into an executable. |
18790 |
find out it does not work in some platform. */ |
hardcode_action=$hardcode_action_GCJ |
18791 |
#ifndef LT_DLLAZY_OR_NOW |
|
18792 |
# ifdef RTLD_LAZY |
# Whether we should hardcode library paths into libraries. |
18793 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
hardcode_into_libs=$hardcode_into_libs |
18794 |
# else |
|
18795 |
# ifdef DL_LAZY |
# Flag to hardcode \$libdir into a binary during linking. |
18796 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
# This must work even if \$libdir does not exist. |
18797 |
# else |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18798 |
# ifdef RTLD_NOW |
|
18799 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
# If ld is used when linking, flag to hardcode \$libdir into |
18800 |
# else |
# a binary during linking. This must work even if \$libdir does |
18801 |
# ifdef DL_NOW |
# not exist. |
18802 |
# define LT_DLLAZY_OR_NOW DL_NOW |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18803 |
# else |
|
18804 |
# define LT_DLLAZY_OR_NOW 0 |
# Whether we need a single -rpath flag with a separated argument. |
18805 |
# endif |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
18806 |
|
|
18807 |
#ifdef __cplusplus |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18808 |
extern "C" void exit (int); |
# resulting binary. |
18809 |
#endif |
hardcode_direct=$hardcode_direct_GCJ |
18810 |
|
|
18811 |
void fnord() { int i=42;} |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18812 |
int main () |
# resulting binary. |
18813 |
{ |
hardcode_minus_L=$hardcode_minus_L_GCJ |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
18814 |
|
|
18815 |
if (self) |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18816 |
{ |
# the resulting binary. |
18817 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
18818 |
|
|
18819 |
exit (status); |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
18820 |
} |
# and all subsequent libraries and executables linked against it. |
18821 |
EOF |
hardcode_automatic=$hardcode_automatic_GCJ |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
(./conftest; exit; ) 2>/dev/null |
|
|
lt_status=$? |
|
|
case x$lt_status in |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
esac |
|
|
else : |
|
|
# compilation failed |
|
|
lt_cv_dlopen_self=no |
|
|
fi |
|
|
fi |
|
|
rm -fr conftest* |
|
18822 |
|
|
18823 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
18824 |
|
# restored at relink time. |
18825 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
18826 |
|
|
18827 |
fi |
# Whether libtool must link a program against all its dependency libraries. |
18828 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
link_all_deplibs=$link_all_deplibs_GCJ |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
18829 |
|
|
18830 |
if test "x$lt_cv_dlopen_self" = xyes; then |
# Compile-time system search path for libraries |
18831 |
LDFLAGS="$LDFLAGS $link_static_flag" |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$cross_compiling" = yes; then : |
|
|
lt_cv_dlopen_self_static=cross |
|
|
else |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
lt_status=$lt_dlunknown |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 7955 "configure" |
|
|
#include "confdefs.h" |
|
18832 |
|
|
18833 |
#if HAVE_DLFCN_H |
# Run-time system search path for libraries |
18834 |
#include <dlfcn.h> |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
#endif |
|
18835 |
|
|
18836 |
#include <stdio.h> |
# Fix the shell variable \$srcfile for the compiler. |
18837 |
|
fix_srcfile_path="$fix_srcfile_path_GCJ" |
18838 |
|
|
18839 |
#ifdef RTLD_GLOBAL |
# Set to yes if exported symbols are required. |
18840 |
# define LT_DLGLOBAL RTLD_GLOBAL |
always_export_symbols=$always_export_symbols_GCJ |
|
#else |
|
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
18841 |
|
|
18842 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# The commands to list exported symbols. |
18843 |
find out it does not work in some platform. */ |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
#ifndef LT_DLLAZY_OR_NOW |
|
|
# ifdef RTLD_LAZY |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
# else |
|
|
# ifdef DL_LAZY |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
# else |
|
|
# ifdef RTLD_NOW |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
# else |
|
|
# ifdef DL_NOW |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW |
|
|
# else |
|
|
# define LT_DLLAZY_OR_NOW 0 |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
18844 |
|
|
18845 |
#ifdef __cplusplus |
# The commands to extract the exported symbol list from a shared archive. |
18846 |
extern "C" void exit (int); |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
#endif |
|
18847 |
|
|
18848 |
void fnord() { int i=42;} |
# Symbols that should not be listed in the preloaded symbols. |
18849 |
int main () |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
{ |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
18850 |
|
|
18851 |
if (self) |
# Symbols that must always be exported. |
18852 |
{ |
include_expsyms=$lt_include_expsyms_GCJ |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
18853 |
|
|
18854 |
exit (status); |
# ### END LIBTOOL TAG CONFIG: $tagname |
18855 |
} |
|
18856 |
EOF |
__EOF__ |
18857 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
18858 |
(eval $ac_link) 2>&5 |
|
18859 |
ac_status=$? |
else |
18860 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
# If there is no Makefile yet, we rely on a make rule to execute |
18861 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
# `config.status --recheck' to rerun these tests and create the |
18862 |
(./conftest; exit; ) 2>/dev/null |
# libtool script then. |
18863 |
lt_status=$? |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18864 |
case x$lt_status in |
if test -f "$ltmain_in"; then |
18865 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
test -f Makefile && make "$ltmain" |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
esac |
|
|
else : |
|
|
# compilation failed |
|
|
lt_cv_dlopen_self_static=no |
|
18866 |
fi |
fi |
18867 |
fi |
fi |
|
rm -fr conftest* |
|
18868 |
|
|
18869 |
|
|
18870 |
fi |
ac_ext=c |
18871 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
ac_cpp='$CPP $CPPFLAGS' |
18872 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18873 |
fi |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18874 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18875 |
|
|
18876 |
CPPFLAGS="$save_CPPFLAGS" |
CC="$lt_save_CC" |
|
LDFLAGS="$save_LDFLAGS" |
|
|
LIBS="$save_LIBS" |
|
|
;; |
|
|
esac |
|
18877 |
|
|
18878 |
case $lt_cv_dlopen_self in |
else |
18879 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
tagname="" |
18880 |
*) enable_dlopen_self=unknown ;; |
fi |
18881 |
esac |
;; |
18882 |
|
|
18883 |
case $lt_cv_dlopen_self_static in |
RC) |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
*) enable_dlopen_self_static=unknown ;; |
|
|
esac |
|
|
fi |
|
18884 |
|
|
18885 |
|
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
case $archive_cmds in |
|
|
*'~'*) |
|
|
# FIXME: we may have to deal with multi-command sequences. |
|
|
;; |
|
|
'$CC '*) |
|
|
# Test whether the compiler implicitly links with -lc since on some |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
# to ld, don't add -lc before -lgcc. |
|
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
$rm conftest* |
|
|
echo 'static int dummy;' > conftest.$ac_ext |
|
18886 |
|
|
18887 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
# Source file extension for RC test sources. |
18888 |
(eval $ac_compile) 2>&5 |
ac_ext=rc |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
soname=conftest |
|
|
lib=conftest |
|
|
libobjs=conftest.$ac_objext |
|
|
deplibs= |
|
|
wl=$lt_cv_prog_cc_wl |
|
|
compiler_flags=-v |
|
|
linker_flags=-v |
|
|
verstring= |
|
|
output_objdir=. |
|
|
libname=conftest |
|
|
save_allow_undefined_flag=$allow_undefined_flag |
|
|
allow_undefined_flag= |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
then |
|
|
lt_cv_archive_cmds_need_lc=no |
|
|
else |
|
|
lt_cv_archive_cmds_need_lc=yes |
|
|
fi |
|
|
allow_undefined_flag=$save_allow_undefined_flag |
|
|
else |
|
|
cat conftest.err 1>&5 |
|
|
fi |
|
|
fi |
|
18889 |
|
|
18890 |
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
# Object file extension for compiled RC test sources. |
18891 |
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
objext=o |
18892 |
;; |
objext_RC=$objext |
|
esac |
|
|
fi |
|
|
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
18893 |
|
|
18894 |
# The second clause should only fire when bootstrapping the |
# Code to be used in simple compile tests |
18895 |
|
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18896 |
|
|
18897 |
|
# Code to be used in simple link tests |
18898 |
|
lt_simple_link_test_code="$lt_simple_compile_test_code" |
18899 |
|
|
18900 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18901 |
|
|
18902 |
|
# If no C compiler was specified, use CC. |
18903 |
|
LTCC=${LTCC-"$CC"} |
18904 |
|
|
18905 |
|
# Allow CC to be a program name with arguments. |
18906 |
|
compiler=$CC |
18907 |
|
|
18908 |
|
|
18909 |
|
# Allow CC to be a program name with arguments. |
18910 |
|
lt_save_CC="$CC" |
18911 |
|
CC=${RC-"windres"} |
18912 |
|
compiler=$CC |
18913 |
|
compiler_RC=$CC |
18914 |
|
lt_cv_prog_compiler_c_o_RC=yes |
18915 |
|
|
18916 |
|
# The else clause should only fire when bootstrapping the |
18917 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
18918 |
# with your package, and you will get complaints that there are |
# with your package, and you will get complaints that there are |
18919 |
# no rules to generate ltmain.sh. |
# no rules to generate ltmain.sh. |
18920 |
if test -f "$ltmain"; then |
if test -f "$ltmain"; then |
18921 |
: |
# See if we are running on zsh, and set the options which allow our commands through |
18922 |
else |
# without removal of \ escapes. |
18923 |
# If there is no Makefile yet, we rely on a make rule to execute |
if test -n "${ZSH_VERSION+set}" ; then |
18924 |
# `config.status --recheck' to rerun these tests and create the |
setopt NO_GLOB_SUBST |
18925 |
# libtool script then. |
fi |
|
test -f Makefile && make "$ltmain" |
|
|
fi |
|
|
|
|
|
if test -f "$ltmain"; then |
|
|
trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
$rm -f "${ofile}T" |
|
|
|
|
|
echo creating $ofile |
|
|
|
|
18926 |
# Now quote all the things that may contain metacharacters while being |
# Now quote all the things that may contain metacharacters while being |
18927 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
18928 |
# variables and quote the copies for generation of the libtool script. |
# variables and quote the copies for generation of the libtool script. |
18929 |
for var in echo old_CC old_CFLAGS SED \ |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18930 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
SED SHELL STRIP \ |
18931 |
reload_flag reload_cmds wl \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18932 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18933 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
deplibs_check_method reload_flag reload_cmds need_locks \ |
18934 |
library_names_spec soname_spec \ |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18935 |
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
global_symbol_to_c_name_address \ |
|
|
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
18936 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18937 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
old_postinstall_cmds old_postuninstall_cmds \ |
18938 |
|
compiler_RC \ |
18939 |
|
CC_RC \ |
18940 |
|
LD_RC \ |
18941 |
|
lt_prog_compiler_wl_RC \ |
18942 |
|
lt_prog_compiler_pic_RC \ |
18943 |
|
lt_prog_compiler_static_RC \ |
18944 |
|
lt_prog_compiler_no_builtin_flag_RC \ |
18945 |
|
export_dynamic_flag_spec_RC \ |
18946 |
|
thread_safe_flag_spec_RC \ |
18947 |
|
whole_archive_flag_spec_RC \ |
18948 |
|
enable_shared_with_static_runtimes_RC \ |
18949 |
|
old_archive_cmds_RC \ |
18950 |
|
old_archive_from_new_cmds_RC \ |
18951 |
|
predep_objects_RC \ |
18952 |
|
postdep_objects_RC \ |
18953 |
|
predeps_RC \ |
18954 |
|
postdeps_RC \ |
18955 |
|
compiler_lib_search_path_RC \ |
18956 |
|
archive_cmds_RC \ |
18957 |
|
archive_expsym_cmds_RC \ |
18958 |
|
postinstall_cmds_RC \ |
18959 |
|
postuninstall_cmds_RC \ |
18960 |
|
old_archive_from_expsyms_cmds_RC \ |
18961 |
|
allow_undefined_flag_RC \ |
18962 |
|
no_undefined_flag_RC \ |
18963 |
|
export_symbols_cmds_RC \ |
18964 |
|
hardcode_libdir_flag_spec_RC \ |
18965 |
|
hardcode_libdir_flag_spec_ld_RC \ |
18966 |
|
hardcode_libdir_separator_RC \ |
18967 |
|
hardcode_automatic_RC \ |
18968 |
|
module_cmds_RC \ |
18969 |
|
module_expsym_cmds_RC \ |
18970 |
|
lt_cv_prog_compiler_c_o_RC \ |
18971 |
|
exclude_expsyms_RC \ |
18972 |
|
include_expsyms_RC; do |
18973 |
|
|
18974 |
case $var in |
case $var in |
18975 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
old_archive_cmds_RC | \ |
18976 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
old_archive_from_new_cmds_RC | \ |
18977 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
archive_cmds_RC | \ |
18978 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
archive_expsym_cmds_RC | \ |
18979 |
|
module_cmds_RC | \ |
18980 |
|
module_expsym_cmds_RC | \ |
18981 |
|
old_archive_from_expsyms_cmds_RC | \ |
18982 |
|
export_symbols_cmds_RC | \ |
18983 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18984 |
postinstall_cmds | postuninstall_cmds | \ |
postinstall_cmds | postuninstall_cmds | \ |
18985 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
old_postinstall_cmds | old_postuninstall_cmds | \ |
18986 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18987 |
# Double-quote double-evaled strings. |
# Double-quote double-evaled strings. |
18988 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18989 |
;; |
;; |
18993 |
esac |
esac |
18994 |
done |
done |
18995 |
|
|
18996 |
cat <<__EOF__ > "${ofile}T" |
case $lt_echo in |
18997 |
#! $SHELL |
*'\$0 --fallback-echo"') |
18998 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18999 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
;; |
19000 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
esac |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
# |
|
|
# Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
# |
|
|
# 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 |
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
# (at your option) any later version. |
|
|
# |
|
|
# This program is distributed in the hope that it will be useful, but |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
# General Public License for more details. |
|
|
# |
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
# |
|
|
# As a special exception to the GNU General Public License, if you |
|
|
# distribute this file as part of a program that contains a |
|
|
# configuration script generated by Autoconf, you may include it under |
|
|
# the same distribution terms that you use for the rest of that program. |
|
|
|
|
|
# A sed that does not truncate output. |
|
|
SED=$lt_SED |
|
|
|
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
Xsed="${SED} -e s/^X//" |
|
19001 |
|
|
19002 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
cfgfile="$ofile" |
|
# if CDPATH is set. |
|
|
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
19003 |
|
|
19004 |
# ### BEGIN LIBTOOL CONFIG |
cat <<__EOF__ >> "$cfgfile" |
19005 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19006 |
|
|
19007 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19008 |
|
|
19016 |
build_old_libs=$enable_static |
build_old_libs=$enable_static |
19017 |
|
|
19018 |
# Whether or not to add -lc for building shared libraries. |
# Whether or not to add -lc for building shared libraries. |
19019 |
build_libtool_need_lc=$need_lc |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
19020 |
|
|
19021 |
|
# Whether or not to disallow shared libs when runtime libs are static |
19022 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19023 |
|
|
19024 |
# Whether or not to optimize for fast installation. |
# Whether or not to optimize for fast installation. |
19025 |
fast_install=$enable_fast_install |
fast_install=$enable_fast_install |
19035 |
AR=$lt_AR |
AR=$lt_AR |
19036 |
AR_FLAGS=$lt_AR_FLAGS |
AR_FLAGS=$lt_AR_FLAGS |
19037 |
|
|
19038 |
# The default C compiler. |
# A C compiler. |
19039 |
CC=$lt_CC |
LTCC=$lt_LTCC |
19040 |
|
|
19041 |
|
# A language-specific compiler. |
19042 |
|
CC=$lt_compiler_RC |
19043 |
|
|
19044 |
# Is the compiler the GNU C compiler? |
# Is the compiler the GNU C compiler? |
19045 |
with_gcc=$GCC |
with_gcc=$GCC_RC |
19046 |
|
|
19047 |
|
# An ERE matcher. |
19048 |
|
EGREP=$lt_EGREP |
19049 |
|
|
19050 |
# The linker used to build libraries. |
# The linker used to build libraries. |
19051 |
LD=$lt_LD |
LD=$lt_LD_RC |
19052 |
|
|
19053 |
# Whether we need hard or soft links. |
# Whether we need hard or soft links. |
19054 |
LN_S=$lt_LN_S |
LN_S=$lt_LN_S |
19057 |
NM=$lt_NM |
NM=$lt_NM |
19058 |
|
|
19059 |
# A symbol stripping program |
# A symbol stripping program |
19060 |
STRIP=$STRIP |
STRIP=$lt_STRIP |
19061 |
|
|
19062 |
# Used to examine libraries when file_magic_cmd begins "file" |
# Used to examine libraries when file_magic_cmd begins "file" |
19063 |
MAGIC_CMD=$MAGIC_CMD |
MAGIC_CMD=$MAGIC_CMD |
19079 |
reload_cmds=$lt_reload_cmds |
reload_cmds=$lt_reload_cmds |
19080 |
|
|
19081 |
# How to pass a linker flag through the compiler. |
# How to pass a linker flag through the compiler. |
19082 |
wl=$lt_wl |
wl=$lt_lt_prog_compiler_wl_RC |
19083 |
|
|
19084 |
# Object file suffix (normally "o"). |
# Object file suffix (normally "o"). |
19085 |
objext="$ac_objext" |
objext="$ac_objext" |
19087 |
# Old archive suffix (normally "a"). |
# Old archive suffix (normally "a"). |
19088 |
libext="$libext" |
libext="$libext" |
19089 |
|
|
19090 |
|
# Shared library suffix (normally ".so"). |
19091 |
|
shrext_cmds='$shrext_cmds' |
19092 |
|
|
19093 |
# Executable file suffix (normally ""). |
# Executable file suffix (normally ""). |
19094 |
exeext="$exeext" |
exeext="$exeext" |
19095 |
|
|
19096 |
# Additional compiler flags for building library objects. |
# Additional compiler flags for building library objects. |
19097 |
pic_flag=$lt_pic_flag |
pic_flag=$lt_lt_prog_compiler_pic_RC |
19098 |
pic_mode=$pic_mode |
pic_mode=$pic_mode |
19099 |
|
|
19100 |
|
# What is the maximum length of a command? |
19101 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
19102 |
|
|
19103 |
# Does compiler simultaneously support -c and -o options? |
# Does compiler simultaneously support -c and -o options? |
19104 |
compiler_c_o=$lt_compiler_c_o |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
|
|
|
# Can we write directly to a .lo ? |
|
|
compiler_o_lo=$lt_compiler_o_lo |
|
19105 |
|
|
19106 |
# Must we lock files when doing compilation ? |
# Must we lock files when doing compilation ? |
19107 |
need_locks=$lt_need_locks |
need_locks=$lt_need_locks |
19122 |
dlopen_self_static=$enable_dlopen_self_static |
dlopen_self_static=$enable_dlopen_self_static |
19123 |
|
|
19124 |
# Compiler flag to prevent dynamic linking. |
# Compiler flag to prevent dynamic linking. |
19125 |
link_static_flag=$lt_link_static_flag |
link_static_flag=$lt_lt_prog_compiler_static_RC |
19126 |
|
|
19127 |
# Compiler flag to turn off builtin functions. |
# Compiler flag to turn off builtin functions. |
19128 |
no_builtin_flag=$lt_no_builtin_flag |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19129 |
|
|
19130 |
# Compiler flag to allow reflexive dlopens. |
# Compiler flag to allow reflexive dlopens. |
19131 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19132 |
|
|
19133 |
# Compiler flag to generate shared objects directly from archives. |
# Compiler flag to generate shared objects directly from archives. |
19134 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19135 |
|
|
19136 |
# Compiler flag to generate thread-safe objects. |
# Compiler flag to generate thread-safe objects. |
19137 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19138 |
|
|
19139 |
# Library versioning type. |
# Library versioning type. |
19140 |
version_type=$version_type |
version_type=$version_type |
19151 |
|
|
19152 |
# Commands used to build and install an old-style archive. |
# Commands used to build and install an old-style archive. |
19153 |
RANLIB=$lt_RANLIB |
RANLIB=$lt_RANLIB |
19154 |
old_archive_cmds=$lt_old_archive_cmds |
old_archive_cmds=$lt_old_archive_cmds_RC |
19155 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
old_postinstall_cmds=$lt_old_postinstall_cmds |
19156 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19157 |
|
|
19158 |
# Create an old-style archive from a shared archive. |
# Create an old-style archive from a shared archive. |
19159 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19160 |
|
|
19161 |
# Create a temporary old-style archive to link instead of a shared archive. |
# Create a temporary old-style archive to link instead of a shared archive. |
19162 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19163 |
|
|
19164 |
# Commands used to build and install a shared archive. |
# Commands used to build and install a shared archive. |
19165 |
archive_cmds=$lt_archive_cmds |
archive_cmds=$lt_archive_cmds_RC |
19166 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19167 |
postinstall_cmds=$lt_postinstall_cmds |
postinstall_cmds=$lt_postinstall_cmds |
19168 |
postuninstall_cmds=$lt_postuninstall_cmds |
postuninstall_cmds=$lt_postuninstall_cmds |
19169 |
|
|
19170 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
19171 |
|
module_cmds=$lt_module_cmds_RC |
19172 |
|
module_expsym_cmds=$lt_module_expsym_cmds_RC |
19173 |
|
|
19174 |
# Commands to strip libraries. |
# Commands to strip libraries. |
19175 |
old_striplib=$lt_old_striplib |
old_striplib=$lt_old_striplib |
19176 |
striplib=$lt_striplib |
striplib=$lt_striplib |
19177 |
|
|
19178 |
|
# Dependencies to place before the objects being linked to create a |
19179 |
|
# shared library. |
19180 |
|
predep_objects=$lt_predep_objects_RC |
19181 |
|
|
19182 |
|
# Dependencies to place after the objects being linked to create a |
19183 |
|
# shared library. |
19184 |
|
postdep_objects=$lt_postdep_objects_RC |
19185 |
|
|
19186 |
|
# Dependencies to place before the objects being linked to create a |
19187 |
|
# shared library. |
19188 |
|
predeps=$lt_predeps_RC |
19189 |
|
|
19190 |
|
# Dependencies to place after the objects being linked to create a |
19191 |
|
# shared library. |
19192 |
|
postdeps=$lt_postdeps_RC |
19193 |
|
|
19194 |
|
# The library search path used internally by the compiler when linking |
19195 |
|
# a shared library. |
19196 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
19197 |
|
|
19198 |
# Method to check whether dependent libraries are shared objects. |
# Method to check whether dependent libraries are shared objects. |
19199 |
deplibs_check_method=$lt_deplibs_check_method |
deplibs_check_method=$lt_deplibs_check_method |
19200 |
|
|
19202 |
file_magic_cmd=$lt_file_magic_cmd |
file_magic_cmd=$lt_file_magic_cmd |
19203 |
|
|
19204 |
# Flag that allows shared libraries with undefined symbols to be built. |
# Flag that allows shared libraries with undefined symbols to be built. |
19205 |
allow_undefined_flag=$lt_allow_undefined_flag |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
19206 |
|
|
19207 |
# Flag that forces no undefined symbols. |
# Flag that forces no undefined symbols. |
19208 |
no_undefined_flag=$lt_no_undefined_flag |
no_undefined_flag=$lt_no_undefined_flag_RC |
19209 |
|
|
19210 |
# Commands used to finish a libtool library installation in a directory. |
# Commands used to finish a libtool library installation in a directory. |
19211 |
finish_cmds=$lt_finish_cmds |
finish_cmds=$lt_finish_cmds |
19214 |
finish_eval=$lt_finish_eval |
finish_eval=$lt_finish_eval |
19215 |
|
|
19216 |
# Take the output of nm and produce a listing of raw symbols and C names. |
# Take the output of nm and produce a listing of raw symbols and C names. |
19217 |
global_symbol_pipe=$lt_global_symbol_pipe |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19218 |
|
|
19219 |
# Transform the output of nm in a proper C declaration |
# Transform the output of nm in a proper C declaration |
19220 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19221 |
|
|
19222 |
# Transform the output of nm in a C name address pair |
# Transform the output of nm in a C name address pair |
19223 |
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19224 |
|
|
19225 |
# This is the shared library runtime path variable. |
# This is the shared library runtime path variable. |
19226 |
runpath_var=$runpath_var |
runpath_var=$runpath_var |
19232 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19233 |
|
|
19234 |
# How to hardcode a shared library path into an executable. |
# How to hardcode a shared library path into an executable. |
19235 |
hardcode_action=$hardcode_action |
hardcode_action=$hardcode_action_RC |
19236 |
|
|
19237 |
# Whether we should hardcode library paths into libraries. |
# Whether we should hardcode library paths into libraries. |
19238 |
hardcode_into_libs=$hardcode_into_libs |
hardcode_into_libs=$hardcode_into_libs |
19239 |
|
|
19240 |
# Flag to hardcode \$libdir into a binary during linking. |
# Flag to hardcode \$libdir into a binary during linking. |
19241 |
# This must work even if \$libdir does not exist. |
# This must work even if \$libdir does not exist. |
19242 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19243 |
|
|
19244 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
19245 |
|
# a binary during linking. This must work even if \$libdir does |
19246 |
|
# not exist. |
19247 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19248 |
|
|
19249 |
# Whether we need a single -rpath flag with a separated argument. |
# Whether we need a single -rpath flag with a separated argument. |
19250 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19251 |
|
|
19252 |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19253 |
# resulting binary. |
# resulting binary. |
19254 |
hardcode_direct=$hardcode_direct |
hardcode_direct=$hardcode_direct_RC |
19255 |
|
|
19256 |
# 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 |
19257 |
# resulting binary. |
# resulting binary. |
19258 |
hardcode_minus_L=$hardcode_minus_L |
hardcode_minus_L=$hardcode_minus_L_RC |
19259 |
|
|
19260 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19261 |
# the resulting binary. |
# the resulting binary. |
19262 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19263 |
|
|
19264 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
19265 |
|
# and all subsequent libraries and executables linked against it. |
19266 |
|
hardcode_automatic=$hardcode_automatic_RC |
19267 |
|
|
19268 |
# Variables whose values should be saved in libtool wrapper scripts and |
# Variables whose values should be saved in libtool wrapper scripts and |
19269 |
# restored at relink time. |
# restored at relink time. |
19270 |
variables_saved_for_relink="$variables_saved_for_relink" |
variables_saved_for_relink="$variables_saved_for_relink" |
19271 |
|
|
19272 |
# Whether libtool must link a program against all its dependency libraries. |
# Whether libtool must link a program against all its dependency libraries. |
19273 |
link_all_deplibs=$link_all_deplibs |
link_all_deplibs=$link_all_deplibs_RC |
19274 |
|
|
19275 |
# Compile-time system search path for libraries |
# Compile-time system search path for libraries |
19276 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19279 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19280 |
|
|
19281 |
# Fix the shell variable \$srcfile for the compiler. |
# Fix the shell variable \$srcfile for the compiler. |
19282 |
fix_srcfile_path="$fix_srcfile_path" |
fix_srcfile_path="$fix_srcfile_path_RC" |
19283 |
|
|
19284 |
# Set to yes if exported symbols are required. |
# Set to yes if exported symbols are required. |
19285 |
always_export_symbols=$always_export_symbols |
always_export_symbols=$always_export_symbols_RC |
19286 |
|
|
19287 |
# The commands to list exported symbols. |
# The commands to list exported symbols. |
19288 |
export_symbols_cmds=$lt_export_symbols_cmds |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
19289 |
|
|
19290 |
# The commands to extract the exported symbol list from a shared archive. |
# The commands to extract the exported symbol list from a shared archive. |
19291 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19292 |
|
|
19293 |
# Symbols that should not be listed in the preloaded symbols. |
# Symbols that should not be listed in the preloaded symbols. |
19294 |
exclude_expsyms=$lt_exclude_expsyms |
exclude_expsyms=$lt_exclude_expsyms_RC |
19295 |
|
|
19296 |
# Symbols that must always be exported. |
# Symbols that must always be exported. |
19297 |
include_expsyms=$lt_include_expsyms |
include_expsyms=$lt_include_expsyms_RC |
19298 |
|
|
19299 |
# ### END LIBTOOL CONFIG |
# ### END LIBTOOL TAG CONFIG: $tagname |
19300 |
|
|
19301 |
__EOF__ |
__EOF__ |
19302 |
|
|
|
case $host_os in |
|
|
aix3*) |
|
|
cat <<\EOF >> "${ofile}T" |
|
19303 |
|
|
19304 |
# AIX sometimes has problems with the GCC collect2 program. For some |
else |
19305 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
# If there is no Makefile yet, we rely on a make rule to execute |
19306 |
# vanish in a puff of smoke. |
# `config.status --recheck' to rerun these tests and create the |
19307 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
# libtool script then. |
19308 |
COLLECT_NAMES= |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19309 |
export COLLECT_NAMES |
if test -f "$ltmain_in"; then |
19310 |
|
test -f Makefile && make "$ltmain" |
19311 |
|
fi |
19312 |
fi |
fi |
|
EOF |
|
|
;; |
|
|
esac |
|
19313 |
|
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
cat <<'EOF' >> "${ofile}T" |
|
|
# This is a source program that is used to create dlls on Windows |
|
|
# Don't remove nor modify the starting and closing comments |
|
|
# /* ltdll.c starts here */ |
|
|
# #define WIN32_LEAN_AND_MEAN |
|
|
# #include <windows.h> |
|
|
# #undef WIN32_LEAN_AND_MEAN |
|
|
# #include <stdio.h> |
|
|
# |
|
|
# #ifndef __CYGWIN__ |
|
|
# # ifdef __CYGWIN32__ |
|
|
# # define __CYGWIN__ __CYGWIN32__ |
|
|
# # endif |
|
|
# #endif |
|
|
# |
|
|
# #ifdef __cplusplus |
|
|
# extern "C" { |
|
|
# #endif |
|
|
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
# #ifdef __cplusplus |
|
|
# } |
|
|
# #endif |
|
|
# |
|
|
# #ifdef __CYGWIN__ |
|
|
# #include <cygwin/cygwin_dll.h> |
|
|
# DECLARE_CYGWIN_DLL( DllMain ); |
|
|
# #endif |
|
|
# HINSTANCE __hDllInstance_base; |
|
|
# |
|
|
# BOOL APIENTRY |
|
|
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
# { |
|
|
# __hDllInstance_base = hInst; |
|
|
# return TRUE; |
|
|
# } |
|
|
# /* ltdll.c ends here */ |
|
|
# This is a source program that is used to create import libraries |
|
|
# on Windows for dlls which lack them. Don't remove nor modify the |
|
|
# starting and closing comments |
|
|
# /* impgen.c starts here */ |
|
|
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
# |
|
|
# This file is part of GNU libtool. |
|
|
# |
|
|
# 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 |
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
# (at your option) any later version. |
|
|
# |
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
# |
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
# */ |
|
|
# |
|
|
# #include <stdio.h> /* for printf() */ |
|
|
# #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
# #include <string.h> /* for strdup() */ |
|
|
# |
|
|
# /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
# #ifndef O_BINARY |
|
|
# #define O_BINARY 0 |
|
|
# #endif |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_get16 (fd, offset) |
|
|
# int fd; |
|
|
# int offset; |
|
|
# { |
|
|
# unsigned char b[2]; |
|
|
# lseek (fd, offset, SEEK_SET); |
|
|
# read (fd, b, 2); |
|
|
# return b[0] + (b[1]<<8); |
|
|
# } |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_get32 (fd, offset) |
|
|
# int fd; |
|
|
# int offset; |
|
|
# { |
|
|
# unsigned char b[4]; |
|
|
# lseek (fd, offset, SEEK_SET); |
|
|
# read (fd, b, 4); |
|
|
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
# } |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_as32 (ptr) |
|
|
# void *ptr; |
|
|
# { |
|
|
# unsigned char *b = ptr; |
|
|
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
# } |
|
|
# |
|
|
# int |
|
|
# main (argc, argv) |
|
|
# int argc; |
|
|
# char *argv[]; |
|
|
# { |
|
|
# int dll; |
|
|
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
# unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
# unsigned long name_rvas, nexp; |
|
|
# unsigned char *expdata, *erva; |
|
|
# char *filename, *dll_name; |
|
|
# |
|
|
# filename = argv[1]; |
|
|
# |
|
|
# dll = open(filename, O_RDONLY|O_BINARY); |
|
|
# if (dll < 1) |
|
|
# return 1; |
|
|
# |
|
|
# dll_name = filename; |
|
|
# |
|
|
# for (i=0; filename[i]; i++) |
|
|
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
# dll_name = filename + i +1; |
|
|
# |
|
|
# pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
# opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
# |
|
|
# if (num_entries < 1) /* no exports */ |
|
|
# return 1; |
|
|
# |
|
|
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
# secptr = (pe_header_offset + 4 + 20 + |
|
|
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
# |
|
|
# expptr = 0; |
|
|
# for (i = 0; i < nsections; i++) |
|
|
# { |
|
|
# char sname[8]; |
|
|
# unsigned long secptr1 = secptr + 40 * i; |
|
|
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
# lseek(dll, secptr1, SEEK_SET); |
|
|
# read(dll, sname, 8); |
|
|
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
# { |
|
|
# expptr = fptr + (export_rva - vaddr); |
|
|
# if (export_rva + export_size > vaddr + vsize) |
|
|
# export_size = vsize - (export_rva - vaddr); |
|
|
# break; |
|
|
# } |
|
|
# } |
|
|
# |
|
|
# expdata = (unsigned char*)malloc(export_size); |
|
|
# lseek (dll, expptr, SEEK_SET); |
|
|
# read (dll, expdata, export_size); |
|
|
# erva = expdata - export_rva; |
|
|
# |
|
|
# nexp = pe_as32 (expdata+24); |
|
|
# name_rvas = pe_as32 (expdata+32); |
|
|
# |
|
|
# printf ("EXPORTS\n"); |
|
|
# for (i = 0; i<nexp; i++) |
|
|
# { |
|
|
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
# } |
|
|
# |
|
|
# return 0; |
|
|
# } |
|
|
# /* impgen.c ends here */ |
|
19314 |
|
|
19315 |
EOF |
ac_ext=c |
19316 |
;; |
ac_cpp='$CPP $CPPFLAGS' |
19317 |
esac |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19318 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19319 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19320 |
|
|
19321 |
# We use sed instead of cat because bash on DJGPP gets confused if |
CC="$lt_save_CC" |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
# text mode, it properly converts lines to CR/LF. This bash problem |
|
|
# is reportedly fixed, but why not run on old versions too? |
|
|
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
19322 |
|
|
19323 |
mv -f "${ofile}T" "$ofile" || \ |
;; |
19324 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
19325 |
chmod +x "$ofile" |
*) |
19326 |
fi |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19327 |
|
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19328 |
|
{ (exit 1); exit 1; }; } |
19329 |
|
;; |
19330 |
|
esac |
19331 |
|
|
19332 |
|
# Append the new tag name to the list of available tags. |
19333 |
|
if test -n "$tagname" ; then |
19334 |
|
available_tags="$available_tags $tagname" |
19335 |
|
fi |
19336 |
|
fi |
19337 |
|
done |
19338 |
|
IFS="$lt_save_ifs" |
19339 |
|
|
19340 |
|
# Now substitute the updated list of available tags. |
19341 |
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19342 |
|
mv "${ofile}T" "$ofile" |
19343 |
|
chmod +x "$ofile" |
19344 |
|
else |
19345 |
|
rm -f "${ofile}T" |
19346 |
|
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19347 |
|
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19348 |
|
{ (exit 1); exit 1; }; } |
19349 |
|
fi |
19350 |
|
fi |
19351 |
|
|
19352 |
|
|
19353 |
|
|
19361 |
|
|
19362 |
|
|
19363 |
|
|
19364 |
|
|
19365 |
|
|
19366 |
|
|
19367 |
|
|
19368 |
|
|
19369 |
|
|
19370 |
|
|
19371 |
|
|
19372 |
|
|
19373 |
|
|
19374 |
|
|
19375 |
|
|
19376 |
|
|
19377 |
|
|
19378 |
|
|
19379 |
|
|
19380 |
|
|
19381 |
|
|
19382 |
# Find a good install program. We prefer a C program (faster), |
# Find a good install program. We prefer a C program (faster), |
19383 |
# so one script is as good as another. But avoid the broken or |
# so one script is as good as another. But avoid the broken or |
19384 |
# incompatible versions: |
# incompatible versions: |
19459 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
19460 |
|
|
19461 |
|
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$RANLIB"; then |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
RANLIB=$ac_cv_prog_RANLIB |
|
|
if test -n "$RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
echo "${ECHO_T}$RANLIB" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_RANLIB"; then |
|
|
ac_ct_RANLIB=$RANLIB |
|
|
# Extract the first word of "ranlib", so it can be a program name with args. |
|
|
set dummy ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
else |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
fi |
|
|
fi |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
RANLIB=$ac_ct_RANLIB |
|
|
else |
|
|
RANLIB="$ac_cv_prog_RANLIB" |
|
|
fi |
|
|
|
|
19462 |
|
|
19463 |
|
|
19464 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
19527 |
|
|
19528 |
|
|
19529 |
missing_dir=`cd $ac_aux_dir && pwd` |
missing_dir=`cd $ac_aux_dir && pwd` |
19530 |
echo "$as_me:$LINENO: checking for working aclocal" >&5 |
|
19531 |
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
19532 |
# Run test in a subshell; some versions of sh will print an error if |
|
19533 |
# an executable is not found, even if stderr is redirected. |
|
19534 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
19535 |
if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
|
19536 |
ACLOCAL=aclocal |
|
19537 |
echo "$as_me:$LINENO: result: found" >&5 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
19538 |
echo "${ECHO_T}found" >&6 |
|
19539 |
else |
|
19540 |
ACLOCAL="$missing_dir/missing aclocal" |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
19541 |
echo "$as_me:$LINENO: result: missing" >&5 |
|
19542 |
echo "${ECHO_T}missing" >&6 |
|
19543 |
fi |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
19544 |
|
|
|
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
|
|
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOCONF=autoconf |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOCONF="$missing_dir/missing autoconf" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working automake" >&5 |
|
|
echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (automake --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOMAKE=automake |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOMAKE="$missing_dir/missing automake" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
|
|
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOHEADER=autoheader |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOHEADER="$missing_dir/missing autoheader" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
|
|
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|
|
MAKEINFO=makeinfo |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
MAKEINFO="$missing_dir/missing makeinfo" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
19545 |
|
|
19546 |
|
|
19547 |
|
|
19552 |
fi; |
fi; |
19553 |
|
|
19554 |
ROOT_LIBRARY="${ROOTSYS}/lib" |
ROOT_LIBRARY="${ROOTSYS}/lib" |
19555 |
ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so ${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl" |
|
19556 |
|
ROOT_LDFLAGS=" \ |
19557 |
|
${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \ |
19558 |
|
${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libHist.so \ |
19559 |
|
${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libGraf.so \ |
19560 |
|
${ROOT_LIBRARY}/libGraf3d.so ${ROOT_LIBRARY}/libGpad.so \ |
19561 |
|
${ROOT_LIBRARY}/libGui.so ${ROOT_LIBRARY}/libMinuit.so \ |
19562 |
|
${ROOT_LIBRARY}/libHistPainter.so ${ROOT_LIBRARY}/libTreePlayer.so \ |
19563 |
|
${ROOT_LIBRARY}/libTreeViewer.so ${ROOT_LIBRARY}/libProof.so \ |
19564 |
|
${ROOT_LIBRARY}/libProofGui.so ${ROOT_LIBRARY}/libPhysics.so \ |
19565 |
|
${ROOT_LIBRARY}/libRint.so ${ROOT_LIBRARY}/libHtml.so \ |
19566 |
|
${ROOT_LIBRARY}/libEG.so ${ROOT_LIBRARY}/libGeom.so \ |
19567 |
|
${ROOT_LIBRARY}/libGeomPainter.so ${ROOT_LIBRARY}/libVMC.so \ |
19568 |
|
${ROOT_LIBRARY}/libFumili.so ${ROOT_LIBRARY}/libMLP.so \ |
19569 |
|
${ROOT_LIBRARY}/libGedOld.so ${ROOT_LIBRARY}/libGed.so \ |
19570 |
|
${ROOT_LIBRARY}/libQuadp.so \ |
19571 |
|
${ROOT_LIBRARY}/libGX11.so ${ROOT_LIBRARY}/libGX11TTF.so \ |
19572 |
|
${ROOT_LIBRARY}/libX3d.so \ |
19573 |
|
${ROOT_LIBRARY}/libASImage.so \ |
19574 |
|
${ROOT_LIBRARY}/libThread.so \ |
19575 |
|
-ldl" |
19576 |
|
|
19577 |
|
|
19578 |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
19579 |
|
|
19592 |
fi; |
fi; |
19593 |
if test "$gprof" != no |
if test "$gprof" != no |
19594 |
then |
then |
19595 |
CFLAGS="-pg $CFLAGS" |
CXXFLAGS="-pg $CXXFLAGS" |
19596 |
echo "$as_me:$LINENO: result: enabled" >&5 |
echo "$as_me:$LINENO: result: enabled" >&5 |
19597 |
echo "${ECHO_T}enabled" >&6 |
echo "${ECHO_T}enabled" >&6 |
19598 |
else |
else |
19608 |
fi; |
fi; |
19609 |
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
19610 |
|
|
19611 |
|
#------------------------------------------------------------ |
19612 |
|
|
19613 |
|
# Check whether --with-log4cxx or --without-log4cxx was given. |
19614 |
|
if test "${with_log4cxx+set}" = set; then |
19615 |
|
withval="$with_log4cxx" |
19616 |
|
LOG4CXX=$with_log4cxx |
19617 |
|
fi; |
19618 |
|
|
19619 |
|
LOG4CXX_LIBRARY="${LOG4CXX}/lib" |
19620 |
|
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
19621 |
|
LOG4CXX_LDFLAGS=" ${LOG4CXX_LIBRARY}/liblog4cxx.so " |
19622 |
|
|
19623 |
|
|
19624 |
|
|
19625 |
|
|
19626 |
|
#------------------------------------------------------------ |
19627 |
|
|
19628 |
|
|
19629 |
|
|
19630 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
19631 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
19632 |
if test "${ac_cv_header_stdc+set}" = set; then |
if test "${ac_cv_header_stdc+set}" = set; then |
19795 |
|
|
19796 |
|
|
19797 |
|
|
19798 |
ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile" |
ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/tsbt/Makefile event/tsbb/Makefile event/endrun/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile event/physics/trigger/Makefile event/physics/tof/Makefile event/physics/S4/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/tof/Makefile techmodel/forroutines/trigger/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile" |
19799 |
cat >confcache <<\_ACEOF |
cat >confcache <<\_ACEOF |
19800 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
19801 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
19887 |
LTLIBOBJS=$ac_ltlibobjs |
LTLIBOBJS=$ac_ltlibobjs |
19888 |
|
|
19889 |
|
|
19890 |
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19891 |
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19892 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19893 |
|
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19894 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19895 |
|
{ (exit 1); exit 1; }; } |
19896 |
|
fi |
19897 |
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19898 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19899 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19900 |
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19901 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19902 |
|
{ (exit 1); exit 1; }; } |
19903 |
|
fi |
19904 |
|
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19905 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19906 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19907 |
|
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19908 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19909 |
|
{ (exit 1); exit 1; }; } |
19910 |
|
fi |
19911 |
|
|
19912 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
19913 |
ac_clean_files_save=$ac_clean_files |
ac_clean_files_save=$ac_clean_files |
20341 |
# INIT-COMMANDS section. |
# INIT-COMMANDS section. |
20342 |
# |
# |
20343 |
|
|
20344 |
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20345 |
|
|
20346 |
_ACEOF |
_ACEOF |
20347 |
|
|
20361 |
"event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;; |
"event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;; |
20362 |
"event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;; |
"event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;; |
20363 |
"event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;; |
"event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;; |
20364 |
|
"event/tsbt/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbt/Makefile" ;; |
20365 |
|
"event/tsbb/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbb/Makefile" ;; |
20366 |
|
"event/endrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/endrun/Makefile" ;; |
20367 |
"event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;; |
"event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;; |
20368 |
"event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;; |
"event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;; |
20369 |
"event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;; |
"event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;; |
20370 |
"event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;; |
"event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;; |
20371 |
"event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;; |
"event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;; |
20372 |
|
"event/physics/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/trigger/Makefile" ;; |
20373 |
|
"event/physics/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tof/Makefile" ;; |
20374 |
|
"event/physics/S4/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/S4/Makefile" ;; |
20375 |
"techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;; |
"techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;; |
20376 |
"techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;; |
"techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;; |
20377 |
"techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;; |
"techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;; |
20378 |
"techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;; |
"techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;; |
20379 |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
20380 |
|
"techmodel/forroutines/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tof/Makefile" ;; |
20381 |
|
"techmodel/forroutines/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/trigger/Makefile" ;; |
20382 |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
20383 |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
20384 |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20385 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20386 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20387 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20471 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20472 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20473 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20474 |
|
s,@CYGPATH_W@,$CYGPATH_W,;t t |
20475 |
s,@PACKAGE@,$PACKAGE,;t t |
s,@PACKAGE@,$PACKAGE,;t t |
20476 |
s,@VERSION@,$VERSION,;t t |
s,@VERSION@,$VERSION,;t t |
20477 |
s,@ACLOCAL@,$ACLOCAL,;t t |
s,@ACLOCAL@,$ACLOCAL,;t t |
20479 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
20480 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
20481 |
s,@MAKEINFO@,$MAKEINFO,;t t |
s,@MAKEINFO@,$MAKEINFO,;t t |
20482 |
|
s,@install_sh@,$install_sh,;t t |
20483 |
|
s,@STRIP@,$STRIP,;t t |
20484 |
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
20485 |
|
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
20486 |
|
s,@mkdir_p@,$mkdir_p,;t t |
20487 |
|
s,@AWK@,$AWK,;t t |
20488 |
s,@SET_MAKE@,$SET_MAKE,;t t |
s,@SET_MAKE@,$SET_MAKE,;t t |
20489 |
|
s,@am__leading_dot@,$am__leading_dot,;t t |
20490 |
|
s,@AMTAR@,$AMTAR,;t t |
20491 |
|
s,@am__tar@,$am__tar,;t t |
20492 |
|
s,@am__untar@,$am__untar,;t t |
20493 |
s,@build@,$build,;t t |
s,@build@,$build,;t t |
20494 |
s,@build_cpu@,$build_cpu,;t t |
s,@build_cpu@,$build_cpu,;t t |
20495 |
s,@build_vendor@,$build_vendor,;t t |
s,@build_vendor@,$build_vendor,;t t |
20505 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
20506 |
s,@EXEEXT@,$EXEEXT,;t t |
s,@EXEEXT@,$EXEEXT,;t t |
20507 |
s,@OBJEXT@,$OBJEXT,;t t |
s,@OBJEXT@,$OBJEXT,;t t |
20508 |
|
s,@DEPDIR@,$DEPDIR,;t t |
20509 |
|
s,@am__include@,$am__include,;t t |
20510 |
|
s,@am__quote@,$am__quote,;t t |
20511 |
|
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
20512 |
|
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
20513 |
|
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
20514 |
|
s,@CCDEPMODE@,$CCDEPMODE,;t t |
20515 |
|
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
20516 |
|
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
20517 |
s,@F77@,$F77,;t t |
s,@F77@,$F77,;t t |
20518 |
s,@FFLAGS@,$FFLAGS,;t t |
s,@FFLAGS@,$FFLAGS,;t t |
20519 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
20521 |
s,@CXX@,$CXX,;t t |
s,@CXX@,$CXX,;t t |
20522 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
20523 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
20524 |
|
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
20525 |
|
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
20526 |
|
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
20527 |
|
s,@EGREP@,$EGREP,;t t |
20528 |
s,@LN_S@,$LN_S,;t t |
s,@LN_S@,$LN_S,;t t |
20529 |
s,@ECHO@,$ECHO,;t t |
s,@ECHO@,$ECHO,;t t |
20530 |
|
s,@AR@,$AR,;t t |
20531 |
|
s,@ac_ct_AR@,$ac_ct_AR,;t t |
20532 |
s,@RANLIB@,$RANLIB,;t t |
s,@RANLIB@,$RANLIB,;t t |
20533 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
s,@STRIP@,$STRIP,;t t |
|
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
20534 |
s,@CPP@,$CPP,;t t |
s,@CPP@,$CPP,;t t |
20535 |
s,@EGREP@,$EGREP,;t t |
s,@CXXCPP@,$CXXCPP,;t t |
20536 |
s,@LIBTOOL@,$LIBTOOL,;t t |
s,@LIBTOOL@,$LIBTOOL,;t t |
20537 |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
20538 |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
20539 |
s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t |
s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t |
20540 |
s,@ROOTCINT@,$ROOTCINT,;t t |
s,@ROOTCINT@,$ROOTCINT,;t t |
20541 |
|
s,@LOG4CXX_INCLUDES@,$LOG4CXX_INCLUDES,;t t |
20542 |
|
s,@LOG4CXX_LDFLAGS@,$LOG4CXX_LDFLAGS,;t t |
20543 |
|
s,@LOG4CXX_LIBRARY@,$LOG4CXX_LIBRARY,;t t |
20544 |
s,@LIBOBJS@,$LIBOBJS,;t t |
s,@LIBOBJS@,$LIBOBJS,;t t |
20545 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
20546 |
CEOF |
CEOF |
21002 |
cat $tmp/config.h |
cat $tmp/config.h |
21003 |
rm -f $tmp/config.h |
rm -f $tmp/config.h |
21004 |
fi |
fi |
21005 |
|
# Compute $ac_file's index in $config_headers. |
21006 |
|
_am_stamp_count=1 |
21007 |
|
for _am_header in $config_headers :; do |
21008 |
|
case $_am_header in |
21009 |
|
$ac_file | $ac_file:* ) |
21010 |
|
break ;; |
21011 |
|
* ) |
21012 |
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21013 |
|
esac |
21014 |
|
done |
21015 |
|
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
21016 |
|
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21017 |
|
X$ac_file : 'X\(//\)[^/]' \| \ |
21018 |
|
X$ac_file : 'X\(//\)$' \| \ |
21019 |
|
X$ac_file : 'X\(/\)' \| \ |
21020 |
|
. : '\(.\)' 2>/dev/null || |
21021 |
|
echo X$ac_file | |
21022 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21023 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21024 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21025 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21026 |
|
s/.*/./; q'`/stamp-h$_am_stamp_count |
21027 |
done |
done |
21028 |
_ACEOF |
_ACEOF |
21029 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >>$CONFIG_STATUS <<\_ACEOF |
21140 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
21141 |
echo "$as_me: executing $ac_dest commands" >&6;} |
echo "$as_me: executing $ac_dest commands" >&6;} |
21142 |
case $ac_dest in |
case $ac_dest in |
21143 |
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
21144 |
|
# Strip MF so we end up with the name of the file. |
21145 |
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
21146 |
|
# Check whether this is an Automake generated Makefile or not. |
21147 |
|
# We used to match only the files named `Makefile.in', but |
21148 |
|
# some people rename them; so instead we look at the file content. |
21149 |
|
# Grep'ing the first line is not enough: some people post-process |
21150 |
|
# each Makefile.in and add a new line on top of each file to say so. |
21151 |
|
# So let's grep whole file. |
21152 |
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
21153 |
|
dirpart=`(dirname "$mf") 2>/dev/null || |
21154 |
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21155 |
|
X"$mf" : 'X\(//\)[^/]' \| \ |
21156 |
|
X"$mf" : 'X\(//\)$' \| \ |
21157 |
|
X"$mf" : 'X\(/\)' \| \ |
21158 |
|
. : '\(.\)' 2>/dev/null || |
21159 |
|
echo X"$mf" | |
21160 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21161 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21162 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21163 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21164 |
|
s/.*/./; q'` |
21165 |
|
else |
21166 |
|
continue |
21167 |
|
fi |
21168 |
|
# Extract the definition of DEPDIR, am__include, and am__quote |
21169 |
|
# from the Makefile without running `make'. |
21170 |
|
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
21171 |
|
test -z "$DEPDIR" && continue |
21172 |
|
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
21173 |
|
test -z "am__include" && continue |
21174 |
|
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21175 |
|
# When using ansi2knr, U may be empty or an underscore; expand it |
21176 |
|
U=`sed -n 's/^U = //p' < "$mf"` |
21177 |
|
# Find all dependency output files, they are included files with |
21178 |
|
# $(DEPDIR) in their names. We invoke sed twice because it is the |
21179 |
|
# simplest approach to changing $(DEPDIR) to its actual value in the |
21180 |
|
# expansion. |
21181 |
|
for file in `sed -n " |
21182 |
|
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21183 |
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21184 |
|
# Make sure the directory exists. |
21185 |
|
test -f "$dirpart/$file" && continue |
21186 |
|
fdir=`(dirname "$file") 2>/dev/null || |
21187 |
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21188 |
|
X"$file" : 'X\(//\)[^/]' \| \ |
21189 |
|
X"$file" : 'X\(//\)$' \| \ |
21190 |
|
X"$file" : 'X\(/\)' \| \ |
21191 |
|
. : '\(.\)' 2>/dev/null || |
21192 |
|
echo X"$file" | |
21193 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21194 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21195 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21196 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21197 |
|
s/.*/./; q'` |
21198 |
|
{ if $as_mkdir_p; then |
21199 |
|
mkdir -p $dirpart/$fdir |
21200 |
|
else |
21201 |
|
as_dir=$dirpart/$fdir |
21202 |
|
as_dirs= |
21203 |
|
while test ! -d "$as_dir"; do |
21204 |
|
as_dirs="$as_dir $as_dirs" |
21205 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
21206 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21207 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
21208 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
21209 |
|
X"$as_dir" : 'X\(/\)' \| \ |
21210 |
|
. : '\(.\)' 2>/dev/null || |
21211 |
|
echo X"$as_dir" | |
21212 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21213 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21214 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21215 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21216 |
|
s/.*/./; q'` |
21217 |
|
done |
21218 |
|
test ! -n "$as_dirs" || mkdir $as_dirs |
21219 |
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
21220 |
|
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
21221 |
|
{ (exit 1); exit 1; }; }; } |
21222 |
|
|
21223 |
|
# echo "creating $dirpart/$file" |
21224 |
|
echo '# dummy' > "$dirpart/$file" |
21225 |
|
done |
21226 |
|
done |
21227 |
|
;; |
21228 |
esac |
esac |
21229 |
done |
done |
21230 |
_ACEOF |
_ACEOF |