ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure
(Generate patch)

Comparing deliantra/server/configure (file contents):
Revision 1.3 by elmex, Wed Mar 15 15:35:45 2006 UTC vs.
Revision 1.5 by root, Sun May 7 12:49:18 2006 UTC

1#! /bin/sh 1#! /bin/sh
2# From configure.ac Id.
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for crossfire 1.9.0. 3# Generated by GNU Autoconf 2.59 for crossfire 1.9.0.
5# 4#
6# Report bugs to <crossfire-devel@listserv.real-time.com>. 5# Report bugs to <crossfire-devel@listserv.real-time.com>.
7# 6#
271fi 270fi
272 271
273if test "X$1" = X--fallback-echo; then 272if test "X$1" = X--fallback-echo; then
274 # used as fallback echo 273 # used as fallback echo
275 shift 274 shift
276 cat <<EOF 275 cat <<_LT_EOF
277$* 276$*
278EOF 277_LT_EOF
279 exit 0 278 exit 0
280fi 279fi
281 280
282# The HP-UX ksh and POSIX shell print the target directory to stdout 281# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set. 282# if CDPATH is set.
392fi 391fi
393 392
394 393
395 394
396 395
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host. 396# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 397# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too. 398# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 399ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 400
465#endif 460#endif
466#if HAVE_UNISTD_H 461#if HAVE_UNISTD_H
467# include <unistd.h> 462# include <unistd.h>
468#endif" 463#endif"
469 464
470ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT AWK LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' 465ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL 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 SED EGREP LD NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB ECHO CPP LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON CROSSEDIT LTLIBOBJS'
471ac_subst_files='' 466ac_subst_files=''
472 467
473# Initialize some variables set by options. 468# Initialize some variables set by options.
474ac_init_help= 469ac_init_help=
475ac_init_version=false 470ac_init_version=false
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set} 922ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP 923ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set} 924ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP 925ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951 926
952# 927#
953# Report the --help message. 928# Report the --help message.
954# 929#
955if test "$ac_init_help" = "long"; then 930if test "$ac_init_help" = "long"; then
1039 build shared libraries [default=yes] 1014 build shared libraries [default=yes]
1040 --enable-static[=PKGS] 1015 --enable-static[=PKGS]
1041 build static libraries [default=yes] 1016 build static libraries [default=yes]
1042 --enable-fast-install[=PKGS] 1017 --enable-fast-install[=PKGS]
1043 optimize for fast installation [default=yes] 1018 optimize for fast installation [default=yes]
1019 --disable-dependency-tracking Speeds up one-time builds
1020 --enable-dependency-tracking Do not reject slow dependency extractors
1044 --disable-libtool-lock avoid locking (might break parallel builds) 1021 --disable-libtool-lock avoid locking (might break parallel builds)
1045 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working 1022 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working
1046 1023
1047Optional Packages: 1024Optional Packages:
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use 1027 --with-pic try to use only PIC/non-PIC objects [default=use
1052 both] 1028 both]
1053 --with-tags[=TAGS] 1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 include additional configurations [automatic]
1055 --with-python=dir Directory to look for python headers/library (default=standard system location) 1030 --with-python=dir Directory to look for python headers/library (default=standard system location)
1056 --with-x use the X Window System 1031 --with-x use the X Window System
1057 1032
1058Some influential environment variables: 1033Some influential environment variables:
1059 CC C compiler command 1034 CC C compiler command
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir> 1037 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir> 1039 headers in a nonstandard directory <include dir>
1065 CPP C preprocessor 1040 CPP C preprocessor
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1071 1041
1072Use these variables to override the choices made by `configure' or to help 1042Use these variables to override the choices made by `configure' or to help
1073it to find libraries and programs with nonstandard names/locations. 1043it to find libraries and programs with nonstandard names/locations.
1074 1044
1075Report bugs to <crossfire-devel@listserv.real-time.com>. 1045Report bugs to <crossfire-devel@listserv.real-time.com>.
1542ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1512ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1543ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1513ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 1515
1546 1516
1547am__api_version="1.4" 1517am__api_version="1.7"
1548# Find a good install program. We prefer a C program (faster), 1518# Find a good install program. We prefer a C program (faster),
1549# so one script is as good as another. But avoid the broken or 1519# so one script is as good as another. But avoid the broken or
1550# incompatible versions: 1520# incompatible versions:
1551# SysV /etc/install, /usr/sbin/install 1521# SysV /etc/install, /usr/sbin/install
1552# SunOS /usr/etc/install 1522# SunOS /usr/etc/install
1626 1596
1627echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1597echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1628echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1598echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1629# Just in case 1599# Just in case
1630sleep 1 1600sleep 1
1631echo timestamp > conftestfile 1601echo timestamp > conftest.file
1632# Do `set' in a subshell so we don't clobber the current shell's 1602# Do `set' in a subshell so we don't clobber the current shell's
1633# arguments. Must try -L first in case configure is actually a 1603# arguments. Must try -L first in case configure is actually a
1634# symlink; some systems play weird games with the mod time of symlinks 1604# symlink; some systems play weird games with the mod time of symlinks
1635# (eg FreeBSD returns the mod time of the symlink's containing 1605# (eg FreeBSD returns the mod time of the symlink's containing
1636# directory). 1606# directory).
1637if ( 1607if (
1638 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1608 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1639 if test "$*" = "X"; then 1609 if test "$*" = "X"; then
1640 # -L didn't work. 1610 # -L didn't work.
1641 set X `ls -t $srcdir/configure conftestfile` 1611 set X `ls -t $srcdir/configure conftest.file`
1642 fi 1612 fi
1613 rm -f conftest.file
1643 if test "$*" != "X $srcdir/configure conftestfile" \ 1614 if test "$*" != "X $srcdir/configure conftest.file" \
1644 && test "$*" != "X conftestfile $srcdir/configure"; then 1615 && test "$*" != "X conftest.file $srcdir/configure"; then
1645 1616
1646 # If neither matched, then we have a broken ls. This can happen 1617 # If neither matched, then we have a broken ls. This can happen
1647 # if, for instance, CONFIG_SHELL is bash and it inherits a 1618 # if, for instance, CONFIG_SHELL is bash and it inherits a
1648 # broken ls alias from the environment. This has actually 1619 # broken ls alias from the environment. This has actually
1649 # happened. Such a system could not be considered "sane". 1620 # happened. Such a system could not be considered "sane".
1652echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1623echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1653alias in your environment" >&2;} 1624alias in your environment" >&2;}
1654 { (exit 1); exit 1; }; } 1625 { (exit 1); exit 1; }; }
1655 fi 1626 fi
1656 1627
1657 test "$2" = conftestfile 1628 test "$2" = conftest.file
1658 ) 1629 )
1659then 1630then
1660 # Ok. 1631 # Ok.
1661 : 1632 :
1662else 1633else
1664Check your system clock" >&5 1635Check your system clock" >&5
1665echo "$as_me: error: newly created file is older than distributed files! 1636echo "$as_me: error: newly created file is older than distributed files!
1666Check your system clock" >&2;} 1637Check your system clock" >&2;}
1667 { (exit 1); exit 1; }; } 1638 { (exit 1); exit 1; }; }
1668fi 1639fi
1669rm -f conftest*
1670echo "$as_me:$LINENO: result: yes" >&5 1640echo "$as_me:$LINENO: result: yes" >&5
1671echo "${ECHO_T}yes" >&6 1641echo "${ECHO_T}yes" >&6
1672test "$program_prefix" != NONE && 1642test "$program_prefix" != NONE &&
1673 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1643 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1674# Use a double $ so make ignores it. 1644# Use a double $ so make ignores it.
1680s/[\\$]/&&/g;s/;s,x,x,$// 1650s/[\\$]/&&/g;s/;s,x,x,$//
1681_ACEOF 1651_ACEOF
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1652program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1683rm conftest.sed 1653rm conftest.sed
1684 1654
1655
1656# expand $ac_aux_dir to an absolute path
1657am_aux_dir=`cd $ac_aux_dir && pwd`
1658
1659test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1660# Use eval to expand $SHELL
1661if eval "$MISSING --run true"; then
1662 am_missing_run="$MISSING --run "
1663else
1664 am_missing_run=
1665 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1666echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1667fi
1668
1669for ac_prog in gawk mawk nawk awk
1670do
1671 # Extract the first word of "$ac_prog", so it can be a program name with args.
1672set dummy $ac_prog; ac_word=$2
1673echo "$as_me:$LINENO: checking for $ac_word" >&5
1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675if test "${ac_cv_prog_AWK+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 if test -n "$AWK"; then
1679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1680else
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_AWK="$ac_prog"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1691 fi
1692done
1693done
1694
1695fi
1696fi
1697AWK=$ac_cv_prog_AWK
1698if test -n "$AWK"; then
1699 echo "$as_me:$LINENO: result: $AWK" >&5
1700echo "${ECHO_T}$AWK" >&6
1701else
1702 echo "$as_me:$LINENO: result: no" >&5
1703echo "${ECHO_T}no" >&6
1704fi
1705
1706 test -n "$AWK" && break
1707done
1708
1685echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1709echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1686echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1710echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1711set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1688if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1712if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6 1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 echo "$as_me:$LINENO: result: no" >&5 1733 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6 1734echo "${ECHO_T}no" >&6
1711 SET_MAKE="MAKE=${MAKE-make}" 1735 SET_MAKE="MAKE=${MAKE-make}"
1712fi 1736fi
1713 1737
1738rm -rf .tst 2>/dev/null
1739mkdir .tst 2>/dev/null
1740if test -d .tst; then
1741 am__leading_dot=.
1742else
1743 am__leading_dot=_
1744fi
1745rmdir .tst 2>/dev/null
1714 1746
1715PACKAGE= 1747 # test to see if srcdir already configured
1716 1748if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717VERSION= 1749 test -f $srcdir/config.status; then
1718
1719if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1720 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1750 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1721echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1751echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1722 { (exit 1); exit 1; }; } 1752 { (exit 1); exit 1; }; }
1723fi 1753fi
1724 1754
1755# test whether we have cygpath
1756if test -z "$CYGPATH_W"; then
1757 if (cygpath --version) >/dev/null 2>/dev/null; then
1758 CYGPATH_W='cygpath -w'
1759 else
1760 CYGPATH_W=echo
1761 fi
1762fi
1763
1764
1765# Define the identity of the package.
1766 PACKAGE='crossfire'
1767 VERSION='1.9.0'
1768
1769
1725cat >>confdefs.h <<_ACEOF 1770cat >>confdefs.h <<_ACEOF
1726#define PACKAGE "$PACKAGE" 1771#define PACKAGE "$PACKAGE"
1727_ACEOF 1772_ACEOF
1728 1773
1729 1774
1730cat >>confdefs.h <<_ACEOF 1775cat >>confdefs.h <<_ACEOF
1731#define VERSION "$VERSION" 1776#define VERSION "$VERSION"
1732_ACEOF 1777_ACEOF
1733 1778
1779# Some tools Automake needs.
1734 1780
1781ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1735 1782
1736missing_dir=`cd $ac_aux_dir && pwd` 1783
1737echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1784AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1738echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1785
1739# Run test in a subshell; some versions of sh will print an error if 1786
1740# an executable is not found, even if stderr is redirected. 1787AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1741# Redirect stdin to placate older versions of autoconf. Sigh. 1788
1742if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1789
1743 ACLOCAL=aclocal-${am__api_version} 1790AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1791
1792
1793MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1794
1795
1796AMTAR=${AMTAR-"${am_missing_run}tar"}
1797
1798install_sh=${install_sh-"$am_aux_dir/install-sh"}
1799
1800# Installed binaries are usually stripped using `strip' when the user
1801# run `make install-strip'. However `strip' might not be the right
1802# tool to use in cross-compilation environments, therefore Automake
1803# will honor the `STRIP' environment variable to overrule this program.
1804if test "$cross_compiling" != no; then
1805 if test -n "$ac_tool_prefix"; then
1806 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1807set dummy ${ac_tool_prefix}strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_STRIP+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$STRIP"; then
1814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832STRIP=$ac_cv_prog_STRIP
1833if test -n "$STRIP"; then
1834 echo "$as_me:$LINENO: result: $STRIP" >&5
1835echo "${ECHO_T}$STRIP" >&6
1836else
1744 echo "$as_me:$LINENO: result: found" >&5 1837 echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}found" >&6 1838echo "${ECHO_T}no" >&6
1746else
1747 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1748 echo "$as_me:$LINENO: result: missing" >&5
1749echo "${ECHO_T}missing" >&6
1750fi 1839fi
1751 1840
1841fi
1842if test -z "$ac_cv_prog_STRIP"; then
1843 ac_ct_STRIP=$STRIP
1844 # Extract the first word of "strip", so it can be a program name with args.
1845set dummy strip; ac_word=$2
1752echo "$as_me:$LINENO: checking for working autoconf" >&5 1846echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754# Run test in a subshell; some versions of sh will print an error if 1848if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1755# an executable is not found, even if stderr is redirected. 1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1756# Redirect stdin to placate older versions of autoconf. Sigh. 1850else
1757if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1851 if test -n "$ac_ct_STRIP"; then
1758 AUTOCONF=autoconf 1852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1853else
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
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_ac_ct_STRIP="strip"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865done
1866done
1867
1868 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1869fi
1870fi
1871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1872if test -n "$ac_ct_STRIP"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1874echo "${ECHO_T}$ac_ct_STRIP" >&6
1875else
1759 echo "$as_me:$LINENO: result: found" >&5 1876 echo "$as_me:$LINENO: result: no" >&5
1760echo "${ECHO_T}found" >&6 1877echo "${ECHO_T}no" >&6
1761else
1762 AUTOCONF="$missing_dir/missing autoconf"
1763 echo "$as_me:$LINENO: result: missing" >&5
1764echo "${ECHO_T}missing" >&6
1765fi 1878fi
1766 1879
1767echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1880 STRIP=$ac_ct_STRIP
1768echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1769# Run test in a subshell; some versions of sh will print an error if
1770# an executable is not found, even if stderr is redirected.
1771# Redirect stdin to placate older versions of autoconf. Sigh.
1772if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1773 AUTOMAKE=automake-${am__api_version}
1774 echo "$as_me:$LINENO: result: found" >&5
1775echo "${ECHO_T}found" >&6
1776else 1881else
1777 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1882 STRIP="$ac_cv_prog_STRIP"
1778 echo "$as_me:$LINENO: result: missing" >&5
1779echo "${ECHO_T}missing" >&6
1780fi 1883fi
1781 1884
1782echo "$as_me:$LINENO: checking for working autoheader" >&5
1783echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1784# Run test in a subshell; some versions of sh will print an error if
1785# an executable is not found, even if stderr is redirected.
1786# Redirect stdin to placate older versions of autoconf. Sigh.
1787if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1788 AUTOHEADER=autoheader
1789 echo "$as_me:$LINENO: result: found" >&5
1790echo "${ECHO_T}found" >&6
1791else
1792 AUTOHEADER="$missing_dir/missing autoheader"
1793 echo "$as_me:$LINENO: result: missing" >&5
1794echo "${ECHO_T}missing" >&6
1795fi 1885fi
1886INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1796 1887
1797echo "$as_me:$LINENO: checking for working makeinfo" >&5 1888# We need awk for the "check" target. The system "awk" is bad on
1798echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1889# some platforms.
1799# Run test in a subshell; some versions of sh will print an error if
1800# an executable is not found, even if stderr is redirected.
1801# Redirect stdin to placate older versions of autoconf. Sigh.
1802if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1803 MAKEINFO=makeinfo
1804 echo "$as_me:$LINENO: result: found" >&5
1805echo "${ECHO_T}found" >&6
1806else
1807 MAKEINFO="$missing_dir/missing makeinfo"
1808 echo "$as_me:$LINENO: result: missing" >&5
1809echo "${ECHO_T}missing" >&6
1810fi
1811 1890
1812 1891
1813 1892
1814 ac_config_headers="$ac_config_headers include/autoconf.h" 1893 ac_config_headers="$ac_config_headers include/autoconf.h"
1815
1816 ac_config_commands="$ac_config_commands default-1"
1817 1894
1818 1895
1819echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1896echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1820echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1897echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1821 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1898 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1834 MAINTAINER_MODE_FALSE='#' 1911 MAINTAINER_MODE_FALSE='#'
1835else 1912else
1836 MAINTAINER_MODE_TRUE='#' 1913 MAINTAINER_MODE_TRUE='#'
1837 MAINTAINER_MODE_FALSE= 1914 MAINTAINER_MODE_FALSE=
1838fi 1915fi
1916
1839 MAINT=$MAINTAINER_MODE_TRUE 1917 MAINT=$MAINTAINER_MODE_TRUE
1840 1918
1841 1919
1842 1920
1843 1921
1844 1922
1845 1923
1846# Check whether --enable-shared or --disable-shared was given.
1847if test "${enable_shared+set}" = set; then
1848 enableval="$enable_shared"
1849 p=${PACKAGE-default}
1850 case $enableval in
1851 yes) enable_shared=yes ;;
1852 no) enable_shared=no ;;
1853 *)
1854 enable_shared=no
1855 # Look at the argument we got. We use all the common list separators.
1856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1857 for pkg in $enableval; do
1858 IFS="$lt_save_ifs"
1859 if test "X$pkg" = "X$p"; then
1860 enable_shared=yes
1861 fi
1862 done
1863 IFS="$lt_save_ifs"
1864 ;;
1865 esac
1866else
1867 enable_shared=yes
1868fi;
1869 1924
1870# Check whether --enable-static or --disable-static was given.
1871if test "${enable_static+set}" = set; then
1872 enableval="$enable_static"
1873 p=${PACKAGE-default}
1874 case $enableval in
1875 yes) enable_static=yes ;;
1876 no) enable_static=no ;;
1877 *)
1878 enable_static=no
1879 # Look at the argument we got. We use all the common list separators.
1880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1881 for pkg in $enableval; do
1882 IFS="$lt_save_ifs"
1883 if test "X$pkg" = "X$p"; then
1884 enable_static=yes
1885 fi
1886 done
1887 IFS="$lt_save_ifs"
1888 ;;
1889 esac
1890else
1891 enable_static=yes
1892fi;
1893 1925
1894# Check whether --enable-fast-install or --disable-fast-install was given. 1926macro_version=''
1895if test "${enable_fast_install+set}" = set; then 1927macro_revision='1.1467'
1896 enableval="$enable_fast_install" 1928
1897 p=${PACKAGE-default} 1929
1898 case $enableval in 1930
1899 yes) enable_fast_install=yes ;; 1931
1900 no) enable_fast_install=no ;; 1932
1901 *) 1933
1902 enable_fast_install=no 1934
1903 # Look at the argument we got. We use all the common list separators. 1935
1904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1936
1905 for pkg in $enableval; do 1937
1906 IFS="$lt_save_ifs" 1938
1907 if test "X$pkg" = "X$p"; then 1939
1908 enable_fast_install=yes 1940case $ac_aux_dir in
1909 fi 1941 $srcdir) ltmain=./ltmain.sh ;;
1910 done 1942 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
1911 IFS="$lt_save_ifs" 1943esac
1912 ;; 1944test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
1913 esac
1914else
1915 enable_fast_install=yes
1916fi;
1917 1945
1918# Make sure we can run config.sub. 1946# Make sure we can run config.sub.
1919$ac_config_sub sun4 >/dev/null 2>&1 || 1947$ac_config_sub sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1948 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1921echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1949echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1965echo "${ECHO_T}$ac_cv_host" >&6 1993echo "${ECHO_T}$ac_cv_host" >&6
1966host=$ac_cv_host 1994host=$ac_cv_host
1967host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1995host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1968host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1996host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1969host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1997host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1998
1999
2000DEPDIR="${am__leading_dot}deps"
2001
2002 ac_config_commands="$ac_config_commands depfiles"
2003
2004
2005am_make=${MAKE-make}
2006cat > confinc << 'END'
2007am__doit:
2008 @echo done
2009.PHONY: am__doit
2010END
2011# If we don't find an include directive, just comment out the code.
2012echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2013echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2014am__include="#"
2015am__quote=
2016_am_result=none
2017# First try GNU make style include.
2018echo "include confinc" > confmf
2019# We grep out `Entering directory' and `Leaving directory'
2020# messages which can occur if `w' ends up in MAKEFLAGS.
2021# In particular we don't look at `^make:' because GNU make might
2022# be invoked under some other name (usually "gmake"), in which
2023# case it prints its new name instead of `make'.
2024if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2025 am__include=include
2026 am__quote=
2027 _am_result=GNU
2028fi
2029# Now try BSD make style include.
2030if test "$am__include" = "#"; then
2031 echo '.include "confinc"' > confmf
2032 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2033 am__include=.include
2034 am__quote="\""
2035 _am_result=BSD
2036 fi
2037fi
2038
2039
2040echo "$as_me:$LINENO: result: $_am_result" >&5
2041echo "${ECHO_T}$_am_result" >&6
2042rm -f confinc confmf
2043
2044# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2045if test "${enable_dependency_tracking+set}" = set; then
2046 enableval="$enable_dependency_tracking"
2047
2048fi;
2049if test "x$enable_dependency_tracking" != xno; then
2050 am_depcomp="$ac_aux_dir/depcomp"
2051 AMDEPBACKSLASH='\'
2052fi
2053
2054
2055if test "x$enable_dependency_tracking" != xno; then
2056 AMDEP_TRUE=
2057 AMDEP_FALSE='#'
2058else
2059 AMDEP_TRUE='#'
2060 AMDEP_FALSE=
2061fi
2062
1970 2063
1971 2064
1972ac_ext=c 2065ac_ext=c
1973ac_cpp='$CPP $CPPFLAGS' 2066ac_cpp='$CPP $CPPFLAGS'
1974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890ac_ext=c 2983ac_ext=c
2891ac_cpp='$CPP $CPPFLAGS' 2984ac_cpp='$CPP $CPPFLAGS'
2892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894ac_compiler_gnu=$ac_cv_c_compiler_gnu 2987ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988
2989depcc="$CC" am_compiler_list=
2990
2991echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2992echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2993if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2997 # We make a subdir and do the tests there. Otherwise we can end up
2998 # making bogus files that we don't know about and never remove. For
2999 # instance it was reported that on HP-UX the gcc test will end up
3000 # making a dummy file named `D' -- because `-MD' means `put the output
3001 # in D'.
3002 mkdir conftest.dir
3003 # Copy depcomp to subdir because otherwise we won't find it if we're
3004 # using a relative directory.
3005 cp "$am_depcomp" conftest.dir
3006 cd conftest.dir
3007 # We will build objects and dependencies in a subdirectory because
3008 # it helps to detect inapplicable dependency modes. For instance
3009 # both Tru64's cc and ICC support -MD to output dependencies as a
3010 # side effect of compilation, but ICC will put the dependencies in
3011 # the current directory while Tru64 will put them in the object
3012 # directory.
3013 mkdir sub
3014
3015 am_cv_CC_dependencies_compiler_type=none
3016 if test "$am_compiler_list" = ""; then
3017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3018 fi
3019 for depmode in $am_compiler_list; do
3020 # Setup a source with many dependencies, because some compilers
3021 # like to wrap large dependency lists on column 80 (with \), and
3022 # we should not choose a depcomp mode which is confused by this.
3023 #
3024 # We need to recreate these files for each test, as the compiler may
3025 # overwrite some of them when testing with obscure command lines.
3026 # This happens at least with the AIX C compiler.
3027 : > sub/conftest.c
3028 for i in 1 2 3 4 5 6; do
3029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3030 : > sub/conftst$i.h
3031 done
3032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3033
3034 case $depmode in
3035 nosideeffect)
3036 # after this tag, mechanisms are not by side-effect, so they'll
3037 # only be used when explicitly requested
3038 if test "x$enable_dependency_tracking" = xyes; then
3039 continue
3040 else
3041 break
3042 fi
3043 ;;
3044 none) break ;;
3045 esac
3046 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3047 # mode. It turns out that the SunPro C++ compiler does not properly
3048 # handle `-M -o', and we need to detect this.
3049 if depmode=$depmode \
3050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3053 >/dev/null 2>conftest.err &&
3054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3057 # icc doesn't choke on unknown options, it will just issue warnings
3058 # (even with -Werror). So we grep stderr for any message
3059 # that says an option was ignored.
3060 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3061 am_cv_CC_dependencies_compiler_type=$depmode
3062 break
3063 fi
3064 fi
3065 done
3066
3067 cd ..
3068 rm -rf conftest.dir
3069else
3070 am_cv_CC_dependencies_compiler_type=none
3071fi
3072
3073fi
3074echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3075echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3076CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3077
3078
3079
3080if
3081 test "x$enable_dependency_tracking" != xno \
3082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3083 am__fastdepCC_TRUE=
3084 am__fastdepCC_FALSE='#'
3085else
3086 am__fastdepCC_TRUE='#'
3087 am__fastdepCC_FALSE=
3088fi
3089
2895 3090
2896echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3091echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2897echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3092echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2898if test "${lt_cv_path_SED+set}" = set; then 3093if test "${lt_cv_path_SED+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6 3094 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 fi 3138 fi
2944 done 3139 done
2945done 3140done
2946SED=$lt_cv_path_SED 3141SED=$lt_cv_path_SED
2947 3142
3143
2948fi 3144fi
2949 3145
2950echo "$as_me:$LINENO: result: $SED" >&5 3146echo "$as_me:$LINENO: result: $SED" >&5
2951echo "${ECHO_T}$SED" >&6 3147echo "${ECHO_T}$SED" >&6
3148
3149test -z "$SED" && SED=sed
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
2952 3160
2953echo "$as_me:$LINENO: checking for egrep" >&5 3161echo "$as_me:$LINENO: checking for egrep" >&5
2954echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3162echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2955if test "${ac_cv_prog_egrep+set}" = set; then 3163if test "${ac_cv_prog_egrep+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6 3164 echo $ECHO_N "(cached) $ECHO_C" >&6
2964echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3172echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2965 EGREP=$ac_cv_prog_egrep 3173 EGREP=$ac_cv_prog_egrep
2966 3174
2967 3175
2968 3176
3177test -z "$GREP" && GREP=grep
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
2969# Check whether --with-gnu-ld or --without-gnu-ld was given. 3190# Check whether --with-gnu-ld or --without-gnu-ld was given.
2970if test "${with_gnu_ld+set}" = set; then 3191if test "${with_gnu_ld+set}" = set; then
2971 withval="$with_gnu_ld" 3192 withval="$with_gnu_ld"
2972 test "$withval" = no || with_gnu_ld=yes 3193 test "$withval" = no || with_gnu_ld=yes
2973else 3194else
2974 with_gnu_ld=no 3195 with_gnu_ld=no
2975fi; 3196fi;
3197
2976ac_prog=ld 3198ac_prog=ld
2977if test "$GCC" = yes; then 3199if test "$GCC" = yes; then
2978 # Check if gcc -print-prog-name=ld gives a path. 3200 # Check if gcc -print-prog-name=ld gives a path.
2979 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3201 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2980echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3202echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2989 # Accept absolute paths. 3211 # Accept absolute paths.
2990 [\\/]* | ?:[\\/]*) 3212 [\\/]* | ?:[\\/]*)
2991 re_direlt='/[^/][^/]*/\.\./' 3213 re_direlt='/[^/][^/]*/\.\./'
2992 # Canonicalize the pathname of ld 3214 # Canonicalize the pathname of ld
2993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3215 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3216 while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
2995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3217 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2996 done 3218 done
2997 test -z "$LD" && LD="$ac_prog" 3219 test -z "$LD" && LD="$ac_prog"
2998 ;; 3220 ;;
2999 "") 3221 "")
3070echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3292echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3071echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3293echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3072with_gnu_ld=$lt_cv_prog_gnu_ld 3294with_gnu_ld=$lt_cv_prog_gnu_ld
3073 3295
3074 3296
3297
3298
3299
3300
3301
3302
3303
3075echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3304echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3076echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3305echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3077if test "${lt_cv_ld_reload_flag+set}" = set; then 3306if test "${lt_cv_ld_reload_flag+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6 3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else 3308else
3085case $reload_flag in 3314case $reload_flag in
3086"" | " "*) ;; 3315"" | " "*) ;;
3087*) reload_flag=" $reload_flag" ;; 3316*) reload_flag=" $reload_flag" ;;
3088esac 3317esac
3089reload_cmds='$LD$reload_flag -o $output$reload_objs' 3318reload_cmds='$LD$reload_flag -o $output$reload_objs'
3319case $host_os in
3320 darwin*)
3321 if test "$GCC" = yes; then
3322 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3323 else
3324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3325 fi
3326 ;;
3327esac
3328
3329
3330
3331
3332
3333
3334
3335
3090 3336
3091echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3337echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3092echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3338echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3093if test "${lt_cv_path_NM+set}" = set; then 3339if test "${lt_cv_path_NM+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6 3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3131fi 3377fi
3132fi 3378fi
3133echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3379echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3134echo "${ECHO_T}$lt_cv_path_NM" >&6 3380echo "${ECHO_T}$lt_cv_path_NM" >&6
3135NM="$lt_cv_path_NM" 3381NM="$lt_cv_path_NM"
3382test -z "$NM" && NM=nm
3383
3384
3385
3386
3387
3136 3388
3137echo "$as_me:$LINENO: checking whether ln -s works" >&5 3389echo "$as_me:$LINENO: checking whether ln -s works" >&5
3138echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3390echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3139LN_S=$as_ln_s 3391LN_S=$as_ln_s
3140if test "$LN_S" = "ln -s"; then 3392if test "$LN_S" = "ln -s"; then
3142echo "${ECHO_T}yes" >&6 3394echo "${ECHO_T}yes" >&6
3143else 3395else
3144 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3145echo "${ECHO_T}no, using $LN_S" >&6 3397echo "${ECHO_T}no, using $LN_S" >&6
3146fi 3398fi
3399
3147 3400
3148echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3401echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3149echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3402echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3150if test "${lt_cv_deplibs_check_method+set}" = set; then 3403if test "${lt_cv_deplibs_check_method+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6 3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 # func_win32_libid is a shell function defined in ltmain.sh 3436 # func_win32_libid is a shell function defined in ltmain.sh
3184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3185 lt_cv_file_magic_cmd='func_win32_libid' 3438 lt_cv_file_magic_cmd='func_win32_libid'
3186 ;; 3439 ;;
3187 3440
3188mingw* | pw32*)
3189 # Base MSYS/MinGW do not provide the 'file' command needed by 3441 # Base MSYS/MinGW do not provide the 'file' command needed by
3190 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3442 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3443mingw* | pw32*)
3191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3444 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3192 lt_cv_file_magic_cmd='$OBJDUMP -f' 3445 lt_cv_file_magic_cmd='$OBJDUMP -f'
3193 ;; 3446 ;;
3194 3447
3195darwin* | rhapsody*) 3448darwin* | rhapsody*)
3196 lt_cv_deplibs_check_method=pass_all 3449 lt_cv_deplibs_check_method=pass_all
3197 ;; 3450 ;;
3198 3451
3199freebsd* | kfreebsd*-gnu) 3452freebsd* | kfreebsd*-gnu)
3200 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3201 case $host_cpu in 3454 case $host_cpu in
3202 i*86 ) 3455 i*86 )
3203 # Not sure whether the presence of OpenBSD here was a mistake. 3456 # Not sure whether the presence of OpenBSD here was a mistake.
3204 # Let's accept both of them until this is cleared up. 3457 # Let's accept both of them until this is cleared up.
3205 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3244 lt_cv_deplibs_check_method=pass_all 3497 lt_cv_deplibs_check_method=pass_all
3245 ;; 3498 ;;
3246 3499
3247# This must be Linux ELF. 3500# This must be Linux ELF.
3248linux*) 3501linux*)
3502 case $host_cpu in
3503 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3504 lt_cv_deplibs_check_method=pass_all ;;
3505 *)
3506 # glibc up to 2.1.1 does not perform some relocations on ARM
3507 # this will be overridden with pass_all, but let us keep it just in case
3508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3509 esac
3510 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3249 lt_cv_deplibs_check_method=pass_all 3511 lt_cv_deplibs_check_method=pass_all
3250 ;; 3512 ;;
3251 3513
3252netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3514netbsd* | knetbsd*-gnu)
3253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3255 else 3517 else
3256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3257 fi 3519 fi
3258 ;; 3520 ;;
3268 ;; 3530 ;;
3269 3531
3270openbsd*) 3532openbsd*)
3271 lt_cv_file_magic_cmd=/usr/bin/file 3533 lt_cv_file_magic_cmd=/usr/bin/file
3272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3534 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3275 else 3537 else
3276 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3538 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3277 fi 3539 fi
3278 ;; 3540 ;;
3326test -z "$deplibs_check_method" && deplibs_check_method=unknown 3588test -z "$deplibs_check_method" && deplibs_check_method=unknown
3327 3589
3328 3590
3329 3591
3330 3592
3593
3594
3595
3596
3597
3598
3599
3600
3601if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3603set dummy ${ac_tool_prefix}ar; ac_word=$2
3604echo "$as_me:$LINENO: checking for $ac_word" >&5
3605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606if test "${ac_cv_prog_AR+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608else
3609 if test -n "$AR"; then
3610 ac_cv_prog_AR="$AR" # Let the user override the test.
3611else
3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613for as_dir in $PATH
3614do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_AR="${ac_tool_prefix}ar"
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3622 fi
3623done
3624done
3625
3626fi
3627fi
3628AR=$ac_cv_prog_AR
3629if test -n "$AR"; then
3630 echo "$as_me:$LINENO: result: $AR" >&5
3631echo "${ECHO_T}$AR" >&6
3632else
3633 echo "$as_me:$LINENO: result: no" >&5
3634echo "${ECHO_T}no" >&6
3635fi
3636
3637fi
3638if test -z "$ac_cv_prog_AR"; then
3639 ac_ct_AR=$AR
3640 # Extract the first word of "ar", so it can be a program name with args.
3641set dummy ar; ac_word=$2
3642echo "$as_me:$LINENO: checking for $ac_word" >&5
3643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 if test -n "$ac_ct_AR"; then
3648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3649else
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_ac_ct_AR="ar"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661done
3662done
3663
3664 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3665fi
3666fi
3667ac_ct_AR=$ac_cv_prog_ac_ct_AR
3668if test -n "$ac_ct_AR"; then
3669 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3670echo "${ECHO_T}$ac_ct_AR" >&6
3671else
3672 echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674fi
3675
3676 AR=$ac_ct_AR
3677else
3678 AR="$ac_cv_prog_AR"
3679fi
3680
3681test -z "$AR" && AR=ar
3682test -z "$AR_FLAGS" && AR_FLAGS=cru
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3696set dummy ${ac_tool_prefix}strip; ac_word=$2
3697echo "$as_me:$LINENO: checking for $ac_word" >&5
3698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699if test "${ac_cv_prog_STRIP+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 if test -n "$STRIP"; then
3703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716done
3717done
3718
3719fi
3720fi
3721STRIP=$ac_cv_prog_STRIP
3722if test -n "$STRIP"; then
3723 echo "$as_me:$LINENO: result: $STRIP" >&5
3724echo "${ECHO_T}$STRIP" >&6
3725else
3726 echo "$as_me:$LINENO: result: no" >&5
3727echo "${ECHO_T}no" >&6
3728fi
3729
3730fi
3731if test -z "$ac_cv_prog_STRIP"; then
3732 ac_ct_STRIP=$STRIP
3733 # Extract the first word of "strip", so it can be a program name with args.
3734set dummy strip; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
3756
3757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3758fi
3759fi
3760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761if test -n "$ac_ct_STRIP"; then
3762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3763echo "${ECHO_T}$ac_ct_STRIP" >&6
3764else
3765 echo "$as_me:$LINENO: result: no" >&5
3766echo "${ECHO_T}no" >&6
3767fi
3768
3769 STRIP=$ac_ct_STRIP
3770else
3771 STRIP="$ac_cv_prog_STRIP"
3772fi
3773
3774test -z "$STRIP" && STRIP=:
3775
3776
3777
3778
3779
3780
3781if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784echo "$as_me:$LINENO: checking for $ac_word" >&5
3785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786if test "${ac_cv_prog_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 if test -n "$RANLIB"; then
3790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804done
3805
3806fi
3807fi
3808RANLIB=$ac_cv_prog_RANLIB
3809if test -n "$RANLIB"; then
3810 echo "$as_me:$LINENO: result: $RANLIB" >&5
3811echo "${ECHO_T}$RANLIB" >&6
3812else
3813 echo "$as_me:$LINENO: result: no" >&5
3814echo "${ECHO_T}no" >&6
3815fi
3816
3817fi
3818if test -z "$ac_cv_prog_RANLIB"; then
3819 ac_ct_RANLIB=$RANLIB
3820 # Extract the first word of "ranlib", so it can be a program name with args.
3821set dummy ranlib; ac_word=$2
3822echo "$as_me:$LINENO: checking for $ac_word" >&5
3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 if test -n "$ac_ct_RANLIB"; then
3828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_RANLIB="ranlib"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841done
3842done
3843
3844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3845fi
3846fi
3847ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848if test -n "$ac_ct_RANLIB"; then
3849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850echo "${ECHO_T}$ac_ct_RANLIB" >&6
3851else
3852 echo "$as_me:$LINENO: result: no" >&5
3853echo "${ECHO_T}no" >&6
3854fi
3855
3856 RANLIB=$ac_ct_RANLIB
3857else
3858 RANLIB="$ac_cv_prog_RANLIB"
3859fi
3860
3861test -z "$RANLIB" && RANLIB=:
3862
3863
3864
3865
3866
3867
3868# Determine commands to create old-style static archives.
3869old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3870old_postinstall_cmds='chmod 644 $oldlib'
3871old_postuninstall_cmds=
3872
3873if test -n "$RANLIB"; then
3874 case $host_os in
3875 openbsd*)
3876 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3877 ;;
3878 *)
3879 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3880 ;;
3881 esac
3882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3883fi
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900# find the maximum length of command line arguments
3901echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3902echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3903if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 i=0
3907 teststring="ABCD"
3908
3909 case $build_os in
3910 msdosdjgpp*)
3911 # On DJGPP, this test can blow up pretty badly due to problems in libc
3912 # (any single argument exceeding 2000 bytes causes a buffer overrun
3913 # during glob expansion). Even if it were fixed, the result of this
3914 # check would be larger than it should be.
3915 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3916 ;;
3917
3918 gnu*)
3919 # Under GNU Hurd, this test is not required because there is
3920 # no limit to the length of command line arguments.
3921 # Libtool will interpret -1 as no limit whatsoever
3922 lt_cv_sys_max_cmd_len=-1;
3923 ;;
3924
3925 cygwin* | mingw*)
3926 # On Win9x/ME, this test blows up -- it succeeds, but takes
3927 # about 5 minutes as the teststring grows exponentially.
3928 # Worse, since 9x/ME are not pre-emptively multitasking,
3929 # you end up with a "frozen" computer, even though with patience
3930 # the test eventually succeeds (with a max line length of 256k).
3931 # Instead, let's just punt: use the minimum linelength reported by
3932 # all of the supported platforms: 8192 (on NT/2K/XP).
3933 lt_cv_sys_max_cmd_len=8192;
3934 ;;
3935
3936 amigaos*)
3937 # On AmigaOS with pdksh, this test takes hours, literally.
3938 # So we just punt and use a minimum line length of 8192.
3939 lt_cv_sys_max_cmd_len=8192;
3940 ;;
3941
3942 *)
3943 # Make teststring a little bigger before we do anything with it.
3944 # a 1K string should be a reasonable start.
3945 for i in 1 2 3 4 5 6 7 8 ; do
3946 teststring=$teststring$teststring
3947 done
3948 # If test is not a shell built-in, we'll probably end up computing a
3949 # maximum length that is only half of the actual maximum length, but
3950 # we can't tell.
3951 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3952 = "XX$teststring$teststring") >/dev/null 2>&1 &&
3953 test $i != 17 # 1/2 MB should be enough
3954 do
3955 i=`expr $i + 1`
3956 teststring=$teststring$teststring
3957 done
3958 # Only check the string length outside the loop.
3959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3960 teststring=
3961 # Add a significant safety factor because C++ compilers can tack on massive
3962 # amounts of additional arguments before passing them to the linker.
3963 # It appears as though 1/2 is a usable value.
3964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3965 ;;
3966 esac
3967
3968fi
3969
3970if test -n $lt_cv_sys_max_cmd_len ; then
3971 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3972echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3973else
3974 echo "$as_me:$LINENO: result: none" >&5
3975echo "${ECHO_T}none" >&6
3976fi
3977
3978
3979
3980
3981
3982
3983
3984# Check for command to grab the raw symbol name followed by C symbol from nm.
3985echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3986echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990
3991# These are sane defaults that work on at least a few old systems.
3992# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3993
3994# Character class describing NM global symbol codes.
3995symcode='[BCDEGRST]'
3996
3997# Regexp to match symbols that can be accessed directly from C.
3998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3999
4000# Transform the above into a raw symbol and a C symbol.
4001symxfrm='\1 \2\3 \3'
4002
4003# Transform an extracted symbol line into a proper C declaration
4004lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4005
4006# Transform an extracted symbol line into symbol name and symbol address
4007lt_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'"
4008
4009# Define system-specific variables.
4010case $host_os in
4011aix*)
4012 symcode='[BCDT]'
4013 ;;
4014cygwin* | mingw* | pw32*)
4015 symcode='[ABCDGISTW]'
4016 ;;
4017hpux*) # Its linker distinguishes data from code symbols
4018 if test "$host_cpu" = ia64; then
4019 symcode='[ABCDEGRST]'
4020 fi
4021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4022 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'"
4023 ;;
4024irix* | nonstopux*)
4025 symcode='[BCDEGRST]'
4026 ;;
4027osf*)
4028 symcode='[BCDEGQRST]'
4029 ;;
4030solaris* | sysv5*)
4031 symcode='[BDRT]'
4032 ;;
4033sysv4)
4034 symcode='[DFNSTU]'
4035 ;;
4036esac
4037
4038# Handle CRLF in mingw tool chain
4039opt_cr=
4040case $build_os in
4041mingw*)
4042 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4043 ;;
4044esac
4045
4046# If we're using GNU nm, then use its standard symbol codes.
4047case `$NM -V 2>&1` in
4048*GNU* | *'with BFD'*)
4049 symcode='[ABCDGIRSTW]' ;;
4050esac
4051
4052# Try without a prefix undercore, then with it.
4053for ac_symprfx in "" "_"; do
4054
4055 # Write the raw and C identifiers.
4056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4057
4058 # Check to see that the pipe works correctly.
4059 pipe_works=no
4060
4061 rm -f conftest*
4062 cat > conftest.$ac_ext <<_LT_EOF
4063#ifdef __cplusplus
4064extern "C" {
4065#endif
4066char nm_test_var;
4067void nm_test_func(){}
4068#ifdef __cplusplus
4069}
4070#endif
4071int main(){nm_test_var='a';nm_test_func();return(0);}
4072_LT_EOF
4073
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 # Now try to grab the symbols.
4080 nlist=conftest.nm
4081 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4082 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && test -s "$nlist"; then
4086 # Try sorting and uniquifying the output.
4087 if sort "$nlist" | uniq > "$nlist"T; then
4088 mv -f "$nlist"T "$nlist"
4089 else
4090 rm -f "$nlist"T
4091 fi
4092
4093 # Make sure that we snagged all the symbols we need.
4094 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4095 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4096 cat <<_LT_EOF > conftest.$ac_ext
4097#ifdef __cplusplus
4098extern "C" {
4099#endif
4100
4101_LT_EOF
4102 # Now generate the symbol file.
4103 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4104
4105 cat <<_LT_EOF >> conftest.$ac_ext
4106#if defined (__STDC__) && __STDC__
4107# define lt_ptr_t void *
4108#else
4109# define lt_ptr_t char *
4110# define const
4111#endif
4112
4113/* The mapping between symbol names and symbols. */
4114const struct {
4115 const char *name;
4116 lt_ptr_t address;
4117}
4118lt_preloaded_symbols[] =
4119{
4120_LT_EOF
4121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4122 cat <<\_LT_EOF >> conftest.$ac_ext
4123 {0, (lt_ptr_t) 0}
4124};
4125
4126#ifdef __cplusplus
4127}
4128#endif
4129_LT_EOF
4130 # Now try linking the two files.
4131 mv conftest.$ac_objext conftstm.$ac_objext
4132 lt_save_LIBS="$LIBS"
4133 lt_save_CFLAGS="$CFLAGS"
4134 LIBS="conftstm.$ac_objext"
4135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4137 (eval $ac_link) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4141 pipe_works=yes
4142 fi
4143 LIBS="$lt_save_LIBS"
4144 CFLAGS="$lt_save_CFLAGS"
4145 else
4146 echo "cannot find nm_test_func in $nlist" >&5
4147 fi
4148 else
4149 echo "cannot find nm_test_var in $nlist" >&5
4150 fi
4151 else
4152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4153 fi
4154 else
4155 echo "$progname: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4157 fi
4158 rm -f conftest* conftst*
4159
4160 # Do not use the global_symbol_pipe unless it works.
4161 if test "$pipe_works" = yes; then
4162 break
4163 else
4164 lt_cv_sys_global_symbol_pipe=
4165 fi
4166done
4167
4168fi
4169
4170if test -z "$lt_cv_sys_global_symbol_pipe"; then
4171 lt_cv_sys_global_symbol_to_cdecl=
4172fi
4173if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4174 echo "$as_me:$LINENO: result: failed" >&5
4175echo "${ECHO_T}failed" >&6
4176else
4177 echo "$as_me:$LINENO: result: ok" >&5
4178echo "${ECHO_T}ok" >&6
4179fi
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
3331# If no C compiler was specified, use CC. 4214# If no C compiler was specified, use CC.
3332LTCC=${LTCC-"$CC"} 4215LTCC=${LTCC-"$CC"}
3333 4216
3334# Allow CC to be a program name with arguments. 4217# Allow CC to be a program name with arguments.
3335compiler=$CC 4218compiler=$CC
3364 fi 4247 fi
3365 rm -rf conftest* 4248 rm -rf conftest*
3366 ;; 4249 ;;
3367*-*-irix6*) 4250*-*-irix6*)
3368 # Find out which ABI we are using. 4251 # Find out which ABI we are using.
3369 echo '#line 3369 "configure"' > conftest.$ac_ext 4252 echo '#line 4252 "configure"' > conftest.$ac_ext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>&5 4254 (eval $ac_compile) 2>&5
3372 ac_status=$? 4255 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; then 4257 (exit $ac_status); }; then
3519 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4402 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3520 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4403 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3521 CFLAGS="$SAVE_CFLAGS" 4404 CFLAGS="$SAVE_CFLAGS"
3522 fi 4405 fi
3523 ;; 4406 ;;
3524
3525esac 4407esac
3526 4408
3527need_locks="$enable_libtool_lock" 4409need_locks="$enable_libtool_lock"
3528
3529 4410
3530ac_ext=c 4411ac_ext=c
3531ac_cpp='$CPP $CPPFLAGS' 4412ac_cpp='$CPP $CPPFLAGS'
3532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 4881
4001 4882
4002for ac_header in dlfcn.h 4883for ac_header in dlfcn.h
4003do 4884do
4004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4005if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006 echo "$as_me:$LINENO: checking for $ac_header" >&5 4886echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008if eval "test \"\${$as_ac_Header+set}\" = set"; then 4888if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6 4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4010fi
4011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013else 4890else
4014 # Is the header compilable?
4015echo "$as_me:$LINENO: checking $ac_header usability" >&5
4016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4017cat >conftest.$ac_ext <<_ACEOF 4891 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */ 4892/* confdefs.h. */
4019_ACEOF 4893_ACEOF
4020cat confdefs.h >>conftest.$ac_ext 4894cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF 4895cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */ 4896/* end confdefs.h. */
4023$ac_includes_default 4897$ac_includes_default
4898
4024#include <$ac_header> 4899#include <$ac_header>
4025_ACEOF 4900_ACEOF
4026rm -f conftest.$ac_objext 4901rm -f conftest.$ac_objext
4027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1 4903 (eval $ac_compile) 2>conftest.er1
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5 4918 (eval $ac_try) 2>&5
4044 ac_status=$? 4919 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then 4921 (exit $ac_status); }; }; then
4047 ac_header_compiler=yes 4922 eval "$as_ac_Header=yes"
4048else 4923else
4049 echo "$as_me: failed program was:" >&5 4924 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5 4925sed 's/^/| /' conftest.$ac_ext >&5
4051 4926
4052ac_header_compiler=no 4927eval "$as_ac_Header=no"
4053fi 4928fi
4054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4056echo "${ECHO_T}$ac_header_compiler" >&6
4057
4058# Is the header present?
4059echo "$as_me:$LINENO: checking $ac_header presence" >&5
4060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4061cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067#include <$ac_header>
4068_ACEOF
4069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } >/dev/null; then
4077 if test -s conftest.err; then
4078 ac_cpp_err=$ac_c_preproc_warn_flag
4079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4080 else
4081 ac_cpp_err=
4082 fi
4083else
4084 ac_cpp_err=yes
4085fi
4086if test -z "$ac_cpp_err"; then
4087 ac_header_preproc=yes
4088else
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ac_header_preproc=no
4093fi
4094rm -f conftest.err conftest.$ac_ext
4095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4096echo "${ECHO_T}$ac_header_preproc" >&6
4097
4098# So? What about this header?
4099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4100 yes:no: )
4101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4105 ac_header_preproc=yes
4106 ;;
4107 no:yes:* )
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4120 (
4121 cat <<\_ASBOX
4122## ----------------------------------------------------- ##
4123## Report this to crossfire-devel@listserv.real-time.com ##
4124## ----------------------------------------------------- ##
4125_ASBOX
4126 ) |
4127 sed "s/^/$as_me: WARNING: /" >&2
4128 ;;
4129esac
4130echo "$as_me:$LINENO: checking for $ac_header" >&5
4131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4132if eval "test \"\${$as_ac_Header+set}\" = set"; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 eval "$as_ac_Header=\$ac_header_preproc"
4136fi 4930fi
4137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4139
4140fi
4141if test `eval echo '${'$as_ac_Header'}'` = yes; then 4933if test `eval echo '${'$as_ac_Header'}'` = yes; then
4142 cat >>confdefs.h <<_ACEOF 4934 cat >>confdefs.h <<_ACEOF
4143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4144_ACEOF 4936_ACEOF
4145 4937
4146fi 4938fi
4147 4939
4148done 4940done
4149 4941
4150ac_ext=cc 4942
4151ac_cpp='$CXXCPP $CPPFLAGS' 4943# This can be used to rebuild libtool when needed
4152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4944LIBTOOL_DEPS="$ltmain"
4153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4945
4154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4946# Always use our own libtool.
4155if test -n "$ac_tool_prefix"; then 4947LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4156 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4948
4157 do 4949# Set options
4158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4950enable_dlopen=no
4159set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4951
4160echo "$as_me:$LINENO: checking for $ac_word" >&5 4952enable_win32_dll=no
4161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4953
4954# Check whether --enable-shared or --disable-shared was given.
4162if test "${ac_cv_prog_CXX+set}" = set; then 4955if test "${enable_shared+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4956 enableval="$enable_shared"
4164else 4957 p=${PACKAGE-default}
4165 if test -n "$CXX"; then 4958 case $enableval in
4166 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4959 yes) enable_shared=yes ;;
4167else 4960 no) enable_shared=no ;;
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4961 *)
4169for as_dir in $PATH 4962 enable_shared=no
4170do 4963 # Look at the argument we got. We use all the common list separators.
4171 IFS=$as_save_IFS 4964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4172 test -z "$as_dir" && as_dir=. 4965 for pkg in $enableval; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do 4966 IFS="$lt_save_ifs"
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4967 if test "X$pkg" = "X$p"; then
4175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4968 enable_shared=yes
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180done
4181
4182fi
4183fi
4184CXX=$ac_cv_prog_CXX
4185if test -n "$CXX"; then
4186 echo "$as_me:$LINENO: result: $CXX" >&5
4187echo "${ECHO_T}$CXX" >&6
4188else
4189 echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191fi
4192
4193 test -n "$CXX" && break
4194 done
4195fi
4196if test -z "$CXX"; then
4197 ac_ct_CXX=$CXX
4198 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4199do
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201set dummy $ac_prog; ac_word=$2
4202echo "$as_me:$LINENO: checking for $ac_word" >&5
4203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4204if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207 if test -n "$ac_ct_CXX"; then
4208 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4209else
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_ac_ct_CXX="$ac_prog"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4220 fi
4221done
4222done
4223
4224fi
4225fi
4226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4227if test -n "$ac_ct_CXX"; then
4228 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4229echo "${ECHO_T}$ac_ct_CXX" >&6
4230else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233fi
4234
4235 test -n "$ac_ct_CXX" && break
4236done
4237test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4238
4239 CXX=$ac_ct_CXX
4240fi
4241
4242
4243# Provide some information about the compiler.
4244echo "$as_me:$LINENO:" \
4245 "checking for C++ compiler version" >&5
4246ac_compiler=`set X $ac_compile; echo $2`
4247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4248 (eval $ac_compiler --version </dev/null >&5) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }
4252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4253 (eval $ac_compiler -v </dev/null >&5) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }
4257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4258 (eval $ac_compiler -V </dev/null >&5) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }
4262
4263echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4264echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4265if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
4274
4275int
4276main ()
4277{
4278#ifndef __GNUC__
4279 choke me
4280#endif
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext
4287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_compiler_gnu=yes
4308else
4309 echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312ac_compiler_gnu=no
4313fi
4314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4316
4317fi
4318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4320GXX=`test $ac_compiler_gnu = yes && echo yes`
4321ac_test_CXXFLAGS=${CXXFLAGS+set}
4322ac_save_CXXFLAGS=$CXXFLAGS
4323CXXFLAGS="-g"
4324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4326if test "${ac_cv_prog_cxx_g+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext
4345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_cxx_g=yes
4366else
4367 echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370ac_cv_prog_cxx_g=no
4371fi
4372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373fi
4374echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4375echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4376if test "$ac_test_CXXFLAGS" = set; then
4377 CXXFLAGS=$ac_save_CXXFLAGS
4378elif test $ac_cv_prog_cxx_g = yes; then
4379 if test "$GXX" = yes; then
4380 CXXFLAGS="-g -O2"
4381 else
4382 CXXFLAGS="-g"
4383 fi
4384else
4385 if test "$GXX" = yes; then
4386 CXXFLAGS="-O2"
4387 else
4388 CXXFLAGS=
4389 fi
4390fi
4391for ac_declaration in \
4392 '' \
4393 'extern "C" void std::exit (int) throw (); using std::exit;' \
4394 'extern "C" void std::exit (int); using std::exit;' \
4395 'extern "C" void exit (int) throw ();' \
4396 'extern "C" void exit (int);' \
4397 'void exit (int);'
4398do
4399 cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405$ac_declaration
4406#include <stdlib.h>
4407int
4408main ()
4409{
4410exit (42);
4411 ;
4412 return 0;
4413}
4414_ACEOF
4415rm -f conftest.$ac_objext
4416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 :
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441continue
4442fi
4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450$ac_declaration
4451int
4452main ()
4453{
4454exit (42);
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext
4460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4461 (eval $ac_compile) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 break
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
4484
4485fi
4486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4487done
4488rm -f conftest*
4489if test -n "$ac_declaration"; then
4490 echo '#ifdef __cplusplus' >>confdefs.h
4491 echo $ac_declaration >>confdefs.h
4492 echo '#endif' >>confdefs.h
4493fi
4494
4495ac_ext=cc
4496ac_cpp='$CXXCPP $CPPFLAGS'
4497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500
4501ac_ext=cc
4502ac_cpp='$CXXCPP $CPPFLAGS'
4503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4506echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4507echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4508if test -z "$CXXCPP"; then
4509 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 # Double quotes because CXXCPP needs to be expanded
4513 for CXXCPP in "$CXX -E" "/lib/cpp"
4514 do
4515 ac_preproc_ok=false
4516for ac_cxx_preproc_warn_flag in '' yes
4517do
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
4530#ifdef __STDC__
4531# include <limits.h>
4532#else
4533# include <assert.h>
4534#endif
4535 Syntax error
4536_ACEOF
4537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev/null; then
4545 if test -s conftest.err; then
4546 ac_cpp_err=$ac_cxx_preproc_warn_flag
4547 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4548 else
4549 ac_cpp_err=
4550 fi
4551else
4552 ac_cpp_err=yes
4553fi
4554if test -z "$ac_cpp_err"; then
4555 :
4556else
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 # Broken: fails on valid input.
4561continue
4562fi
4563rm -f conftest.err conftest.$ac_ext
4564
4565 # OK, works on sane cases. Now check whether non-existent headers
4566 # can be detected and how.
4567 cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h. */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h. */
4573#include <ac_nonexistent.h>
4574_ACEOF
4575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577 ac_status=$?
4578 grep -v '^ *+' conftest.er1 >conftest.err
4579 rm -f conftest.er1
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } >/dev/null; then
4583 if test -s conftest.err; then
4584 ac_cpp_err=$ac_cxx_preproc_warn_flag
4585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4586 else
4587 ac_cpp_err=
4588 fi
4589else
4590 ac_cpp_err=yes
4591fi
4592if test -z "$ac_cpp_err"; then
4593 # Broken: success on invalid input.
4594continue
4595else
4596 echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 # Passes both tests.
4600ac_preproc_ok=:
4601break
4602fi
4603rm -f conftest.err conftest.$ac_ext
4604
4605done
4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607rm -f conftest.err conftest.$ac_ext
4608if $ac_preproc_ok; then
4609 break
4610fi
4611
4612 done
4613 ac_cv_prog_CXXCPP=$CXXCPP
4614
4615fi
4616 CXXCPP=$ac_cv_prog_CXXCPP
4617else
4618 ac_cv_prog_CXXCPP=$CXXCPP
4619fi
4620echo "$as_me:$LINENO: result: $CXXCPP" >&5
4621echo "${ECHO_T}$CXXCPP" >&6
4622ac_preproc_ok=false
4623for ac_cxx_preproc_warn_flag in '' yes
4624do
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#ifdef __STDC__
4638# include <limits.h>
4639#else
4640# include <assert.h>
4641#endif
4642 Syntax error
4643_ACEOF
4644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } >/dev/null; then
4652 if test -s conftest.err; then
4653 ac_cpp_err=$ac_cxx_preproc_warn_flag
4654 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4655 else
4656 ac_cpp_err=
4657 fi
4658else
4659 ac_cpp_err=yes
4660fi
4661if test -z "$ac_cpp_err"; then
4662 :
4663else
4664 echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 # Broken: fails on valid input.
4668continue
4669fi
4670rm -f conftest.err conftest.$ac_ext
4671
4672 # OK, works on sane cases. Now check whether non-existent headers
4673 # can be detected and how.
4674 cat >conftest.$ac_ext <<_ACEOF
4675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
4680#include <ac_nonexistent.h>
4681_ACEOF
4682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null; then
4690 if test -s conftest.err; then
4691 ac_cpp_err=$ac_cxx_preproc_warn_flag
4692 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4693 else
4694 ac_cpp_err=
4695 fi
4696else
4697 ac_cpp_err=yes
4698fi
4699if test -z "$ac_cpp_err"; then
4700 # Broken: success on invalid input.
4701continue
4702else
4703 echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 # Passes both tests.
4707ac_preproc_ok=:
4708break
4709fi
4710rm -f conftest.err conftest.$ac_ext
4711
4712done
4713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4714rm -f conftest.err conftest.$ac_ext
4715if $ac_preproc_ok; then
4716 :
4717else
4718 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4719See \`config.log' for more details." >&5
4720echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4721See \`config.log' for more details." >&2;}
4722 { (exit 1); exit 1; }; }
4723fi
4724
4725ac_ext=cc
4726ac_cpp='$CXXCPP $CPPFLAGS'
4727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4730
4731
4732ac_ext=f
4733ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4734ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4736if test -n "$ac_tool_prefix"; then
4737 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4738 do
4739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_F77+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 if test -n "$F77"; then
4747 ac_cv_prog_F77="$F77" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763fi
4764fi
4765F77=$ac_cv_prog_F77
4766if test -n "$F77"; then
4767 echo "$as_me:$LINENO: result: $F77" >&5
4768echo "${ECHO_T}$F77" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774 test -n "$F77" && break
4775 done
4776fi
4777if test -z "$F77"; then
4778 ac_ct_F77=$F77
4779 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4780do
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782set dummy $ac_prog; ac_word=$2
4783echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788 if test -n "$ac_ct_F77"; then
4789 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4790else
4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798 ac_cv_prog_ac_ct_F77="$ac_prog"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802done
4803done
4804
4805fi
4806fi
4807ac_ct_F77=$ac_cv_prog_ac_ct_F77
4808if test -n "$ac_ct_F77"; then
4809 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4810echo "${ECHO_T}$ac_ct_F77" >&6
4811else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814fi
4815
4816 test -n "$ac_ct_F77" && break
4817done
4818
4819 F77=$ac_ct_F77
4820fi
4821
4822
4823# Provide some information about the compiler.
4824echo "$as_me:4824:" \
4825 "checking for Fortran 77 compiler version" >&5
4826ac_compiler=`set X $ac_compile; echo $2`
4827{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4828 (eval $ac_compiler --version </dev/null >&5) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }
4832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4833 (eval $ac_compiler -v </dev/null >&5) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }
4837{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4838 (eval $ac_compiler -V </dev/null >&5) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }
4842rm -f a.out
4843
4844# If we don't use `.F' as extension, the preprocessor is not run on the
4845# input file. (Note that this only needs to work for GNU compilers.)
4846ac_save_ext=$ac_ext
4847ac_ext=F
4848echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4849echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4850if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 cat >conftest.$ac_ext <<_ACEOF
4854 program main
4855#ifndef __GNUC__
4856 choke me
4857#endif
4858
4859 end
4860_ACEOF
4861rm -f conftest.$ac_objext
4862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_compiler_gnu=yes
4883else
4884 echo "$as_me: failed program was:" >&5
4885sed 's/^/| /' conftest.$ac_ext >&5
4886
4887ac_compiler_gnu=no
4888fi
4889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4890ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4891
4892fi
4893echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4894echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4895ac_ext=$ac_save_ext
4896ac_test_FFLAGS=${FFLAGS+set}
4897ac_save_FFLAGS=$FFLAGS
4898FFLAGS=
4899echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4900echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4901if test "${ac_cv_prog_f77_g+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 FFLAGS=-g
4905cat >conftest.$ac_ext <<_ACEOF
4906 program main
4907
4908 end
4909_ACEOF
4910rm -f conftest.$ac_objext
4911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_prog_f77_g=yes
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936ac_cv_prog_f77_g=no
4937fi
4938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939
4940fi
4941echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4942echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4943if test "$ac_test_FFLAGS" = set; then
4944 FFLAGS=$ac_save_FFLAGS
4945elif test $ac_cv_prog_f77_g = yes; then
4946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4947 FFLAGS="-g -O2"
4948 else
4949 FFLAGS="-g"
4950 fi
4951else
4952 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4953 FFLAGS="-O2"
4954 else
4955 FFLAGS=
4956 fi
4957fi
4958
4959G77=`test $ac_compiler_gnu = yes && echo yes`
4960ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966
4967
4968# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4969
4970# find the maximum length of command line arguments
4971echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4972echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4973if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 i=0
4977 teststring="ABCD"
4978
4979 case $build_os in
4980 msdosdjgpp*)
4981 # On DJGPP, this test can blow up pretty badly due to problems in libc
4982 # (any single argument exceeding 2000 bytes causes a buffer overrun
4983 # during glob expansion). Even if it were fixed, the result of this
4984 # check would be larger than it should be.
4985 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4986 ;;
4987
4988 gnu*)
4989 # Under GNU Hurd, this test is not required because there is
4990 # no limit to the length of command line arguments.
4991 # Libtool will interpret -1 as no limit whatsoever
4992 lt_cv_sys_max_cmd_len=-1;
4993 ;;
4994
4995 cygwin* | mingw*)
4996 # On Win9x/ME, this test blows up -- it succeeds, but takes
4997 # about 5 minutes as the teststring grows exponentially.
4998 # Worse, since 9x/ME are not pre-emptively multitasking,
4999 # you end up with a "frozen" computer, even though with patience
5000 # the test eventually succeeds (with a max line length of 256k).
5001 # Instead, let's just punt: use the minimum linelength reported by
5002 # all of the supported platforms: 8192 (on NT/2K/XP).
5003 lt_cv_sys_max_cmd_len=8192;
5004 ;;
5005
5006 amigaos*)
5007 # On AmigaOS with pdksh, this test takes hours, literally.
5008 # So we just punt and use a minimum line length of 8192.
5009 lt_cv_sys_max_cmd_len=8192;
5010 ;;
5011
5012 *)
5013 # If test is not a shell built-in, we'll probably end up computing a
5014 # maximum length that is only half of the actual maximum length, but
5015 # we can't tell.
5016 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5017 = "XX$teststring") >/dev/null 2>&1 &&
5018 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5019 lt_cv_sys_max_cmd_len=$new_result &&
5020 test $i != 17 # 1/2 MB should be enough
5021 do
5022 i=`expr $i + 1`
5023 teststring=$teststring$teststring
5024 done
5025 teststring=
5026 # Add a significant safety factor because C++ compilers can tack on massive
5027 # amounts of additional arguments before passing them to the linker.
5028 # It appears as though 1/2 is a usable value.
5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5030 ;;
5031 esac
5032
5033fi
5034
5035if test -n $lt_cv_sys_max_cmd_len ; then
5036 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5037echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5038else
5039 echo "$as_me:$LINENO: result: none" >&5
5040echo "${ECHO_T}none" >&6
5041fi
5042
5043
5044
5045
5046# Check for command to grab the raw symbol name followed by C symbol from nm.
5047echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5048echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5049if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052
5053# These are sane defaults that work on at least a few old systems.
5054# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5055
5056# Character class describing NM global symbol codes.
5057symcode='[BCDEGRST]'
5058
5059# Regexp to match symbols that can be accessed directly from C.
5060sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5061
5062# Transform the above into a raw symbol and a C symbol.
5063symxfrm='\1 \2\3 \3'
5064
5065# Transform an extracted symbol line into a proper C declaration
5066lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5067
5068# Transform an extracted symbol line into symbol name and symbol address
5069lt_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'"
5070
5071# Define system-specific variables.
5072case $host_os in
5073aix*)
5074 symcode='[BCDT]'
5075 ;;
5076cygwin* | mingw* | pw32*)
5077 symcode='[ABCDGISTW]'
5078 ;;
5079hpux*) # Its linker distinguishes data from code symbols
5080 if test "$host_cpu" = ia64; then
5081 symcode='[ABCDEGRST]'
5082 fi
5083 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5084 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'"
5085 ;;
5086irix* | nonstopux*)
5087 symcode='[BCDEGRST]'
5088 ;;
5089osf*)
5090 symcode='[BCDEGQRST]'
5091 ;;
5092solaris* | sysv5*)
5093 symcode='[BDRT]'
5094 ;;
5095sysv4)
5096 symcode='[DFNSTU]'
5097 ;;
5098esac
5099
5100# Handle CRLF in mingw tool chain
5101opt_cr=
5102case $build_os in
5103mingw*)
5104 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5105 ;;
5106esac
5107
5108# If we're using GNU nm, then use its standard symbol codes.
5109case `$NM -V 2>&1` in
5110*GNU* | *'with BFD'*)
5111 symcode='[ABCDGIRSTW]' ;;
5112esac
5113
5114# Try without a prefix undercore, then with it.
5115for ac_symprfx in "" "_"; do
5116
5117 # Write the raw and C identifiers.
5118 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5119
5120 # Check to see that the pipe works correctly.
5121 pipe_works=no
5122
5123 rm -f conftest*
5124 cat > conftest.$ac_ext <<EOF
5125#ifdef __cplusplus
5126extern "C" {
5127#endif
5128char nm_test_var;
5129void nm_test_func(){}
5130#ifdef __cplusplus
5131}
5132#endif
5133int main(){nm_test_var='a';nm_test_func();return(0);}
5134EOF
5135
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; then
5141 # Now try to grab the symbols.
5142 nlist=conftest.nm
5143 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5144 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && test -s "$nlist"; then
5148 # Try sorting and uniquifying the output.
5149 if sort "$nlist" | uniq > "$nlist"T; then
5150 mv -f "$nlist"T "$nlist"
5151 else
5152 rm -f "$nlist"T
5153 fi
5154
5155 # Make sure that we snagged all the symbols we need.
5156 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5157 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5158 cat <<EOF > conftest.$ac_ext
5159#ifdef __cplusplus
5160extern "C" {
5161#endif
5162
5163EOF
5164 # Now generate the symbol file.
5165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5166
5167 cat <<EOF >> conftest.$ac_ext
5168#if defined (__STDC__) && __STDC__
5169# define lt_ptr_t void *
5170#else
5171# define lt_ptr_t char *
5172# define const
5173#endif
5174
5175/* The mapping between symbol names and symbols. */
5176const struct {
5177 const char *name;
5178 lt_ptr_t address;
5179}
5180lt_preloaded_symbols[] =
5181{
5182EOF
5183 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5184 cat <<\EOF >> conftest.$ac_ext
5185 {0, (lt_ptr_t) 0}
5186};
5187
5188#ifdef __cplusplus
5189}
5190#endif
5191EOF
5192 # Now try linking the two files.
5193 mv conftest.$ac_objext conftstm.$ac_objext
5194 lt_save_LIBS="$LIBS"
5195 lt_save_CFLAGS="$CFLAGS"
5196 LIBS="conftstm.$ac_objext"
5197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5203 pipe_works=yes
5204 fi
5205 LIBS="$lt_save_LIBS"
5206 CFLAGS="$lt_save_CFLAGS"
5207 else
5208 echo "cannot find nm_test_func in $nlist" >&5
5209 fi 4969 fi
5210 else 4970 done
5211 echo "cannot find nm_test_var in $nlist" >&5 4971 IFS="$lt_save_ifs"
5212 fi 4972 ;;
5213 else 4973 esac
5214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5215 fi
5216 else 4974else
5217 echo "$progname: failed program was:" >&5 4975 enable_shared=yes
5218 cat conftest.$ac_ext >&5
5219 fi
5220 rm -f conftest* conftst*
5221
5222 # Do not use the global_symbol_pipe unless it works.
5223 if test "$pipe_works" = yes; then
5224 break
5225 else
5226 lt_cv_sys_global_symbol_pipe=
5227 fi
5228done
5229
5230fi 4976fi;
5231 4977
5232if test -z "$lt_cv_sys_global_symbol_pipe"; then 4978
5233 lt_cv_sys_global_symbol_to_cdecl= 4979
4980
4981
4982
4983
4984
4985# Check whether --enable-static or --disable-static was given.
4986if test "${enable_static+set}" = set; then
4987 enableval="$enable_static"
4988 p=${PACKAGE-default}
4989 case $enableval in
4990 yes) enable_static=yes ;;
4991 no) enable_static=no ;;
4992 *)
4993 enable_static=no
4994 # Look at the argument we got. We use all the common list separators.
4995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4996 for pkg in $enableval; do
4997 IFS="$lt_save_ifs"
4998 if test "X$pkg" = "X$p"; then
4999 enable_static=yes
5234fi 5000 fi
5235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5001 done
5236 echo "$as_me:$LINENO: result: failed" >&5 5002 IFS="$lt_save_ifs"
5237echo "${ECHO_T}failed" >&6 5003 ;;
5004 esac
5238else 5005else
5239 echo "$as_me:$LINENO: result: ok" >&5 5006 enable_static=yes
5240echo "${ECHO_T}ok" >&6 5007fi;
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017# Check whether --with-pic or --without-pic was given.
5018if test "${with_pic+set}" = set; then
5019 withval="$with_pic"
5020 pic_mode="$withval"
5021else
5022 pic_mode=default
5023fi;
5024
5025test -z "$pic_mode" && pic_mode=default
5026
5027
5028
5029
5030
5031
5032
5033# Check whether --enable-fast-install or --disable-fast-install was given.
5034if test "${enable_fast_install+set}" = set; then
5035 enableval="$enable_fast_install"
5036 p=${PACKAGE-default}
5037 case $enableval in
5038 yes) enable_fast_install=yes ;;
5039 no) enable_fast_install=no ;;
5040 *)
5041 enable_fast_install=no
5042 # Look at the argument we got. We use all the common list separators.
5043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5044 for pkg in $enableval; do
5045 IFS="$lt_save_ifs"
5046 if test "X$pkg" = "X$p"; then
5047 enable_fast_install=yes
5048 fi
5049 done
5050 IFS="$lt_save_ifs"
5051 ;;
5052 esac
5053else
5054 enable_fast_install=yes
5055fi;
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072test -z "$LN_S" && LN_S="ln -s"
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087if test -n "${ZSH_VERSION+set}" ; then
5088 setopt NO_GLOB_SUBST
5241fi 5089fi
5242 5090
5243echo "$as_me:$LINENO: checking for objdir" >&5 5091echo "$as_me:$LINENO: checking for objdir" >&5
5244echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5092echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5245if test "${lt_cv_objdir+set}" = set; then 5093if test "${lt_cv_objdir+set}" = set; then
5256rmdir .libs 2>/dev/null 5104rmdir .libs 2>/dev/null
5257fi 5105fi
5258echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5106echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5259echo "${ECHO_T}$lt_cv_objdir" >&6 5107echo "${ECHO_T}$lt_cv_objdir" >&6
5260objdir=$lt_cv_objdir 5108objdir=$lt_cv_objdir
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5261 5124
5262 5125
5263 5126
5264 5127
5265 5128
5285 5148
5286# Sed substitution to delay expansion of an escaped shell variable in a 5149# Sed substitution to delay expansion of an escaped shell variable in a
5287# double_quote_subst'ed string. 5150# double_quote_subst'ed string.
5288delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5151delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5289 5152
5153# Sed substitution to delay expansion of an escaped single quote.
5154delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5155
5290# Sed substitution to avoid accidental globbing in evaled expressions 5156# Sed substitution to avoid accidental globbing in evaled expressions
5291no_glob_subst='s/\*/\\\*/g' 5157no_glob_subst='s/\*/\\\*/g'
5292 5158
5293# Constants: 5159# Constants:
5294rm="rm -f" 5160rm="rm -f"
5295 5161
5296# Global variables: 5162# Global variables:
5297default_ofile=libtool 5163default_ofile=libtool
5164ofile="$default_ofile"
5298can_build_shared=yes 5165can_build_shared=yes
5299 5166
5300# All known linkers require a `.a' archive for static linking (except M$VC, 5167# All known linkers require a `.a' archive for static linking (except M$VC,
5301# which needs '.lib'). 5168# which needs '.lib').
5302libext=a 5169libext=a
5303ltmain="$ac_aux_dir/ltmain.sh" 5170
5304ofile="$default_ofile"
5305with_gnu_ld="$lt_cv_prog_gnu_ld" 5171with_gnu_ld="$lt_cv_prog_gnu_ld"
5306
5307if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5309set dummy ${ac_tool_prefix}ar; ac_word=$2
5310echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312if test "${ac_cv_prog_AR+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 if test -n "$AR"; then
5316 ac_cv_prog_AR="$AR" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_AR="${ac_tool_prefix}ar"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329done
5330done
5331
5332fi
5333fi
5334AR=$ac_cv_prog_AR
5335if test -n "$AR"; then
5336 echo "$as_me:$LINENO: result: $AR" >&5
5337echo "${ECHO_T}$AR" >&6
5338else
5339 echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341fi
5342
5343fi
5344if test -z "$ac_cv_prog_AR"; then
5345 ac_ct_AR=$AR
5346 # Extract the first word of "ar", so it can be a program name with args.
5347set dummy ar; ac_word=$2
5348echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353 if test -n "$ac_ct_AR"; then
5354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_ac_ct_AR="ar"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368done
5369
5370 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5371fi
5372fi
5373ac_ct_AR=$ac_cv_prog_ac_ct_AR
5374if test -n "$ac_ct_AR"; then
5375 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5376echo "${ECHO_T}$ac_ct_AR" >&6
5377else
5378 echo "$as_me:$LINENO: result: no" >&5
5379echo "${ECHO_T}no" >&6
5380fi
5381
5382 AR=$ac_ct_AR
5383else
5384 AR="$ac_cv_prog_AR"
5385fi
5386
5387if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5389set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_prog_RANLIB+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 if test -n "$RANLIB"; then
5396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410done
5411
5412fi
5413fi
5414RANLIB=$ac_cv_prog_RANLIB
5415if test -n "$RANLIB"; then
5416 echo "$as_me:$LINENO: result: $RANLIB" >&5
5417echo "${ECHO_T}$RANLIB" >&6
5418else
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
5421fi
5422
5423fi
5424if test -z "$ac_cv_prog_RANLIB"; then
5425 ac_ct_RANLIB=$RANLIB
5426 # Extract the first word of "ranlib", so it can be a program name with args.
5427set dummy ranlib; ac_word=$2
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 if test -n "$ac_ct_RANLIB"; then
5434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5435else
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_prog_ac_ct_RANLIB="ranlib"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447done
5448done
5449
5450 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5451fi
5452fi
5453ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5454if test -n "$ac_ct_RANLIB"; then
5455 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5456echo "${ECHO_T}$ac_ct_RANLIB" >&6
5457else
5458 echo "$as_me:$LINENO: result: no" >&5
5459echo "${ECHO_T}no" >&6
5460fi
5461
5462 RANLIB=$ac_ct_RANLIB
5463else
5464 RANLIB="$ac_cv_prog_RANLIB"
5465fi
5466
5467if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5469set dummy ${ac_tool_prefix}strip; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_prog_STRIP+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 if test -n "$STRIP"; then
5476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489done
5490done
5491
5492fi
5493fi
5494STRIP=$ac_cv_prog_STRIP
5495if test -n "$STRIP"; then
5496 echo "$as_me:$LINENO: result: $STRIP" >&5
5497echo "${ECHO_T}$STRIP" >&6
5498else
5499 echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
5502
5503fi
5504if test -z "$ac_cv_prog_STRIP"; then
5505 ac_ct_STRIP=$STRIP
5506 # Extract the first word of "strip", so it can be a program name with args.
5507set dummy strip; ac_word=$2
5508echo "$as_me:$LINENO: checking for $ac_word" >&5
5509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 if test -n "$ac_ct_STRIP"; then
5514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_STRIP="strip"
5524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
5529
5530 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5531fi
5532fi
5533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5534if test -n "$ac_ct_STRIP"; then
5535 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5536echo "${ECHO_T}$ac_ct_STRIP" >&6
5537else
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
5540fi
5541
5542 STRIP=$ac_ct_STRIP
5543else
5544 STRIP="$ac_cv_prog_STRIP"
5545fi
5546
5547 5172
5548old_CC="$CC" 5173old_CC="$CC"
5549old_CFLAGS="$CFLAGS" 5174old_CFLAGS="$CFLAGS"
5550 5175
5551# Set sane defaults for various variables 5176# Set sane defaults for various variables
5552test -z "$AR" && AR=ar
5553test -z "$AR_FLAGS" && AR_FLAGS=cru
5554test -z "$AS" && AS=as
5555test -z "$CC" && CC=cc 5177test -z "$CC" && CC=cc
5556test -z "$LTCC" && LTCC=$CC 5178test -z "$LTCC" && LTCC=$CC
5557test -z "$DLLTOOL" && DLLTOOL=dlltool
5558test -z "$LD" && LD=ld 5179test -z "$LD" && LD=ld
5559test -z "$LN_S" && LN_S="ln -s" 5180test -z "$ac_objext" && ac_objext=o
5181
5182cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5183
5184# Only perform the check for file, if the check method requires it
5560test -z "$MAGIC_CMD" && MAGIC_CMD=file 5185test -z "$MAGIC_CMD" && MAGIC_CMD=file
5561test -z "$NM" && NM=nm
5562test -z "$SED" && SED=sed
5563test -z "$OBJDUMP" && OBJDUMP=objdump
5564test -z "$RANLIB" && RANLIB=:
5565test -z "$STRIP" && STRIP=:
5566test -z "$ac_objext" && ac_objext=o
5567
5568# Determine commands to create old-style static archives.
5569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5570old_postinstall_cmds='chmod 644 $oldlib'
5571old_postuninstall_cmds=
5572
5573if test -n "$RANLIB"; then
5574 case $host_os in
5575 openbsd*)
5576 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5577 ;;
5578 *)
5579 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5580 ;;
5581 esac
5582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5583fi
5584
5585# Only perform the check for file, if the check method requires it
5586case $deplibs_check_method in 5186case $deplibs_check_method in
5587file_magic*) 5187file_magic*)
5588 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5589 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5189 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5590echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5190echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5613 $EGREP "$file_magic_regex" > /dev/null; then 5213 $EGREP "$file_magic_regex" > /dev/null; then
5614 : 5214 :
5615 else 5215 else
5616 cat <<EOF 1>&2 5216 cat <<_LT_EOF 1>&2
5617 5217
5618*** Warning: the command libtool uses to detect shared libraries, 5218*** Warning: the command libtool uses to detect shared libraries,
5619*** $file_magic_cmd, produces output that libtool cannot recognize. 5219*** $file_magic_cmd, produces output that libtool cannot recognize.
5620*** The result is that libtool may fail to recognize shared libraries 5220*** The result is that libtool may fail to recognize shared libraries
5621*** as such. This will affect the creation of libtool libraries that 5221*** as such. This will affect the creation of libtool libraries that
5622*** depend on shared libraries, but programs linked with such libtool 5222*** depend on shared libraries, but programs linked with such libtool
5623*** libraries will work regardless of this problem. Nevertheless, you 5223*** libraries will work regardless of this problem. Nevertheless, you
5624*** may want to report the problem to your system manager and/or to 5224*** may want to report the problem to your system manager and/or to
5625*** bug-libtool@gnu.org 5225*** bug-libtool@gnu.org
5626 5226
5627EOF 5227_LT_EOF
5628 fi ;; 5228 fi ;;
5629 esac 5229 esac
5630 fi 5230 fi
5631 break 5231 break
5632 fi 5232 fi
5643echo "${ECHO_T}$MAGIC_CMD" >&6 5243echo "${ECHO_T}$MAGIC_CMD" >&6
5644else 5244else
5645 echo "$as_me:$LINENO: result: no" >&5 5245 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6 5246echo "${ECHO_T}no" >&6
5647fi 5247fi
5248
5249
5250
5251
5648 5252
5649if test -z "$lt_cv_path_MAGIC_CMD"; then 5253if test -z "$lt_cv_path_MAGIC_CMD"; then
5650 if test -n "$ac_tool_prefix"; then 5254 if test -n "$ac_tool_prefix"; then
5651 echo "$as_me:$LINENO: checking for file" >&5 5255 echo "$as_me:$LINENO: checking for file" >&5
5652echo $ECHO_N "checking for file... $ECHO_C" >&6 5256echo $ECHO_N "checking for file... $ECHO_C" >&6
5673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5675 $EGREP "$file_magic_regex" > /dev/null; then 5279 $EGREP "$file_magic_regex" > /dev/null; then
5676 : 5280 :
5677 else 5281 else
5678 cat <<EOF 1>&2 5282 cat <<_LT_EOF 1>&2
5679 5283
5680*** Warning: the command libtool uses to detect shared libraries, 5284*** Warning: the command libtool uses to detect shared libraries,
5681*** $file_magic_cmd, produces output that libtool cannot recognize. 5285*** $file_magic_cmd, produces output that libtool cannot recognize.
5682*** The result is that libtool may fail to recognize shared libraries 5286*** The result is that libtool may fail to recognize shared libraries
5683*** as such. This will affect the creation of libtool libraries that 5287*** as such. This will affect the creation of libtool libraries that
5684*** depend on shared libraries, but programs linked with such libtool 5288*** depend on shared libraries, but programs linked with such libtool
5685*** libraries will work regardless of this problem. Nevertheless, you 5289*** libraries will work regardless of this problem. Nevertheless, you
5686*** may want to report the problem to your system manager and/or to 5290*** may want to report the problem to your system manager and/or to
5687*** bug-libtool@gnu.org 5291*** bug-libtool@gnu.org
5688 5292
5689EOF 5293_LT_EOF
5690 fi ;; 5294 fi ;;
5691 esac 5295 esac
5692 fi 5296 fi
5693 break 5297 break
5694 fi 5298 fi
5706else 5310else
5707 echo "$as_me:$LINENO: result: no" >&5 5311 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6 5312echo "${ECHO_T}no" >&6
5709fi 5313fi
5710 5314
5315
5711 else 5316 else
5712 MAGIC_CMD=: 5317 MAGIC_CMD=:
5713 fi 5318 fi
5714fi 5319fi
5715 5320
5716 fi 5321 fi
5717 ;; 5322 ;;
5718esac 5323esac
5719 5324
5720enable_dlopen=no
5721enable_win32_dll=no
5722
5723# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5325# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5724if test "${enable_libtool_lock+set}" = set; then 5326if test "${enable_libtool_lock+set}" = set; then
5725 enableval="$enable_libtool_lock" 5327 enableval="$enable_libtool_lock"
5726 5328
5727fi; 5329fi;
5728test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5330test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5729 5331
5730
5731# Check whether --with-pic or --without-pic was given.
5732if test "${with_pic+set}" = set; then
5733 withval="$with_pic"
5734 pic_mode="$withval"
5735else
5736 pic_mode=default
5737fi;
5738test -z "$pic_mode" && pic_mode=default
5739
5740# Use C for the default configuration in the libtool script 5332# Use C for the default configuration in the libtool script
5741tagname= 5333
5742lt_save_CC="$CC" 5334lt_save_CC="$CC"
5743ac_ext=c 5335ac_ext=c
5744ac_cpp='$CPP $CPPFLAGS' 5336ac_cpp='$CPP $CPPFLAGS'
5745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 5351
5760# Code to be used in simple link tests 5352# Code to be used in simple link tests
5761lt_simple_link_test_code='int main(){return(0);}\n' 5353lt_simple_link_test_code='int main(){return(0);}\n'
5762 5354
5763 5355
5356
5357
5358
5359
5360
5361
5764# If no C compiler was specified, use CC. 5362# If no C compiler was specified, use CC.
5765LTCC=${LTCC-"$CC"} 5363LTCC=${LTCC-"$CC"}
5766 5364
5767# Allow CC to be a program name with arguments. 5365# Allow CC to be a program name with arguments.
5768compiler=$CC 5366compiler=$CC
5769 5367
5368# Save the default compiler, since it gets overwritten when the other
5369# tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
5370compiler_DEFAULT=$CC
5770 5371
5771# 5372#
5772# Check for any special shared library compilation flags. 5373# Check for any special shared library compilation flags.
5773# 5374#
5774lt_prog_cc_shlib= 5375lt_prog_cc_shlib=
5780 esac 5381 esac
5781fi 5382fi
5782if test -n "$lt_prog_cc_shlib"; then 5383if test -n "$lt_prog_cc_shlib"; then
5783 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5384 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5784echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5385echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5785 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5386 if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5786 else 5387 else
5787 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5388 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5788echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5389echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5789 lt_cv_prog_cc_can_build_shared=no 5390 lt_cv_prog_cc_can_build_shared=no
5790 fi 5391 fi
5791fi 5392fi
5393
5394
5395if test -n "$compiler"; then
5396
5397lt_prog_compiler_no_builtin_flag=
5398
5399if test "$GCC" = yes; then
5400 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5401
5402 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5403echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5404if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 lt_cv_prog_compiler_rtti_exceptions=no
5408 ac_outfile=conftest.$ac_objext
5409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5410 lt_compiler_flag="-fno-rtti -fno-exceptions"
5411 # Insert the option either (1) after the last *FLAGS variable, or
5412 # (2) before a word containing "conftest.", or (3) at the end.
5413 # Note that $ac_compile itself does not contain backslashes and begins
5414 # with a dollar sign (not a hyphen), so the echo should work correctly.
5415 # The option is referenced via a variable to avoid confusing sed.
5416 lt_compile=`echo "$ac_compile" | $SED \
5417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5419 -e 's:$: $lt_compiler_flag:'`
5420 (eval echo "\"\$as_me:5420: $lt_compile\"" >&5)
5421 (eval "$lt_compile" 2>conftest.err)
5422 ac_status=$?
5423 cat conftest.err >&5
5424 echo "$as_me:5424: \$? = $ac_status" >&5
5425 if (exit $ac_status) && test -s "$ac_outfile"; then
5426 # The compiler can only warn and ignore the option if not recognized
5427 # So say no if there are warnings
5428 if test ! -s conftest.err; then
5429 lt_cv_prog_compiler_rtti_exceptions=yes
5430 fi
5431 fi
5432 $rm conftest*
5433
5434fi
5435echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5436echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5437
5438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5440else
5441 :
5442fi
5443
5444fi
5445
5446
5447
5448
5449
5450
5451 lt_prog_compiler_wl=
5452lt_prog_compiler_pic=
5453lt_prog_compiler_static=
5454
5455echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5456echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5457
5458 if test "$GCC" = yes; then
5459 lt_prog_compiler_wl='-Wl,'
5460 lt_prog_compiler_static='-static'
5461
5462 case $host_os in
5463 aix*)
5464 # All AIX code is PIC.
5465 if test "$host_cpu" = ia64; then
5466 # AIX 5 now supports IA64 processor
5467 lt_prog_compiler_static='-Bstatic'
5468 fi
5469 ;;
5470
5471 amigaos*)
5472 if test "$host_cpu" = m68k; then
5473 # FIXME: we need at least 68020 code to build shared libraries, but
5474 # adding the `-m68020' flag to GCC prevents building anything better,
5475 # like `-m68040'.
5476 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5477 fi
5478 ;;
5479
5480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5481 # PIC is the default for these OSes.
5482 ;;
5483
5484 mingw* | pw32* | os2*)
5485 # This hack is so that the source file can tell whether it is being
5486 # built for inclusion in a dll (and should export symbols for example).
5487 lt_prog_compiler_pic='-DDLL_EXPORT'
5488 ;;
5489
5490 darwin* | rhapsody*)
5491 # PIC is the default on this platform
5492 # Common symbols not allowed in MH_DYLIB files
5493 lt_prog_compiler_pic='-fno-common'
5494 ;;
5495
5496 msdosdjgpp*)
5497 # Just because we use GCC doesn't mean we suddenly get shared libraries
5498 # on systems that don't support them.
5499 lt_prog_compiler_can_build_shared=no
5500 enable_shared=no
5501 ;;
5502
5503 sysv4*MP*)
5504 if test -d /usr/nec; then
5505 lt_prog_compiler_pic=-Kconform_pic
5506 fi
5507 ;;
5508
5509 hpux*)
5510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5511 # not for PA HP-UX.
5512 case "$host_cpu" in
5513 hppa*64*|ia64*)
5514 # +Z the default
5515 ;;
5516 *)
5517 lt_prog_compiler_pic='-fPIC'
5518 ;;
5519 esac
5520 ;;
5521
5522 *)
5523 lt_prog_compiler_pic='-fPIC'
5524 ;;
5525 esac
5526 else
5527 # PORTME Check for flag to pass linker flags through the system compiler.
5528 case $host_os in
5529 aix*)
5530 lt_prog_compiler_wl='-Wl,'
5531 if test "$host_cpu" = ia64; then
5532 # AIX 5 now supports IA64 processor
5533 lt_prog_compiler_static='-Bstatic'
5534 else
5535 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5536 fi
5537 ;;
5538 darwin*)
5539 # PIC is the default on this platform
5540 # Common symbols not allowed in MH_DYLIB files
5541 case "$cc_basename" in
5542 xlc*)
5543 lt_prog_compiler_pic='-qnocommon'
5544 lt_prog_compiler_wl='-Wl,'
5545 ;;
5546 esac
5547 ;;
5548
5549 mingw* | pw32* | os2*)
5550 # This hack is so that the source file can tell whether it is being
5551 # built for inclusion in a dll (and should export symbols for example).
5552 lt_prog_compiler_pic='-DDLL_EXPORT'
5553 ;;
5554
5555 hpux9* | hpux10* | hpux11*)
5556 lt_prog_compiler_wl='-Wl,'
5557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5558 # not for PA HP-UX.
5559 case "$host_cpu" in
5560 hppa*64*|ia64*)
5561 # +Z the default
5562 ;;
5563 *)
5564 lt_prog_compiler_pic='+Z'
5565 ;;
5566 esac
5567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5568 lt_prog_compiler_static='${wl}-a ${wl}archive'
5569 ;;
5570
5571 irix5* | irix6* | nonstopux*)
5572 lt_prog_compiler_wl='-Wl,'
5573 # PIC (with -KPIC) is the default.
5574 lt_prog_compiler_static='-non_shared'
5575 ;;
5576
5577 newsos6)
5578 lt_prog_compiler_pic='-KPIC'
5579 lt_prog_compiler_static='-Bstatic'
5580 ;;
5581
5582 linux*)
5583 case $CC in
5584 icc* | ecc*)
5585 lt_prog_compiler_wl='-Wl,'
5586 lt_prog_compiler_pic='-KPIC'
5587 lt_prog_compiler_static='-static'
5588 ;;
5589 ccc*)
5590 lt_prog_compiler_wl='-Wl,'
5591 # All Alpha code is PIC.
5592 lt_prog_compiler_static='-non_shared'
5593 ;;
5594 esac
5595 ;;
5596
5597 osf3* | osf4* | osf5*)
5598 lt_prog_compiler_wl='-Wl,'
5599 # All OSF/1 code is PIC.
5600 lt_prog_compiler_static='-non_shared'
5601 ;;
5602
5603 sco3.2v5*)
5604 lt_prog_compiler_pic='-Kpic'
5605 lt_prog_compiler_static='-dn'
5606 ;;
5607
5608 solaris*)
5609 lt_prog_compiler_wl='-Wl,'
5610 lt_prog_compiler_pic='-KPIC'
5611 lt_prog_compiler_static='-Bstatic'
5612 ;;
5613
5614 sunos4*)
5615 lt_prog_compiler_wl='-Qoption ld '
5616 lt_prog_compiler_pic='-PIC'
5617 lt_prog_compiler_static='-Bstatic'
5618 ;;
5619
5620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5621 lt_prog_compiler_wl='-Wl,'
5622 lt_prog_compiler_pic='-KPIC'
5623 lt_prog_compiler_static='-Bstatic'
5624 ;;
5625
5626 sysv4*MP*)
5627 if test -d /usr/nec ;then
5628 lt_prog_compiler_pic='-Kconform_pic'
5629 lt_prog_compiler_static='-Bstatic'
5630 fi
5631 ;;
5632
5633 uts4*)
5634 lt_prog_compiler_pic='-pic'
5635 lt_prog_compiler_static='-Bstatic'
5636 ;;
5637
5638 *)
5639 lt_prog_compiler_can_build_shared=no
5640 ;;
5641 esac
5642 fi
5643
5644case "$host_os" in
5645 # For platforms which do not support PIC, -DPIC is meaningless:
5646 *djgpp*)
5647 lt_prog_compiler_pic=
5648 ;;
5649 *)
5650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5651 ;;
5652esac
5653echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5654echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5655
5656
5657
5658
5659
5660
5661#
5662# Check to make sure the PIC flag actually works.
5663#
5664if test -n "$lt_prog_compiler_pic"; then
5665 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5666echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5667if test "${lt_prog_compiler_pic_works+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 lt_prog_compiler_pic_works=no
5671 ac_outfile=conftest.$ac_objext
5672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5674 # Insert the option either (1) after the last *FLAGS variable, or
5675 # (2) before a word containing "conftest.", or (3) at the end.
5676 # Note that $ac_compile itself does not contain backslashes and begins
5677 # with a dollar sign (not a hyphen), so the echo should work correctly.
5678 # The option is referenced via a variable to avoid confusing sed.
5679 lt_compile=`echo "$ac_compile" | $SED \
5680 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5682 -e 's:$: $lt_compiler_flag:'`
5683 (eval echo "\"\$as_me:5683: $lt_compile\"" >&5)
5684 (eval "$lt_compile" 2>conftest.err)
5685 ac_status=$?
5686 cat conftest.err >&5
5687 echo "$as_me:5687: \$? = $ac_status" >&5
5688 if (exit $ac_status) && test -s "$ac_outfile"; then
5689 # The compiler can only warn and ignore the option if not recognized
5690 # So say no if there are warnings
5691 if test ! -s conftest.err; then
5692 lt_prog_compiler_pic_works=yes
5693 fi
5694 fi
5695 $rm conftest*
5696
5697fi
5698echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5699echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5700
5701if test x"$lt_prog_compiler_pic_works" = xyes; then
5702 case $lt_prog_compiler_pic in
5703 "" | " "*) ;;
5704 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5705 esac
5706else
5707 lt_prog_compiler_pic=
5708 lt_prog_compiler_can_build_shared=no
5709fi
5710
5711fi
5712
5713
5714
5715
5792 5716
5793 5717
5794# 5718#
5795# Check to make sure the static flag actually works. 5719# Check to make sure the static flag actually works.
5796# 5720#
5827fi 5751fi
5828 5752
5829 5753
5830 5754
5831 5755
5832lt_prog_compiler_no_builtin_flag=
5833 5756
5834if test "$GCC" = yes; then
5835 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5836 5757
5837 5758
5838echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5839echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5840if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 lt_cv_prog_compiler_rtti_exceptions=no
5844 ac_outfile=conftest.$ac_objext
5845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5846 lt_compiler_flag="-fno-rtti -fno-exceptions"
5847 # Insert the option either (1) after the last *FLAGS variable, or
5848 # (2) before a word containing "conftest.", or (3) at the end.
5849 # Note that $ac_compile itself does not contain backslashes and begins
5850 # with a dollar sign (not a hyphen), so the echo should work correctly.
5851 # The option is referenced via a variable to avoid confusing sed.
5852 lt_compile=`echo "$ac_compile" | $SED \
5853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5855 -e 's:$: $lt_compiler_flag:'`
5856 (eval echo "\"\$as_me:5856: $lt_compile\"" >&5)
5857 (eval "$lt_compile" 2>conftest.err)
5858 ac_status=$?
5859 cat conftest.err >&5
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 if (exit $ac_status) && test -s "$ac_outfile"; then
5862 # The compiler can only warn and ignore the option if not recognized
5863 # So say no if there are warnings
5864 if test ! -s conftest.err; then
5865 lt_cv_prog_compiler_rtti_exceptions=yes
5866 fi
5867 fi
5868 $rm conftest*
5869
5870fi
5871echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5872echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5873
5874if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5876else
5877 :
5878fi
5879
5880fi
5881
5882lt_prog_compiler_wl=
5883lt_prog_compiler_pic=
5884lt_prog_compiler_static=
5885
5886echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5887echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5888
5889 if test "$GCC" = yes; then
5890 lt_prog_compiler_wl='-Wl,'
5891 lt_prog_compiler_static='-static'
5892
5893 case $host_os in
5894 aix*)
5895 # All AIX code is PIC.
5896 if test "$host_cpu" = ia64; then
5897 # AIX 5 now supports IA64 processor
5898 lt_prog_compiler_static='-Bstatic'
5899 fi
5900 ;;
5901
5902 amigaos*)
5903 # FIXME: we need at least 68020 code to build shared libraries, but
5904 # adding the `-m68020' flag to GCC prevents building anything better,
5905 # like `-m68040'.
5906 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5907 ;;
5908
5909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5910 # PIC is the default for these OSes.
5911 ;;
5912
5913 mingw* | pw32* | os2*)
5914 # This hack is so that the source file can tell whether it is being
5915 # built for inclusion in a dll (and should export symbols for example).
5916 lt_prog_compiler_pic='-DDLL_EXPORT'
5917 ;;
5918
5919 darwin* | rhapsody*)
5920 # PIC is the default on this platform
5921 # Common symbols not allowed in MH_DYLIB files
5922 lt_prog_compiler_pic='-fno-common'
5923 ;;
5924
5925 msdosdjgpp*)
5926 # Just because we use GCC doesn't mean we suddenly get shared libraries
5927 # on systems that don't support them.
5928 lt_prog_compiler_can_build_shared=no
5929 enable_shared=no
5930 ;;
5931
5932 sysv4*MP*)
5933 if test -d /usr/nec; then
5934 lt_prog_compiler_pic=-Kconform_pic
5935 fi
5936 ;;
5937
5938 hpux*)
5939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5940 # not for PA HP-UX.
5941 case "$host_cpu" in
5942 hppa*64*|ia64*)
5943 # +Z the default
5944 ;;
5945 *)
5946 lt_prog_compiler_pic='-fPIC'
5947 ;;
5948 esac
5949 ;;
5950
5951 *)
5952 lt_prog_compiler_pic='-fPIC'
5953 ;;
5954 esac
5955 else
5956 # PORTME Check for flag to pass linker flags through the system compiler.
5957 case $host_os in
5958 aix*)
5959 lt_prog_compiler_wl='-Wl,'
5960 if test "$host_cpu" = ia64; then
5961 # AIX 5 now supports IA64 processor
5962 lt_prog_compiler_static='-Bstatic'
5963 else
5964 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5965 fi
5966 ;;
5967
5968 mingw* | pw32* | os2*)
5969 # This hack is so that the source file can tell whether it is being
5970 # built for inclusion in a dll (and should export symbols for example).
5971 lt_prog_compiler_pic='-DDLL_EXPORT'
5972 ;;
5973
5974 hpux9* | hpux10* | hpux11*)
5975 lt_prog_compiler_wl='-Wl,'
5976 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5977 # not for PA HP-UX.
5978 case "$host_cpu" in
5979 hppa*64*|ia64*)
5980 # +Z the default
5981 ;;
5982 *)
5983 lt_prog_compiler_pic='+Z'
5984 ;;
5985 esac
5986 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5987 lt_prog_compiler_static='${wl}-a ${wl}archive'
5988 ;;
5989
5990 irix5* | irix6* | nonstopux*)
5991 lt_prog_compiler_wl='-Wl,'
5992 # PIC (with -KPIC) is the default.
5993 lt_prog_compiler_static='-non_shared'
5994 ;;
5995
5996 newsos6)
5997 lt_prog_compiler_pic='-KPIC'
5998 lt_prog_compiler_static='-Bstatic'
5999 ;;
6000
6001 linux*)
6002 case $CC in
6003 icc* | ecc*)
6004 lt_prog_compiler_wl='-Wl,'
6005 lt_prog_compiler_pic='-KPIC'
6006 lt_prog_compiler_static='-static'
6007 ;;
6008 ccc*)
6009 lt_prog_compiler_wl='-Wl,'
6010 # All Alpha code is PIC.
6011 lt_prog_compiler_static='-non_shared'
6012 ;;
6013 esac
6014 ;;
6015
6016 osf3* | osf4* | osf5*)
6017 lt_prog_compiler_wl='-Wl,'
6018 # All OSF/1 code is PIC.
6019 lt_prog_compiler_static='-non_shared'
6020 ;;
6021
6022 sco3.2v5*)
6023 lt_prog_compiler_pic='-Kpic'
6024 lt_prog_compiler_static='-dn'
6025 ;;
6026
6027 solaris*)
6028 lt_prog_compiler_wl='-Wl,'
6029 lt_prog_compiler_pic='-KPIC'
6030 lt_prog_compiler_static='-Bstatic'
6031 ;;
6032
6033 sunos4*)
6034 lt_prog_compiler_wl='-Qoption ld '
6035 lt_prog_compiler_pic='-PIC'
6036 lt_prog_compiler_static='-Bstatic'
6037 ;;
6038
6039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6040 lt_prog_compiler_wl='-Wl,'
6041 lt_prog_compiler_pic='-KPIC'
6042 lt_prog_compiler_static='-Bstatic'
6043 ;;
6044
6045 sysv4*MP*)
6046 if test -d /usr/nec ;then
6047 lt_prog_compiler_pic='-Kconform_pic'
6048 lt_prog_compiler_static='-Bstatic'
6049 fi
6050 ;;
6051
6052 uts4*)
6053 lt_prog_compiler_pic='-pic'
6054 lt_prog_compiler_static='-Bstatic'
6055 ;;
6056
6057 *)
6058 lt_prog_compiler_can_build_shared=no
6059 ;;
6060 esac
6061 fi
6062
6063echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6064echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6065
6066#
6067# Check to make sure the PIC flag actually works.
6068#
6069if test -n "$lt_prog_compiler_pic"; then
6070
6071echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6072echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6073if test "${lt_prog_compiler_pic_works+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 lt_prog_compiler_pic_works=no
6077 ac_outfile=conftest.$ac_objext
6078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6079 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6080 # Insert the option either (1) after the last *FLAGS variable, or
6081 # (2) before a word containing "conftest.", or (3) at the end.
6082 # Note that $ac_compile itself does not contain backslashes and begins
6083 # with a dollar sign (not a hyphen), so the echo should work correctly.
6084 # The option is referenced via a variable to avoid confusing sed.
6085 lt_compile=`echo "$ac_compile" | $SED \
6086 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6088 -e 's:$: $lt_compiler_flag:'`
6089 (eval echo "\"\$as_me:6089: $lt_compile\"" >&5)
6090 (eval "$lt_compile" 2>conftest.err)
6091 ac_status=$?
6092 cat conftest.err >&5
6093 echo "$as_me:6093: \$? = $ac_status" >&5
6094 if (exit $ac_status) && test -s "$ac_outfile"; then
6095 # The compiler can only warn and ignore the option if not recognized
6096 # So say no if there are warnings
6097 if test ! -s conftest.err; then
6098 lt_prog_compiler_pic_works=yes
6099 fi
6100 fi
6101 $rm conftest*
6102
6103fi
6104echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6105echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6106
6107if test x"$lt_prog_compiler_pic_works" = xyes; then
6108 case $lt_prog_compiler_pic in
6109 "" | " "*) ;;
6110 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6111 esac
6112else
6113 lt_prog_compiler_pic=
6114 lt_prog_compiler_can_build_shared=no
6115fi
6116
6117fi
6118case "$host_os" in
6119 # For platforms which do not support PIC, -DPIC is meaningless:
6120 *djgpp*)
6121 lt_prog_compiler_pic=
6122 ;;
6123 *)
6124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6125 ;;
6126esac
6127
6128echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5759 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6129echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5760echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6130if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5761if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6 5762 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else 5763else
6133 lt_cv_prog_compiler_c_o=no 5764 lt_cv_prog_compiler_c_o=no
6144 # with a dollar sign (not a hyphen), so the echo should work correctly. 5775 # with a dollar sign (not a hyphen), so the echo should work correctly.
6145 lt_compile=`echo "$ac_compile" | $SED \ 5776 lt_compile=`echo "$ac_compile" | $SED \
6146 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6148 -e 's:$: $lt_compiler_flag:'` 5779 -e 's:$: $lt_compiler_flag:'`
6149 (eval echo "\"\$as_me:6149: $lt_compile\"" >&5) 5780 (eval echo "\"\$as_me:5780: $lt_compile\"" >&5)
6150 (eval "$lt_compile" 2>out/conftest.err) 5781 (eval "$lt_compile" 2>out/conftest.err)
6151 ac_status=$? 5782 ac_status=$?
6152 cat out/conftest.err >&5 5783 cat out/conftest.err >&5
6153 echo "$as_me:6153: \$? = $ac_status" >&5 5784 echo "$as_me:5784: \$? = $ac_status" >&5
6154 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6155 then 5786 then
6156 # The compiler can only warn and ignore the option if not recognized 5787 # The compiler can only warn and ignore the option if not recognized
6157 # So say no if there are warnings 5788 # So say no if there are warnings
6158 if test ! -s out/conftest.err; then 5789 if test ! -s out/conftest.err; then
6170 $rm conftest* 5801 $rm conftest*
6171 5802
6172fi 5803fi
6173echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 5804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6174echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 5805echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5806
5807
5808
5809
5810
6175 5811
6176 5812
6177hard_links="nottested" 5813hard_links="nottested"
6178if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5814if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6179 # do not overwrite the value of need_locks provided by the user 5815 # do not overwrite the value of need_locks provided by the user
6194 fi 5830 fi
6195else 5831else
6196 need_locks=no 5832 need_locks=no
6197fi 5833fi
6198 5834
5835
5836
5837
5838
5839
6199echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 5840 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6200echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 5841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6201 5842
6202 runpath_var= 5843 runpath_var=
6203 allow_undefined_flag= 5844 allow_undefined_flag=
6204 enable_shared_with_static_runtimes=no 5845 always_export_symbols=no
6205 archive_cmds= 5846 archive_cmds=
6206 archive_expsym_cmds= 5847 archive_expsym_cmds=
6207 old_archive_From_new_cmds= 5848 enable_shared_with_static_runtimes=no
6208 old_archive_from_expsyms_cmds=
6209 export_dynamic_flag_spec= 5849 export_dynamic_flag_spec=
6210 whole_archive_flag_spec= 5850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6211 thread_safe_flag_spec= 5851 hardcode_automatic=no
5852 hardcode_direct=no
6212 hardcode_libdir_flag_spec= 5853 hardcode_libdir_flag_spec=
6213 hardcode_libdir_flag_spec_ld= 5854 hardcode_libdir_flag_spec_ld=
6214 hardcode_libdir_separator= 5855 hardcode_libdir_separator=
6215 hardcode_direct=no
6216 hardcode_minus_L=no 5856 hardcode_minus_L=no
6217 hardcode_shlibpath_var=unsupported 5857 hardcode_shlibpath_var=unsupported
5858 inherit_rpath=no
6218 link_all_deplibs=unknown 5859 link_all_deplibs=unknown
6219 hardcode_automatic=no
6220 module_cmds= 5860 module_cmds=
6221 module_expsym_cmds= 5861 module_expsym_cmds=
6222 always_export_symbols=no 5862 old_archive_from_new_cmds=
6223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5863 old_archive_from_expsyms_cmds=
5864 thread_safe_flag_spec=
5865 whole_archive_flag_spec=
6224 # include_expsyms should be a list of space-separated symbols to be *always* 5866 # include_expsyms should be a list of space-separated symbols to be *always*
6225 # included in the symbol list 5867 # included in the symbol list
6226 include_expsyms= 5868 include_expsyms=
6227 # exclude_expsyms can be an extended regexp of symbols to exclude 5869 # exclude_expsyms can be an extended regexp of symbols to exclude
6228 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6259 case $host_os in 5901 case $host_os in
6260 aix3* | aix4* | aix5*) 5902 aix3* | aix4* | aix5*)
6261 # On AIX/PPC, the GNU linker is very broken 5903 # On AIX/PPC, the GNU linker is very broken
6262 if test "$host_cpu" != ia64; then 5904 if test "$host_cpu" != ia64; then
6263 ld_shlibs=no 5905 ld_shlibs=no
6264 cat <<EOF 1>&2 5906 cat <<_LT_EOF 1>&2
6265 5907
6266*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5908*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6267*** to be unable to reliably create shared libraries on AIX. 5909*** to be unable to reliably create shared libraries on AIX.
6268*** Therefore, libtool is disabling shared libraries support. If you 5910*** Therefore, libtool is disabling shared libraries support. If you
6269*** really care for shared libraries, you may want to modify your PATH 5911*** really care for shared libraries, you may want to modify your PATH
6270*** so that a non-GNU linker is found, and then restart. 5912*** so that a non-GNU linker is found, and then restart.
6271 5913
6272EOF 5914_LT_EOF
6273 fi 5915 fi
6274 ;; 5916 ;;
6275 5917
6276 amigaos*) 5918 amigaos*)
5919 if test "$host_cpu" = m68k; then
6277 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)' 5920 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)'
6278 hardcode_libdir_flag_spec='-L$libdir' 5921 hardcode_libdir_flag_spec='-L$libdir'
6279 hardcode_minus_L=yes 5922 hardcode_minus_L=yes
5923 fi
6280 5924
6281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6282 # that the semantics of dynamic libraries on AmigaOS, at least up 5926 # that the semantics of dynamic libraries on AmigaOS, at least up
6283 # to version 4, is to share data among multiple programs linked 5927 # to version 4, is to share data among multiple programs linked
6284 # with the same dynamic library. Since this doesn't match the 5928 # with the same dynamic library. Since this doesn't match the
6286 # them. 5930 # them.
6287 ld_shlibs=no 5931 ld_shlibs=no
6288 ;; 5932 ;;
6289 5933
6290 beos*) 5934 beos*)
6291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6292 allow_undefined_flag=unsupported 5936 allow_undefined_flag=unsupported
6293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6294 # support --undefined. This deserves some investigation. FIXME 5938 # support --undefined. This deserves some investigation. FIXME
6295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5939 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6296 else 5940 else
6305 allow_undefined_flag=unsupported 5949 allow_undefined_flag=unsupported
6306 always_export_symbols=no 5950 always_export_symbols=no
6307 enable_shared_with_static_runtimes=yes 5951 enable_shared_with_static_runtimes=yes
6308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 5952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6309 5953
6310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5954 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6312 # If the export-symbols file already is a .def file (1st line 5956 # If the export-symbols file already is a .def file (1st line
6313 # is EXPORTS), use it as is; otherwise, prepend... 5957 # is EXPORTS), use it as is; otherwise, prepend...
6314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6315 cp $export_symbols $output_objdir/$soname.def; 5959 cp $export_symbols $output_objdir/$soname.def;
6321 else 5965 else
6322 ld_shlibs=no 5966 ld_shlibs=no
6323 fi 5967 fi
6324 ;; 5968 ;;
6325 5969
6326 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5970 netbsd*)
6327 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6328 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6329 wlarc= 5973 wlarc=
6330 else 5974 else
6331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6333 fi 5977 fi
6334 ;; 5978 ;;
6335 5979
6336 solaris* | sysv5*) 5980 solaris* | sysv5*)
6337 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6338 ld_shlibs=no 5982 ld_shlibs=no
6339 cat <<EOF 1>&2 5983 cat <<_LT_EOF 1>&2
6340 5984
6341*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5985*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6342*** create shared libraries on Solaris systems. Therefore, libtool 5986*** create shared libraries on Solaris systems. Therefore, libtool
6343*** is disabling shared libraries support. We urge you to upgrade GNU 5987*** is disabling shared libraries support. We urge you to upgrade GNU
6344*** binutils to release 2.9.1 or newer. Another option is to modify 5988*** binutils to release 2.9.1 or newer. Another option is to modify
6345*** your PATH or compiler configuration so that the native linker is 5989*** your PATH or compiler configuration so that the native linker is
6346*** used, and then restart. 5990*** used, and then restart.
6347 5991
6348EOF 5992_LT_EOF
6349 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5995 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6352 else 5996 else
6353 ld_shlibs=no 5997 ld_shlibs=no
6354 fi 5998 fi
6360 hardcode_direct=yes 6004 hardcode_direct=yes
6361 hardcode_shlibpath_var=no 6005 hardcode_shlibpath_var=no
6362 ;; 6006 ;;
6363 6007
6364 linux*) 6008 linux*)
6365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6009 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
6366 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6367 archive_cmds="$tmp_archive_cmds"
6368 supports_anon_versioning=no
6369 case `$LD -v 2>/dev/null` in 6011 case `$LD -v 2>&1` in
6370 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6012 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6373 *\ 2.11.*) ;; # other 2.11 versions 6015 *\ 2.11.*) ;; # other 2.11 versions
6374 *) supports_anon_versioning=yes ;; 6016 *) supports_anon_versioning=yes ;;
6375 esac 6017 esac
6376 if test $supports_anon_versioning = yes; then 6018 if test "x$supports_anon_versioning" = xyes; then
6377 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6019 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6378cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6379$echo "local: *; };" >> $output_objdir/$libname.ver~
6380 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6381 else 6020 else
6382 archive_expsym_cmds="$tmp_archive_cmds" 6021 archive_expsym_cmds=$archive_cmds
6383 fi 6022 fi
6384 link_all_deplibs=no
6385 else 6023 else
6386 ld_shlibs=no 6024 ld_shlibs=no
6387 fi 6025 fi
6388 ;; 6026 ;;
6389 6027
6390 *) 6028 *)
6391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6394 else 6032 else
6395 ld_shlibs=no 6033 ld_shlibs=no
6396 fi 6034 fi
6400 if test "$ld_shlibs" = yes; then 6038 if test "$ld_shlibs" = yes; then
6401 runpath_var=LD_RUN_PATH 6039 runpath_var=LD_RUN_PATH
6402 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6040 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6403 export_dynamic_flag_spec='${wl}--export-dynamic' 6041 export_dynamic_flag_spec='${wl}--export-dynamic'
6404 # ancient GNU ld didn't support --whole-archive et. al. 6042 # ancient GNU ld didn't support --whole-archive et. al.
6405 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6043 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6044 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6407 else 6045 else
6408 whole_archive_flag_spec= 6046 whole_archive_flag_spec=
6409 fi 6047 fi
6410 fi 6048 fi
6433 exp_sym_flag='-Bexport' 6071 exp_sym_flag='-Bexport'
6434 no_entry_flag="" 6072 no_entry_flag=""
6435 else 6073 else
6436 # If we're using GNU nm, then we don't want the "-C" option. 6074 # If we're using GNU nm, then we don't want the "-C" option.
6437 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6438 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6439 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' 6077 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'
6440 else 6078 else
6441 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' 6079 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'
6442 fi 6080 fi
6443 aix_use_runtimelinking=no 6081 aix_use_runtimelinking=no
6472 if test "$GCC" = yes; then 6110 if test "$GCC" = yes; then
6473 case $host_os in aix4.012|aix4.012.*) 6111 case $host_os in aix4.012|aix4.012.*)
6474 # We only want to do this on AIX 4.2 and lower, the check 6112 # We only want to do this on AIX 4.2 and lower, the check
6475 # below for broken collect2 doesn't work under 4.3+ 6113 # below for broken collect2 doesn't work under 4.3+
6476 collect2name=`${CC} -print-prog-name=collect2` 6114 collect2name=`${CC} -print-prog-name=collect2`
6477 if test -f "$collect2name" && \ 6115 if test -f "$collect2name" &&
6478 strings "$collect2name" | grep resolve_lib_name >/dev/null 6116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6479 then 6117 then
6480 # We have reworked collect2 6118 # We have reworked collect2
6481 hardcode_direct=yes 6119 hardcode_direct=yes
6482 else 6120 else
6483 # We have old collect2 6121 # We have old collect2
6511 always_export_symbols=yes 6149 always_export_symbols=yes
6512 if test "$aix_use_runtimelinking" = yes; then 6150 if test "$aix_use_runtimelinking" = yes; then
6513 # Warning - without using the other runtime loading flags (-brtl), 6151 # Warning - without using the other runtime loading flags (-brtl),
6514 # -berok will link without error, but may produce a broken library. 6152 # -berok will link without error, but may produce a broken library.
6515 allow_undefined_flag='-berok' 6153 allow_undefined_flag='-berok'
6516 # Determine the default libpath from the value encoded in an empty executable. 6154 # Determine the default libpath from the value encoded in an
6155 # empty executable.
6517 cat >conftest.$ac_ext <<_ACEOF 6156 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */ 6157/* confdefs.h. */
6519_ACEOF 6158_ACEOF
6520cat confdefs.h >>conftest.$ac_ext 6159cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF 6160cat >>conftest.$ac_ext <<_ACEOF
6565 conftest$ac_exeext conftest.$ac_ext 6204 conftest$ac_exeext conftest.$ac_ext
6566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6567 6206
6568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6569 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" 6208 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"
6570 else 6209 else
6571 if test "$host_cpu" = ia64; then 6210 if test "$host_cpu" = ia64; then
6572 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6573 allow_undefined_flag="-z nodefs" 6212 allow_undefined_flag="-z nodefs"
6574 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" 6213 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"
6575 else 6214 else
6576 # Determine the default libpath from the value encoded in an empty executable. 6215 # Determine the default libpath from the value encoded in an
6216 # empty executable.
6577 cat >conftest.$ac_ext <<_ACEOF 6217 cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h. */ 6218/* confdefs.h. */
6579_ACEOF 6219_ACEOF
6580cat confdefs.h >>conftest.$ac_ext 6220cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF 6221cat >>conftest.$ac_ext <<_ACEOF
6640 fi 6280 fi
6641 fi 6281 fi
6642 ;; 6282 ;;
6643 6283
6644 amigaos*) 6284 amigaos*)
6285 if test "$host_cpu" = m68k; then
6645 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)' 6286 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)'
6646 hardcode_libdir_flag_spec='-L$libdir' 6287 hardcode_libdir_flag_spec='-L$libdir'
6647 hardcode_minus_L=yes 6288 hardcode_minus_L=yes
6289 fi
6648 # see comment about different semantics on the GNU ld section 6290 # see comment about different semantics on the GNU ld section
6649 ld_shlibs=no 6291 ld_shlibs=no
6650 ;; 6292 ;;
6651 6293
6652 bsdi4*) 6294 bsdi4*)
6665 # Tell ltmain to make .dll files, not .so files. 6307 # Tell ltmain to make .dll files, not .so files.
6666 shrext_cmds=".dll" 6308 shrext_cmds=".dll"
6667 # FIXME: Setting linknames here is a bad hack. 6309 # FIXME: Setting linknames here is a bad hack.
6668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6669 # The linker will automatically build a .lib file if we build a DLL. 6311 # The linker will automatically build a .lib file if we build a DLL.
6670 old_archive_From_new_cmds='true' 6312 old_archive_from_new_cmds='true'
6671 # FIXME: Should let the user specify the lib program. 6313 # FIXME: Should let the user specify the lib program.
6672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6314 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6673 fix_srcfile_path='`cygpath -w "$srcfile"`' 6315 fix_srcfile_path='`cygpath -w "$srcfile"`'
6674 enable_shared_with_static_runtimes=yes 6316 enable_shared_with_static_runtimes=yes
6675 ;; 6317 ;;
6676 6318
6677 darwin* | rhapsody*) 6319 darwin* | rhapsody*)
6678 if test "$GXX" = yes ; then 6320 case "$host_os" in
6321 rhapsody* | darwin1.[012])
6322 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6323 ;;
6324 *) # Darwin 1.3 on
6325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6326 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress'
6327 else
6328 case ${MACOSX_DEPLOYMENT_TARGET} in
6329 10.[012])
6330 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6331 ;;
6332 10.*)
6333 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6334 ;;
6335 esac
6336 fi
6337 ;;
6338 esac
6679 archive_cmds_need_lc=no 6339 archive_cmds_need_lc=no
6680 case "$host_os" in
6681 rhapsody* | darwin1.[012])
6682 allow_undefined_flag='-undefined suppress'
6683 ;;
6684 *) # Darwin 1.3 on
6685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6686 allow_undefined_flag='-flat_namespace -undefined suppress'
6687 else
6688 case ${MACOSX_DEPLOYMENT_TARGET} in
6689 10.[012])
6690 allow_undefined_flag='-flat_namespace -undefined suppress'
6691 ;;
6692 10.*)
6693 allow_undefined_flag='-undefined dynamic_lookup'
6694 ;;
6695 esac
6696 fi
6697 ;;
6698 esac
6699 lt_int_apple_cc_single_mod=no
6700 output_verbose_link_cmd='echo'
6701 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6702 lt_int_apple_cc_single_mod=yes
6703 fi
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6705 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6706 else
6707 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'
6708 fi
6709 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6710 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6711 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6712 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}'
6713 else
6714 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}'
6715 fi
6716 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}'
6717 hardcode_direct=no 6340 hardcode_direct=no
6718 hardcode_automatic=yes 6341 hardcode_automatic=yes
6719 hardcode_shlibpath_var=unsupported 6342 hardcode_shlibpath_var=unsupported
6720 whole_archive_flag_spec='-all_load $convenience' 6343 whole_archive_flag_spec='-all_load $convenience'
6721 link_all_deplibs=yes 6344 link_all_deplibs=yes
6345 if test "$GCC" = yes ; then
6346 output_verbose_link_cmd='echo'
6347 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6348 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6350 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}'
6351 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}'
6722 else 6352 else
6353 case "$cc_basename" in
6354 xlc*)
6355 output_verbose_link_cmd='echo'
6356 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6359 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6360 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}'
6361 ;;
6362 *)
6723 ld_shlibs=no 6363 ld_shlibs=no
6364 ;;
6365 esac
6724 fi 6366 fi
6725 ;; 6367 ;;
6726
6727 dgux*) 6368 dgux*)
6728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6729 hardcode_libdir_flag_spec='-L$libdir' 6370 hardcode_libdir_flag_spec='-L$libdir'
6730 hardcode_shlibpath_var=no 6371 hardcode_shlibpath_var=no
6731 ;; 6372 ;;
6830 ;; 6471 ;;
6831 6472
6832 irix5* | irix6* | nonstopux*) 6473 irix5* | irix6* | nonstopux*)
6833 if test "$GCC" = yes; then 6474 if test "$GCC" = yes; then
6834 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' 6475 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'
6476 archive_expsym_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
6835 else 6477 else
6836 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' 6478 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'
6479 archive_expsym_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6837 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6480 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6838 fi 6481 fi
6839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6840 hardcode_libdir_separator=: 6483 hardcode_libdir_separator=:
6484 inherit_rpath=yes
6841 link_all_deplibs=yes 6485 link_all_deplibs=yes
6842 ;; 6486 ;;
6843 6487
6844 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6488 netbsd*)
6845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6847 else 6491 else
6848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6492 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6849 fi 6493 fi
6850 hardcode_libdir_flag_spec='-R$libdir' 6494 hardcode_libdir_flag_spec='-R$libdir'
6861 ;; 6505 ;;
6862 6506
6863 openbsd*) 6507 openbsd*)
6864 hardcode_direct=yes 6508 hardcode_direct=yes
6865 hardcode_shlibpath_var=no 6509 hardcode_shlibpath_var=no
6866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6869 export_dynamic_flag_spec='${wl}-E' 6513 export_dynamic_flag_spec='${wl}-E'
6870 else 6514 else
6871 case $host_os in 6515 case $host_os in
6884 os2*) 6528 os2*)
6885 hardcode_libdir_flag_spec='-L$libdir' 6529 hardcode_libdir_flag_spec='-L$libdir'
6886 hardcode_minus_L=yes 6530 hardcode_minus_L=yes
6887 allow_undefined_flag=unsupported 6531 allow_undefined_flag=unsupported
6888 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' 6532 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'
6889 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6533 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6890 ;; 6534 ;;
6891 6535
6892 osf3*) 6536 osf3*)
6893 if test "$GCC" = yes; then 6537 if test "$GCC" = yes; then
6894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7039 6683
7040 *) 6684 *)
7041 ld_shlibs=no 6685 ld_shlibs=no
7042 ;; 6686 ;;
7043 esac 6687 esac
6688
6689 if test x$host_vendor = xsni; then
6690 case $host in
6691 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6692 export_dynamic_flag_spec='${wl}-Blargedynsym'
6693 ;;
6694 esac
6695 fi
7044 fi 6696 fi
7045 6697
7046echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6698echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7047echo "${ECHO_T}$ld_shlibs" >&6 6699echo "${ECHO_T}$ld_shlibs" >&6
7048test "$ld_shlibs" = no && can_build_shared=no 6700test "$ld_shlibs" = no && can_build_shared=no
7049 6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
7050variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7051if test "$GCC" = yes; then 6717if test "$GCC" = yes; then
7052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7053fi 6719fi
6720
6721
6722
6723
6724
7054 6725
7055# 6726#
7056# Do we need to explicitly link libc? 6727# Do we need to explicitly link libc?
7057# 6728#
7058case "x$archive_cmds_need_lc" in 6729case "x$archive_cmds_need_lc" in
7089 verstring= 6760 verstring=
7090 output_objdir=. 6761 output_objdir=.
7091 libname=conftest 6762 libname=conftest
7092 lt_save_allow_undefined_flag=$allow_undefined_flag 6763 lt_save_allow_undefined_flag=$allow_undefined_flag
7093 allow_undefined_flag= 6764 allow_undefined_flag=
7094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7095 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6766 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7096 ac_status=$? 6767 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } 6769 (exit $ac_status); }
7099 then 6770 then
7100 archive_cmds_need_lc=no 6771 archive_cmds_need_lc=no
7112 esac 6783 esac
7113 fi 6784 fi
7114 ;; 6785 ;;
7115esac 6786esac
7116 6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
7117echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6920echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7118echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6921echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7119library_names_spec= 6922library_names_spec=
7120libname_spec='lib$name' 6923libname_spec='lib$name'
7121soname_spec= 6924soname_spec=
7128shlibpath_overrides_runpath=unknown 6931shlibpath_overrides_runpath=unknown
7129version_type=none 6932version_type=none
7130dynamic_linker="$host_os ld.so" 6933dynamic_linker="$host_os ld.so"
7131sys_lib_dlsearch_path_spec="/lib /usr/lib" 6934sys_lib_dlsearch_path_spec="/lib /usr/lib"
7132if test "$GCC" = yes; then 6935if test "$GCC" = yes; then
7133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 6936 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7134 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 6937 if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7135 # if the path contains ";" then we assume it to be the separator 6938 # if the path contains ";" then we assume it to be the separator
7136 # otherwise default to the standard path separator (i.e. ":") - it is 6939 # otherwise default to the standard path separator (i.e. ":") - it is
7137 # assumed that no part of a normal pathname contains ";" but that should 6940 # assumed that no part of a normal pathname contains ";" but that should
7138 # okay in the real world where ";" in dirpaths is itself problematic. 6941 # okay in the real world where ";" in dirpaths is itself problematic.
7139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 6942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7177 # development snapshots of GCC prior to 3.0. 6980 # development snapshots of GCC prior to 3.0.
7178 case $host_os in 6981 case $host_os in
7179 aix4 | aix4.[01] | aix4.[01].*) 6982 aix4 | aix4.[01] | aix4.[01].*)
7180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7181 echo ' yes ' 6984 echo ' yes '
7182 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6985 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7183 : 6986 :
7184 else 6987 else
7185 can_build_shared=no 6988 can_build_shared=no
7186 fi 6989 fi
7187 ;; 6990 ;;
7203 shlibpath_var=LIBPATH 7006 shlibpath_var=LIBPATH
7204 fi 7007 fi
7205 ;; 7008 ;;
7206 7009
7207amigaos*) 7010amigaos*)
7011 if test "$host_cpu" = m68k; then
7208 library_names_spec='$libname.ixlibrary $libname.a' 7012 library_names_spec='$libname.ixlibrary $libname.a'
7209 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7210 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' 7014 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'
7015 else
7016 dynamic_linker=no
7017 fi
7211 ;; 7018 ;;
7212 7019
7213beos*) 7020beos*)
7214 library_names_spec='${libname}${shared_ext}' 7021 library_names_spec='${libname}${shared_ext}'
7215 dynamic_linker="$host_os ld.so" 7022 dynamic_linker="$host_os ld.so"
7257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7064 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7258 ;; 7065 ;;
7259 mingw*) 7066 mingw*)
7260 # MinGW DLLs use traditional 'lib' prefix 7067 # MinGW DLLs use traditional 'lib' prefix
7261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7069 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7070 if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7264 # It is most probably a Windows format PATH printed by 7071 # It is most probably a Windows format PATH printed by
7265 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7266 # path with ; separators, and with drive letters. We can handle the 7073 # path with ; separators, and with drive letters. We can handle the
7267 # drive letters (cygwin fileutils understands them), so leave them, 7074 # drive letters (cygwin fileutils understands them), so leave them,
7268 # especially as we might pass files found there to a mingw objdump, 7075 # especially as we might pass files found there to a mingw objdump,
7298 shlibpath_overrides_runpath=yes 7105 shlibpath_overrides_runpath=yes
7299 shlibpath_var=DYLD_LIBRARY_PATH 7106 shlibpath_var=DYLD_LIBRARY_PATH
7300 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7107 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7302 if test "$GCC" = yes; then 7109 if test "$GCC" = yes; then
7303 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"` 7110 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"`
7304 else 7111 else
7305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7112 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7306 fi 7113 fi
7307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7308 ;; 7115 ;;
7488 # people can always --disable-shared, the test was removed, and we 7295 # people can always --disable-shared, the test was removed, and we
7489 # assume the GNU/Linux dynamic linker is in use. 7296 # assume the GNU/Linux dynamic linker is in use.
7490 dynamic_linker='GNU/Linux ld.so' 7297 dynamic_linker='GNU/Linux ld.so'
7491 ;; 7298 ;;
7492 7299
7493netbsdelf*-gnu)
7494 version_type=linux
7495 need_lib_prefix=no
7496 need_version=no
7497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7498 soname_spec='${libname}${release}${shared_ext}$major'
7499 shlibpath_var=LD_LIBRARY_PATH
7500 shlibpath_overrides_runpath=no
7501 hardcode_into_libs=yes
7502 dynamic_linker='NetBSD ld.elf_so'
7503 ;;
7504
7505knetbsd*-gnu) 7300knetbsd*-gnu)
7506 version_type=linux 7301 version_type=linux
7507 need_lib_prefix=no 7302 need_lib_prefix=no
7508 need_version=no 7303 need_version=no
7509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7516 7311
7517netbsd*) 7312netbsd*)
7518 version_type=sunos 7313 version_type=sunos
7519 need_lib_prefix=no 7314 need_lib_prefix=no
7520 need_version=no 7315 need_version=no
7521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7524 dynamic_linker='NetBSD (a.out) ld.so' 7319 dynamic_linker='NetBSD (a.out) ld.so'
7525 else 7320 else
7526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7554 need_lib_prefix=no 7349 need_lib_prefix=no
7555 need_version=yes 7350 need_version=yes
7556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7558 shlibpath_var=LD_LIBRARY_PATH 7353 shlibpath_var=LD_LIBRARY_PATH
7559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7560 case $host_os in 7355 case $host_os in
7561 openbsd2.[89] | openbsd2.[89].*) 7356 openbsd2.[89] | openbsd2.[89].*)
7562 shlibpath_overrides_runpath=no 7357 shlibpath_overrides_runpath=no
7563 ;; 7358 ;;
7564 *) 7359 *)
7629 shlibpath_var=LD_LIBRARY_PATH 7424 shlibpath_var=LD_LIBRARY_PATH
7630 case $host_vendor in 7425 case $host_vendor in
7631 sni) 7426 sni)
7632 shlibpath_overrides_runpath=no 7427 shlibpath_overrides_runpath=no
7633 need_lib_prefix=no 7428 need_lib_prefix=no
7634 export_dynamic_flag_spec='${wl}-Blargedynsym'
7635 runpath_var=LD_RUN_PATH 7429 runpath_var=LD_RUN_PATH
7636 ;; 7430 ;;
7637 siemens) 7431 siemens)
7638 need_lib_prefix=no 7432 need_lib_prefix=no
7639 ;; 7433 ;;
7668esac 7462esac
7669echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7463echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7670echo "${ECHO_T}$dynamic_linker" >&6 7464echo "${ECHO_T}$dynamic_linker" >&6
7671test "$dynamic_linker" = no && can_build_shared=no 7465test "$dynamic_linker" = no && can_build_shared=no
7672 7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7673echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7548echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7675hardcode_action= 7549hardcode_action=
7676if test -n "$hardcode_libdir_flag_spec" || \ 7550if test -n "$hardcode_libdir_flag_spec" ||
7677 test -n "$runpath_var " || \ 7551 test -n "$runpath_var " ||
7678 test "X$hardcode_automatic"="Xyes" ; then 7552 test "X$hardcode_automatic"="Xyes" ; then
7679 7553
7680 # We can hardcode non-existant directories. 7554 # We can hardcode non-existant directories.
7681 if test "$hardcode_direct" != no && 7555 if test "$hardcode_direct" != no &&
7682 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7696 hardcode_action=unsupported 7570 hardcode_action=unsupported
7697fi 7571fi
7698echo "$as_me:$LINENO: result: $hardcode_action" >&5 7572echo "$as_me:$LINENO: result: $hardcode_action" >&5
7699echo "${ECHO_T}$hardcode_action" >&6 7573echo "${ECHO_T}$hardcode_action" >&6
7700 7574
7701if test "$hardcode_action" = relink; then 7575if test "$hardcode_action" = relink ||
7576 test "$inherit_rpath" = yes; then
7702 # Fast installation is not supported 7577 # Fast installation is not supported
7703 enable_fast_install=no 7578 enable_fast_install=no
7704elif test "$shlibpath_overrides_runpath" = yes || 7579elif test "$shlibpath_overrides_runpath" = yes ||
7705 test "$enable_shared" = no; then 7580 test "$enable_shared" = no; then
7706 # Fast installation is not necessary 7581 # Fast installation is not necessary
7707 enable_fast_install=needless 7582 enable_fast_install=needless
7708fi 7583fi
7709 7584
7585
7586
7587
7588
7589
7590
7710striplib= 7591striplib=
7711old_striplib= 7592old_striplib=
7712echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7593echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7713echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7594echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7714if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7595if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
7715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7716 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7717 echo "$as_me:$LINENO: result: yes" >&5 7598 echo "$as_me:$LINENO: result: yes" >&5
7718echo "${ECHO_T}yes" >&6 7599echo "${ECHO_T}yes" >&6
7719else 7600else
7734echo "${ECHO_T}no" >&6 7615echo "${ECHO_T}no" >&6
7735 ;; 7616 ;;
7736 esac 7617 esac
7737fi 7618fi
7738 7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7739if test "x$enable_dlopen" != xyes; then 7630 if test "x$enable_dlopen" != xyes; then
7740 enable_dlopen=unknown 7631 enable_dlopen=unknown
7741 enable_dlopen_self=unknown 7632 enable_dlopen_self=unknown
7742 enable_dlopen_self_static=unknown 7633 enable_dlopen_self_static=unknown
7743else 7634else
7744 lt_cv_dlopen=no 7635 lt_cv_dlopen=no
8331 if test "$cross_compiling" = yes; then : 8222 if test "$cross_compiling" = yes; then :
8332 lt_cv_dlopen_self=cross 8223 lt_cv_dlopen_self=cross
8333else 8224else
8334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8335 lt_status=$lt_dlunknown 8226 lt_status=$lt_dlunknown
8336 cat > conftest.$ac_ext <<EOF 8227 cat > conftest.$ac_ext <<_LT_EOF
8337#line 8337 "configure" 8228#line 8228 "configure"
8338#include "confdefs.h" 8229#include "confdefs.h"
8339 8230
8340#if HAVE_DLFCN_H 8231#if HAVE_DLFCN_H
8341#include <dlfcn.h> 8232#include <dlfcn.h>
8342#endif 8233#endif
8392 /* dlclose (self); */ 8283 /* dlclose (self); */
8393 } 8284 }
8394 8285
8395 exit (status); 8286 exit (status);
8396} 8287}
8397EOF 8288_LT_EOF
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399 (eval $ac_link) 2>&5 8290 (eval $ac_link) 2>&5
8400 ac_status=$? 8291 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8429 if test "$cross_compiling" = yes; then : 8320 if test "$cross_compiling" = yes; then :
8430 lt_cv_dlopen_self_static=cross 8321 lt_cv_dlopen_self_static=cross
8431else 8322else
8432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8433 lt_status=$lt_dlunknown 8324 lt_status=$lt_dlunknown
8434 cat > conftest.$ac_ext <<EOF 8325 cat > conftest.$ac_ext <<_LT_EOF
8435#line 8435 "configure" 8326#line 8326 "configure"
8436#include "confdefs.h" 8327#include "confdefs.h"
8437 8328
8438#if HAVE_DLFCN_H 8329#if HAVE_DLFCN_H
8439#include <dlfcn.h> 8330#include <dlfcn.h>
8440#endif 8331#endif
8490 /* dlclose (self); */ 8381 /* dlclose (self); */
8491 } 8382 }
8492 8383
8493 exit (status); 8384 exit (status);
8494} 8385}
8495EOF 8386_LT_EOF
8496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8497 (eval $ac_link) 2>&5 8388 (eval $ac_link) 2>&5
8498 ac_status=$? 8389 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8391 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8534 *) enable_dlopen_self_static=unknown ;; 8425 *) enable_dlopen_self_static=unknown ;;
8535 esac 8426 esac
8536fi 8427fi
8537 8428
8538 8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8539# Report which librarie types wil actually be built 8445 # Report which library types will actually be built
8540echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8446 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8541echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8447echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8542echo "$as_me:$LINENO: result: $can_build_shared" >&5 8448 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8543echo "${ECHO_T}$can_build_shared" >&6 8449echo "${ECHO_T}$can_build_shared" >&6
8544 8450
8545echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8451 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8546echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8452echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8547test "$can_build_shared" = "no" && enable_shared=no 8453 test "$can_build_shared" = "no" && enable_shared=no
8548 8454
8549# On AIX, shared libraries and static libraries use the same namespace, and 8455 # On AIX, shared libraries and static libraries use the same namespace, and
8550# are all built from PIC. 8456 # are all built from PIC.
8551case "$host_os" in 8457 case "$host_os" in
8552aix3*) 8458 aix3*)
8553 test "$enable_shared" = yes && enable_static=no
8554 if test -n "$RANLIB"; then
8555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8556 postinstall_cmds='$RANLIB $lib'
8557 fi
8558 ;;
8559
8560aix4* | aix5*)
8561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8562 test "$enable_shared" = yes && enable_static=no 8459 test "$enable_shared" = yes && enable_static=no
8563 fi 8460 if test -n "$RANLIB"; then
8564 ;; 8461 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8565 darwin* | rhapsody*) 8462 postinstall_cmds='$RANLIB $lib'
8566 if test "$GCC" = yes; then
8567 archive_cmds_need_lc=no
8568 case "$host_os" in
8569 rhapsody* | darwin1.[012])
8570 allow_undefined_flag='-undefined suppress'
8571 ;;
8572 *) # Darwin 1.3 on
8573 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8574 allow_undefined_flag='-flat_namespace -undefined suppress'
8575 else
8576 case ${MACOSX_DEPLOYMENT_TARGET} in
8577 10.[012])
8578 allow_undefined_flag='-flat_namespace -undefined suppress'
8579 ;;
8580 10.*)
8581 allow_undefined_flag='-undefined dynamic_lookup'
8582 ;;
8583 esac
8584 fi 8463 fi
8585 ;;
8586 esac
8587 output_verbose_link_cmd='echo'
8588 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8589 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8591 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}'
8592 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}'
8593 hardcode_direct=no
8594 hardcode_automatic=yes
8595 hardcode_shlibpath_var=unsupported
8596 whole_archive_flag_spec='-all_load $convenience'
8597 link_all_deplibs=yes
8598 else
8599 ld_shlibs=no
8600 fi
8601 ;; 8464 ;;
8602esac
8603echo "$as_me:$LINENO: result: $enable_shared" >&5
8604echo "${ECHO_T}$enable_shared" >&6
8605 8465
8606echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8466 aix4* | aix5*)
8607echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8608# Make sure either enable_shared or enable_static is yes.
8609test "$enable_shared" = yes || enable_static=yes 8468 test "$enable_shared" = yes && enable_static=no
8610echo "$as_me:$LINENO: result: $enable_static" >&5
8611echo "${ECHO_T}$enable_static" >&6
8612
8613# The else clause should only fire when bootstrapping the
8614# libtool distribution, otherwise you forgot to ship ltmain.sh
8615# with your package, and you will get complaints that there are
8616# no rules to generate ltmain.sh.
8617if test -f "$ltmain"; then
8618 # See if we are running on zsh, and set the options which allow our commands through
8619 # without removal of \ escapes.
8620 if test -n "${ZSH_VERSION+set}" ; then
8621 setopt NO_GLOB_SUBST
8622 fi 8469 fi
8623 # Now quote all the things that may contain metacharacters while being
8624 # careful not to overquote the AC_SUBSTed values. We take copies of the
8625 # variables and quote the copies for generation of the libtool script.
8626 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8627 SED SHELL STRIP \
8628 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8629 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8630 deplibs_check_method reload_flag reload_cmds need_locks \
8631 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8632 lt_cv_sys_global_symbol_to_c_name_address \
8633 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8634 old_postinstall_cmds old_postuninstall_cmds \
8635 compiler \
8636 CC \
8637 LD \
8638 lt_prog_compiler_wl \
8639 lt_prog_compiler_pic \
8640 lt_prog_compiler_static \
8641 lt_prog_compiler_no_builtin_flag \
8642 export_dynamic_flag_spec \
8643 thread_safe_flag_spec \
8644 whole_archive_flag_spec \
8645 enable_shared_with_static_runtimes \
8646 old_archive_cmds \
8647 old_archive_from_new_cmds \
8648 predep_objects \
8649 postdep_objects \
8650 predeps \
8651 postdeps \
8652 compiler_lib_search_path \
8653 archive_cmds \
8654 archive_expsym_cmds \
8655 postinstall_cmds \
8656 postuninstall_cmds \
8657 old_archive_from_expsyms_cmds \
8658 allow_undefined_flag \
8659 no_undefined_flag \
8660 export_symbols_cmds \
8661 hardcode_libdir_flag_spec \
8662 hardcode_libdir_flag_spec_ld \
8663 hardcode_libdir_separator \
8664 hardcode_automatic \
8665 module_cmds \
8666 module_expsym_cmds \
8667 lt_cv_prog_compiler_c_o \
8668 exclude_expsyms \
8669 include_expsyms; do
8670
8671 case $var in
8672 old_archive_cmds | \
8673 old_archive_from_new_cmds | \
8674 archive_cmds | \
8675 archive_expsym_cmds | \
8676 module_cmds | \
8677 module_expsym_cmds | \
8678 old_archive_from_expsyms_cmds | \
8679 export_symbols_cmds | \
8680 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8681 postinstall_cmds | postuninstall_cmds | \
8682 old_postinstall_cmds | old_postuninstall_cmds | \
8683 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8684 # Double-quote double-evaled strings.
8685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8686 ;;
8687 *)
8688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8689 ;;
8690 esac
8691 done
8692
8693 case $lt_echo in
8694 *'\$0 --fallback-echo"')
8695 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8696 ;; 8470 ;;
8697 esac 8471 esac
8472 echo "$as_me:$LINENO: result: $enable_shared" >&5
8473echo "${ECHO_T}$enable_shared" >&6
8698 8474
8699cfgfile="${ofile}T" 8475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8700 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8476echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8701 $rm -f "$cfgfile" 8477 # Make sure either enable_shared or enable_static is yes.
8702 { echo "$as_me:$LINENO: creating $ofile" >&5 8478 test "$enable_shared" = yes || enable_static=yes
8703echo "$as_me: creating $ofile" >&6;} 8479 echo "$as_me:$LINENO: result: $enable_static" >&5
8480echo "${ECHO_T}$enable_static" >&6
8704 8481
8705 cat <<__EOF__ >> "$cfgfile"
8706#! $SHELL
8707 8482
8708# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8709# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8710# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8711#
8712# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8713# Free Software Foundation, Inc.
8714#
8715# This file is part of GNU Libtool:
8716# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8717#
8718# This program is free software; you can redistribute it and/or modify
8719# it under the terms of the GNU General Public License as published by
8720# the Free Software Foundation; either version 2 of the License, or
8721# (at your option) any later version.
8722#
8723# This program is distributed in the hope that it will be useful, but
8724# WITHOUT ANY WARRANTY; without even the implied warranty of
8725# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8726# General Public License for more details.
8727#
8728# You should have received a copy of the GNU General Public License
8729# along with this program; if not, write to the Free Software
8730# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8731#
8732# As a special exception to the GNU General Public License, if you
8733# distribute this file as part of a program that contains a
8734# configuration script generated by Autoconf, you may include it under
8735# the same distribution terms that you use for the rest of that program.
8736 8483
8737# A sed program that does not truncate output.
8738SED=$lt_SED
8739 8484
8740# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8741Xsed="$SED -e s/^X//"
8742
8743# The HP-UX ksh and POSIX shell print the target directory to stdout
8744# if CDPATH is set.
8745if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8746
8747# The names of the tagged configurations supported by this script.
8748available_tags=
8749
8750# ### BEGIN LIBTOOL CONFIG
8751
8752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8753
8754# Shell to use when invoking shell scripts.
8755SHELL=$lt_SHELL
8756
8757# Whether or not to build shared libraries.
8758build_libtool_libs=$enable_shared
8759
8760# Whether or not to build static libraries.
8761build_old_libs=$enable_static
8762
8763# Whether or not to add -lc for building shared libraries.
8764build_libtool_need_lc=$archive_cmds_need_lc
8765
8766# Whether or not to disallow shared libs when runtime libs are static
8767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8768
8769# Whether or not to optimize for fast installation.
8770fast_install=$enable_fast_install
8771
8772# The host system.
8773host_alias=$host_alias
8774host=$host
8775
8776# An echo program that does not interpret backslashes.
8777echo=$lt_echo
8778
8779# The archiver.
8780AR=$lt_AR
8781AR_FLAGS=$lt_AR_FLAGS
8782
8783# A C compiler.
8784LTCC=$lt_LTCC
8785
8786# A language-specific compiler.
8787CC=$lt_compiler
8788
8789# Is the compiler the GNU C compiler?
8790with_gcc=$GCC
8791
8792# An ERE matcher.
8793EGREP=$lt_EGREP
8794
8795# The linker used to build libraries.
8796LD=$lt_LD
8797
8798# Whether we need hard or soft links.
8799LN_S=$lt_LN_S
8800
8801# A BSD-compatible nm program.
8802NM=$lt_NM
8803
8804# A symbol stripping program
8805STRIP=$lt_STRIP
8806
8807# Used to examine libraries when file_magic_cmd begins "file"
8808MAGIC_CMD=$MAGIC_CMD
8809
8810# Used on cygwin: DLL creation program.
8811DLLTOOL="$DLLTOOL"
8812
8813# Used on cygwin: object dumper.
8814OBJDUMP="$OBJDUMP"
8815
8816# Used on cygwin: assembler.
8817AS="$AS"
8818
8819# The name of the directory that contains temporary libtool files.
8820objdir=$objdir
8821
8822# How to create reloadable object files.
8823reload_flag=$lt_reload_flag
8824reload_cmds=$lt_reload_cmds
8825
8826# How to pass a linker flag through the compiler.
8827wl=$lt_lt_prog_compiler_wl
8828
8829# Object file suffix (normally "o").
8830objext="$ac_objext"
8831
8832# Old archive suffix (normally "a").
8833libext="$libext"
8834
8835# Shared library suffix (normally ".so").
8836shrext_cmds='$shrext_cmds'
8837
8838# Executable file suffix (normally "").
8839exeext="$exeext"
8840
8841# Additional compiler flags for building library objects.
8842pic_flag=$lt_lt_prog_compiler_pic
8843pic_mode=$pic_mode
8844
8845# What is the maximum length of a command?
8846max_cmd_len=$lt_cv_sys_max_cmd_len
8847
8848# Does compiler simultaneously support -c and -o options?
8849compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8850
8851# Must we lock files when doing compilation ?
8852need_locks=$lt_need_locks
8853
8854# Do we need the lib prefix for modules?
8855need_lib_prefix=$need_lib_prefix
8856
8857# Do we need a version for libraries?
8858need_version=$need_version
8859
8860# Whether dlopen is supported.
8861dlopen_support=$enable_dlopen
8862
8863# Whether dlopen of programs is supported.
8864dlopen_self=$enable_dlopen_self
8865
8866# Whether dlopen of statically linked programs is supported.
8867dlopen_self_static=$enable_dlopen_self_static
8868
8869# Compiler flag to prevent dynamic linking.
8870link_static_flag=$lt_lt_prog_compiler_static
8871
8872# Compiler flag to turn off builtin functions.
8873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8874
8875# Compiler flag to allow reflexive dlopens.
8876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8877
8878# Compiler flag to generate shared objects directly from archives.
8879whole_archive_flag_spec=$lt_whole_archive_flag_spec
8880
8881# Compiler flag to generate thread-safe objects.
8882thread_safe_flag_spec=$lt_thread_safe_flag_spec
8883
8884# Library versioning type.
8885version_type=$version_type
8886
8887# Format of library name prefix.
8888libname_spec=$lt_libname_spec
8889
8890# List of archive names. First name is the real one, the rest are links.
8891# The last name is the one that the linker finds with -lNAME.
8892library_names_spec=$lt_library_names_spec
8893
8894# The coded name of the library, if different from the real name.
8895soname_spec=$lt_soname_spec
8896
8897# Commands used to build and install an old-style archive.
8898RANLIB=$lt_RANLIB
8899old_archive_cmds=$lt_old_archive_cmds
8900old_postinstall_cmds=$lt_old_postinstall_cmds
8901old_postuninstall_cmds=$lt_old_postuninstall_cmds
8902
8903# Create an old-style archive from a shared archive.
8904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8905
8906# Create a temporary old-style archive to link instead of a shared archive.
8907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8908
8909# Commands used to build and install a shared archive.
8910archive_cmds=$lt_archive_cmds
8911archive_expsym_cmds=$lt_archive_expsym_cmds
8912postinstall_cmds=$lt_postinstall_cmds
8913postuninstall_cmds=$lt_postuninstall_cmds
8914
8915# Commands used to build a loadable module (assumed same as above if empty)
8916module_cmds=$lt_module_cmds
8917module_expsym_cmds=$lt_module_expsym_cmds
8918
8919# Commands to strip libraries.
8920old_striplib=$lt_old_striplib
8921striplib=$lt_striplib
8922
8923# Dependencies to place before the objects being linked to create a
8924# shared library.
8925predep_objects=$lt_predep_objects
8926
8927# Dependencies to place after the objects being linked to create a
8928# shared library.
8929postdep_objects=$lt_postdep_objects
8930
8931# Dependencies to place before the objects being linked to create a
8932# shared library.
8933predeps=$lt_predeps
8934
8935# Dependencies to place after the objects being linked to create a
8936# shared library.
8937postdeps=$lt_postdeps
8938
8939# The library search path used internally by the compiler when linking
8940# a shared library.
8941compiler_lib_search_path=$lt_compiler_lib_search_path
8942
8943# Method to check whether dependent libraries are shared objects.
8944deplibs_check_method=$lt_deplibs_check_method
8945
8946# Command to use when deplibs_check_method == file_magic.
8947file_magic_cmd=$lt_file_magic_cmd
8948
8949# Flag that allows shared libraries with undefined symbols to be built.
8950allow_undefined_flag=$lt_allow_undefined_flag
8951
8952# Flag that forces no undefined symbols.
8953no_undefined_flag=$lt_no_undefined_flag
8954
8955# Commands used to finish a libtool library installation in a directory.
8956finish_cmds=$lt_finish_cmds
8957
8958# Same as above, but a single script fragment to be evaled but not shown.
8959finish_eval=$lt_finish_eval
8960
8961# Take the output of nm and produce a listing of raw symbols and C names.
8962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8963
8964# Transform the output of nm in a proper C declaration
8965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8966
8967# Transform the output of nm in a C name address pair
8968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8969
8970# This is the shared library runtime path variable.
8971runpath_var=$runpath_var
8972
8973# This is the shared library path variable.
8974shlibpath_var=$shlibpath_var
8975
8976# Is shlibpath searched before the hard-coded library search path?
8977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8978
8979# How to hardcode a shared library path into an executable.
8980hardcode_action=$hardcode_action
8981
8982# Whether we should hardcode library paths into libraries.
8983hardcode_into_libs=$hardcode_into_libs
8984
8985# Flag to hardcode \$libdir into a binary during linking.
8986# This must work even if \$libdir does not exist.
8987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8988
8989# If ld is used when linking, flag to hardcode \$libdir into
8990# a binary during linking. This must work even if \$libdir does
8991# not exist.
8992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8993
8994# Whether we need a single -rpath flag with a separated argument.
8995hardcode_libdir_separator=$lt_hardcode_libdir_separator
8996
8997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8998# resulting binary.
8999hardcode_direct=$hardcode_direct
9000
9001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9002# resulting binary.
9003hardcode_minus_L=$hardcode_minus_L
9004
9005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9006# the resulting binary.
9007hardcode_shlibpath_var=$hardcode_shlibpath_var
9008
9009# Set to yes if building a shared library automatically hardcodes DIR into the library
9010# and all subsequent libraries and executables linked against it.
9011hardcode_automatic=$hardcode_automatic
9012
9013# Variables whose values should be saved in libtool wrapper scripts and
9014# restored at relink time.
9015variables_saved_for_relink="$variables_saved_for_relink"
9016
9017# Whether libtool must link a program against all its dependency libraries.
9018link_all_deplibs=$link_all_deplibs
9019
9020# Compile-time system search path for libraries
9021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9022
9023# Run-time system search path for libraries
9024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9025
9026# Fix the shell variable \$srcfile for the compiler.
9027fix_srcfile_path="$fix_srcfile_path"
9028
9029# Set to yes if exported symbols are required.
9030always_export_symbols=$always_export_symbols
9031
9032# The commands to list exported symbols.
9033export_symbols_cmds=$lt_export_symbols_cmds
9034
9035# The commands to extract the exported symbol list from a shared archive.
9036extract_expsyms_cmds=$lt_extract_expsyms_cmds
9037
9038# Symbols that should not be listed in the preloaded symbols.
9039exclude_expsyms=$lt_exclude_expsyms
9040
9041# Symbols that must always be exported.
9042include_expsyms=$lt_include_expsyms
9043
9044# ### END LIBTOOL CONFIG
9045
9046__EOF__
9047
9048
9049 case $host_os in
9050 aix3*)
9051 cat <<\EOF >> "$cfgfile"
9052
9053# AIX sometimes has problems with the GCC collect2 program. For some
9054# reason, if we set the COLLECT_NAMES environment variable, the problems
9055# vanish in a puff of smoke.
9056if test "X${COLLECT_NAMES+set}" != Xset; then
9057 COLLECT_NAMES=
9058 export COLLECT_NAMES
9059fi 8485fi
9060EOF
9061 ;;
9062 esac
9063
9064 # We use sed instead of cat because bash on DJGPP gets confused if
9065 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9066 # text mode, it properly converts lines to CR/LF. This bash problem
9067 # is reportedly fixed, but why not run on old versions too?
9068 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9069
9070 mv -f "$cfgfile" "$ofile" || \
9071 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9072 chmod +x "$ofile"
9073
9074else
9075 # If there is no Makefile yet, we rely on a make rule to execute
9076 # `config.status --recheck' to rerun these tests and create the
9077 # libtool script then.
9078 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9079 if test -f "$ltmain_in"; then
9080 test -f Makefile && make "$ltmain"
9081 fi
9082fi
9083
9084
9085ac_ext=c 8486ac_ext=c
9086ac_cpp='$CPP $CPPFLAGS' 8487ac_cpp='$CPP $CPPFLAGS'
9087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089ac_compiler_gnu=$ac_cv_c_compiler_gnu 8490ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090 8491
9091CC="$lt_save_CC" 8492CC="$lt_save_CC"
9092 8493
9093 8494
9094# Check whether --with-tags or --without-tags was given.
9095if test "${with_tags+set}" = set; then
9096 withval="$with_tags"
9097 tagnames="$withval"
9098fi;
9099 8495
9100if test -f "$ltmain" && test -n "$tagnames"; then
9101 if test ! -f "${ofile}"; then
9102 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9103echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9104 fi
9105 8496
9106 if test -z "$LTCC"; then
9107 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9108 if test -z "$LTCC"; then
9109 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9110echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9111 else
9112 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9113echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9114 fi
9115 fi
9116 8497
9117 # Extract list of available tagged configurations in $ofile.
9118 # Note that this assumes the entire list is on one line.
9119 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9120 8498
9121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9122 for tagname in $tagnames; do
9123 IFS="$lt_save_ifs"
9124 # Check whether tagname contains only valid characters
9125 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9126 "") ;;
9127 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9128echo "$as_me: error: invalid tag name: $tagname" >&2;}
9129 { (exit 1); exit 1; }; }
9130 ;;
9131 esac
9132 8499
9133 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9134 then
9135 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9136echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9137 { (exit 1); exit 1; }; }
9138 fi
9139 8500
9140 # Update the list of available tags.
9141 if test -n "$tagname"; then
9142 echo appending configuration tag \"$tagname\" to $ofile
9143 8501
9144 case $tagname in
9145 CXX)
9146 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9147 ac_ext=cc
9148ac_cpp='$CXXCPP $CPPFLAGS'
9149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9152 8502
9153 8503
8504 ac_config_commands="$ac_config_commands libtool"
9154 8505
9155 8506
9156archive_cmds_need_lc_CXX=no
9157allow_undefined_flag_CXX=
9158always_export_symbols_CXX=no
9159archive_expsym_cmds_CXX=
9160export_dynamic_flag_spec_CXX=
9161hardcode_direct_CXX=no
9162hardcode_libdir_flag_spec_CXX=
9163hardcode_libdir_flag_spec_ld_CXX=
9164hardcode_libdir_separator_CXX=
9165hardcode_minus_L_CXX=no
9166hardcode_automatic_CXX=no
9167module_cmds_CXX=
9168module_expsym_cmds_CXX=
9169link_all_deplibs_CXX=unknown
9170old_archive_cmds_CXX=$old_archive_cmds
9171no_undefined_flag_CXX=
9172whole_archive_flag_spec_CXX=
9173enable_shared_with_static_runtimes_CXX=no
9174 8507
9175# Dependencies to place before and after the object being linked:
9176predep_objects_CXX=
9177postdep_objects_CXX=
9178predeps_CXX=
9179postdeps_CXX=
9180compiler_lib_search_path_CXX=
9181 8508
9182# Source file extension for C++ test sources. 8509# Only expand once:
9183ac_ext=cc
9184
9185# Object file extension for compiled C++ test sources.
9186objext=o
9187objext_CXX=$objext
9188
9189# Code to be used in simple compile tests
9190lt_simple_compile_test_code="int some_variable = 0;\n"
9191
9192# Code to be used in simple link tests
9193lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9194
9195# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9196
9197# If no C compiler was specified, use CC.
9198LTCC=${LTCC-"$CC"}
9199
9200# Allow CC to be a program name with arguments.
9201compiler=$CC
9202
9203
9204# Allow CC to be a program name with arguments.
9205lt_save_CC=$CC
9206lt_save_LD=$LD
9207lt_save_GCC=$GCC
9208GCC=$GXX
9209lt_save_with_gnu_ld=$with_gnu_ld
9210lt_save_path_LD=$lt_cv_path_LD
9211if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9212 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9213else
9214 unset lt_cv_prog_gnu_ld
9215fi
9216if test -n "${lt_cv_path_LDCXX+set}"; then
9217 lt_cv_path_LD=$lt_cv_path_LDCXX
9218else
9219 unset lt_cv_path_LD
9220fi
9221test -z "${LDCXX+set}" || LD=$LDCXX
9222CC=${CXX-"c++"}
9223compiler=$CC
9224compiler_CXX=$CC
9225cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9226
9227# We don't want -fno-exception wen compiling C++ code, so set the
9228# no_builtin_flag separately
9229if test "$GXX" = yes; then
9230 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9231else
9232 lt_prog_compiler_no_builtin_flag_CXX=
9233fi
9234
9235if test "$GXX" = yes; then
9236 # Set up default GNU C++ configuration
9237
9238
9239# Check whether --with-gnu-ld or --without-gnu-ld was given.
9240if test "${with_gnu_ld+set}" = set; then
9241 withval="$with_gnu_ld"
9242 test "$withval" = no || with_gnu_ld=yes
9243else
9244 with_gnu_ld=no
9245fi;
9246ac_prog=ld
9247if test "$GCC" = yes; then
9248 # Check if gcc -print-prog-name=ld gives a path.
9249 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9250echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9251 case $host in
9252 *-*-mingw*)
9253 # gcc leaves a trailing carriage return which upsets mingw
9254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9255 *)
9256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9257 esac
9258 case $ac_prog in
9259 # Accept absolute paths.
9260 [\\/]* | ?:[\\/]*)
9261 re_direlt='/[^/][^/]*/\.\./'
9262 # Canonicalize the pathname of ld
9263 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9264 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9265 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9266 done
9267 test -z "$LD" && LD="$ac_prog"
9268 ;;
9269 "")
9270 # If it fails, then pretend we aren't using GCC.
9271 ac_prog=ld
9272 ;;
9273 *)
9274 # If it is relative, then search for the first ld in PATH.
9275 with_gnu_ld=unknown
9276 ;;
9277 esac
9278elif test "$with_gnu_ld" = yes; then
9279 echo "$as_me:$LINENO: checking for GNU ld" >&5
9280echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9281else
9282 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9283echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9284fi
9285if test "${lt_cv_path_LD+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287else
9288 if test -z "$LD"; then
9289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9290 for ac_dir in $PATH; do
9291 IFS="$lt_save_ifs"
9292 test -z "$ac_dir" && ac_dir=.
9293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9294 lt_cv_path_LD="$ac_dir/$ac_prog"
9295 # Check to see if the program is GNU ld. I'd rather use --version,
9296 # but apparently some GNU ld's only accept -v.
9297 # Break only if it was the GNU/non-GNU ld that we prefer.
9298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9299 *GNU* | *'with BFD'*)
9300 test "$with_gnu_ld" != no && break
9301 ;;
9302 *)
9303 test "$with_gnu_ld" != yes && break
9304 ;;
9305 esac
9306 fi
9307 done
9308 IFS="$lt_save_ifs"
9309else
9310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9311fi
9312fi
9313
9314LD="$lt_cv_path_LD"
9315if test -n "$LD"; then
9316 echo "$as_me:$LINENO: result: $LD" >&5
9317echo "${ECHO_T}$LD" >&6
9318else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321fi
9322test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9323echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9324 { (exit 1); exit 1; }; }
9325echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9326echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9327if test "${lt_cv_prog_gnu_ld+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9331case `$LD -v 2>&1 </dev/null` in
9332*GNU* | *'with BFD'*)
9333 lt_cv_prog_gnu_ld=yes
9334 ;;
9335*)
9336 lt_cv_prog_gnu_ld=no
9337 ;;
9338esac
9339fi
9340echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9341echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9342with_gnu_ld=$lt_cv_prog_gnu_ld
9343
9344
9345
9346 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9347 # archiving commands below assume that GNU ld is being used.
9348 if test "$with_gnu_ld" = yes; then
9349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 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'
9351
9352 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9353 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9354
9355 # If archive_cmds runs LD, not CC, wlarc should be empty
9356 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9357 # investigate it a little bit more. (MM)
9358 wlarc='${wl}'
9359
9360 # ancient GNU ld didn't support --whole-archive et. al.
9361 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9362 grep 'no-whole-archive' > /dev/null; then
9363 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9364 else
9365 whole_archive_flag_spec_CXX=
9366 fi
9367 else
9368 with_gnu_ld=no
9369 wlarc=
9370
9371 # A generic and very simple default shared library creation
9372 # command for GNU C++ for the case where it uses the native
9373 # linker, instead of GNU ld. If possible, this setting should
9374 # overridden to take advantage of the native linker features on
9375 # the platform it is being used on.
9376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9377 fi
9378
9379 # Commands to make compiler produce verbose output that lists
9380 # what "hidden" libraries, object files and flags are used when
9381 # linking a shared library.
9382 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9383
9384else
9385 GXX=no
9386 with_gnu_ld=no
9387 wlarc=
9388fi
9389
9390# PORTME: fill in a description of your system's C++ link characteristics
9391echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9392echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9393ld_shlibs_CXX=yes
9394case $host_os in
9395 aix3*)
9396 # FIXME: insert proper C++ library support
9397 ld_shlibs_CXX=no
9398 ;;
9399 aix4* | aix5*)
9400 if test "$host_cpu" = ia64; then
9401 # On IA64, the linker does run time linking by default, so we don't
9402 # have to do anything special.
9403 aix_use_runtimelinking=no
9404 exp_sym_flag='-Bexport'
9405 no_entry_flag=""
9406 else
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # need to do runtime linking.
9412 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9413 for ld_flag in $LDFLAGS; do
9414 case $ld_flag in
9415 *-brtl*)
9416 aix_use_runtimelinking=yes
9417 break
9418 ;;
9419 esac
9420 done
9421 esac
9422
9423 exp_sym_flag='-bexport'
9424 no_entry_flag='-bnoentry'
9425 fi
9426
9427 # When large executables or shared objects are built, AIX ld can
9428 # have problems creating the table of contents. If linking a library
9429 # or program results in "error TOC overflow" add -mminimal-toc to
9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9432
9433 archive_cmds_CXX=''
9434 hardcode_direct_CXX=yes
9435 hardcode_libdir_separator_CXX=':'
9436 link_all_deplibs_CXX=yes
9437
9438 if test "$GXX" = yes; then
9439 case $host_os in aix4.012|aix4.012.*)
9440 # We only want to do this on AIX 4.2 and lower, the check
9441 # below for broken collect2 doesn't work under 4.3+
9442 collect2name=`${CC} -print-prog-name=collect2`
9443 if test -f "$collect2name" && \
9444 strings "$collect2name" | grep resolve_lib_name >/dev/null
9445 then
9446 # We have reworked collect2
9447 hardcode_direct_CXX=yes
9448 else
9449 # We have old collect2
9450 hardcode_direct_CXX=unsupported
9451 # It fails to find uninstalled libraries when the uninstalled
9452 # path is not listed in the libpath. Setting hardcode_minus_L
9453 # to unsupported forces relinking
9454 hardcode_minus_L_CXX=yes
9455 hardcode_libdir_flag_spec_CXX='-L$libdir'
9456 hardcode_libdir_separator_CXX=
9457 fi
9458 esac
9459 shared_flag='-shared'
9460 else
9461 # not using gcc
9462 if test "$host_cpu" = ia64; then
9463 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9464 # chokes on -Wl,-G. The following line is correct:
9465 shared_flag='-G'
9466 else
9467 if test "$aix_use_runtimelinking" = yes; then
9468 shared_flag='${wl}-G'
9469 else
9470 shared_flag='${wl}-bM:SRE'
9471 fi
9472 fi
9473 fi
9474
9475 # It seems that -bexpall does not export symbols beginning with
9476 # underscore (_), so it is better to generate a list of symbols to export.
9477 always_export_symbols_CXX=yes
9478 if test "$aix_use_runtimelinking" = yes; then
9479 # Warning - without using the other runtime loading flags (-brtl),
9480 # -berok will link without error, but may produce a broken library.
9481 allow_undefined_flag_CXX='-berok'
9482 # Determine the default libpath from the value encoded in an empty executable.
9483 cat >conftest.$ac_ext <<_ACEOF
9484/* confdefs.h. */
9485_ACEOF
9486cat confdefs.h >>conftest.$ac_ext
9487cat >>conftest.$ac_ext <<_ACEOF
9488/* end confdefs.h. */
9489
9490int
9491main ()
9492{
9493
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519
9520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9521}'`
9522# Check for a 64-bit object if we didn't find anything.
9523if 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; }
9524}'`; fi
9525else
9526 echo "$as_me: failed program was:" >&5
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529fi
9530rm -f conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9533
9534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9535
9536 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"
9537 else
9538 if test "$host_cpu" = ia64; then
9539 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9540 allow_undefined_flag_CXX="-z nodefs"
9541 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"
9542 else
9543 # Determine the default libpath from the value encoded in an empty executable.
9544 cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h. */
9550
9551int
9552main ()
9553{
9554
9555 ;
9556 return 0;
9557}
9558_ACEOF
9559rm -f conftest.$ac_objext conftest$ac_exeext
9560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561 (eval $ac_link) 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580
9581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9582}'`
9583# Check for a 64-bit object if we didn't find anything.
9584if 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; }
9585}'`; fi
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590fi
9591rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9594
9595 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9596 # Warning - without using the other run time loading flags,
9597 # -berok will link without error, but may produce a broken library.
9598 no_undefined_flag_CXX=' ${wl}-bernotok'
9599 allow_undefined_flag_CXX=' ${wl}-berok'
9600 # -bexpall does not export symbols beginning with underscore (_)
9601 always_export_symbols_CXX=yes
9602 # Exported symbols can be pulled into shared objects from archives
9603 whole_archive_flag_spec_CXX=' '
9604 archive_cmds_need_lc_CXX=yes
9605 # This is similar to how AIX traditionally builds it's shared libraries.
9606 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'
9607 fi
9608 fi
9609 ;;
9610 chorus*)
9611 case $cc_basename in
9612 *)
9613 # FIXME: insert proper C++ library support
9614 ld_shlibs_CXX=no
9615 ;;
9616 esac
9617 ;;
9618
9619 cygwin* | mingw* | pw32*)
9620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9621 # as there is no search path for DLLs.
9622 hardcode_libdir_flag_spec_CXX='-L$libdir'
9623 allow_undefined_flag_CXX=unsupported
9624 always_export_symbols_CXX=no
9625 enable_shared_with_static_runtimes_CXX=yes
9626
9627 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9628 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'
9629 # If the export-symbols file already is a .def file (1st line
9630 # is EXPORTS), use it as is; otherwise, prepend...
9631 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9632 cp $export_symbols $output_objdir/$soname.def;
9633 else
9634 echo EXPORTS > $output_objdir/$soname.def;
9635 cat $export_symbols >> $output_objdir/$soname.def;
9636 fi~
9637 $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'
9638 else
9639 ld_shlibs_CXX=no
9640 fi
9641 ;;
9642
9643 darwin* | rhapsody*)
9644 if test "$GXX" = yes; then
9645 archive_cmds_need_lc_CXX=no
9646 case "$host_os" in
9647 rhapsody* | darwin1.[012])
9648 allow_undefined_flag_CXX='-undefined suppress'
9649 ;;
9650 *) # Darwin 1.3 on
9651 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9652 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9653 else
9654 case ${MACOSX_DEPLOYMENT_TARGET} in
9655 10.[012])
9656 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9657 ;;
9658 10.*)
9659 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9660 ;;
9661 esac
9662 fi
9663 ;;
9664 esac
9665 lt_int_apple_cc_single_mod=no
9666 output_verbose_link_cmd='echo'
9667 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9668 lt_int_apple_cc_single_mod=yes
9669 fi
9670 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9671 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9672 else
9673 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'
9674 fi
9675 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9676
9677 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9678 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9679 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}'
9680 else
9681 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}'
9682 fi
9683 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}'
9684 hardcode_direct_CXX=no
9685 hardcode_automatic_CXX=yes
9686 hardcode_shlibpath_var_CXX=unsupported
9687 whole_archive_flag_spec_CXX='-all_load $convenience'
9688 link_all_deplibs_CXX=yes
9689 else
9690 ld_shlibs_CXX=no
9691 fi
9692 ;;
9693
9694 dgux*)
9695 case $cc_basename in
9696 ec++)
9697 # FIXME: insert proper C++ library support
9698 ld_shlibs_CXX=no
9699 ;;
9700 ghcx)
9701 # Green Hills C++ Compiler
9702 # FIXME: insert proper C++ library support
9703 ld_shlibs_CXX=no
9704 ;;
9705 *)
9706 # FIXME: insert proper C++ library support
9707 ld_shlibs_CXX=no
9708 ;;
9709 esac
9710 ;;
9711 freebsd12*)
9712 # C++ shared libraries reported to be fairly broken before switch to ELF
9713 ld_shlibs_CXX=no
9714 ;;
9715 freebsd-elf*)
9716 archive_cmds_need_lc_CXX=no
9717 ;;
9718 freebsd* | kfreebsd*-gnu)
9719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9720 # conventions
9721 ld_shlibs_CXX=yes
9722 ;;
9723 gnu*)
9724 ;;
9725 hpux9*)
9726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9727 hardcode_libdir_separator_CXX=:
9728 export_dynamic_flag_spec_CXX='${wl}-E'
9729 hardcode_direct_CXX=yes
9730 hardcode_minus_L_CXX=yes # Not in the search PATH,
9731 # but as the default
9732 # location of the library.
9733
9734 case $cc_basename in
9735 CC)
9736 # FIXME: insert proper C++ library support
9737 ld_shlibs_CXX=no
9738 ;;
9739 aCC)
9740 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'
9741 # Commands to make compiler produce verbose output that lists
9742 # what "hidden" libraries, object files and flags are used when
9743 # linking a shared library.
9744 #
9745 # There doesn't appear to be a way to prevent this compiler from
9746 # explicitly linking system object files so we need to strip them
9747 # from the output so that they don't get included in the library
9748 # dependencies.
9749 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'
9750 ;;
9751 *)
9752 if test "$GXX" = yes; then
9753 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'
9754 else
9755 # FIXME: insert proper C++ library support
9756 ld_shlibs_CXX=no
9757 fi
9758 ;;
9759 esac
9760 ;;
9761 hpux10*|hpux11*)
9762 if test $with_gnu_ld = no; then
9763 case "$host_cpu" in
9764 hppa*64*)
9765 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9766 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9767 hardcode_libdir_separator_CXX=:
9768 ;;
9769 ia64*)
9770 hardcode_libdir_flag_spec_CXX='-L$libdir'
9771 ;;
9772 *)
9773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_separator_CXX=:
9775 export_dynamic_flag_spec_CXX='${wl}-E'
9776 ;;
9777 esac
9778 fi
9779 case "$host_cpu" in
9780 hppa*64*)
9781 hardcode_direct_CXX=no
9782 hardcode_shlibpath_var_CXX=no
9783 ;;
9784 ia64*)
9785 hardcode_direct_CXX=no
9786 hardcode_shlibpath_var_CXX=no
9787 hardcode_minus_L_CXX=yes # Not in the search PATH,
9788 # but as the default
9789 # location of the library.
9790 ;;
9791 *)
9792 hardcode_direct_CXX=yes
9793 hardcode_minus_L_CXX=yes # Not in the search PATH,
9794 # but as the default
9795 # location of the library.
9796 ;;
9797 esac
9798
9799 case $cc_basename in
9800 CC)
9801 # FIXME: insert proper C++ library support
9802 ld_shlibs_CXX=no
9803 ;;
9804 aCC)
9805 case "$host_cpu" in
9806 hppa*64*|ia64*)
9807 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9808 ;;
9809 *)
9810 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9811 ;;
9812 esac
9813 # Commands to make compiler produce verbose output that lists
9814 # what "hidden" libraries, object files and flags are used when
9815 # linking a shared library.
9816 #
9817 # There doesn't appear to be a way to prevent this compiler from
9818 # explicitly linking system object files so we need to strip them
9819 # from the output so that they don't get included in the library
9820 # dependencies.
9821 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'
9822 ;;
9823 *)
9824 if test "$GXX" = yes; then
9825 if test $with_gnu_ld = no; then
9826 case "$host_cpu" in
9827 ia64*|hppa*64*)
9828 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9829 ;;
9830 *)
9831 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'
9832 ;;
9833 esac
9834 fi
9835 else
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 fi
9839 ;;
9840 esac
9841 ;;
9842 irix5* | irix6*)
9843 case $cc_basename in
9844 CC)
9845 # SGI C++
9846 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'
9847
9848 # Archives containing C++ object files must be created using
9849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9850 # necessary to make sure instantiated templates are included
9851 # in the archive.
9852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9853 ;;
9854 *)
9855 if test "$GXX" = yes; then
9856 if test "$with_gnu_ld" = no; then
9857 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'
9858 else
9859 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'
9860 fi
9861 fi
9862 link_all_deplibs_CXX=yes
9863 ;;
9864 esac
9865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator_CXX=:
9867 ;;
9868 linux*)
9869 case $cc_basename in
9870 KCC)
9871 # Kuck and Associates, Inc. (KAI) C++ Compiler
9872
9873 # KCC will only create a shared library if the output file
9874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9875 # to its proper name (with version) after linking.
9876 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'
9877 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'
9878 # Commands to make compiler produce verbose output that lists
9879 # what "hidden" libraries, object files and flags are used when
9880 # linking a shared library.
9881 #
9882 # There doesn't appear to be a way to prevent this compiler from
9883 # explicitly linking system object files so we need to strip them
9884 # from the output so that they don't get included in the library
9885 # dependencies.
9886 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'
9887
9888 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9890
9891 # Archives containing C++ object files must be created using
9892 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9893 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9894 ;;
9895 icpc)
9896 # Intel C++
9897 with_gnu_ld=yes
9898 archive_cmds_need_lc_CXX=no
9899 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9900 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'
9901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9902 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9903 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 ;;
9905 cxx)
9906 # Compaq C++
9907 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 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'
9909
9910 runpath_var=LD_RUN_PATH
9911 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9912 hardcode_libdir_separator_CXX=:
9913
9914 # Commands to make compiler produce verbose output that lists
9915 # what "hidden" libraries, object files and flags are used when
9916 # linking a shared library.
9917 #
9918 # There doesn't appear to be a way to prevent this compiler from
9919 # explicitly linking system object files so we need to strip them
9920 # from the output so that they don't get included in the library
9921 # dependencies.
9922 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'
9923 ;;
9924 esac
9925 ;;
9926 lynxos*)
9927 # FIXME: insert proper C++ library support
9928 ld_shlibs_CXX=no
9929 ;;
9930 m88k*)
9931 # FIXME: insert proper C++ library support
9932 ld_shlibs_CXX=no
9933 ;;
9934 mvs*)
9935 case $cc_basename in
9936 cxx)
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 *)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 esac
9945 ;;
9946 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9948 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9949 wlarc=
9950 hardcode_libdir_flag_spec_CXX='-R$libdir'
9951 hardcode_direct_CXX=yes
9952 hardcode_shlibpath_var_CXX=no
9953 fi
9954 # Workaround some broken pre-1.5 toolchains
9955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9956 ;;
9957 osf3*)
9958 case $cc_basename in
9959 KCC)
9960 # Kuck and Associates, Inc. (KAI) C++ Compiler
9961
9962 # KCC will only create a shared library if the output file
9963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9964 # to its proper name (with version) after linking.
9965 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'
9966
9967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9968 hardcode_libdir_separator_CXX=:
9969
9970 # Archives containing C++ object files must be created using
9971 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9972 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9973
9974 ;;
9975 RCC)
9976 # Rational C++ 2.4.1
9977 # FIXME: insert proper C++ library support
9978 ld_shlibs_CXX=no
9979 ;;
9980 cxx)
9981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9982 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'
9983
9984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator_CXX=:
9986
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9990 #
9991 # There doesn't appear to be a way to prevent this compiler from
9992 # explicitly linking system object files so we need to strip them
9993 # from the output so that they don't get included in the library
9994 # dependencies.
9995 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'
9996 ;;
9997 *)
9998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10000 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'
10001
10002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10003 hardcode_libdir_separator_CXX=:
10004
10005 # Commands to make compiler produce verbose output that lists
10006 # what "hidden" libraries, object files and flags are used when
10007 # linking a shared library.
10008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10009
10010 else
10011 # FIXME: insert proper C++ library support
10012 ld_shlibs_CXX=no
10013 fi
10014 ;;
10015 esac
10016 ;;
10017 osf4* | osf5*)
10018 case $cc_basename in
10019 KCC)
10020 # Kuck and Associates, Inc. (KAI) C++ Compiler
10021
10022 # KCC will only create a shared library if the output file
10023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10024 # to its proper name (with version) after linking.
10025 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'
10026
10027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10028 hardcode_libdir_separator_CXX=:
10029
10030 # Archives containing C++ object files must be created using
10031 # the KAI C++ compiler.
10032 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10033 ;;
10034 RCC)
10035 # Rational C++ 2.4.1
10036 # FIXME: insert proper C++ library support
10037 ld_shlibs_CXX=no
10038 ;;
10039 cxx)
10040 allow_undefined_flag_CXX=' -expect_unresolved \*'
10041 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'
10042 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10043 echo "-hidden">> $lib.exp~
10044 $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~
10045 $rm $lib.exp'
10046
10047 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10048 hardcode_libdir_separator_CXX=:
10049
10050 # Commands to make compiler produce verbose output that lists
10051 # what "hidden" libraries, object files and flags are used when
10052 # linking a shared library.
10053 #
10054 # There doesn't appear to be a way to prevent this compiler from
10055 # explicitly linking system object files so we need to strip them
10056 # from the output so that they don't get included in the library
10057 # dependencies.
10058 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'
10059 ;;
10060 *)
10061 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10062 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10063 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'
10064
10065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator_CXX=:
10067
10068 # Commands to make compiler produce verbose output that lists
10069 # what "hidden" libraries, object files and flags are used when
10070 # linking a shared library.
10071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10072
10073 else
10074 # FIXME: insert proper C++ library support
10075 ld_shlibs_CXX=no
10076 fi
10077 ;;
10078 esac
10079 ;;
10080 psos*)
10081 # FIXME: insert proper C++ library support
10082 ld_shlibs_CXX=no
10083 ;;
10084 sco*)
10085 archive_cmds_need_lc_CXX=no
10086 case $cc_basename in
10087 CC)
10088 # FIXME: insert proper C++ library support
10089 ld_shlibs_CXX=no
10090 ;;
10091 *)
10092 # FIXME: insert proper C++ library support
10093 ld_shlibs_CXX=no
10094 ;;
10095 esac
10096 ;;
10097 sunos4*)
10098 case $cc_basename in
10099 CC)
10100 # Sun C++ 4.x
10101 # FIXME: insert proper C++ library support
10102 ld_shlibs_CXX=no
10103 ;;
10104 lcc)
10105 # Lucid
10106 # FIXME: insert proper C++ library support
10107 ld_shlibs_CXX=no
10108 ;;
10109 *)
10110 # FIXME: insert proper C++ library support
10111 ld_shlibs_CXX=no
10112 ;;
10113 esac
10114 ;;
10115 solaris*)
10116 case $cc_basename in
10117 CC)
10118 # Sun C++ 4.2, 5.x and Centerline C++
10119 no_undefined_flag_CXX=' -zdefs'
10120 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10121 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10122 $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'
10123
10124 hardcode_libdir_flag_spec_CXX='-R$libdir'
10125 hardcode_shlibpath_var_CXX=no
10126 case $host_os in
10127 solaris2.0-5 | solaris2.0-5.*) ;;
10128 *)
10129 # The C++ compiler is used as linker so we must use $wl
10130 # flag to pass the commands to the underlying system
10131 # linker.
10132 # Supported since Solaris 2.6 (maybe 2.5.1?)
10133 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10134 ;;
10135 esac
10136 link_all_deplibs_CXX=yes
10137
10138 # Commands to make compiler produce verbose output that lists
10139 # what "hidden" libraries, object files and flags are used when
10140 # linking a shared library.
10141 #
10142 # There doesn't appear to be a way to prevent this compiler from
10143 # explicitly linking system object files so we need to strip them
10144 # from the output so that they don't get included in the library
10145 # dependencies.
10146 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'
10147
10148 # Archives containing C++ object files must be created using
10149 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10150 # necessary to make sure instantiated templates are included
10151 # in the archive.
10152 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10153 ;;
10154 gcx)
10155 # Green Hills C++ Compiler
10156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10157
10158 # The C++ compiler must be used to create the archive.
10159 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10160 ;;
10161 *)
10162 # GNU C++ compiler with Solaris linker
10163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10164 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10165 if $CC --version | grep -v '^2\.7' > /dev/null; then
10166 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10167 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10168 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10169
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10173 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10174 else
10175 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10176 # platform.
10177 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10178 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10179 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10180
10181 # Commands to make compiler produce verbose output that lists
10182 # what "hidden" libraries, object files and flags are used when
10183 # linking a shared library.
10184 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10185 fi
10186
10187 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10188 fi
10189 ;;
10190 esac
10191 ;;
10192 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10193 archive_cmds_need_lc_CXX=no
10194 ;;
10195 tandem*)
10196 case $cc_basename in
10197 NCC)
10198 # NonStop-UX NCC 3.20
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 ;;
10202 *)
10203 # FIXME: insert proper C++ library support
10204 ld_shlibs_CXX=no
10205 ;;
10206 esac
10207 ;;
10208 vxworks*)
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 ;;
10212 *)
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 ;;
10216esac
10217echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10218echo "${ECHO_T}$ld_shlibs_CXX" >&6
10219test "$ld_shlibs_CXX" = no && can_build_shared=no
10220
10221GCC_CXX="$GXX"
10222LD_CXX="$LD"
10223
10224
10225cat > conftest.$ac_ext <<EOF
10226class Foo
10227{
10228public:
10229 Foo (void) { a = 0; }
10230private:
10231 int a;
10232};
10233EOF
10234
10235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10236 (eval $ac_compile) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; then
10240 # Parse the compiler output and extract the necessary
10241 # objects, libraries and library flags.
10242
10243 # Sentinel used to keep track of whether or not we are before
10244 # the conftest object file.
10245 pre_test_object_deps_done=no
10246
10247 # The `*' in the case matches for architectures that use `case' in
10248 # $output_verbose_cmd can trigger glob expansion during the loop
10249 # eval without this substitution.
10250 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10251
10252 for p in `eval $output_verbose_link_cmd`; do
10253 case $p in
10254
10255 -L* | -R* | -l*)
10256 # Some compilers place space between "-{L,R}" and the path.
10257 # Remove the space.
10258 if test $p = "-L" \
10259 || test $p = "-R"; then
10260 prev=$p
10261 continue
10262 else
10263 prev=
10264 fi
10265
10266 if test "$pre_test_object_deps_done" = no; then
10267 case $p in
10268 -L* | -R*)
10269 # Internal compiler library paths should come after those
10270 # provided the user. The postdeps already come after the
10271 # user supplied libs so there is no need to process them.
10272 if test -z "$compiler_lib_search_path_CXX"; then
10273 compiler_lib_search_path_CXX="${prev}${p}"
10274 else
10275 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10276 fi
10277 ;;
10278 # The "-l" case would never come before the object being
10279 # linked, so don't bother handling this case.
10280 esac
10281 else
10282 if test -z "$postdeps_CXX"; then
10283 postdeps_CXX="${prev}${p}"
10284 else
10285 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10286 fi
10287 fi
10288 ;;
10289
10290 *.$objext)
10291 # This assumes that the test object file only shows up
10292 # once in the compiler output.
10293 if test "$p" = "conftest.$objext"; then
10294 pre_test_object_deps_done=yes
10295 continue
10296 fi
10297
10298 if test "$pre_test_object_deps_done" = no; then
10299 if test -z "$predep_objects_CXX"; then
10300 predep_objects_CXX="$p"
10301 else
10302 predep_objects_CXX="$predep_objects_CXX $p"
10303 fi
10304 else
10305 if test -z "$postdep_objects_CXX"; then
10306 postdep_objects_CXX="$p"
10307 else
10308 postdep_objects_CXX="$postdep_objects_CXX $p"
10309 fi
10310 fi
10311 ;;
10312
10313 *) ;; # Ignore the rest.
10314
10315 esac
10316 done
10317
10318 # Clean up.
10319 rm -f a.out a.exe
10320else
10321 echo "libtool.m4: error: problem compiling CXX test program"
10322fi
10323
10324$rm -f confest.$objext
10325
10326case " $postdeps_CXX " in
10327*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10328esac
10329
10330lt_prog_compiler_wl_CXX=
10331lt_prog_compiler_pic_CXX=
10332lt_prog_compiler_static_CXX=
10333
10334echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10335echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10336
10337 # C++ specific cases for pic, static, wl, etc.
10338 if test "$GXX" = yes; then
10339 lt_prog_compiler_wl_CXX='-Wl,'
10340 lt_prog_compiler_static_CXX='-static'
10341
10342 case $host_os in
10343 aix*)
10344 # All AIX code is PIC.
10345 if test "$host_cpu" = ia64; then
10346 # AIX 5 now supports IA64 processor
10347 lt_prog_compiler_static_CXX='-Bstatic'
10348 fi
10349 ;;
10350 amigaos*)
10351 # FIXME: we need at least 68020 code to build shared libraries, but
10352 # adding the `-m68020' flag to GCC prevents building anything better,
10353 # like `-m68040'.
10354 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10355 ;;
10356 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10357 # PIC is the default for these OSes.
10358 ;;
10359 mingw* | os2* | pw32*)
10360 # This hack is so that the source file can tell whether it is being
10361 # built for inclusion in a dll (and should export symbols for example).
10362 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10363 ;;
10364 darwin* | rhapsody*)
10365 # PIC is the default on this platform
10366 # Common symbols not allowed in MH_DYLIB files
10367 lt_prog_compiler_pic_CXX='-fno-common'
10368 ;;
10369 *djgpp*)
10370 # DJGPP does not support shared libraries at all
10371 lt_prog_compiler_pic_CXX=
10372 ;;
10373 sysv4*MP*)
10374 if test -d /usr/nec; then
10375 lt_prog_compiler_pic_CXX=-Kconform_pic
10376 fi
10377 ;;
10378 hpux*)
10379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10380 # not for PA HP-UX.
10381 case "$host_cpu" in
10382 hppa*64*|ia64*)
10383 ;;
10384 *)
10385 lt_prog_compiler_pic_CXX='-fPIC'
10386 ;;
10387 esac
10388 ;;
10389 *)
10390 lt_prog_compiler_pic_CXX='-fPIC'
10391 ;;
10392 esac
10393 else
10394 case $host_os in
10395 aix4* | aix5*)
10396 # All AIX code is PIC.
10397 if test "$host_cpu" = ia64; then
10398 # AIX 5 now supports IA64 processor
10399 lt_prog_compiler_static_CXX='-Bstatic'
10400 else
10401 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10402 fi
10403 ;;
10404 chorus*)
10405 case $cc_basename in
10406 cxch68)
10407 # Green Hills C++ Compiler
10408 # _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"
10409 ;;
10410 esac
10411 ;;
10412 dgux*)
10413 case $cc_basename in
10414 ec++)
10415 lt_prog_compiler_pic_CXX='-KPIC'
10416 ;;
10417 ghcx)
10418 # Green Hills C++ Compiler
10419 lt_prog_compiler_pic_CXX='-pic'
10420 ;;
10421 *)
10422 ;;
10423 esac
10424 ;;
10425 freebsd* | kfreebsd*-gnu)
10426 # FreeBSD uses GNU C++
10427 ;;
10428 hpux9* | hpux10* | hpux11*)
10429 case $cc_basename in
10430 CC)
10431 lt_prog_compiler_wl_CXX='-Wl,'
10432 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10433 if test "$host_cpu" != ia64; then
10434 lt_prog_compiler_pic_CXX='+Z'
10435 fi
10436 ;;
10437 aCC)
10438 lt_prog_compiler_wl_CXX='-Wl,'
10439 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10440 case "$host_cpu" in
10441 hppa*64*|ia64*)
10442 # +Z the default
10443 ;;
10444 *)
10445 lt_prog_compiler_pic_CXX='+Z'
10446 ;;
10447 esac
10448 ;;
10449 *)
10450 ;;
10451 esac
10452 ;;
10453 irix5* | irix6* | nonstopux*)
10454 case $cc_basename in
10455 CC)
10456 lt_prog_compiler_wl_CXX='-Wl,'
10457 lt_prog_compiler_static_CXX='-non_shared'
10458 # CC pic flag -KPIC is the default.
10459 ;;
10460 *)
10461 ;;
10462 esac
10463 ;;
10464 linux*)
10465 case $cc_basename in
10466 KCC)
10467 # KAI C++ Compiler
10468 lt_prog_compiler_wl_CXX='--backend -Wl,'
10469 lt_prog_compiler_pic_CXX='-fPIC'
10470 ;;
10471 icpc)
10472 # Intel C++
10473 lt_prog_compiler_wl_CXX='-Wl,'
10474 lt_prog_compiler_pic_CXX='-KPIC'
10475 lt_prog_compiler_static_CXX='-static'
10476 ;;
10477 cxx)
10478 # Compaq C++
10479 # Make sure the PIC flag is empty. It appears that all Alpha
10480 # Linux and Compaq Tru64 Unix objects are PIC.
10481 lt_prog_compiler_pic_CXX=
10482 lt_prog_compiler_static_CXX='-non_shared'
10483 ;;
10484 *)
10485 ;;
10486 esac
10487 ;;
10488 lynxos*)
10489 ;;
10490 m88k*)
10491 ;;
10492 mvs*)
10493 case $cc_basename in
10494 cxx)
10495 lt_prog_compiler_pic_CXX='-W c,exportall'
10496 ;;
10497 *)
10498 ;;
10499 esac
10500 ;;
10501 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10502 ;;
10503 osf3* | osf4* | osf5*)
10504 case $cc_basename in
10505 KCC)
10506 lt_prog_compiler_wl_CXX='--backend -Wl,'
10507 ;;
10508 RCC)
10509 # Rational C++ 2.4.1
10510 lt_prog_compiler_pic_CXX='-pic'
10511 ;;
10512 cxx)
10513 # Digital/Compaq C++
10514 lt_prog_compiler_wl_CXX='-Wl,'
10515 # Make sure the PIC flag is empty. It appears that all Alpha
10516 # Linux and Compaq Tru64 Unix objects are PIC.
10517 lt_prog_compiler_pic_CXX=
10518 lt_prog_compiler_static_CXX='-non_shared'
10519 ;;
10520 *)
10521 ;;
10522 esac
10523 ;;
10524 psos*)
10525 ;;
10526 sco*)
10527 case $cc_basename in
10528 CC)
10529 lt_prog_compiler_pic_CXX='-fPIC'
10530 ;;
10531 *)
10532 ;;
10533 esac
10534 ;;
10535 solaris*)
10536 case $cc_basename in
10537 CC)
10538 # Sun C++ 4.2, 5.x and Centerline C++
10539 lt_prog_compiler_pic_CXX='-KPIC'
10540 lt_prog_compiler_static_CXX='-Bstatic'
10541 lt_prog_compiler_wl_CXX='-Qoption ld '
10542 ;;
10543 gcx)
10544 # Green Hills C++ Compiler
10545 lt_prog_compiler_pic_CXX='-PIC'
10546 ;;
10547 *)
10548 ;;
10549 esac
10550 ;;
10551 sunos4*)
10552 case $cc_basename in
10553 CC)
10554 # Sun C++ 4.x
10555 lt_prog_compiler_pic_CXX='-pic'
10556 lt_prog_compiler_static_CXX='-Bstatic'
10557 ;;
10558 lcc)
10559 # Lucid
10560 lt_prog_compiler_pic_CXX='-pic'
10561 ;;
10562 *)
10563 ;;
10564 esac
10565 ;;
10566 tandem*)
10567 case $cc_basename in
10568 NCC)
10569 # NonStop-UX NCC 3.20
10570 lt_prog_compiler_pic_CXX='-KPIC'
10571 ;;
10572 *)
10573 ;;
10574 esac
10575 ;;
10576 unixware*)
10577 ;;
10578 vxworks*)
10579 ;;
10580 *)
10581 lt_prog_compiler_can_build_shared_CXX=no
10582 ;;
10583 esac
10584 fi
10585
10586echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10587echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10588
10589#
10590# Check to make sure the PIC flag actually works.
10591#
10592if test -n "$lt_prog_compiler_pic_CXX"; then
10593
10594echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10595echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10596if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598else
10599 lt_prog_compiler_pic_works_CXX=no
10600 ac_outfile=conftest.$ac_objext
10601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10602 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10603 # Insert the option either (1) after the last *FLAGS variable, or
10604 # (2) before a word containing "conftest.", or (3) at the end.
10605 # Note that $ac_compile itself does not contain backslashes and begins
10606 # with a dollar sign (not a hyphen), so the echo should work correctly.
10607 # The option is referenced via a variable to avoid confusing sed.
10608 lt_compile=`echo "$ac_compile" | $SED \
10609 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10611 -e 's:$: $lt_compiler_flag:'`
10612 (eval echo "\"\$as_me:10612: $lt_compile\"" >&5)
10613 (eval "$lt_compile" 2>conftest.err)
10614 ac_status=$?
10615 cat conftest.err >&5
10616 echo "$as_me:10616: \$? = $ac_status" >&5
10617 if (exit $ac_status) && test -s "$ac_outfile"; then
10618 # The compiler can only warn and ignore the option if not recognized
10619 # So say no if there are warnings
10620 if test ! -s conftest.err; then
10621 lt_prog_compiler_pic_works_CXX=yes
10622 fi
10623 fi
10624 $rm conftest*
10625
10626fi
10627echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10628echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10629
10630if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10631 case $lt_prog_compiler_pic_CXX in
10632 "" | " "*) ;;
10633 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10634 esac
10635else
10636 lt_prog_compiler_pic_CXX=
10637 lt_prog_compiler_can_build_shared_CXX=no
10638fi
10639
10640fi
10641case "$host_os" in
10642 # For platforms which do not support PIC, -DPIC is meaningless:
10643 *djgpp*)
10644 lt_prog_compiler_pic_CXX=
10645 ;;
10646 *)
10647 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10648 ;;
10649esac
10650
10651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10653if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656 lt_cv_prog_compiler_c_o_CXX=no
10657 $rm -r conftest 2>/dev/null
10658 mkdir conftest
10659 cd conftest
10660 mkdir out
10661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10662
10663 lt_compiler_flag="-o out/conftest2.$ac_objext"
10664 # Insert the option either (1) after the last *FLAGS variable, or
10665 # (2) before a word containing "conftest.", or (3) at the end.
10666 # Note that $ac_compile itself does not contain backslashes and begins
10667 # with a dollar sign (not a hyphen), so the echo should work correctly.
10668 lt_compile=`echo "$ac_compile" | $SED \
10669 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10671 -e 's:$: $lt_compiler_flag:'`
10672 (eval echo "\"\$as_me:10672: $lt_compile\"" >&5)
10673 (eval "$lt_compile" 2>out/conftest.err)
10674 ac_status=$?
10675 cat out/conftest.err >&5
10676 echo "$as_me:10676: \$? = $ac_status" >&5
10677 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10678 then
10679 # The compiler can only warn and ignore the option if not recognized
10680 # So say no if there are warnings
10681 if test ! -s out/conftest.err; then
10682 lt_cv_prog_compiler_c_o_CXX=yes
10683 fi
10684 fi
10685 chmod u+w .
10686 $rm conftest*
10687 # SGI C++ compiler will create directory out/ii_files/ for
10688 # template instantiation
10689 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10690 $rm out/* && rmdir out
10691 cd ..
10692 rmdir conftest
10693 $rm conftest*
10694
10695fi
10696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10697echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10698
10699
10700hard_links="nottested"
10701if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10702 # do not overwrite the value of need_locks provided by the user
10703 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10704echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10705 hard_links=yes
10706 $rm conftest*
10707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10708 touch conftest.a
10709 ln conftest.a conftest.b 2>&5 || hard_links=no
10710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10711 echo "$as_me:$LINENO: result: $hard_links" >&5
10712echo "${ECHO_T}$hard_links" >&6
10713 if test "$hard_links" = no; then
10714 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10715echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10716 need_locks=warn
10717 fi
10718else
10719 need_locks=no
10720fi
10721
10722echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10723echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10724
10725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10726 case $host_os in
10727 aix4* | aix5*)
10728 # If we're using GNU nm, then we don't want the "-C" option.
10729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10731 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'
10732 else
10733 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'
10734 fi
10735 ;;
10736 pw32*)
10737 export_symbols_cmds_CXX="$ltdll_cmds"
10738 ;;
10739 cygwin* | mingw*)
10740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10741 ;;
10742 linux*)
10743 link_all_deplibs_CXX=no
10744 ;;
10745 *)
10746 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10747 ;;
10748 esac
10749
10750echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10751echo "${ECHO_T}$ld_shlibs_CXX" >&6
10752test "$ld_shlibs_CXX" = no && can_build_shared=no
10753
10754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10755if test "$GCC" = yes; then
10756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10757fi
10758
10759#
10760# Do we need to explicitly link libc?
10761#
10762case "x$archive_cmds_need_lc_CXX" in
10763x|xyes)
10764 # Assume -lc should be added
10765 archive_cmds_need_lc_CXX=yes
10766
10767 if test "$enable_shared" = yes && test "$GCC" = yes; then
10768 case $archive_cmds_CXX in
10769 *'~'*)
10770 # FIXME: we may have to deal with multi-command sequences.
10771 ;;
10772 '$CC '*)
10773 # Test whether the compiler implicitly links with -lc since on some
10774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10775 # to ld, don't add -lc before -lgcc.
10776 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10777echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10778 $rm conftest*
10779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10780
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } 2>conftest.err; then
10786 soname=conftest
10787 lib=conftest
10788 libobjs=conftest.$ac_objext
10789 deplibs=
10790 wl=$lt_prog_compiler_wl_CXX
10791 compiler_flags=-v
10792 linker_flags=-v
10793 verstring=
10794 output_objdir=.
10795 libname=conftest
10796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10797 allow_undefined_flag_CXX=
10798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10799 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }
10803 then
10804 archive_cmds_need_lc_CXX=no
10805 else
10806 archive_cmds_need_lc_CXX=yes
10807 fi
10808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10809 else
10810 cat conftest.err 1>&5
10811 fi
10812 $rm conftest*
10813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10814echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10815 ;;
10816 esac
10817 fi
10818 ;;
10819esac
10820
10821echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10823library_names_spec=
10824libname_spec='lib$name'
10825soname_spec=
10826shrext_cmds=".so"
10827postinstall_cmds=
10828postuninstall_cmds=
10829finish_cmds=
10830finish_eval=
10831shlibpath_var=
10832shlibpath_overrides_runpath=unknown
10833version_type=none
10834dynamic_linker="$host_os ld.so"
10835sys_lib_dlsearch_path_spec="/lib /usr/lib"
10836if test "$GCC" = yes; then
10837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10839 # if the path contains ";" then we assume it to be the separator
10840 # otherwise default to the standard path separator (i.e. ":") - it is
10841 # assumed that no part of a normal pathname contains ";" but that should
10842 # okay in the real world where ";" in dirpaths is itself problematic.
10843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10844 else
10845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 fi
10847else
10848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10849fi
10850need_lib_prefix=unknown
10851hardcode_into_libs=no
10852
10853# when you set need_version to no, make sure it does not cause -set_version
10854# flags to be left without arguments
10855need_version=unknown
10856
10857case $host_os in
10858aix3*)
10859 version_type=linux
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10861 shlibpath_var=LIBPATH
10862
10863 # AIX 3 has no versioning support, so we append a major version to the name.
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 ;;
10866
10867aix4* | aix5*)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 hardcode_into_libs=yes
10872 if test "$host_cpu" = ia64; then
10873 # AIX 5 supports IA64
10874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 else
10877 # With GCC up to 2.95.x, collect2 would create an import file
10878 # for dependence libraries. The import file would start with
10879 # the line `#! .'. This would cause the generated library to
10880 # depend on `.', always an invalid library. This was fixed in
10881 # development snapshots of GCC prior to 3.0.
10882 case $host_os in
10883 aix4 | aix4.[01] | aix4.[01].*)
10884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10885 echo ' yes '
10886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10887 :
10888 else
10889 can_build_shared=no
10890 fi
10891 ;;
10892 esac
10893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10894 # soname into executable. Probably we can add versioning support to
10895 # collect2, so additional links can be useful in future.
10896 if test "$aix_use_runtimelinking" = yes; then
10897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10898 # instead of lib<name>.a to let people know that these are not
10899 # typical AIX shared libraries.
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 else
10902 # We preserve .a as extension for shared libraries through AIX4.2
10903 # and later when we are not doing run time linking.
10904 library_names_spec='${libname}${release}.a $libname.a'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 fi
10907 shlibpath_var=LIBPATH
10908 fi
10909 ;;
10910
10911amigaos*)
10912 library_names_spec='$libname.ixlibrary $libname.a'
10913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914 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'
10915 ;;
10916
10917beos*)
10918 library_names_spec='${libname}${shared_ext}'
10919 dynamic_linker="$host_os ld.so"
10920 shlibpath_var=LIBRARY_PATH
10921 ;;
10922
10923bsdi4*)
10924 version_type=linux
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10932 # the default ld.so.conf also contains /usr/contrib/lib and
10933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10934 # libtool to hard-code these into programs
10935 ;;
10936
10937cygwin* | mingw* | pw32*)
10938 version_type=windows
10939 shrext_cmds=".dll"
10940 need_version=no
10941 need_lib_prefix=no
10942
10943 case $GCC,$host_os in
10944 yes,cygwin* | yes,mingw* | yes,pw32*)
10945 library_names_spec='$libname.dll.a'
10946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10947 postinstall_cmds='base_file=`basename \${file}`~
10948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10949 dldir=$destdir/`dirname \$dlpath`~
10950 test -d \$dldir || mkdir -p \$dldir~
10951 $install_prog $dir/$dlname \$dldir/$dlname'
10952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10953 dlpath=$dir/\$dldll~
10954 $rm \$dlpath'
10955 shlibpath_overrides_runpath=yes
10956
10957 case $host_os in
10958 cygwin*)
10959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10962 ;;
10963 mingw*)
10964 # MinGW DLLs use traditional 'lib' prefix
10965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10968 # It is most probably a Windows format PATH printed by
10969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10970 # path with ; separators, and with drive letters. We can handle the
10971 # drive letters (cygwin fileutils understands them), so leave them,
10972 # especially as we might pass files found there to a mingw objdump,
10973 # which wouldn't understand a cygwinified path. Ahh.
10974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10975 else
10976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10977 fi
10978 ;;
10979 pw32*)
10980 # pw32 DLLs use 'pw' prefix rather than 'lib'
10981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10982 ;;
10983 esac
10984 ;;
10985
10986 *)
10987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10988 ;;
10989 esac
10990 dynamic_linker='Win32 ld.exe'
10991 # FIXME: first we should search . and the directory the executable is in
10992 shlibpath_var=PATH
10993 ;;
10994
10995darwin* | rhapsody*)
10996 dynamic_linker="$host_os dyld"
10997 version_type=darwin
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11001 soname_spec='${libname}${release}${major}$shared_ext'
11002 shlibpath_overrides_runpath=yes
11003 shlibpath_var=DYLD_LIBRARY_PATH
11004 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11006 if test "$GCC" = yes; then
11007 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"`
11008 else
11009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11010 fi
11011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11012 ;;
11013
11014dgux*)
11015 version_type=linux
11016 need_lib_prefix=no
11017 need_version=no
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 ;;
11022
11023freebsd1*)
11024 dynamic_linker=no
11025 ;;
11026
11027kfreebsd*-gnu)
11028 version_type=linux
11029 need_lib_prefix=no
11030 need_version=no
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
11035 hardcode_into_libs=yes
11036 dynamic_linker='GNU ld.so'
11037 ;;
11038
11039freebsd*)
11040 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11041 version_type=freebsd-$objformat
11042 case $version_type in
11043 freebsd-elf*)
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11045 need_version=no
11046 need_lib_prefix=no
11047 ;;
11048 freebsd-*)
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11050 need_version=yes
11051 ;;
11052 esac
11053 shlibpath_var=LD_LIBRARY_PATH
11054 case $host_os in
11055 freebsd2*)
11056 shlibpath_overrides_runpath=yes
11057 ;;
11058 freebsd3.01* | freebsdelf3.01*)
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 ;;
11062 *) # from 3.2 on
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 ;;
11066 esac
11067 ;;
11068
11069gnu*)
11070 version_type=linux
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 hardcode_into_libs=yes
11077 ;;
11078
11079hpux9* | hpux10* | hpux11*)
11080 # Give a soname corresponding to the major version so that dld.sl refuses to
11081 # link against other versions.
11082 version_type=sunos
11083 need_lib_prefix=no
11084 need_version=no
11085 case "$host_cpu" in
11086 ia64*)
11087 shrext_cmds='.so'
11088 hardcode_into_libs=yes
11089 dynamic_linker="$host_os dld.so"
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 if test "X$HPUX_IA64_MODE" = X32; then
11095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11096 else
11097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11098 fi
11099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11100 ;;
11101 hppa*64*)
11102 shrext_cmds='.sl'
11103 hardcode_into_libs=yes
11104 dynamic_linker="$host_os dld.sl"
11105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11111 ;;
11112 *)
11113 shrext_cmds='.sl'
11114 dynamic_linker="$host_os dld.sl"
11115 shlibpath_var=SHLIB_PATH
11116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 ;;
11120 esac
11121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11122 postinstall_cmds='chmod 555 $lib'
11123 ;;
11124
11125irix5* | irix6* | nonstopux*)
11126 case $host_os in
11127 nonstopux*) version_type=nonstopux ;;
11128 *)
11129 if test "$lt_cv_prog_gnu_ld" = yes; then
11130 version_type=linux
11131 else
11132 version_type=irix
11133 fi ;;
11134 esac
11135 need_lib_prefix=no
11136 need_version=no
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 case $host_os in
11140 irix5* | nonstopux*)
11141 libsuff= shlibsuff=
11142 ;;
11143 *)
11144 case $LD in # libtool.m4 will add one of these switches to LD
11145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11146 libsuff= shlibsuff= libmagic=32-bit;;
11147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11148 libsuff=32 shlibsuff=N32 libmagic=N32;;
11149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11151 *) libsuff= shlibsuff= libmagic=never-match;;
11152 esac
11153 ;;
11154 esac
11155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11156 shlibpath_overrides_runpath=no
11157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11159 hardcode_into_libs=yes
11160 ;;
11161
11162# No shared lib support for Linux oldld, aout, or coff.
11163linux*oldld* | linux*aout* | linux*coff*)
11164 dynamic_linker=no
11165 ;;
11166
11167# This must be Linux ELF.
11168linux*)
11169 version_type=linux
11170 need_lib_prefix=no
11171 need_version=no
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=no
11177 # This implies no fast_install, which is unacceptable.
11178 # Some rework will be needed to allow for fast_install
11179 # before this can be enabled.
11180 hardcode_into_libs=yes
11181
11182 # Append ld.so.conf contents to the search path
11183 if test -f /etc/ld.so.conf; then
11184 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11186 fi
11187
11188 # We used to test for /lib/ld.so.1 and disable shared libraries on
11189 # powerpc, because MkLinux only supported shared libraries with the
11190 # GNU dynamic linker. Since this was broken with cross compilers,
11191 # most powerpc-linux boxes support dynamic linking these days and
11192 # people can always --disable-shared, the test was removed, and we
11193 # assume the GNU/Linux dynamic linker is in use.
11194 dynamic_linker='GNU/Linux ld.so'
11195 ;;
11196
11197netbsdelf*-gnu)
11198 version_type=linux
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=no
11205 hardcode_into_libs=yes
11206 dynamic_linker='NetBSD ld.elf_so'
11207 ;;
11208
11209knetbsd*-gnu)
11210 version_type=linux
11211 need_lib_prefix=no
11212 need_version=no
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11214 soname_spec='${libname}${release}${shared_ext}$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 shlibpath_overrides_runpath=no
11217 hardcode_into_libs=yes
11218 dynamic_linker='GNU ld.so'
11219 ;;
11220
11221netbsd*)
11222 version_type=sunos
11223 need_lib_prefix=no
11224 need_version=no
11225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11228 dynamic_linker='NetBSD (a.out) ld.so'
11229 else
11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11231 soname_spec='${libname}${release}${shared_ext}$major'
11232 dynamic_linker='NetBSD ld.elf_so'
11233 fi
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11236 hardcode_into_libs=yes
11237 ;;
11238
11239newsos6)
11240 version_type=linux
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes
11244 ;;
11245
11246nto-qnx*)
11247 version_type=linux
11248 need_lib_prefix=no
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11254 ;;
11255
11256openbsd*)
11257 version_type=sunos
11258 need_lib_prefix=no
11259 need_version=yes
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 case $host_os in
11265 openbsd2.[89] | openbsd2.[89].*)
11266 shlibpath_overrides_runpath=no
11267 ;;
11268 *)
11269 shlibpath_overrides_runpath=yes
11270 ;;
11271 esac
11272 else
11273 shlibpath_overrides_runpath=yes
11274 fi
11275 ;;
11276
11277os2*)
11278 libname_spec='$name'
11279 shrext_cmds=".dll"
11280 need_lib_prefix=no
11281 library_names_spec='$libname${shared_ext} $libname.a'
11282 dynamic_linker='OS/2 ld.exe'
11283 shlibpath_var=LIBPATH
11284 ;;
11285
11286osf3* | osf4* | osf5*)
11287 version_type=osf
11288 need_lib_prefix=no
11289 need_version=no
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11295 ;;
11296
11297sco3.2v5*)
11298 version_type=osf
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 ;;
11303
11304solaris*)
11305 version_type=linux
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LD_LIBRARY_PATH
11311 shlibpath_overrides_runpath=yes
11312 hardcode_into_libs=yes
11313 # ldd complains unless libraries are executable
11314 postinstall_cmds='chmod +x $lib'
11315 ;;
11316
11317sunos4*)
11318 version_type=sunos
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 if test "$with_gnu_ld" = yes; then
11324 need_lib_prefix=no
11325 fi
11326 need_version=yes
11327 ;;
11328
11329sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11330 version_type=linux
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 case $host_vendor in
11335 sni)
11336 shlibpath_overrides_runpath=no
11337 need_lib_prefix=no
11338 export_dynamic_flag_spec='${wl}-Blargedynsym'
11339 runpath_var=LD_RUN_PATH
11340 ;;
11341 siemens)
11342 need_lib_prefix=no
11343 ;;
11344 motorola)
11345 need_lib_prefix=no
11346 need_version=no
11347 shlibpath_overrides_runpath=no
11348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11349 ;;
11350 esac
11351 ;;
11352
11353sysv4*MP*)
11354 if test -d /usr/nec ;then
11355 version_type=linux
11356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11357 soname_spec='$libname${shared_ext}.$major'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 fi
11360 ;;
11361
11362uts4*)
11363 version_type=linux
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 ;;
11368
11369*)
11370 dynamic_linker=no
11371 ;;
11372esac
11373echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11374echo "${ECHO_T}$dynamic_linker" >&6
11375test "$dynamic_linker" = no && can_build_shared=no
11376
11377echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11378echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11379hardcode_action_CXX=
11380if test -n "$hardcode_libdir_flag_spec_CXX" || \
11381 test -n "$runpath_var CXX" || \
11382 test "X$hardcode_automatic_CXX"="Xyes" ; then
11383
11384 # We can hardcode non-existant directories.
11385 if test "$hardcode_direct_CXX" != no &&
11386 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11387 # have to relink, otherwise we might link with an installed library
11388 # when we should be linking with a yet-to-be-installed one
11389 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11390 test "$hardcode_minus_L_CXX" != no; then
11391 # Linking always hardcodes the temporary library directory.
11392 hardcode_action_CXX=relink
11393 else
11394 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11395 hardcode_action_CXX=immediate
11396 fi
11397else
11398 # We cannot hardcode anything, or else we can only hardcode existing
11399 # directories.
11400 hardcode_action_CXX=unsupported
11401fi
11402echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11403echo "${ECHO_T}$hardcode_action_CXX" >&6
11404
11405if test "$hardcode_action_CXX" = relink; then
11406 # Fast installation is not supported
11407 enable_fast_install=no
11408elif test "$shlibpath_overrides_runpath" = yes ||
11409 test "$enable_shared" = no; then
11410 # Fast installation is not necessary
11411 enable_fast_install=needless
11412fi
11413
11414striplib=
11415old_striplib=
11416echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11417echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11418if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11421 echo "$as_me:$LINENO: result: yes" >&5
11422echo "${ECHO_T}yes" >&6
11423else
11424# FIXME - insert some real tests, host_os isn't really good enough
11425 case $host_os in
11426 darwin*)
11427 if test -n "$STRIP" ; then
11428 striplib="$STRIP -x"
11429 echo "$as_me:$LINENO: result: yes" >&5
11430echo "${ECHO_T}yes" >&6
11431 else
11432 echo "$as_me:$LINENO: result: no" >&5
11433echo "${ECHO_T}no" >&6
11434fi
11435 ;;
11436 *)
11437 echo "$as_me:$LINENO: result: no" >&5
11438echo "${ECHO_T}no" >&6
11439 ;;
11440 esac
11441fi
11442
11443if test "x$enable_dlopen" != xyes; then
11444 enable_dlopen=unknown
11445 enable_dlopen_self=unknown
11446 enable_dlopen_self_static=unknown
11447else
11448 lt_cv_dlopen=no
11449 lt_cv_dlopen_libs=
11450
11451 case $host_os in
11452 beos*)
11453 lt_cv_dlopen="load_add_on"
11454 lt_cv_dlopen_libs=
11455 lt_cv_dlopen_self=yes
11456 ;;
11457
11458 mingw* | pw32*)
11459 lt_cv_dlopen="LoadLibrary"
11460 lt_cv_dlopen_libs=
11461 ;;
11462
11463 cygwin*)
11464 lt_cv_dlopen="dlopen"
11465 lt_cv_dlopen_libs=
11466 ;;
11467
11468 darwin*)
11469 # if libdl is installed we need to link against it
11470 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11471echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11472if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11474else
11475 ac_check_lib_save_LIBS=$LIBS
11476LIBS="-ldl $LIBS"
11477cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h. */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h. */
11483
11484/* Override any gcc2 internal prototype to avoid an error. */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488/* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11490char dlopen ();
11491int
11492main ()
11493{
11494dlopen ();
11495 ;
11496 return 0;
11497}
11498_ACEOF
11499rm -f conftest.$ac_objext conftest$ac_exeext
11500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_lib_dl_dlopen=yes
11521else
11522 echo "$as_me: failed program was:" >&5
11523sed 's/^/| /' conftest.$ac_ext >&5
11524
11525ac_cv_lib_dl_dlopen=no
11526fi
11527rm -f conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529LIBS=$ac_check_lib_save_LIBS
11530fi
11531echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11532echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11533if test $ac_cv_lib_dl_dlopen = yes; then
11534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11535else
11536
11537 lt_cv_dlopen="dyld"
11538 lt_cv_dlopen_libs=
11539 lt_cv_dlopen_self=yes
11540
11541fi
11542
11543 ;;
11544
11545 *)
11546 echo "$as_me:$LINENO: checking for shl_load" >&5
11547echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11548if test "${ac_cv_func_shl_load+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 cat >conftest.$ac_ext <<_ACEOF
11552/* confdefs.h. */
11553_ACEOF
11554cat confdefs.h >>conftest.$ac_ext
11555cat >>conftest.$ac_ext <<_ACEOF
11556/* end confdefs.h. */
11557/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11559#define shl_load innocuous_shl_load
11560
11561/* System header to define __stub macros and hopefully few prototypes,
11562 which can conflict with char shl_load (); below.
11563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11564 <limits.h> exists even on freestanding compilers. */
11565
11566#ifdef __STDC__
11567# include <limits.h>
11568#else
11569# include <assert.h>
11570#endif
11571
11572#undef shl_load
11573
11574/* Override any gcc2 internal prototype to avoid an error. */
11575#ifdef __cplusplus
11576extern "C"
11577{
11578#endif
11579/* We use char because int might match the return type of a gcc2
11580 builtin and then its argument prototype would still apply. */
11581char shl_load ();
11582/* The GNU C library defines this for functions which it implements
11583 to always fail with ENOSYS. Some functions are actually named
11584 something starting with __ and the normal name is an alias. */
11585#if defined (__stub_shl_load) || defined (__stub___shl_load)
11586choke me
11587#else
11588char (*f) () = shl_load;
11589#endif
11590#ifdef __cplusplus
11591}
11592#endif
11593
11594int
11595main ()
11596{
11597return f != shl_load;
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602rm -f conftest.$ac_objext conftest$ac_exeext
11603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11604 (eval $ac_link) 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_func_shl_load=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628ac_cv_func_shl_load=no
11629fi
11630rm -f conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632fi
11633echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11634echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11635if test $ac_cv_func_shl_load = yes; then
11636 lt_cv_dlopen="shl_load"
11637else
11638 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11639echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11640if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 ac_check_lib_save_LIBS=$LIBS
11644LIBS="-ldld $LIBS"
11645cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651
11652/* Override any gcc2 internal prototype to avoid an error. */
11653#ifdef __cplusplus
11654extern "C"
11655#endif
11656/* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11658char shl_load ();
11659int
11660main ()
11661{
11662shl_load ();
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext conftest$ac_exeext
11668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669 (eval $ac_link) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_cv_lib_dld_shl_load=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693ac_cv_lib_dld_shl_load=no
11694fi
11695rm -f conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697LIBS=$ac_check_lib_save_LIBS
11698fi
11699echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11700echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11701if test $ac_cv_lib_dld_shl_load = yes; then
11702 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11703else
11704 echo "$as_me:$LINENO: checking for dlopen" >&5
11705echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11706if test "${ac_cv_func_dlopen+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11717#define dlopen innocuous_dlopen
11718
11719/* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char dlopen (); below.
11721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11722 <limits.h> exists even on freestanding compilers. */
11723
11724#ifdef __STDC__
11725# include <limits.h>
11726#else
11727# include <assert.h>
11728#endif
11729
11730#undef dlopen
11731
11732/* Override any gcc2 internal prototype to avoid an error. */
11733#ifdef __cplusplus
11734extern "C"
11735{
11736#endif
11737/* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11739char dlopen ();
11740/* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743#if defined (__stub_dlopen) || defined (__stub___dlopen)
11744choke me
11745#else
11746char (*f) () = dlopen;
11747#endif
11748#ifdef __cplusplus
11749}
11750#endif
11751
11752int
11753main ()
11754{
11755return f != dlopen;
11756 ;
11757 return 0;
11758}
11759_ACEOF
11760rm -f conftest.$ac_objext conftest$ac_exeext
11761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11762 (eval $ac_link) 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_func_dlopen=yes
11782else
11783 echo "$as_me: failed program was:" >&5
11784sed 's/^/| /' conftest.$ac_ext >&5
11785
11786ac_cv_func_dlopen=no
11787fi
11788rm -f conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790fi
11791echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11792echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11793if test $ac_cv_func_dlopen = yes; then
11794 lt_cv_dlopen="dlopen"
11795else
11796 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11797echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11798if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 ac_check_lib_save_LIBS=$LIBS
11802LIBS="-ldl $LIBS"
11803cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
11809
11810/* Override any gcc2 internal prototype to avoid an error. */
11811#ifdef __cplusplus
11812extern "C"
11813#endif
11814/* We use char because int might match the return type of a gcc2
11815 builtin and then its argument prototype would still apply. */
11816char dlopen ();
11817int
11818main ()
11819{
11820dlopen ();
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825rm -f conftest.$ac_objext conftest$ac_exeext
11826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11827 (eval $ac_link) 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
11834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; } &&
11840 { ac_try='test -s conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 ac_cv_lib_dl_dlopen=yes
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851ac_cv_lib_dl_dlopen=no
11852fi
11853rm -f conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11859if test $ac_cv_lib_dl_dlopen = yes; then
11860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861else
11862 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11863echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11864if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867 ac_check_lib_save_LIBS=$LIBS
11868LIBS="-lsvld $LIBS"
11869cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
11875
11876/* Override any gcc2 internal prototype to avoid an error. */
11877#ifdef __cplusplus
11878extern "C"
11879#endif
11880/* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882char dlopen ();
11883int
11884main ()
11885{
11886dlopen ();
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext conftest$ac_exeext
11892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_lib_svld_dlopen=yes
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917ac_cv_lib_svld_dlopen=no
11918fi
11919rm -f conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921LIBS=$ac_check_lib_save_LIBS
11922fi
11923echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11924echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11925if test $ac_cv_lib_svld_dlopen = yes; then
11926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11927else
11928 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11929echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11930if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
11933 ac_check_lib_save_LIBS=$LIBS
11934LIBS="-ldld $LIBS"
11935cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941
11942/* Override any gcc2 internal prototype to avoid an error. */
11943#ifdef __cplusplus
11944extern "C"
11945#endif
11946/* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948char dld_link ();
11949int
11950main ()
11951{
11952dld_link ();
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
11958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_dld_dld_link=yes
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983ac_cv_lib_dld_dld_link=no
11984fi
11985rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11990echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11991if test $ac_cv_lib_dld_dld_link = yes; then
11992 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11993fi
11994
11995
11996fi
11997
11998
11999fi
12000
12001
12002fi
12003
12004
12005fi
12006
12007
12008fi
12009
12010 ;;
12011 esac
12012
12013 if test "x$lt_cv_dlopen" != xno; then
12014 enable_dlopen=yes
12015 else
12016 enable_dlopen=no
12017 fi
12018
12019 case $lt_cv_dlopen in
12020 dlopen)
12021 save_CPPFLAGS="$CPPFLAGS"
12022 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12023
12024 save_LDFLAGS="$LDFLAGS"
12025 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12026
12027 save_LIBS="$LIBS"
12028 LIBS="$lt_cv_dlopen_libs $LIBS"
12029
12030 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12031echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12032if test "${lt_cv_dlopen_self+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 if test "$cross_compiling" = yes; then :
12036 lt_cv_dlopen_self=cross
12037else
12038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12039 lt_status=$lt_dlunknown
12040 cat > conftest.$ac_ext <<EOF
12041#line 12041 "configure"
12042#include "confdefs.h"
12043
12044#if HAVE_DLFCN_H
12045#include <dlfcn.h>
12046#endif
12047
12048#include <stdio.h>
12049
12050#ifdef RTLD_GLOBAL
12051# define LT_DLGLOBAL RTLD_GLOBAL
12052#else
12053# ifdef DL_GLOBAL
12054# define LT_DLGLOBAL DL_GLOBAL
12055# else
12056# define LT_DLGLOBAL 0
12057# endif
12058#endif
12059
12060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12061 find out it does not work in some platform. */
12062#ifndef LT_DLLAZY_OR_NOW
12063# ifdef RTLD_LAZY
12064# define LT_DLLAZY_OR_NOW RTLD_LAZY
12065# else
12066# ifdef DL_LAZY
12067# define LT_DLLAZY_OR_NOW DL_LAZY
12068# else
12069# ifdef RTLD_NOW
12070# define LT_DLLAZY_OR_NOW RTLD_NOW
12071# else
12072# ifdef DL_NOW
12073# define LT_DLLAZY_OR_NOW DL_NOW
12074# else
12075# define LT_DLLAZY_OR_NOW 0
12076# endif
12077# endif
12078# endif
12079# endif
12080#endif
12081
12082#ifdef __cplusplus
12083extern "C" void exit (int);
12084#endif
12085
12086void fnord() { int i=42;}
12087int main ()
12088{
12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12090 int status = $lt_dlunknown;
12091
12092 if (self)
12093 {
12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12095 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12096 /* dlclose (self); */
12097 }
12098
12099 exit (status);
12100}
12101EOF
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12107 (./conftest; exit; ) 2>/dev/null
12108 lt_status=$?
12109 case x$lt_status in
12110 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12111 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12112 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12113 esac
12114 else :
12115 # compilation failed
12116 lt_cv_dlopen_self=no
12117 fi
12118fi
12119rm -fr conftest*
12120
12121
12122fi
12123echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12124echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12125
12126 if test "x$lt_cv_dlopen_self" = xyes; then
12127 LDFLAGS="$LDFLAGS $link_static_flag"
12128 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12129echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12130if test "${lt_cv_dlopen_self_static+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self_static=cross
12135else
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<EOF
12139#line 12139 "configure"
12140#include "confdefs.h"
12141
12142#if HAVE_DLFCN_H
12143#include <dlfcn.h>
12144#endif
12145
12146#include <stdio.h>
12147
12148#ifdef RTLD_GLOBAL
12149# define LT_DLGLOBAL RTLD_GLOBAL
12150#else
12151# ifdef DL_GLOBAL
12152# define LT_DLGLOBAL DL_GLOBAL
12153# else
12154# define LT_DLGLOBAL 0
12155# endif
12156#endif
12157
12158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160#ifndef LT_DLLAZY_OR_NOW
12161# ifdef RTLD_LAZY
12162# define LT_DLLAZY_OR_NOW RTLD_LAZY
12163# else
12164# ifdef DL_LAZY
12165# define LT_DLLAZY_OR_NOW DL_LAZY
12166# else
12167# ifdef RTLD_NOW
12168# define LT_DLLAZY_OR_NOW RTLD_NOW
12169# else
12170# ifdef DL_NOW
12171# define LT_DLLAZY_OR_NOW DL_NOW
12172# else
12173# define LT_DLLAZY_OR_NOW 0
12174# endif
12175# endif
12176# endif
12177# endif
12178#endif
12179
12180#ifdef __cplusplus
12181extern "C" void exit (int);
12182#endif
12183
12184void fnord() { int i=42;}
12185int main ()
12186{
12187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188 int status = $lt_dlunknown;
12189
12190 if (self)
12191 {
12192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194 /* dlclose (self); */
12195 }
12196
12197 exit (status);
12198}
12199EOF
12200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12201 (eval $ac_link) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12205 (./conftest; exit; ) 2>/dev/null
12206 lt_status=$?
12207 case x$lt_status in
12208 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12209 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12210 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12211 esac
12212 else :
12213 # compilation failed
12214 lt_cv_dlopen_self_static=no
12215 fi
12216fi
12217rm -fr conftest*
12218
12219
12220fi
12221echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12222echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12223 fi
12224
12225 CPPFLAGS="$save_CPPFLAGS"
12226 LDFLAGS="$save_LDFLAGS"
12227 LIBS="$save_LIBS"
12228 ;;
12229 esac
12230
12231 case $lt_cv_dlopen_self in
12232 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12233 *) enable_dlopen_self=unknown ;;
12234 esac
12235
12236 case $lt_cv_dlopen_self_static in
12237 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12238 *) enable_dlopen_self_static=unknown ;;
12239 esac
12240fi
12241
12242
12243# The else clause should only fire when bootstrapping the
12244# libtool distribution, otherwise you forgot to ship ltmain.sh
12245# with your package, and you will get complaints that there are
12246# no rules to generate ltmain.sh.
12247if test -f "$ltmain"; then
12248 # See if we are running on zsh, and set the options which allow our commands through
12249 # without removal of \ escapes.
12250 if test -n "${ZSH_VERSION+set}" ; then
12251 setopt NO_GLOB_SUBST
12252 fi
12253 # Now quote all the things that may contain metacharacters while being
12254 # careful not to overquote the AC_SUBSTed values. We take copies of the
12255 # variables and quote the copies for generation of the libtool script.
12256 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12257 SED SHELL STRIP \
12258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12260 deplibs_check_method reload_flag reload_cmds need_locks \
12261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12262 lt_cv_sys_global_symbol_to_c_name_address \
12263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12264 old_postinstall_cmds old_postuninstall_cmds \
12265 compiler_CXX \
12266 CC_CXX \
12267 LD_CXX \
12268 lt_prog_compiler_wl_CXX \
12269 lt_prog_compiler_pic_CXX \
12270 lt_prog_compiler_static_CXX \
12271 lt_prog_compiler_no_builtin_flag_CXX \
12272 export_dynamic_flag_spec_CXX \
12273 thread_safe_flag_spec_CXX \
12274 whole_archive_flag_spec_CXX \
12275 enable_shared_with_static_runtimes_CXX \
12276 old_archive_cmds_CXX \
12277 old_archive_from_new_cmds_CXX \
12278 predep_objects_CXX \
12279 postdep_objects_CXX \
12280 predeps_CXX \
12281 postdeps_CXX \
12282 compiler_lib_search_path_CXX \
12283 archive_cmds_CXX \
12284 archive_expsym_cmds_CXX \
12285 postinstall_cmds_CXX \
12286 postuninstall_cmds_CXX \
12287 old_archive_from_expsyms_cmds_CXX \
12288 allow_undefined_flag_CXX \
12289 no_undefined_flag_CXX \
12290 export_symbols_cmds_CXX \
12291 hardcode_libdir_flag_spec_CXX \
12292 hardcode_libdir_flag_spec_ld_CXX \
12293 hardcode_libdir_separator_CXX \
12294 hardcode_automatic_CXX \
12295 module_cmds_CXX \
12296 module_expsym_cmds_CXX \
12297 lt_cv_prog_compiler_c_o_CXX \
12298 exclude_expsyms_CXX \
12299 include_expsyms_CXX; do
12300
12301 case $var in
12302 old_archive_cmds_CXX | \
12303 old_archive_from_new_cmds_CXX | \
12304 archive_cmds_CXX | \
12305 archive_expsym_cmds_CXX | \
12306 module_cmds_CXX | \
12307 module_expsym_cmds_CXX | \
12308 old_archive_from_expsyms_cmds_CXX | \
12309 export_symbols_cmds_CXX | \
12310 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12311 postinstall_cmds | postuninstall_cmds | \
12312 old_postinstall_cmds | old_postuninstall_cmds | \
12313 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12314 # Double-quote double-evaled strings.
12315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12316 ;;
12317 *)
12318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12319 ;;
12320 esac
12321 done
12322
12323 case $lt_echo in
12324 *'\$0 --fallback-echo"')
12325 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12326 ;;
12327 esac
12328
12329cfgfile="$ofile"
12330
12331 cat <<__EOF__ >> "$cfgfile"
12332# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12333
12334# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12335
12336# Shell to use when invoking shell scripts.
12337SHELL=$lt_SHELL
12338
12339# Whether or not to build shared libraries.
12340build_libtool_libs=$enable_shared
12341
12342# Whether or not to build static libraries.
12343build_old_libs=$enable_static
12344
12345# Whether or not to add -lc for building shared libraries.
12346build_libtool_need_lc=$archive_cmds_need_lc_CXX
12347
12348# Whether or not to disallow shared libs when runtime libs are static
12349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12350
12351# Whether or not to optimize for fast installation.
12352fast_install=$enable_fast_install
12353
12354# The host system.
12355host_alias=$host_alias
12356host=$host
12357
12358# An echo program that does not interpret backslashes.
12359echo=$lt_echo
12360
12361# The archiver.
12362AR=$lt_AR
12363AR_FLAGS=$lt_AR_FLAGS
12364
12365# A C compiler.
12366LTCC=$lt_LTCC
12367
12368# A language-specific compiler.
12369CC=$lt_compiler_CXX
12370
12371# Is the compiler the GNU C compiler?
12372with_gcc=$GCC_CXX
12373
12374# An ERE matcher.
12375EGREP=$lt_EGREP
12376
12377# The linker used to build libraries.
12378LD=$lt_LD_CXX
12379
12380# Whether we need hard or soft links.
12381LN_S=$lt_LN_S
12382
12383# A BSD-compatible nm program.
12384NM=$lt_NM
12385
12386# A symbol stripping program
12387STRIP=$lt_STRIP
12388
12389# Used to examine libraries when file_magic_cmd begins "file"
12390MAGIC_CMD=$MAGIC_CMD
12391
12392# Used on cygwin: DLL creation program.
12393DLLTOOL="$DLLTOOL"
12394
12395# Used on cygwin: object dumper.
12396OBJDUMP="$OBJDUMP"
12397
12398# Used on cygwin: assembler.
12399AS="$AS"
12400
12401# The name of the directory that contains temporary libtool files.
12402objdir=$objdir
12403
12404# How to create reloadable object files.
12405reload_flag=$lt_reload_flag
12406reload_cmds=$lt_reload_cmds
12407
12408# How to pass a linker flag through the compiler.
12409wl=$lt_lt_prog_compiler_wl_CXX
12410
12411# Object file suffix (normally "o").
12412objext="$ac_objext"
12413
12414# Old archive suffix (normally "a").
12415libext="$libext"
12416
12417# Shared library suffix (normally ".so").
12418shrext_cmds='$shrext_cmds'
12419
12420# Executable file suffix (normally "").
12421exeext="$exeext"
12422
12423# Additional compiler flags for building library objects.
12424pic_flag=$lt_lt_prog_compiler_pic_CXX
12425pic_mode=$pic_mode
12426
12427# What is the maximum length of a command?
12428max_cmd_len=$lt_cv_sys_max_cmd_len
12429
12430# Does compiler simultaneously support -c and -o options?
12431compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12432
12433# Must we lock files when doing compilation ?
12434need_locks=$lt_need_locks
12435
12436# Do we need the lib prefix for modules?
12437need_lib_prefix=$need_lib_prefix
12438
12439# Do we need a version for libraries?
12440need_version=$need_version
12441
12442# Whether dlopen is supported.
12443dlopen_support=$enable_dlopen
12444
12445# Whether dlopen of programs is supported.
12446dlopen_self=$enable_dlopen_self
12447
12448# Whether dlopen of statically linked programs is supported.
12449dlopen_self_static=$enable_dlopen_self_static
12450
12451# Compiler flag to prevent dynamic linking.
12452link_static_flag=$lt_lt_prog_compiler_static_CXX
12453
12454# Compiler flag to turn off builtin functions.
12455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12456
12457# Compiler flag to allow reflexive dlopens.
12458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12459
12460# Compiler flag to generate shared objects directly from archives.
12461whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12462
12463# Compiler flag to generate thread-safe objects.
12464thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12465
12466# Library versioning type.
12467version_type=$version_type
12468
12469# Format of library name prefix.
12470libname_spec=$lt_libname_spec
12471
12472# List of archive names. First name is the real one, the rest are links.
12473# The last name is the one that the linker finds with -lNAME.
12474library_names_spec=$lt_library_names_spec
12475
12476# The coded name of the library, if different from the real name.
12477soname_spec=$lt_soname_spec
12478
12479# Commands used to build and install an old-style archive.
12480RANLIB=$lt_RANLIB
12481old_archive_cmds=$lt_old_archive_cmds_CXX
12482old_postinstall_cmds=$lt_old_postinstall_cmds
12483old_postuninstall_cmds=$lt_old_postuninstall_cmds
12484
12485# Create an old-style archive from a shared archive.
12486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12487
12488# Create a temporary old-style archive to link instead of a shared archive.
12489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12490
12491# Commands used to build and install a shared archive.
12492archive_cmds=$lt_archive_cmds_CXX
12493archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12494postinstall_cmds=$lt_postinstall_cmds
12495postuninstall_cmds=$lt_postuninstall_cmds
12496
12497# Commands used to build a loadable module (assumed same as above if empty)
12498module_cmds=$lt_module_cmds_CXX
12499module_expsym_cmds=$lt_module_expsym_cmds_CXX
12500
12501# Commands to strip libraries.
12502old_striplib=$lt_old_striplib
12503striplib=$lt_striplib
12504
12505# Dependencies to place before the objects being linked to create a
12506# shared library.
12507predep_objects=$lt_predep_objects_CXX
12508
12509# Dependencies to place after the objects being linked to create a
12510# shared library.
12511postdep_objects=$lt_postdep_objects_CXX
12512
12513# Dependencies to place before the objects being linked to create a
12514# shared library.
12515predeps=$lt_predeps_CXX
12516
12517# Dependencies to place after the objects being linked to create a
12518# shared library.
12519postdeps=$lt_postdeps_CXX
12520
12521# The library search path used internally by the compiler when linking
12522# a shared library.
12523compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12524
12525# Method to check whether dependent libraries are shared objects.
12526deplibs_check_method=$lt_deplibs_check_method
12527
12528# Command to use when deplibs_check_method == file_magic.
12529file_magic_cmd=$lt_file_magic_cmd
12530
12531# Flag that allows shared libraries with undefined symbols to be built.
12532allow_undefined_flag=$lt_allow_undefined_flag_CXX
12533
12534# Flag that forces no undefined symbols.
12535no_undefined_flag=$lt_no_undefined_flag_CXX
12536
12537# Commands used to finish a libtool library installation in a directory.
12538finish_cmds=$lt_finish_cmds
12539
12540# Same as above, but a single script fragment to be evaled but not shown.
12541finish_eval=$lt_finish_eval
12542
12543# Take the output of nm and produce a listing of raw symbols and C names.
12544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12545
12546# Transform the output of nm in a proper C declaration
12547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12548
12549# Transform the output of nm in a C name address pair
12550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12551
12552# This is the shared library runtime path variable.
12553runpath_var=$runpath_var
12554
12555# This is the shared library path variable.
12556shlibpath_var=$shlibpath_var
12557
12558# Is shlibpath searched before the hard-coded library search path?
12559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12560
12561# How to hardcode a shared library path into an executable.
12562hardcode_action=$hardcode_action_CXX
12563
12564# Whether we should hardcode library paths into libraries.
12565hardcode_into_libs=$hardcode_into_libs
12566
12567# Flag to hardcode \$libdir into a binary during linking.
12568# This must work even if \$libdir does not exist.
12569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12570
12571# If ld is used when linking, flag to hardcode \$libdir into
12572# a binary during linking. This must work even if \$libdir does
12573# not exist.
12574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12575
12576# Whether we need a single -rpath flag with a separated argument.
12577hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12578
12579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12580# resulting binary.
12581hardcode_direct=$hardcode_direct_CXX
12582
12583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12584# resulting binary.
12585hardcode_minus_L=$hardcode_minus_L_CXX
12586
12587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12588# the resulting binary.
12589hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12590
12591# Set to yes if building a shared library automatically hardcodes DIR into the library
12592# and all subsequent libraries and executables linked against it.
12593hardcode_automatic=$hardcode_automatic_CXX
12594
12595# Variables whose values should be saved in libtool wrapper scripts and
12596# restored at relink time.
12597variables_saved_for_relink="$variables_saved_for_relink"
12598
12599# Whether libtool must link a program against all its dependency libraries.
12600link_all_deplibs=$link_all_deplibs_CXX
12601
12602# Compile-time system search path for libraries
12603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12604
12605# Run-time system search path for libraries
12606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12607
12608# Fix the shell variable \$srcfile for the compiler.
12609fix_srcfile_path="$fix_srcfile_path_CXX"
12610
12611# Set to yes if exported symbols are required.
12612always_export_symbols=$always_export_symbols_CXX
12613
12614# The commands to list exported symbols.
12615export_symbols_cmds=$lt_export_symbols_cmds_CXX
12616
12617# The commands to extract the exported symbol list from a shared archive.
12618extract_expsyms_cmds=$lt_extract_expsyms_cmds
12619
12620# Symbols that should not be listed in the preloaded symbols.
12621exclude_expsyms=$lt_exclude_expsyms_CXX
12622
12623# Symbols that must always be exported.
12624include_expsyms=$lt_include_expsyms_CXX
12625
12626# ### END LIBTOOL TAG CONFIG: $tagname
12627
12628__EOF__
12629
12630
12631else
12632 # If there is no Makefile yet, we rely on a make rule to execute
12633 # `config.status --recheck' to rerun these tests and create the
12634 # libtool script then.
12635 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12636 if test -f "$ltmain_in"; then
12637 test -f Makefile && make "$ltmain"
12638 fi
12639fi
12640
12641
12642ac_ext=c
12643ac_cpp='$CPP $CPPFLAGS'
12644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647
12648CC=$lt_save_CC
12649LDCXX=$LD
12650LD=$lt_save_LD
12651GCC=$lt_save_GCC
12652with_gnu_ldcxx=$with_gnu_ld
12653with_gnu_ld=$lt_save_with_gnu_ld
12654lt_cv_path_LDCXX=$lt_cv_path_LD
12655lt_cv_path_LD=$lt_save_path_LD
12656lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12657lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12658
12659 else
12660 tagname=""
12661 fi
12662 ;;
12663
12664 F77)
12665 if test -n "$F77" && test "X$F77" != "Xno"; then
12666
12667ac_ext=f
12668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12671
12672
12673archive_cmds_need_lc_F77=no
12674allow_undefined_flag_F77=
12675always_export_symbols_F77=no
12676archive_expsym_cmds_F77=
12677export_dynamic_flag_spec_F77=
12678hardcode_direct_F77=no
12679hardcode_libdir_flag_spec_F77=
12680hardcode_libdir_flag_spec_ld_F77=
12681hardcode_libdir_separator_F77=
12682hardcode_minus_L_F77=no
12683hardcode_automatic_F77=no
12684module_cmds_F77=
12685module_expsym_cmds_F77=
12686link_all_deplibs_F77=unknown
12687old_archive_cmds_F77=$old_archive_cmds
12688no_undefined_flag_F77=
12689whole_archive_flag_spec_F77=
12690enable_shared_with_static_runtimes_F77=no
12691
12692# Source file extension for f77 test sources.
12693ac_ext=f
12694
12695# Object file extension for compiled f77 test sources.
12696objext=o
12697objext_F77=$objext
12698
12699# Code to be used in simple compile tests
12700lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12701
12702# Code to be used in simple link tests
12703lt_simple_link_test_code=" program t\n end\n"
12704
12705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12706
12707# If no C compiler was specified, use CC.
12708LTCC=${LTCC-"$CC"}
12709
12710# Allow CC to be a program name with arguments.
12711compiler=$CC
12712
12713
12714# Allow CC to be a program name with arguments.
12715lt_save_CC="$CC"
12716CC=${F77-"f77"}
12717compiler=$CC
12718compiler_F77=$CC
12719cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12720
12721echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12722echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12723echo "$as_me:$LINENO: result: $can_build_shared" >&5
12724echo "${ECHO_T}$can_build_shared" >&6
12725
12726echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12727echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12728test "$can_build_shared" = "no" && enable_shared=no
12729
12730# On AIX, shared libraries and static libraries use the same namespace, and
12731# are all built from PIC.
12732case "$host_os" in
12733aix3*)
12734 test "$enable_shared" = yes && enable_static=no
12735 if test -n "$RANLIB"; then
12736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12737 postinstall_cmds='$RANLIB $lib'
12738 fi
12739 ;;
12740aix4* | aix5*)
12741 test "$enable_shared" = yes && enable_static=no
12742 ;;
12743esac
12744echo "$as_me:$LINENO: result: $enable_shared" >&5
12745echo "${ECHO_T}$enable_shared" >&6
12746
12747echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12748echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12749# Make sure either enable_shared or enable_static is yes.
12750test "$enable_shared" = yes || enable_static=yes
12751echo "$as_me:$LINENO: result: $enable_static" >&5
12752echo "${ECHO_T}$enable_static" >&6
12753
12754test "$ld_shlibs_F77" = no && can_build_shared=no
12755
12756GCC_F77="$G77"
12757LD_F77="$LD"
12758
12759lt_prog_compiler_wl_F77=
12760lt_prog_compiler_pic_F77=
12761lt_prog_compiler_static_F77=
12762
12763echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12764echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12765
12766 if test "$GCC" = yes; then
12767 lt_prog_compiler_wl_F77='-Wl,'
12768 lt_prog_compiler_static_F77='-static'
12769
12770 case $host_os in
12771 aix*)
12772 # All AIX code is PIC.
12773 if test "$host_cpu" = ia64; then
12774 # AIX 5 now supports IA64 processor
12775 lt_prog_compiler_static_F77='-Bstatic'
12776 fi
12777 ;;
12778
12779 amigaos*)
12780 # FIXME: we need at least 68020 code to build shared libraries, but
12781 # adding the `-m68020' flag to GCC prevents building anything better,
12782 # like `-m68040'.
12783 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12784 ;;
12785
12786 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12787 # PIC is the default for these OSes.
12788 ;;
12789
12790 mingw* | pw32* | os2*)
12791 # This hack is so that the source file can tell whether it is being
12792 # built for inclusion in a dll (and should export symbols for example).
12793 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12794 ;;
12795
12796 darwin* | rhapsody*)
12797 # PIC is the default on this platform
12798 # Common symbols not allowed in MH_DYLIB files
12799 lt_prog_compiler_pic_F77='-fno-common'
12800 ;;
12801
12802 msdosdjgpp*)
12803 # Just because we use GCC doesn't mean we suddenly get shared libraries
12804 # on systems that don't support them.
12805 lt_prog_compiler_can_build_shared_F77=no
12806 enable_shared=no
12807 ;;
12808
12809 sysv4*MP*)
12810 if test -d /usr/nec; then
12811 lt_prog_compiler_pic_F77=-Kconform_pic
12812 fi
12813 ;;
12814
12815 hpux*)
12816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12817 # not for PA HP-UX.
12818 case "$host_cpu" in
12819 hppa*64*|ia64*)
12820 # +Z the default
12821 ;;
12822 *)
12823 lt_prog_compiler_pic_F77='-fPIC'
12824 ;;
12825 esac
12826 ;;
12827
12828 *)
12829 lt_prog_compiler_pic_F77='-fPIC'
12830 ;;
12831 esac
12832 else
12833 # PORTME Check for flag to pass linker flags through the system compiler.
12834 case $host_os in
12835 aix*)
12836 lt_prog_compiler_wl_F77='-Wl,'
12837 if test "$host_cpu" = ia64; then
12838 # AIX 5 now supports IA64 processor
12839 lt_prog_compiler_static_F77='-Bstatic'
12840 else
12841 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12842 fi
12843 ;;
12844
12845 mingw* | pw32* | os2*)
12846 # This hack is so that the source file can tell whether it is being
12847 # built for inclusion in a dll (and should export symbols for example).
12848 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12849 ;;
12850
12851 hpux9* | hpux10* | hpux11*)
12852 lt_prog_compiler_wl_F77='-Wl,'
12853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12854 # not for PA HP-UX.
12855 case "$host_cpu" in
12856 hppa*64*|ia64*)
12857 # +Z the default
12858 ;;
12859 *)
12860 lt_prog_compiler_pic_F77='+Z'
12861 ;;
12862 esac
12863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12864 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12865 ;;
12866
12867 irix5* | irix6* | nonstopux*)
12868 lt_prog_compiler_wl_F77='-Wl,'
12869 # PIC (with -KPIC) is the default.
12870 lt_prog_compiler_static_F77='-non_shared'
12871 ;;
12872
12873 newsos6)
12874 lt_prog_compiler_pic_F77='-KPIC'
12875 lt_prog_compiler_static_F77='-Bstatic'
12876 ;;
12877
12878 linux*)
12879 case $CC in
12880 icc* | ecc*)
12881 lt_prog_compiler_wl_F77='-Wl,'
12882 lt_prog_compiler_pic_F77='-KPIC'
12883 lt_prog_compiler_static_F77='-static'
12884 ;;
12885 ccc*)
12886 lt_prog_compiler_wl_F77='-Wl,'
12887 # All Alpha code is PIC.
12888 lt_prog_compiler_static_F77='-non_shared'
12889 ;;
12890 esac
12891 ;;
12892
12893 osf3* | osf4* | osf5*)
12894 lt_prog_compiler_wl_F77='-Wl,'
12895 # All OSF/1 code is PIC.
12896 lt_prog_compiler_static_F77='-non_shared'
12897 ;;
12898
12899 sco3.2v5*)
12900 lt_prog_compiler_pic_F77='-Kpic'
12901 lt_prog_compiler_static_F77='-dn'
12902 ;;
12903
12904 solaris*)
12905 lt_prog_compiler_wl_F77='-Wl,'
12906 lt_prog_compiler_pic_F77='-KPIC'
12907 lt_prog_compiler_static_F77='-Bstatic'
12908 ;;
12909
12910 sunos4*)
12911 lt_prog_compiler_wl_F77='-Qoption ld '
12912 lt_prog_compiler_pic_F77='-PIC'
12913 lt_prog_compiler_static_F77='-Bstatic'
12914 ;;
12915
12916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12917 lt_prog_compiler_wl_F77='-Wl,'
12918 lt_prog_compiler_pic_F77='-KPIC'
12919 lt_prog_compiler_static_F77='-Bstatic'
12920 ;;
12921
12922 sysv4*MP*)
12923 if test -d /usr/nec ;then
12924 lt_prog_compiler_pic_F77='-Kconform_pic'
12925 lt_prog_compiler_static_F77='-Bstatic'
12926 fi
12927 ;;
12928
12929 uts4*)
12930 lt_prog_compiler_pic_F77='-pic'
12931 lt_prog_compiler_static_F77='-Bstatic'
12932 ;;
12933
12934 *)
12935 lt_prog_compiler_can_build_shared_F77=no
12936 ;;
12937 esac
12938 fi
12939
12940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12941echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12942
12943#
12944# Check to make sure the PIC flag actually works.
12945#
12946if test -n "$lt_prog_compiler_pic_F77"; then
12947
12948echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12949echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12950if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
12953 lt_prog_compiler_pic_works_F77=no
12954 ac_outfile=conftest.$ac_objext
12955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12956 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12957 # Insert the option either (1) after the last *FLAGS variable, or
12958 # (2) before a word containing "conftest.", or (3) at the end.
12959 # Note that $ac_compile itself does not contain backslashes and begins
12960 # with a dollar sign (not a hyphen), so the echo should work correctly.
12961 # The option is referenced via a variable to avoid confusing sed.
12962 lt_compile=`echo "$ac_compile" | $SED \
12963 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12965 -e 's:$: $lt_compiler_flag:'`
12966 (eval echo "\"\$as_me:12966: $lt_compile\"" >&5)
12967 (eval "$lt_compile" 2>conftest.err)
12968 ac_status=$?
12969 cat conftest.err >&5
12970 echo "$as_me:12970: \$? = $ac_status" >&5
12971 if (exit $ac_status) && test -s "$ac_outfile"; then
12972 # The compiler can only warn and ignore the option if not recognized
12973 # So say no if there are warnings
12974 if test ! -s conftest.err; then
12975 lt_prog_compiler_pic_works_F77=yes
12976 fi
12977 fi
12978 $rm conftest*
12979
12980fi
12981echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12982echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12983
12984if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12985 case $lt_prog_compiler_pic_F77 in
12986 "" | " "*) ;;
12987 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12988 esac
12989else
12990 lt_prog_compiler_pic_F77=
12991 lt_prog_compiler_can_build_shared_F77=no
12992fi
12993
12994fi
12995case "$host_os" in
12996 # For platforms which do not support PIC, -DPIC is meaningless:
12997 *djgpp*)
12998 lt_prog_compiler_pic_F77=
12999 ;;
13000 *)
13001 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13002 ;;
13003esac
13004
13005echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13006echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13007if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009else
13010 lt_cv_prog_compiler_c_o_F77=no
13011 $rm -r conftest 2>/dev/null
13012 mkdir conftest
13013 cd conftest
13014 mkdir out
13015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13016
13017 lt_compiler_flag="-o out/conftest2.$ac_objext"
13018 # Insert the option either (1) after the last *FLAGS variable, or
13019 # (2) before a word containing "conftest.", or (3) at the end.
13020 # Note that $ac_compile itself does not contain backslashes and begins
13021 # with a dollar sign (not a hyphen), so the echo should work correctly.
13022 lt_compile=`echo "$ac_compile" | $SED \
13023 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13025 -e 's:$: $lt_compiler_flag:'`
13026 (eval echo "\"\$as_me:13026: $lt_compile\"" >&5)
13027 (eval "$lt_compile" 2>out/conftest.err)
13028 ac_status=$?
13029 cat out/conftest.err >&5
13030 echo "$as_me:13030: \$? = $ac_status" >&5
13031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13032 then
13033 # The compiler can only warn and ignore the option if not recognized
13034 # So say no if there are warnings
13035 if test ! -s out/conftest.err; then
13036 lt_cv_prog_compiler_c_o_F77=yes
13037 fi
13038 fi
13039 chmod u+w .
13040 $rm conftest*
13041 # SGI C++ compiler will create directory out/ii_files/ for
13042 # template instantiation
13043 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13044 $rm out/* && rmdir out
13045 cd ..
13046 rmdir conftest
13047 $rm conftest*
13048
13049fi
13050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13051echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13052
13053
13054hard_links="nottested"
13055if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13056 # do not overwrite the value of need_locks provided by the user
13057 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13059 hard_links=yes
13060 $rm conftest*
13061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13062 touch conftest.a
13063 ln conftest.a conftest.b 2>&5 || hard_links=no
13064 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13065 echo "$as_me:$LINENO: result: $hard_links" >&5
13066echo "${ECHO_T}$hard_links" >&6
13067 if test "$hard_links" = no; then
13068 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13070 need_locks=warn
13071 fi
13072else
13073 need_locks=no
13074fi
13075
13076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13078
13079 runpath_var=
13080 allow_undefined_flag_F77=
13081 enable_shared_with_static_runtimes_F77=no
13082 archive_cmds_F77=
13083 archive_expsym_cmds_F77=
13084 old_archive_From_new_cmds_F77=
13085 old_archive_from_expsyms_cmds_F77=
13086 export_dynamic_flag_spec_F77=
13087 whole_archive_flag_spec_F77=
13088 thread_safe_flag_spec_F77=
13089 hardcode_libdir_flag_spec_F77=
13090 hardcode_libdir_flag_spec_ld_F77=
13091 hardcode_libdir_separator_F77=
13092 hardcode_direct_F77=no
13093 hardcode_minus_L_F77=no
13094 hardcode_shlibpath_var_F77=unsupported
13095 link_all_deplibs_F77=unknown
13096 hardcode_automatic_F77=no
13097 module_cmds_F77=
13098 module_expsym_cmds_F77=
13099 always_export_symbols_F77=no
13100 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13101 # include_expsyms should be a list of space-separated symbols to be *always*
13102 # included in the symbol list
13103 include_expsyms_F77=
13104 # exclude_expsyms can be an extended regexp of symbols to exclude
13105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13107 # as well as any symbol that contains `d'.
13108 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13110 # platforms (ab)use it in PIC code, but their linkers get confused if
13111 # the symbol is explicitly referenced. Since portable code cannot
13112 # rely on this symbol name, it's probably fine to never include it in
13113 # preloaded symbol tables.
13114 extract_expsyms_cmds=
13115
13116 case $host_os in
13117 cygwin* | mingw* | pw32*)
13118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13119 # When not using gcc, we currently assume that we are using
13120 # Microsoft Visual C++.
13121 if test "$GCC" != yes; then
13122 with_gnu_ld=no
13123 fi
13124 ;;
13125 openbsd*)
13126 with_gnu_ld=no
13127 ;;
13128 esac
13129
13130 ld_shlibs_F77=yes
13131 if test "$with_gnu_ld" = yes; then
13132 # If archive_cmds runs LD, not CC, wlarc should be empty
13133 wlarc='${wl}'
13134
13135 # See if GNU ld supports shared libraries.
13136 case $host_os in
13137 aix3* | aix4* | aix5*)
13138 # On AIX/PPC, the GNU linker is very broken
13139 if test "$host_cpu" != ia64; then
13140 ld_shlibs_F77=no
13141 cat <<EOF 1>&2
13142
13143*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13144*** to be unable to reliably create shared libraries on AIX.
13145*** Therefore, libtool is disabling shared libraries support. If you
13146*** really care for shared libraries, you may want to modify your PATH
13147*** so that a non-GNU linker is found, and then restart.
13148
13149EOF
13150 fi
13151 ;;
13152
13153 amigaos*)
13154 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)'
13155 hardcode_libdir_flag_spec_F77='-L$libdir'
13156 hardcode_minus_L_F77=yes
13157
13158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13159 # that the semantics of dynamic libraries on AmigaOS, at least up
13160 # to version 4, is to share data among multiple programs linked
13161 # with the same dynamic library. Since this doesn't match the
13162 # behavior of shared libraries on other platforms, we can't use
13163 # them.
13164 ld_shlibs_F77=no
13165 ;;
13166
13167 beos*)
13168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13169 allow_undefined_flag_F77=unsupported
13170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13171 # support --undefined. This deserves some investigation. FIXME
13172 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 else
13174 ld_shlibs_F77=no
13175 fi
13176 ;;
13177
13178 cygwin* | mingw* | pw32*)
13179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13180 # as there is no search path for DLLs.
13181 hardcode_libdir_flag_spec_F77='-L$libdir'
13182 allow_undefined_flag_F77=unsupported
13183 always_export_symbols_F77=no
13184 enable_shared_with_static_runtimes_F77=yes
13185 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13186
13187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13189 # If the export-symbols file already is a .def file (1st line
13190 # is EXPORTS), use it as is; otherwise, prepend...
13191 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192 cp $export_symbols $output_objdir/$soname.def;
13193 else
13194 echo EXPORTS > $output_objdir/$soname.def;
13195 cat $export_symbols >> $output_objdir/$soname.def;
13196 fi~
13197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13198 else
13199 ld_shlibs=no
13200 fi
13201 ;;
13202
13203 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13205 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13206 wlarc=
13207 else
13208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13210 fi
13211 ;;
13212
13213 solaris* | sysv5*)
13214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13215 ld_shlibs_F77=no
13216 cat <<EOF 1>&2
13217
13218*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13219*** create shared libraries on Solaris systems. Therefore, libtool
13220*** is disabling shared libraries support. We urge you to upgrade GNU
13221*** binutils to release 2.9.1 or newer. Another option is to modify
13222*** your PATH or compiler configuration so that the native linker is
13223*** used, and then restart.
13224
13225EOF
13226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13227 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13229 else
13230 ld_shlibs_F77=no
13231 fi
13232 ;;
13233
13234 sunos4*)
13235 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13236 wlarc=
13237 hardcode_direct_F77=yes
13238 hardcode_shlibpath_var_F77=no
13239 ;;
13240
13241 linux*)
13242 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13244 archive_cmds_F77="$tmp_archive_cmds"
13245 supports_anon_versioning=no
13246 case `$LD -v 2>/dev/null` in
13247 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13248 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13249 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13250 *\ 2.11.*) ;; # other 2.11 versions
13251 *) supports_anon_versioning=yes ;;
13252 esac
13253 if test $supports_anon_versioning = yes; then
13254 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13255cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13256$echo "local: *; };" >> $output_objdir/$libname.ver~
13257 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13258 else
13259 archive_expsym_cmds_F77="$tmp_archive_cmds"
13260 fi
13261 link_all_deplibs_F77=no
13262 else
13263 ld_shlibs_F77=no
13264 fi
13265 ;;
13266
13267 *)
13268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13271 else
13272 ld_shlibs_F77=no
13273 fi
13274 ;;
13275 esac
13276
13277 if test "$ld_shlibs_F77" = yes; then
13278 runpath_var=LD_RUN_PATH
13279 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13280 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13281 # ancient GNU ld didn't support --whole-archive et. al.
13282 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13283 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13284 else
13285 whole_archive_flag_spec_F77=
13286 fi
13287 fi
13288 else
13289 # PORTME fill in a description of your system's linker (not GNU ld)
13290 case $host_os in
13291 aix3*)
13292 allow_undefined_flag_F77=unsupported
13293 always_export_symbols_F77=yes
13294 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'
13295 # Note: this linker hardcodes the directories in LIBPATH if there
13296 # are no directories specified by -L.
13297 hardcode_minus_L_F77=yes
13298 if test "$GCC" = yes && test -z "$link_static_flag"; then
13299 # Neither direct hardcoding nor static linking is supported with a
13300 # broken collect2.
13301 hardcode_direct_F77=unsupported
13302 fi
13303 ;;
13304
13305 aix4* | aix5*)
13306 if test "$host_cpu" = ia64; then
13307 # On IA64, the linker does run time linking by default, so we don't
13308 # have to do anything special.
13309 aix_use_runtimelinking=no
13310 exp_sym_flag='-Bexport'
13311 no_entry_flag=""
13312 else
13313 # If we're using GNU nm, then we don't want the "-C" option.
13314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13316 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'
13317 else
13318 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'
13319 fi
13320 aix_use_runtimelinking=no
13321
13322 # Test if we are trying to use run time linking or normal
13323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13324 # need to do runtime linking.
13325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13326 for ld_flag in $LDFLAGS; do
13327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13328 aix_use_runtimelinking=yes
13329 break
13330 fi
13331 done
13332 esac
13333
13334 exp_sym_flag='-bexport'
13335 no_entry_flag='-bnoentry'
13336 fi
13337
13338 # When large executables or shared objects are built, AIX ld can
13339 # have problems creating the table of contents. If linking a library
13340 # or program results in "error TOC overflow" add -mminimal-toc to
13341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13343
13344 archive_cmds_F77=''
13345 hardcode_direct_F77=yes
13346 hardcode_libdir_separator_F77=':'
13347 link_all_deplibs_F77=yes
13348
13349 if test "$GCC" = yes; then
13350 case $host_os in aix4.012|aix4.012.*)
13351 # We only want to do this on AIX 4.2 and lower, the check
13352 # below for broken collect2 doesn't work under 4.3+
13353 collect2name=`${CC} -print-prog-name=collect2`
13354 if test -f "$collect2name" && \
13355 strings "$collect2name" | grep resolve_lib_name >/dev/null
13356 then
13357 # We have reworked collect2
13358 hardcode_direct_F77=yes
13359 else
13360 # We have old collect2
13361 hardcode_direct_F77=unsupported
13362 # It fails to find uninstalled libraries when the uninstalled
13363 # path is not listed in the libpath. Setting hardcode_minus_L
13364 # to unsupported forces relinking
13365 hardcode_minus_L_F77=yes
13366 hardcode_libdir_flag_spec_F77='-L$libdir'
13367 hardcode_libdir_separator_F77=
13368 fi
13369 esac
13370 shared_flag='-shared'
13371 else
13372 # not using gcc
13373 if test "$host_cpu" = ia64; then
13374 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13375 # chokes on -Wl,-G. The following line is correct:
13376 shared_flag='-G'
13377 else
13378 if test "$aix_use_runtimelinking" = yes; then
13379 shared_flag='${wl}-G'
13380 else
13381 shared_flag='${wl}-bM:SRE'
13382 fi
13383 fi
13384 fi
13385
13386 # It seems that -bexpall does not export symbols beginning with
13387 # underscore (_), so it is better to generate a list of symbols to export.
13388 always_export_symbols_F77=yes
13389 if test "$aix_use_runtimelinking" = yes; then
13390 # Warning - without using the other runtime loading flags (-brtl),
13391 # -berok will link without error, but may produce a broken library.
13392 allow_undefined_flag_F77='-berok'
13393 # Determine the default libpath from the value encoded in an empty executable.
13394 cat >conftest.$ac_ext <<_ACEOF
13395 program main
13396
13397 end
13398_ACEOF
13399rm -f conftest.$ac_objext conftest$ac_exeext
13400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13401 (eval $ac_link) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420
13421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13422}'`
13423# Check for a 64-bit object if we didn't find anything.
13424if 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; }
13425}'`; fi
13426else
13427 echo "$as_me: failed program was:" >&5
13428sed 's/^/| /' conftest.$ac_ext >&5
13429
13430fi
13431rm -f conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13434
13435 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13436 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"
13437 else
13438 if test "$host_cpu" = ia64; then
13439 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13440 allow_undefined_flag_F77="-z nodefs"
13441 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"
13442 else
13443 # Determine the default libpath from the value encoded in an empty executable.
13444 cat >conftest.$ac_ext <<_ACEOF
13445 program main
13446
13447 end
13448_ACEOF
13449rm -f conftest.$ac_objext conftest$ac_exeext
13450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13451 (eval $ac_link) 2>conftest.er1
13452 ac_status=$?
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -f conftest.er1
13455 cat conftest.err >&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } &&
13458 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest$ac_exeext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470
13471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13472}'`
13473# Check for a 64-bit object if we didn't find anything.
13474if 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; }
13475}'`; fi
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480fi
13481rm -f conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13484
13485 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13486 # Warning - without using the other run time loading flags,
13487 # -berok will link without error, but may produce a broken library.
13488 no_undefined_flag_F77=' ${wl}-bernotok'
13489 allow_undefined_flag_F77=' ${wl}-berok'
13490 # -bexpall does not export symbols beginning with underscore (_)
13491 always_export_symbols_F77=yes
13492 # Exported symbols can be pulled into shared objects from archives
13493 whole_archive_flag_spec_F77=' '
13494 archive_cmds_need_lc_F77=yes
13495 # This is similar to how AIX traditionally builds it's shared libraries.
13496 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'
13497 fi
13498 fi
13499 ;;
13500
13501 amigaos*)
13502 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)'
13503 hardcode_libdir_flag_spec_F77='-L$libdir'
13504 hardcode_minus_L_F77=yes
13505 # see comment about different semantics on the GNU ld section
13506 ld_shlibs_F77=no
13507 ;;
13508
13509 bsdi4*)
13510 export_dynamic_flag_spec_F77=-rdynamic
13511 ;;
13512
13513 cygwin* | mingw* | pw32*)
13514 # When not using gcc, we currently assume that we are using
13515 # Microsoft Visual C++.
13516 # hardcode_libdir_flag_spec is actually meaningless, as there is
13517 # no search path for DLLs.
13518 hardcode_libdir_flag_spec_F77=' '
13519 allow_undefined_flag_F77=unsupported
13520 # Tell ltmain to make .lib files, not .a files.
13521 libext=lib
13522 # Tell ltmain to make .dll files, not .so files.
13523 shrext_cmds=".dll"
13524 # FIXME: Setting linknames here is a bad hack.
13525 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13526 # The linker will automatically build a .lib file if we build a DLL.
13527 old_archive_From_new_cmds_F77='true'
13528 # FIXME: Should let the user specify the lib program.
13529 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13530 fix_srcfile_path='`cygpath -w "$srcfile"`'
13531 enable_shared_with_static_runtimes_F77=yes
13532 ;;
13533
13534 darwin* | rhapsody*)
13535 if test "$GXX" = yes ; then
13536 archive_cmds_need_lc_F77=no
13537 case "$host_os" in
13538 rhapsody* | darwin1.[012])
13539 allow_undefined_flag_F77='-undefined suppress'
13540 ;;
13541 *) # Darwin 1.3 on
13542 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13543 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13544 else
13545 case ${MACOSX_DEPLOYMENT_TARGET} in
13546 10.[012])
13547 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13548 ;;
13549 10.*)
13550 allow_undefined_flag_F77='-undefined dynamic_lookup'
13551 ;;
13552 esac
13553 fi
13554 ;;
13555 esac
13556 lt_int_apple_cc_single_mod=no
13557 output_verbose_link_cmd='echo'
13558 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13559 lt_int_apple_cc_single_mod=yes
13560 fi
13561 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13562 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13563 else
13564 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'
13565 fi
13566 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13567 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13568 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13569 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}'
13570 else
13571 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}'
13572 fi
13573 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}'
13574 hardcode_direct_F77=no
13575 hardcode_automatic_F77=yes
13576 hardcode_shlibpath_var_F77=unsupported
13577 whole_archive_flag_spec_F77='-all_load $convenience'
13578 link_all_deplibs_F77=yes
13579 else
13580 ld_shlibs_F77=no
13581 fi
13582 ;;
13583
13584 dgux*)
13585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_libdir_flag_spec_F77='-L$libdir'
13587 hardcode_shlibpath_var_F77=no
13588 ;;
13589
13590 freebsd1*)
13591 ld_shlibs_F77=no
13592 ;;
13593
13594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13595 # support. Future versions do this automatically, but an explicit c++rt0.o
13596 # does not break anything, and helps significantly (at the cost of a little
13597 # extra space).
13598 freebsd2.2*)
13599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13600 hardcode_libdir_flag_spec_F77='-R$libdir'
13601 hardcode_direct_F77=yes
13602 hardcode_shlibpath_var_F77=no
13603 ;;
13604
13605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13606 freebsd2*)
13607 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13608 hardcode_direct_F77=yes
13609 hardcode_minus_L_F77=yes
13610 hardcode_shlibpath_var_F77=no
13611 ;;
13612
13613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13614 freebsd* | kfreebsd*-gnu)
13615 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13616 hardcode_libdir_flag_spec_F77='-R$libdir'
13617 hardcode_direct_F77=yes
13618 hardcode_shlibpath_var_F77=no
13619 ;;
13620
13621 hpux9*)
13622 if test "$GCC" = yes; then
13623 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'
13624 else
13625 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'
13626 fi
13627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13628 hardcode_libdir_separator_F77=:
13629 hardcode_direct_F77=yes
13630
13631 # hardcode_minus_L: Not really in the search PATH,
13632 # but as the default location of the library.
13633 hardcode_minus_L_F77=yes
13634 export_dynamic_flag_spec_F77='${wl}-E'
13635 ;;
13636
13637 hpux10* | hpux11*)
13638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13639 case "$host_cpu" in
13640 hppa*64*|ia64*)
13641 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 ;;
13643 *)
13644 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13645 ;;
13646 esac
13647 else
13648 case "$host_cpu" in
13649 hppa*64*|ia64*)
13650 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13651 ;;
13652 *)
13653 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13654 ;;
13655 esac
13656 fi
13657 if test "$with_gnu_ld" = no; then
13658 case "$host_cpu" in
13659 hppa*64*)
13660 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13661 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13662 hardcode_libdir_separator_F77=:
13663 hardcode_direct_F77=no
13664 hardcode_shlibpath_var_F77=no
13665 ;;
13666 ia64*)
13667 hardcode_libdir_flag_spec_F77='-L$libdir'
13668 hardcode_direct_F77=no
13669 hardcode_shlibpath_var_F77=no
13670
13671 # hardcode_minus_L: Not really in the search PATH,
13672 # but as the default location of the library.
13673 hardcode_minus_L_F77=yes
13674 ;;
13675 *)
13676 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13677 hardcode_libdir_separator_F77=:
13678 hardcode_direct_F77=yes
13679 export_dynamic_flag_spec_F77='${wl}-E'
13680
13681 # hardcode_minus_L: Not really in the search PATH,
13682 # but as the default location of the library.
13683 hardcode_minus_L_F77=yes
13684 ;;
13685 esac
13686 fi
13687 ;;
13688
13689 irix5* | irix6* | nonstopux*)
13690 if test "$GCC" = yes; then
13691 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'
13692 else
13693 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'
13694 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13695 fi
13696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13697 hardcode_libdir_separator_F77=:
13698 link_all_deplibs_F77=yes
13699 ;;
13700
13701 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13703 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13704 else
13705 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13706 fi
13707 hardcode_libdir_flag_spec_F77='-R$libdir'
13708 hardcode_direct_F77=yes
13709 hardcode_shlibpath_var_F77=no
13710 ;;
13711
13712 newsos6)
13713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_direct_F77=yes
13715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_F77=:
13717 hardcode_shlibpath_var_F77=no
13718 ;;
13719
13720 openbsd*)
13721 hardcode_direct_F77=yes
13722 hardcode_shlibpath_var_F77=no
13723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13725 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13726 export_dynamic_flag_spec_F77='${wl}-E'
13727 else
13728 case $host_os in
13729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13730 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13731 hardcode_libdir_flag_spec_F77='-R$libdir'
13732 ;;
13733 *)
13734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736 ;;
13737 esac
13738 fi
13739 ;;
13740
13741 os2*)
13742 hardcode_libdir_flag_spec_F77='-L$libdir'
13743 hardcode_minus_L_F77=yes
13744 allow_undefined_flag_F77=unsupported
13745 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'
13746 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13747 ;;
13748
13749 osf3*)
13750 if test "$GCC" = yes; then
13751 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13752 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'
13753 else
13754 allow_undefined_flag_F77=' -expect_unresolved \*'
13755 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'
13756 fi
13757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13758 hardcode_libdir_separator_F77=:
13759 ;;
13760
13761 osf4* | osf5*) # as osf3* with the addition of -msym flag
13762 if test "$GCC" = yes; then
13763 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13764 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'
13765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13766 else
13767 allow_undefined_flag_F77=' -expect_unresolved \*'
13768 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'
13769 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~
13770 $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'
13771
13772 # Both c and cxx compiler support -rpath directly
13773 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13774 fi
13775 hardcode_libdir_separator_F77=:
13776 ;;
13777
13778 sco3.2v5*)
13779 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13780 hardcode_shlibpath_var_F77=no
13781 export_dynamic_flag_spec_F77='${wl}-Bexport'
13782 runpath_var=LD_RUN_PATH
13783 hardcode_runpath_var=yes
13784 ;;
13785
13786 solaris*)
13787 no_undefined_flag_F77=' -z text'
13788 if test "$GCC" = yes; then
13789 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13791 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13792 else
13793 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13794 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13795 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13796 fi
13797 hardcode_libdir_flag_spec_F77='-R$libdir'
13798 hardcode_shlibpath_var_F77=no
13799 case $host_os in
13800 solaris2.[0-5] | solaris2.[0-5].*) ;;
13801 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13802 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13803 esac
13804 link_all_deplibs_F77=yes
13805 ;;
13806
13807 sunos4*)
13808 if test "x$host_vendor" = xsequent; then
13809 # Use $CC to link under sequent, because it throws in some extra .o
13810 # files that make .init and .fini sections work.
13811 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13812 else
13813 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13814 fi
13815 hardcode_libdir_flag_spec_F77='-L$libdir'
13816 hardcode_direct_F77=yes
13817 hardcode_minus_L_F77=yes
13818 hardcode_shlibpath_var_F77=no
13819 ;;
13820
13821 sysv4)
13822 case $host_vendor in
13823 sni)
13824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_direct_F77=yes # is this really true???
13826 ;;
13827 siemens)
13828 ## LD is ld it makes a PLAMLIB
13829 ## CC just makes a GrossModule.
13830 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13831 reload_cmds_F77='$CC -r -o $output$reload_objs'
13832 hardcode_direct_F77=no
13833 ;;
13834 motorola)
13835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13837 ;;
13838 esac
13839 runpath_var='LD_RUN_PATH'
13840 hardcode_shlibpath_var_F77=no
13841 ;;
13842
13843 sysv4.3*)
13844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845 hardcode_shlibpath_var_F77=no
13846 export_dynamic_flag_spec_F77='-Bexport'
13847 ;;
13848
13849 sysv4*MP*)
13850 if test -d /usr/nec; then
13851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13852 hardcode_shlibpath_var_F77=no
13853 runpath_var=LD_RUN_PATH
13854 hardcode_runpath_var=yes
13855 ld_shlibs_F77=yes
13856 fi
13857 ;;
13858
13859 sysv4.2uw2*)
13860 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13861 hardcode_direct_F77=yes
13862 hardcode_minus_L_F77=no
13863 hardcode_shlibpath_var_F77=no
13864 hardcode_runpath_var=yes
13865 runpath_var=LD_RUN_PATH
13866 ;;
13867
13868 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13869 no_undefined_flag_F77='${wl}-z ${wl}text'
13870 if test "$GCC" = yes; then
13871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 else
13873 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 fi
13875 runpath_var='LD_RUN_PATH'
13876 hardcode_shlibpath_var_F77=no
13877 ;;
13878
13879 sysv5*)
13880 no_undefined_flag_F77=' -z text'
13881 # $CC -shared without GNU ld will not create a library from C++
13882 # object files and a static libstdc++, better avoid it by now
13883 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13885 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13886 hardcode_libdir_flag_spec_F77=
13887 hardcode_shlibpath_var_F77=no
13888 runpath_var='LD_RUN_PATH'
13889 ;;
13890
13891 uts4*)
13892 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13893 hardcode_libdir_flag_spec_F77='-L$libdir'
13894 hardcode_shlibpath_var_F77=no
13895 ;;
13896
13897 *)
13898 ld_shlibs_F77=no
13899 ;;
13900 esac
13901 fi
13902
13903echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13904echo "${ECHO_T}$ld_shlibs_F77" >&6
13905test "$ld_shlibs_F77" = no && can_build_shared=no
13906
13907variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13908if test "$GCC" = yes; then
13909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13910fi
13911
13912#
13913# Do we need to explicitly link libc?
13914#
13915case "x$archive_cmds_need_lc_F77" in
13916x|xyes)
13917 # Assume -lc should be added
13918 archive_cmds_need_lc_F77=yes
13919
13920 if test "$enable_shared" = yes && test "$GCC" = yes; then
13921 case $archive_cmds_F77 in
13922 *'~'*)
13923 # FIXME: we may have to deal with multi-command sequences.
13924 ;;
13925 '$CC '*)
13926 # Test whether the compiler implicitly links with -lc since on some
13927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13928 # to ld, don't add -lc before -lgcc.
13929 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13931 $rm conftest*
13932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13933
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } 2>conftest.err; then
13939 soname=conftest
13940 lib=conftest
13941 libobjs=conftest.$ac_objext
13942 deplibs=
13943 wl=$lt_prog_compiler_wl_F77
13944 compiler_flags=-v
13945 linker_flags=-v
13946 verstring=
13947 output_objdir=.
13948 libname=conftest
13949 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13950 allow_undefined_flag_F77=
13951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13952 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }
13956 then
13957 archive_cmds_need_lc_F77=no
13958 else
13959 archive_cmds_need_lc_F77=yes
13960 fi
13961 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13962 else
13963 cat conftest.err 1>&5
13964 fi
13965 $rm conftest*
13966 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13967echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13968 ;;
13969 esac
13970 fi
13971 ;;
13972esac
13973
13974echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13975echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13976library_names_spec=
13977libname_spec='lib$name'
13978soname_spec=
13979shrext_cmds=".so"
13980postinstall_cmds=
13981postuninstall_cmds=
13982finish_cmds=
13983finish_eval=
13984shlibpath_var=
13985shlibpath_overrides_runpath=unknown
13986version_type=none
13987dynamic_linker="$host_os ld.so"
13988sys_lib_dlsearch_path_spec="/lib /usr/lib"
13989if test "$GCC" = yes; then
13990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13992 # if the path contains ";" then we assume it to be the separator
13993 # otherwise default to the standard path separator (i.e. ":") - it is
13994 # assumed that no part of a normal pathname contains ";" but that should
13995 # okay in the real world where ";" in dirpaths is itself problematic.
13996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13997 else
13998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13999 fi
14000else
14001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14002fi
14003need_lib_prefix=unknown
14004hardcode_into_libs=no
14005
14006# when you set need_version to no, make sure it does not cause -set_version
14007# flags to be left without arguments
14008need_version=unknown
14009
14010case $host_os in
14011aix3*)
14012 version_type=linux
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14014 shlibpath_var=LIBPATH
14015
14016 # AIX 3 has no versioning support, so we append a major version to the name.
14017 soname_spec='${libname}${release}${shared_ext}$major'
14018 ;;
14019
14020aix4* | aix5*)
14021 version_type=linux
14022 need_lib_prefix=no
14023 need_version=no
14024 hardcode_into_libs=yes
14025 if test "$host_cpu" = ia64; then
14026 # AIX 5 supports IA64
14027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14028 shlibpath_var=LD_LIBRARY_PATH
14029 else
14030 # With GCC up to 2.95.x, collect2 would create an import file
14031 # for dependence libraries. The import file would start with
14032 # the line `#! .'. This would cause the generated library to
14033 # depend on `.', always an invalid library. This was fixed in
14034 # development snapshots of GCC prior to 3.0.
14035 case $host_os in
14036 aix4 | aix4.[01] | aix4.[01].*)
14037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14038 echo ' yes '
14039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14040 :
14041 else
14042 can_build_shared=no
14043 fi
14044 ;;
14045 esac
14046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14047 # soname into executable. Probably we can add versioning support to
14048 # collect2, so additional links can be useful in future.
14049 if test "$aix_use_runtimelinking" = yes; then
14050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14051 # instead of lib<name>.a to let people know that these are not
14052 # typical AIX shared libraries.
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14054 else
14055 # We preserve .a as extension for shared libraries through AIX4.2
14056 # and later when we are not doing run time linking.
14057 library_names_spec='${libname}${release}.a $libname.a'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 fi
14060 shlibpath_var=LIBPATH
14061 fi
14062 ;;
14063
14064amigaos*)
14065 library_names_spec='$libname.ixlibrary $libname.a'
14066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14067 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'
14068 ;;
14069
14070beos*)
14071 library_names_spec='${libname}${shared_ext}'
14072 dynamic_linker="$host_os ld.so"
14073 shlibpath_var=LIBRARY_PATH
14074 ;;
14075
14076bsdi4*)
14077 version_type=linux
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14085 # the default ld.so.conf also contains /usr/contrib/lib and
14086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14087 # libtool to hard-code these into programs
14088 ;;
14089
14090cygwin* | mingw* | pw32*)
14091 version_type=windows
14092 shrext_cmds=".dll"
14093 need_version=no
14094 need_lib_prefix=no
14095
14096 case $GCC,$host_os in
14097 yes,cygwin* | yes,mingw* | yes,pw32*)
14098 library_names_spec='$libname.dll.a'
14099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14100 postinstall_cmds='base_file=`basename \${file}`~
14101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14102 dldir=$destdir/`dirname \$dlpath`~
14103 test -d \$dldir || mkdir -p \$dldir~
14104 $install_prog $dir/$dlname \$dldir/$dlname'
14105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14106 dlpath=$dir/\$dldll~
14107 $rm \$dlpath'
14108 shlibpath_overrides_runpath=yes
14109
14110 case $host_os in
14111 cygwin*)
14112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14115 ;;
14116 mingw*)
14117 # MinGW DLLs use traditional 'lib' prefix
14118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14121 # It is most probably a Windows format PATH printed by
14122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14123 # path with ; separators, and with drive letters. We can handle the
14124 # drive letters (cygwin fileutils understands them), so leave them,
14125 # especially as we might pass files found there to a mingw objdump,
14126 # which wouldn't understand a cygwinified path. Ahh.
14127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14128 else
14129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14130 fi
14131 ;;
14132 pw32*)
14133 # pw32 DLLs use 'pw' prefix rather than 'lib'
14134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14135 ;;
14136 esac
14137 ;;
14138
14139 *)
14140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14141 ;;
14142 esac
14143 dynamic_linker='Win32 ld.exe'
14144 # FIXME: first we should search . and the directory the executable is in
14145 shlibpath_var=PATH
14146 ;;
14147
14148darwin* | rhapsody*)
14149 dynamic_linker="$host_os dyld"
14150 version_type=darwin
14151 need_lib_prefix=no
14152 need_version=no
14153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14154 soname_spec='${libname}${release}${major}$shared_ext'
14155 shlibpath_overrides_runpath=yes
14156 shlibpath_var=DYLD_LIBRARY_PATH
14157 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14159 if test "$GCC" = yes; then
14160 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"`
14161 else
14162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14163 fi
14164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14165 ;;
14166
14167dgux*)
14168 version_type=linux
14169 need_lib_prefix=no
14170 need_version=no
14171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 ;;
14175
14176freebsd1*)
14177 dynamic_linker=no
14178 ;;
14179
14180kfreebsd*-gnu)
14181 version_type=linux
14182 need_lib_prefix=no
14183 need_version=no
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14185 soname_spec='${libname}${release}${shared_ext}$major'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=no
14188 hardcode_into_libs=yes
14189 dynamic_linker='GNU ld.so'
14190 ;;
14191
14192freebsd*)
14193 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14194 version_type=freebsd-$objformat
14195 case $version_type in
14196 freebsd-elf*)
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14198 need_version=no
14199 need_lib_prefix=no
14200 ;;
14201 freebsd-*)
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14203 need_version=yes
14204 ;;
14205 esac
14206 shlibpath_var=LD_LIBRARY_PATH
14207 case $host_os in
14208 freebsd2*)
14209 shlibpath_overrides_runpath=yes
14210 ;;
14211 freebsd3.01* | freebsdelf3.01*)
14212 shlibpath_overrides_runpath=yes
14213 hardcode_into_libs=yes
14214 ;;
14215 *) # from 3.2 on
14216 shlibpath_overrides_runpath=no
14217 hardcode_into_libs=yes
14218 ;;
14219 esac
14220 ;;
14221
14222gnu*)
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 shlibpath_var=LD_LIBRARY_PATH
14229 hardcode_into_libs=yes
14230 ;;
14231
14232hpux9* | hpux10* | hpux11*)
14233 # Give a soname corresponding to the major version so that dld.sl refuses to
14234 # link against other versions.
14235 version_type=sunos
14236 need_lib_prefix=no
14237 need_version=no
14238 case "$host_cpu" in
14239 ia64*)
14240 shrext_cmds='.so'
14241 hardcode_into_libs=yes
14242 dynamic_linker="$host_os dld.so"
14243 shlibpath_var=LD_LIBRARY_PATH
14244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 if test "X$HPUX_IA64_MODE" = X32; then
14248 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14249 else
14250 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14251 fi
14252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14253 ;;
14254 hppa*64*)
14255 shrext_cmds='.sl'
14256 hardcode_into_libs=yes
14257 dynamic_linker="$host_os dld.sl"
14258 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14264 ;;
14265 *)
14266 shrext_cmds='.sl'
14267 dynamic_linker="$host_os dld.sl"
14268 shlibpath_var=SHLIB_PATH
14269 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 ;;
14273 esac
14274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14275 postinstall_cmds='chmod 555 $lib'
14276 ;;
14277
14278irix5* | irix6* | nonstopux*)
14279 case $host_os in
14280 nonstopux*) version_type=nonstopux ;;
14281 *)
14282 if test "$lt_cv_prog_gnu_ld" = yes; then
14283 version_type=linux
14284 else
14285 version_type=irix
14286 fi ;;
14287 esac
14288 need_lib_prefix=no
14289 need_version=no
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14292 case $host_os in
14293 irix5* | nonstopux*)
14294 libsuff= shlibsuff=
14295 ;;
14296 *)
14297 case $LD in # libtool.m4 will add one of these switches to LD
14298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14299 libsuff= shlibsuff= libmagic=32-bit;;
14300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14301 libsuff=32 shlibsuff=N32 libmagic=N32;;
14302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14304 *) libsuff= shlibsuff= libmagic=never-match;;
14305 esac
14306 ;;
14307 esac
14308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14309 shlibpath_overrides_runpath=no
14310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14312 hardcode_into_libs=yes
14313 ;;
14314
14315# No shared lib support for Linux oldld, aout, or coff.
14316linux*oldld* | linux*aout* | linux*coff*)
14317 dynamic_linker=no
14318 ;;
14319
14320# This must be Linux ELF.
14321linux*)
14322 version_type=linux
14323 need_lib_prefix=no
14324 need_version=no
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=no
14330 # This implies no fast_install, which is unacceptable.
14331 # Some rework will be needed to allow for fast_install
14332 # before this can be enabled.
14333 hardcode_into_libs=yes
14334
14335 # Append ld.so.conf contents to the search path
14336 if test -f /etc/ld.so.conf; then
14337 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14339 fi
14340
14341 # We used to test for /lib/ld.so.1 and disable shared libraries on
14342 # powerpc, because MkLinux only supported shared libraries with the
14343 # GNU dynamic linker. Since this was broken with cross compilers,
14344 # most powerpc-linux boxes support dynamic linking these days and
14345 # people can always --disable-shared, the test was removed, and we
14346 # assume the GNU/Linux dynamic linker is in use.
14347 dynamic_linker='GNU/Linux ld.so'
14348 ;;
14349
14350netbsdelf*-gnu)
14351 version_type=linux
14352 need_lib_prefix=no
14353 need_version=no
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14358 hardcode_into_libs=yes
14359 dynamic_linker='NetBSD ld.elf_so'
14360 ;;
14361
14362knetbsd*-gnu)
14363 version_type=linux
14364 need_lib_prefix=no
14365 need_version=no
14366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14367 soname_spec='${libname}${release}${shared_ext}$major'
14368 shlibpath_var=LD_LIBRARY_PATH
14369 shlibpath_overrides_runpath=no
14370 hardcode_into_libs=yes
14371 dynamic_linker='GNU ld.so'
14372 ;;
14373
14374netbsd*)
14375 version_type=sunos
14376 need_lib_prefix=no
14377 need_version=no
14378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14381 dynamic_linker='NetBSD (a.out) ld.so'
14382 else
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 dynamic_linker='NetBSD ld.elf_so'
14386 fi
14387 shlibpath_var=LD_LIBRARY_PATH
14388 shlibpath_overrides_runpath=yes
14389 hardcode_into_libs=yes
14390 ;;
14391
14392newsos6)
14393 version_type=linux
14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 shlibpath_overrides_runpath=yes
14397 ;;
14398
14399nto-qnx*)
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=yes
14407 ;;
14408
14409openbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=yes
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14417 case $host_os in
14418 openbsd2.[89] | openbsd2.[89].*)
14419 shlibpath_overrides_runpath=no
14420 ;;
14421 *)
14422 shlibpath_overrides_runpath=yes
14423 ;;
14424 esac
14425 else
14426 shlibpath_overrides_runpath=yes
14427 fi
14428 ;;
14429
14430os2*)
14431 libname_spec='$name'
14432 shrext_cmds=".dll"
14433 need_lib_prefix=no
14434 library_names_spec='$libname${shared_ext} $libname.a'
14435 dynamic_linker='OS/2 ld.exe'
14436 shlibpath_var=LIBPATH
14437 ;;
14438
14439osf3* | osf4* | osf5*)
14440 version_type=osf
14441 need_lib_prefix=no
14442 need_version=no
14443 soname_spec='${libname}${release}${shared_ext}$major'
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14448 ;;
14449
14450sco3.2v5*)
14451 version_type=osf
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 ;;
14456
14457solaris*)
14458 version_type=linux
14459 need_lib_prefix=no
14460 need_version=no
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes
14465 hardcode_into_libs=yes
14466 # ldd complains unless libraries are executable
14467 postinstall_cmds='chmod +x $lib'
14468 ;;
14469
14470sunos4*)
14471 version_type=sunos
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=yes
14476 if test "$with_gnu_ld" = yes; then
14477 need_lib_prefix=no
14478 fi
14479 need_version=yes
14480 ;;
14481
14482sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14483 version_type=linux
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 case $host_vendor in
14488 sni)
14489 shlibpath_overrides_runpath=no
14490 need_lib_prefix=no
14491 export_dynamic_flag_spec='${wl}-Blargedynsym'
14492 runpath_var=LD_RUN_PATH
14493 ;;
14494 siemens)
14495 need_lib_prefix=no
14496 ;;
14497 motorola)
14498 need_lib_prefix=no
14499 need_version=no
14500 shlibpath_overrides_runpath=no
14501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14502 ;;
14503 esac
14504 ;;
14505
14506sysv4*MP*)
14507 if test -d /usr/nec ;then
14508 version_type=linux
14509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14510 soname_spec='$libname${shared_ext}.$major'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 fi
14513 ;;
14514
14515uts4*)
14516 version_type=linux
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 shlibpath_var=LD_LIBRARY_PATH
14520 ;;
14521
14522*)
14523 dynamic_linker=no
14524 ;;
14525esac
14526echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14527echo "${ECHO_T}$dynamic_linker" >&6
14528test "$dynamic_linker" = no && can_build_shared=no
14529
14530echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14532hardcode_action_F77=
14533if test -n "$hardcode_libdir_flag_spec_F77" || \
14534 test -n "$runpath_var F77" || \
14535 test "X$hardcode_automatic_F77"="Xyes" ; then
14536
14537 # We can hardcode non-existant directories.
14538 if test "$hardcode_direct_F77" != no &&
14539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14540 # have to relink, otherwise we might link with an installed library
14541 # when we should be linking with a yet-to-be-installed one
14542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14543 test "$hardcode_minus_L_F77" != no; then
14544 # Linking always hardcodes the temporary library directory.
14545 hardcode_action_F77=relink
14546 else
14547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14548 hardcode_action_F77=immediate
14549 fi
14550else
14551 # We cannot hardcode anything, or else we can only hardcode existing
14552 # directories.
14553 hardcode_action_F77=unsupported
14554fi
14555echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14556echo "${ECHO_T}$hardcode_action_F77" >&6
14557
14558if test "$hardcode_action_F77" = relink; then
14559 # Fast installation is not supported
14560 enable_fast_install=no
14561elif test "$shlibpath_overrides_runpath" = yes ||
14562 test "$enable_shared" = no; then
14563 # Fast installation is not necessary
14564 enable_fast_install=needless
14565fi
14566
14567striplib=
14568old_striplib=
14569echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14570echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14571if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14574 echo "$as_me:$LINENO: result: yes" >&5
14575echo "${ECHO_T}yes" >&6
14576else
14577# FIXME - insert some real tests, host_os isn't really good enough
14578 case $host_os in
14579 darwin*)
14580 if test -n "$STRIP" ; then
14581 striplib="$STRIP -x"
14582 echo "$as_me:$LINENO: result: yes" >&5
14583echo "${ECHO_T}yes" >&6
14584 else
14585 echo "$as_me:$LINENO: result: no" >&5
14586echo "${ECHO_T}no" >&6
14587fi
14588 ;;
14589 *)
14590 echo "$as_me:$LINENO: result: no" >&5
14591echo "${ECHO_T}no" >&6
14592 ;;
14593 esac
14594fi
14595
14596
14597
14598# The else clause should only fire when bootstrapping the
14599# libtool distribution, otherwise you forgot to ship ltmain.sh
14600# with your package, and you will get complaints that there are
14601# no rules to generate ltmain.sh.
14602if test -f "$ltmain"; then
14603 # See if we are running on zsh, and set the options which allow our commands through
14604 # without removal of \ escapes.
14605 if test -n "${ZSH_VERSION+set}" ; then
14606 setopt NO_GLOB_SUBST
14607 fi
14608 # Now quote all the things that may contain metacharacters while being
14609 # careful not to overquote the AC_SUBSTed values. We take copies of the
14610 # variables and quote the copies for generation of the libtool script.
14611 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14612 SED SHELL STRIP \
14613 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14614 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14615 deplibs_check_method reload_flag reload_cmds need_locks \
14616 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14617 lt_cv_sys_global_symbol_to_c_name_address \
14618 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14619 old_postinstall_cmds old_postuninstall_cmds \
14620 compiler_F77 \
14621 CC_F77 \
14622 LD_F77 \
14623 lt_prog_compiler_wl_F77 \
14624 lt_prog_compiler_pic_F77 \
14625 lt_prog_compiler_static_F77 \
14626 lt_prog_compiler_no_builtin_flag_F77 \
14627 export_dynamic_flag_spec_F77 \
14628 thread_safe_flag_spec_F77 \
14629 whole_archive_flag_spec_F77 \
14630 enable_shared_with_static_runtimes_F77 \
14631 old_archive_cmds_F77 \
14632 old_archive_from_new_cmds_F77 \
14633 predep_objects_F77 \
14634 postdep_objects_F77 \
14635 predeps_F77 \
14636 postdeps_F77 \
14637 compiler_lib_search_path_F77 \
14638 archive_cmds_F77 \
14639 archive_expsym_cmds_F77 \
14640 postinstall_cmds_F77 \
14641 postuninstall_cmds_F77 \
14642 old_archive_from_expsyms_cmds_F77 \
14643 allow_undefined_flag_F77 \
14644 no_undefined_flag_F77 \
14645 export_symbols_cmds_F77 \
14646 hardcode_libdir_flag_spec_F77 \
14647 hardcode_libdir_flag_spec_ld_F77 \
14648 hardcode_libdir_separator_F77 \
14649 hardcode_automatic_F77 \
14650 module_cmds_F77 \
14651 module_expsym_cmds_F77 \
14652 lt_cv_prog_compiler_c_o_F77 \
14653 exclude_expsyms_F77 \
14654 include_expsyms_F77; do
14655
14656 case $var in
14657 old_archive_cmds_F77 | \
14658 old_archive_from_new_cmds_F77 | \
14659 archive_cmds_F77 | \
14660 archive_expsym_cmds_F77 | \
14661 module_cmds_F77 | \
14662 module_expsym_cmds_F77 | \
14663 old_archive_from_expsyms_cmds_F77 | \
14664 export_symbols_cmds_F77 | \
14665 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14666 postinstall_cmds | postuninstall_cmds | \
14667 old_postinstall_cmds | old_postuninstall_cmds | \
14668 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14669 # Double-quote double-evaled strings.
14670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14671 ;;
14672 *)
14673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14674 ;;
14675 esac
14676 done
14677
14678 case $lt_echo in
14679 *'\$0 --fallback-echo"')
14680 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14681 ;;
14682 esac
14683
14684cfgfile="$ofile"
14685
14686 cat <<__EOF__ >> "$cfgfile"
14687# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14688
14689# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14690
14691# Shell to use when invoking shell scripts.
14692SHELL=$lt_SHELL
14693
14694# Whether or not to build shared libraries.
14695build_libtool_libs=$enable_shared
14696
14697# Whether or not to build static libraries.
14698build_old_libs=$enable_static
14699
14700# Whether or not to add -lc for building shared libraries.
14701build_libtool_need_lc=$archive_cmds_need_lc_F77
14702
14703# Whether or not to disallow shared libs when runtime libs are static
14704allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14705
14706# Whether or not to optimize for fast installation.
14707fast_install=$enable_fast_install
14708
14709# The host system.
14710host_alias=$host_alias
14711host=$host
14712
14713# An echo program that does not interpret backslashes.
14714echo=$lt_echo
14715
14716# The archiver.
14717AR=$lt_AR
14718AR_FLAGS=$lt_AR_FLAGS
14719
14720# A C compiler.
14721LTCC=$lt_LTCC
14722
14723# A language-specific compiler.
14724CC=$lt_compiler_F77
14725
14726# Is the compiler the GNU C compiler?
14727with_gcc=$GCC_F77
14728
14729# An ERE matcher.
14730EGREP=$lt_EGREP
14731
14732# The linker used to build libraries.
14733LD=$lt_LD_F77
14734
14735# Whether we need hard or soft links.
14736LN_S=$lt_LN_S
14737
14738# A BSD-compatible nm program.
14739NM=$lt_NM
14740
14741# A symbol stripping program
14742STRIP=$lt_STRIP
14743
14744# Used to examine libraries when file_magic_cmd begins "file"
14745MAGIC_CMD=$MAGIC_CMD
14746
14747# Used on cygwin: DLL creation program.
14748DLLTOOL="$DLLTOOL"
14749
14750# Used on cygwin: object dumper.
14751OBJDUMP="$OBJDUMP"
14752
14753# Used on cygwin: assembler.
14754AS="$AS"
14755
14756# The name of the directory that contains temporary libtool files.
14757objdir=$objdir
14758
14759# How to create reloadable object files.
14760reload_flag=$lt_reload_flag
14761reload_cmds=$lt_reload_cmds
14762
14763# How to pass a linker flag through the compiler.
14764wl=$lt_lt_prog_compiler_wl_F77
14765
14766# Object file suffix (normally "o").
14767objext="$ac_objext"
14768
14769# Old archive suffix (normally "a").
14770libext="$libext"
14771
14772# Shared library suffix (normally ".so").
14773shrext_cmds='$shrext_cmds'
14774
14775# Executable file suffix (normally "").
14776exeext="$exeext"
14777
14778# Additional compiler flags for building library objects.
14779pic_flag=$lt_lt_prog_compiler_pic_F77
14780pic_mode=$pic_mode
14781
14782# What is the maximum length of a command?
14783max_cmd_len=$lt_cv_sys_max_cmd_len
14784
14785# Does compiler simultaneously support -c and -o options?
14786compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14787
14788# Must we lock files when doing compilation ?
14789need_locks=$lt_need_locks
14790
14791# Do we need the lib prefix for modules?
14792need_lib_prefix=$need_lib_prefix
14793
14794# Do we need a version for libraries?
14795need_version=$need_version
14796
14797# Whether dlopen is supported.
14798dlopen_support=$enable_dlopen
14799
14800# Whether dlopen of programs is supported.
14801dlopen_self=$enable_dlopen_self
14802
14803# Whether dlopen of statically linked programs is supported.
14804dlopen_self_static=$enable_dlopen_self_static
14805
14806# Compiler flag to prevent dynamic linking.
14807link_static_flag=$lt_lt_prog_compiler_static_F77
14808
14809# Compiler flag to turn off builtin functions.
14810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14811
14812# Compiler flag to allow reflexive dlopens.
14813export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14814
14815# Compiler flag to generate shared objects directly from archives.
14816whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14817
14818# Compiler flag to generate thread-safe objects.
14819thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14820
14821# Library versioning type.
14822version_type=$version_type
14823
14824# Format of library name prefix.
14825libname_spec=$lt_libname_spec
14826
14827# List of archive names. First name is the real one, the rest are links.
14828# The last name is the one that the linker finds with -lNAME.
14829library_names_spec=$lt_library_names_spec
14830
14831# The coded name of the library, if different from the real name.
14832soname_spec=$lt_soname_spec
14833
14834# Commands used to build and install an old-style archive.
14835RANLIB=$lt_RANLIB
14836old_archive_cmds=$lt_old_archive_cmds_F77
14837old_postinstall_cmds=$lt_old_postinstall_cmds
14838old_postuninstall_cmds=$lt_old_postuninstall_cmds
14839
14840# Create an old-style archive from a shared archive.
14841old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14842
14843# Create a temporary old-style archive to link instead of a shared archive.
14844old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14845
14846# Commands used to build and install a shared archive.
14847archive_cmds=$lt_archive_cmds_F77
14848archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14849postinstall_cmds=$lt_postinstall_cmds
14850postuninstall_cmds=$lt_postuninstall_cmds
14851
14852# Commands used to build a loadable module (assumed same as above if empty)
14853module_cmds=$lt_module_cmds_F77
14854module_expsym_cmds=$lt_module_expsym_cmds_F77
14855
14856# Commands to strip libraries.
14857old_striplib=$lt_old_striplib
14858striplib=$lt_striplib
14859
14860# Dependencies to place before the objects being linked to create a
14861# shared library.
14862predep_objects=$lt_predep_objects_F77
14863
14864# Dependencies to place after the objects being linked to create a
14865# shared library.
14866postdep_objects=$lt_postdep_objects_F77
14867
14868# Dependencies to place before the objects being linked to create a
14869# shared library.
14870predeps=$lt_predeps_F77
14871
14872# Dependencies to place after the objects being linked to create a
14873# shared library.
14874postdeps=$lt_postdeps_F77
14875
14876# The library search path used internally by the compiler when linking
14877# a shared library.
14878compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14879
14880# Method to check whether dependent libraries are shared objects.
14881deplibs_check_method=$lt_deplibs_check_method
14882
14883# Command to use when deplibs_check_method == file_magic.
14884file_magic_cmd=$lt_file_magic_cmd
14885
14886# Flag that allows shared libraries with undefined symbols to be built.
14887allow_undefined_flag=$lt_allow_undefined_flag_F77
14888
14889# Flag that forces no undefined symbols.
14890no_undefined_flag=$lt_no_undefined_flag_F77
14891
14892# Commands used to finish a libtool library installation in a directory.
14893finish_cmds=$lt_finish_cmds
14894
14895# Same as above, but a single script fragment to be evaled but not shown.
14896finish_eval=$lt_finish_eval
14897
14898# Take the output of nm and produce a listing of raw symbols and C names.
14899global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14900
14901# Transform the output of nm in a proper C declaration
14902global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14903
14904# Transform the output of nm in a C name address pair
14905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14906
14907# This is the shared library runtime path variable.
14908runpath_var=$runpath_var
14909
14910# This is the shared library path variable.
14911shlibpath_var=$shlibpath_var
14912
14913# Is shlibpath searched before the hard-coded library search path?
14914shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14915
14916# How to hardcode a shared library path into an executable.
14917hardcode_action=$hardcode_action_F77
14918
14919# Whether we should hardcode library paths into libraries.
14920hardcode_into_libs=$hardcode_into_libs
14921
14922# Flag to hardcode \$libdir into a binary during linking.
14923# This must work even if \$libdir does not exist.
14924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14925
14926# If ld is used when linking, flag to hardcode \$libdir into
14927# a binary during linking. This must work even if \$libdir does
14928# not exist.
14929hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14930
14931# Whether we need a single -rpath flag with a separated argument.
14932hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14933
14934# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14935# resulting binary.
14936hardcode_direct=$hardcode_direct_F77
14937
14938# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14939# resulting binary.
14940hardcode_minus_L=$hardcode_minus_L_F77
14941
14942# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14943# the resulting binary.
14944hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14945
14946# Set to yes if building a shared library automatically hardcodes DIR into the library
14947# and all subsequent libraries and executables linked against it.
14948hardcode_automatic=$hardcode_automatic_F77
14949
14950# Variables whose values should be saved in libtool wrapper scripts and
14951# restored at relink time.
14952variables_saved_for_relink="$variables_saved_for_relink"
14953
14954# Whether libtool must link a program against all its dependency libraries.
14955link_all_deplibs=$link_all_deplibs_F77
14956
14957# Compile-time system search path for libraries
14958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14959
14960# Run-time system search path for libraries
14961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14962
14963# Fix the shell variable \$srcfile for the compiler.
14964fix_srcfile_path="$fix_srcfile_path_F77"
14965
14966# Set to yes if exported symbols are required.
14967always_export_symbols=$always_export_symbols_F77
14968
14969# The commands to list exported symbols.
14970export_symbols_cmds=$lt_export_symbols_cmds_F77
14971
14972# The commands to extract the exported symbol list from a shared archive.
14973extract_expsyms_cmds=$lt_extract_expsyms_cmds
14974
14975# Symbols that should not be listed in the preloaded symbols.
14976exclude_expsyms=$lt_exclude_expsyms_F77
14977
14978# Symbols that must always be exported.
14979include_expsyms=$lt_include_expsyms_F77
14980
14981# ### END LIBTOOL TAG CONFIG: $tagname
14982
14983__EOF__
14984
14985
14986else
14987 # If there is no Makefile yet, we rely on a make rule to execute
14988 # `config.status --recheck' to rerun these tests and create the
14989 # libtool script then.
14990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14991 if test -f "$ltmain_in"; then
14992 test -f Makefile && make "$ltmain"
14993 fi
14994fi
14995
14996
14997ac_ext=c
14998ac_cpp='$CPP $CPPFLAGS'
14999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001ac_compiler_gnu=$ac_cv_c_compiler_gnu
15002
15003CC="$lt_save_CC"
15004
15005 else
15006 tagname=""
15007 fi
15008 ;;
15009
15010 GCJ)
15011 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15012
15013
15014
15015# Source file extension for Java test sources.
15016ac_ext=java
15017
15018# Object file extension for compiled Java test sources.
15019objext=o
15020objext_GCJ=$objext
15021
15022# Code to be used in simple compile tests
15023lt_simple_compile_test_code="class foo {}\n"
15024
15025# Code to be used in simple link tests
15026lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15027
15028# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15029
15030# If no C compiler was specified, use CC.
15031LTCC=${LTCC-"$CC"}
15032
15033# Allow CC to be a program name with arguments.
15034compiler=$CC
15035
15036
15037# Allow CC to be a program name with arguments.
15038lt_save_CC="$CC"
15039CC=${GCJ-"gcj"}
15040compiler=$CC
15041compiler_GCJ=$CC
15042
15043# GCJ did not exist at the time GCC didn't implicitly link libc in.
15044archive_cmds_need_lc_GCJ=no
15045
15046
15047lt_prog_compiler_no_builtin_flag_GCJ=
15048
15049if test "$GCC" = yes; then
15050 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15051
15052
15053echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15054echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15055if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057else
15058 lt_cv_prog_compiler_rtti_exceptions=no
15059 ac_outfile=conftest.$ac_objext
15060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15061 lt_compiler_flag="-fno-rtti -fno-exceptions"
15062 # Insert the option either (1) after the last *FLAGS variable, or
15063 # (2) before a word containing "conftest.", or (3) at the end.
15064 # Note that $ac_compile itself does not contain backslashes and begins
15065 # with a dollar sign (not a hyphen), so the echo should work correctly.
15066 # The option is referenced via a variable to avoid confusing sed.
15067 lt_compile=`echo "$ac_compile" | $SED \
15068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15070 -e 's:$: $lt_compiler_flag:'`
15071 (eval echo "\"\$as_me:15071: $lt_compile\"" >&5)
15072 (eval "$lt_compile" 2>conftest.err)
15073 ac_status=$?
15074 cat conftest.err >&5
15075 echo "$as_me:15075: \$? = $ac_status" >&5
15076 if (exit $ac_status) && test -s "$ac_outfile"; then
15077 # The compiler can only warn and ignore the option if not recognized
15078 # So say no if there are warnings
15079 if test ! -s conftest.err; then
15080 lt_cv_prog_compiler_rtti_exceptions=yes
15081 fi
15082 fi
15083 $rm conftest*
15084
15085fi
15086echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15087echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15088
15089if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15090 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15091else
15092 :
15093fi
15094
15095fi
15096
15097lt_prog_compiler_wl_GCJ=
15098lt_prog_compiler_pic_GCJ=
15099lt_prog_compiler_static_GCJ=
15100
15101echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15102echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15103
15104 if test "$GCC" = yes; then
15105 lt_prog_compiler_wl_GCJ='-Wl,'
15106 lt_prog_compiler_static_GCJ='-static'
15107
15108 case $host_os in
15109 aix*)
15110 # All AIX code is PIC.
15111 if test "$host_cpu" = ia64; then
15112 # AIX 5 now supports IA64 processor
15113 lt_prog_compiler_static_GCJ='-Bstatic'
15114 fi
15115 ;;
15116
15117 amigaos*)
15118 # FIXME: we need at least 68020 code to build shared libraries, but
15119 # adding the `-m68020' flag to GCC prevents building anything better,
15120 # like `-m68040'.
15121 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15122 ;;
15123
15124 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15125 # PIC is the default for these OSes.
15126 ;;
15127
15128 mingw* | pw32* | os2*)
15129 # This hack is so that the source file can tell whether it is being
15130 # built for inclusion in a dll (and should export symbols for example).
15131 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15132 ;;
15133
15134 darwin* | rhapsody*)
15135 # PIC is the default on this platform
15136 # Common symbols not allowed in MH_DYLIB files
15137 lt_prog_compiler_pic_GCJ='-fno-common'
15138 ;;
15139
15140 msdosdjgpp*)
15141 # Just because we use GCC doesn't mean we suddenly get shared libraries
15142 # on systems that don't support them.
15143 lt_prog_compiler_can_build_shared_GCJ=no
15144 enable_shared=no
15145 ;;
15146
15147 sysv4*MP*)
15148 if test -d /usr/nec; then
15149 lt_prog_compiler_pic_GCJ=-Kconform_pic
15150 fi
15151 ;;
15152
15153 hpux*)
15154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15155 # not for PA HP-UX.
15156 case "$host_cpu" in
15157 hppa*64*|ia64*)
15158 # +Z the default
15159 ;;
15160 *)
15161 lt_prog_compiler_pic_GCJ='-fPIC'
15162 ;;
15163 esac
15164 ;;
15165
15166 *)
15167 lt_prog_compiler_pic_GCJ='-fPIC'
15168 ;;
15169 esac
15170 else
15171 # PORTME Check for flag to pass linker flags through the system compiler.
15172 case $host_os in
15173 aix*)
15174 lt_prog_compiler_wl_GCJ='-Wl,'
15175 if test "$host_cpu" = ia64; then
15176 # AIX 5 now supports IA64 processor
15177 lt_prog_compiler_static_GCJ='-Bstatic'
15178 else
15179 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15180 fi
15181 ;;
15182
15183 mingw* | pw32* | os2*)
15184 # This hack is so that the source file can tell whether it is being
15185 # built for inclusion in a dll (and should export symbols for example).
15186 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15187 ;;
15188
15189 hpux9* | hpux10* | hpux11*)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15192 # not for PA HP-UX.
15193 case "$host_cpu" in
15194 hppa*64*|ia64*)
15195 # +Z the default
15196 ;;
15197 *)
15198 lt_prog_compiler_pic_GCJ='+Z'
15199 ;;
15200 esac
15201 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15202 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15203 ;;
15204
15205 irix5* | irix6* | nonstopux*)
15206 lt_prog_compiler_wl_GCJ='-Wl,'
15207 # PIC (with -KPIC) is the default.
15208 lt_prog_compiler_static_GCJ='-non_shared'
15209 ;;
15210
15211 newsos6)
15212 lt_prog_compiler_pic_GCJ='-KPIC'
15213 lt_prog_compiler_static_GCJ='-Bstatic'
15214 ;;
15215
15216 linux*)
15217 case $CC in
15218 icc* | ecc*)
15219 lt_prog_compiler_wl_GCJ='-Wl,'
15220 lt_prog_compiler_pic_GCJ='-KPIC'
15221 lt_prog_compiler_static_GCJ='-static'
15222 ;;
15223 ccc*)
15224 lt_prog_compiler_wl_GCJ='-Wl,'
15225 # All Alpha code is PIC.
15226 lt_prog_compiler_static_GCJ='-non_shared'
15227 ;;
15228 esac
15229 ;;
15230
15231 osf3* | osf4* | osf5*)
15232 lt_prog_compiler_wl_GCJ='-Wl,'
15233 # All OSF/1 code is PIC.
15234 lt_prog_compiler_static_GCJ='-non_shared'
15235 ;;
15236
15237 sco3.2v5*)
15238 lt_prog_compiler_pic_GCJ='-Kpic'
15239 lt_prog_compiler_static_GCJ='-dn'
15240 ;;
15241
15242 solaris*)
15243 lt_prog_compiler_wl_GCJ='-Wl,'
15244 lt_prog_compiler_pic_GCJ='-KPIC'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 sunos4*)
15249 lt_prog_compiler_wl_GCJ='-Qoption ld '
15250 lt_prog_compiler_pic_GCJ='-PIC'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 ;;
15253
15254 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15255 lt_prog_compiler_wl_GCJ='-Wl,'
15256 lt_prog_compiler_pic_GCJ='-KPIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 sysv4*MP*)
15261 if test -d /usr/nec ;then
15262 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 fi
15265 ;;
15266
15267 uts4*)
15268 lt_prog_compiler_pic_GCJ='-pic'
15269 lt_prog_compiler_static_GCJ='-Bstatic'
15270 ;;
15271
15272 *)
15273 lt_prog_compiler_can_build_shared_GCJ=no
15274 ;;
15275 esac
15276 fi
15277
15278echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15279echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15280
15281#
15282# Check to make sure the PIC flag actually works.
15283#
15284if test -n "$lt_prog_compiler_pic_GCJ"; then
15285
15286echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15287echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15288if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 lt_prog_compiler_pic_works_GCJ=no
15292 ac_outfile=conftest.$ac_objext
15293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15294 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15295 # Insert the option either (1) after the last *FLAGS variable, or
15296 # (2) before a word containing "conftest.", or (3) at the end.
15297 # Note that $ac_compile itself does not contain backslashes and begins
15298 # with a dollar sign (not a hyphen), so the echo should work correctly.
15299 # The option is referenced via a variable to avoid confusing sed.
15300 lt_compile=`echo "$ac_compile" | $SED \
15301 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15303 -e 's:$: $lt_compiler_flag:'`
15304 (eval echo "\"\$as_me:15304: $lt_compile\"" >&5)
15305 (eval "$lt_compile" 2>conftest.err)
15306 ac_status=$?
15307 cat conftest.err >&5
15308 echo "$as_me:15308: \$? = $ac_status" >&5
15309 if (exit $ac_status) && test -s "$ac_outfile"; then
15310 # The compiler can only warn and ignore the option if not recognized
15311 # So say no if there are warnings
15312 if test ! -s conftest.err; then
15313 lt_prog_compiler_pic_works_GCJ=yes
15314 fi
15315 fi
15316 $rm conftest*
15317
15318fi
15319echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15320echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15321
15322if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15323 case $lt_prog_compiler_pic_GCJ in
15324 "" | " "*) ;;
15325 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15326 esac
15327else
15328 lt_prog_compiler_pic_GCJ=
15329 lt_prog_compiler_can_build_shared_GCJ=no
15330fi
15331
15332fi
15333case "$host_os" in
15334 # For platforms which do not support PIC, -DPIC is meaningless:
15335 *djgpp*)
15336 lt_prog_compiler_pic_GCJ=
15337 ;;
15338 *)
15339 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15340 ;;
15341esac
15342
15343echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15344echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15345if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 lt_cv_prog_compiler_c_o_GCJ=no
15349 $rm -r conftest 2>/dev/null
15350 mkdir conftest
15351 cd conftest
15352 mkdir out
15353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15354
15355 lt_compiler_flag="-o out/conftest2.$ac_objext"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
15364 (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
15365 (eval "$lt_compile" 2>out/conftest.err)
15366 ac_status=$?
15367 cat out/conftest.err >&5
15368 echo "$as_me:15368: \$? = $ac_status" >&5
15369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
15373 if test ! -s out/conftest.err; then
15374 lt_cv_prog_compiler_c_o_GCJ=yes
15375 fi
15376 fi
15377 chmod u+w .
15378 $rm conftest*
15379 # SGI C++ compiler will create directory out/ii_files/ for
15380 # template instantiation
15381 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15382 $rm out/* && rmdir out
15383 cd ..
15384 rmdir conftest
15385 $rm conftest*
15386
15387fi
15388echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15389echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15390
15391
15392hard_links="nottested"
15393if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15394 # do not overwrite the value of need_locks provided by the user
15395 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15396echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15397 hard_links=yes
15398 $rm conftest*
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 touch conftest.a
15401 ln conftest.a conftest.b 2>&5 || hard_links=no
15402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15403 echo "$as_me:$LINENO: result: $hard_links" >&5
15404echo "${ECHO_T}$hard_links" >&6
15405 if test "$hard_links" = no; then
15406 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15407echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15408 need_locks=warn
15409 fi
15410else
15411 need_locks=no
15412fi
15413
15414echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15415echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15416
15417 runpath_var=
15418 allow_undefined_flag_GCJ=
15419 enable_shared_with_static_runtimes_GCJ=no
15420 archive_cmds_GCJ=
15421 archive_expsym_cmds_GCJ=
15422 old_archive_From_new_cmds_GCJ=
15423 old_archive_from_expsyms_cmds_GCJ=
15424 export_dynamic_flag_spec_GCJ=
15425 whole_archive_flag_spec_GCJ=
15426 thread_safe_flag_spec_GCJ=
15427 hardcode_libdir_flag_spec_GCJ=
15428 hardcode_libdir_flag_spec_ld_GCJ=
15429 hardcode_libdir_separator_GCJ=
15430 hardcode_direct_GCJ=no
15431 hardcode_minus_L_GCJ=no
15432 hardcode_shlibpath_var_GCJ=unsupported
15433 link_all_deplibs_GCJ=unknown
15434 hardcode_automatic_GCJ=no
15435 module_cmds_GCJ=
15436 module_expsym_cmds_GCJ=
15437 always_export_symbols_GCJ=no
15438 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms_GCJ=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 extract_expsyms_cmds=
15453
15454 case $host_os in
15455 cygwin* | mingw* | pw32*)
15456 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15457 # When not using gcc, we currently assume that we are using
15458 # Microsoft Visual C++.
15459 if test "$GCC" != yes; then
15460 with_gnu_ld=no
15461 fi
15462 ;;
15463 openbsd*)
15464 with_gnu_ld=no
15465 ;;
15466 esac
15467
15468 ld_shlibs_GCJ=yes
15469 if test "$with_gnu_ld" = yes; then
15470 # If archive_cmds runs LD, not CC, wlarc should be empty
15471 wlarc='${wl}'
15472
15473 # See if GNU ld supports shared libraries.
15474 case $host_os in
15475 aix3* | aix4* | aix5*)
15476 # On AIX/PPC, the GNU linker is very broken
15477 if test "$host_cpu" != ia64; then
15478 ld_shlibs_GCJ=no
15479 cat <<EOF 1>&2
15480
15481*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15482*** to be unable to reliably create shared libraries on AIX.
15483*** Therefore, libtool is disabling shared libraries support. If you
15484*** really care for shared libraries, you may want to modify your PATH
15485*** so that a non-GNU linker is found, and then restart.
15486
15487EOF
15488 fi
15489 ;;
15490
15491 amigaos*)
15492 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)'
15493 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15494 hardcode_minus_L_GCJ=yes
15495
15496 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15497 # that the semantics of dynamic libraries on AmigaOS, at least up
15498 # to version 4, is to share data among multiple programs linked
15499 # with the same dynamic library. Since this doesn't match the
15500 # behavior of shared libraries on other platforms, we can't use
15501 # them.
15502 ld_shlibs_GCJ=no
15503 ;;
15504
15505 beos*)
15506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15507 allow_undefined_flag_GCJ=unsupported
15508 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15509 # support --undefined. This deserves some investigation. FIXME
15510 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 else
15512 ld_shlibs_GCJ=no
15513 fi
15514 ;;
15515
15516 cygwin* | mingw* | pw32*)
15517 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15518 # as there is no search path for DLLs.
15519 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15520 allow_undefined_flag_GCJ=unsupported
15521 always_export_symbols_GCJ=no
15522 enable_shared_with_static_runtimes_GCJ=yes
15523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15524
15525 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15527 # If the export-symbols file already is a .def file (1st line
15528 # is EXPORTS), use it as is; otherwise, prepend...
15529 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15530 cp $export_symbols $output_objdir/$soname.def;
15531 else
15532 echo EXPORTS > $output_objdir/$soname.def;
15533 cat $export_symbols >> $output_objdir/$soname.def;
15534 fi~
15535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15536 else
15537 ld_shlibs=no
15538 fi
15539 ;;
15540
15541 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15543 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15544 wlarc=
15545 else
15546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15548 fi
15549 ;;
15550
15551 solaris* | sysv5*)
15552 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15553 ld_shlibs_GCJ=no
15554 cat <<EOF 1>&2
15555
15556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15557*** create shared libraries on Solaris systems. Therefore, libtool
15558*** is disabling shared libraries support. We urge you to upgrade GNU
15559*** binutils to release 2.9.1 or newer. Another option is to modify
15560*** your PATH or compiler configuration so that the native linker is
15561*** used, and then restart.
15562
15563EOF
15564 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15567 else
15568 ld_shlibs_GCJ=no
15569 fi
15570 ;;
15571
15572 sunos4*)
15573 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15574 wlarc=
15575 hardcode_direct_GCJ=yes
15576 hardcode_shlibpath_var_GCJ=no
15577 ;;
15578
15579 linux*)
15580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15581 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15582 archive_cmds_GCJ="$tmp_archive_cmds"
15583 supports_anon_versioning=no
15584 case `$LD -v 2>/dev/null` in
15585 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15588 *\ 2.11.*) ;; # other 2.11 versions
15589 *) supports_anon_versioning=yes ;;
15590 esac
15591 if test $supports_anon_versioning = yes; then
15592 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15593cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15594$echo "local: *; };" >> $output_objdir/$libname.ver~
15595 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15596 else
15597 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15598 fi
15599 link_all_deplibs_GCJ=no
15600 else
15601 ld_shlibs_GCJ=no
15602 fi
15603 ;;
15604
15605 *)
15606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15609 else
15610 ld_shlibs_GCJ=no
15611 fi
15612 ;;
15613 esac
15614
15615 if test "$ld_shlibs_GCJ" = yes; then
15616 runpath_var=LD_RUN_PATH
15617 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15618 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15619 # ancient GNU ld didn't support --whole-archive et. al.
15620 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15621 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15622 else
15623 whole_archive_flag_spec_GCJ=
15624 fi
15625 fi
15626 else
15627 # PORTME fill in a description of your system's linker (not GNU ld)
15628 case $host_os in
15629 aix3*)
15630 allow_undefined_flag_GCJ=unsupported
15631 always_export_symbols_GCJ=yes
15632 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'
15633 # Note: this linker hardcodes the directories in LIBPATH if there
15634 # are no directories specified by -L.
15635 hardcode_minus_L_GCJ=yes
15636 if test "$GCC" = yes && test -z "$link_static_flag"; then
15637 # Neither direct hardcoding nor static linking is supported with a
15638 # broken collect2.
15639 hardcode_direct_GCJ=unsupported
15640 fi
15641 ;;
15642
15643 aix4* | aix5*)
15644 if test "$host_cpu" = ia64; then
15645 # On IA64, the linker does run time linking by default, so we don't
15646 # have to do anything special.
15647 aix_use_runtimelinking=no
15648 exp_sym_flag='-Bexport'
15649 no_entry_flag=""
15650 else
15651 # If we're using GNU nm, then we don't want the "-C" option.
15652 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15653 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15654 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'
15655 else
15656 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'
15657 fi
15658 aix_use_runtimelinking=no
15659
15660 # Test if we are trying to use run time linking or normal
15661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15662 # need to do runtime linking.
15663 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15664 for ld_flag in $LDFLAGS; do
15665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15666 aix_use_runtimelinking=yes
15667 break
15668 fi
15669 done
15670 esac
15671
15672 exp_sym_flag='-bexport'
15673 no_entry_flag='-bnoentry'
15674 fi
15675
15676 # When large executables or shared objects are built, AIX ld can
15677 # have problems creating the table of contents. If linking a library
15678 # or program results in "error TOC overflow" add -mminimal-toc to
15679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15681
15682 archive_cmds_GCJ=''
15683 hardcode_direct_GCJ=yes
15684 hardcode_libdir_separator_GCJ=':'
15685 link_all_deplibs_GCJ=yes
15686
15687 if test "$GCC" = yes; then
15688 case $host_os in aix4.012|aix4.012.*)
15689 # We only want to do this on AIX 4.2 and lower, the check
15690 # below for broken collect2 doesn't work under 4.3+
15691 collect2name=`${CC} -print-prog-name=collect2`
15692 if test -f "$collect2name" && \
15693 strings "$collect2name" | grep resolve_lib_name >/dev/null
15694 then
15695 # We have reworked collect2
15696 hardcode_direct_GCJ=yes
15697 else
15698 # We have old collect2
15699 hardcode_direct_GCJ=unsupported
15700 # It fails to find uninstalled libraries when the uninstalled
15701 # path is not listed in the libpath. Setting hardcode_minus_L
15702 # to unsupported forces relinking
15703 hardcode_minus_L_GCJ=yes
15704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15705 hardcode_libdir_separator_GCJ=
15706 fi
15707 esac
15708 shared_flag='-shared'
15709 else
15710 # not using gcc
15711 if test "$host_cpu" = ia64; then
15712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15713 # chokes on -Wl,-G. The following line is correct:
15714 shared_flag='-G'
15715 else
15716 if test "$aix_use_runtimelinking" = yes; then
15717 shared_flag='${wl}-G'
15718 else
15719 shared_flag='${wl}-bM:SRE'
15720 fi
15721 fi
15722 fi
15723
15724 # It seems that -bexpall does not export symbols beginning with
15725 # underscore (_), so it is better to generate a list of symbols to export.
15726 always_export_symbols_GCJ=yes
15727 if test "$aix_use_runtimelinking" = yes; then
15728 # Warning - without using the other runtime loading flags (-brtl),
15729 # -berok will link without error, but may produce a broken library.
15730 allow_undefined_flag_GCJ='-berok'
15731 # Determine the default libpath from the value encoded in an empty executable.
15732 cat >conftest.$ac_ext <<_ACEOF
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738
15739int
15740main ()
15741{
15742
15743 ;
15744 return 0;
15745}
15746_ACEOF
15747rm -f conftest.$ac_objext conftest$ac_exeext
15748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>conftest.er1
15750 ac_status=$?
15751 grep -v '^ *+' conftest.er1 >conftest.err
15752 rm -f conftest.er1
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; } &&
15762 { ac_try='test -s conftest$ac_exeext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768
15769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15770}'`
15771# Check for a 64-bit object if we didn't find anything.
15772if 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; }
15773}'`; fi
15774else
15775 echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778fi
15779rm -f conftest.err conftest.$ac_objext \
15780 conftest$ac_exeext conftest.$ac_ext
15781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15782
15783 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15784 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"
15785 else
15786 if test "$host_cpu" = ia64; then
15787 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15788 allow_undefined_flag_GCJ="-z nodefs"
15789 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"
15790 else
15791 # Determine the default libpath from the value encoded in an empty executable.
15792 cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798
15799int
15800main ()
15801{
15802
15803 ;
15804 return 0;
15805}
15806_ACEOF
15807rm -f conftest.$ac_objext conftest$ac_exeext
15808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15809 (eval $ac_link) 2>conftest.er1
15810 ac_status=$?
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; } &&
15822 { ac_try='test -s conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828
15829aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15830}'`
15831# Check for a 64-bit object if we didn't find anything.
15832if 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; }
15833}'`; fi
15834else
15835 echo "$as_me: failed program was:" >&5
15836sed 's/^/| /' conftest.$ac_ext >&5
15837
15838fi
15839rm -f conftest.err conftest.$ac_objext \
15840 conftest$ac_exeext conftest.$ac_ext
15841if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15842
15843 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15844 # Warning - without using the other run time loading flags,
15845 # -berok will link without error, but may produce a broken library.
15846 no_undefined_flag_GCJ=' ${wl}-bernotok'
15847 allow_undefined_flag_GCJ=' ${wl}-berok'
15848 # -bexpall does not export symbols beginning with underscore (_)
15849 always_export_symbols_GCJ=yes
15850 # Exported symbols can be pulled into shared objects from archives
15851 whole_archive_flag_spec_GCJ=' '
15852 archive_cmds_need_lc_GCJ=yes
15853 # This is similar to how AIX traditionally builds it's shared libraries.
15854 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'
15855 fi
15856 fi
15857 ;;
15858
15859 amigaos*)
15860 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)'
15861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15862 hardcode_minus_L_GCJ=yes
15863 # see comment about different semantics on the GNU ld section
15864 ld_shlibs_GCJ=no
15865 ;;
15866
15867 bsdi4*)
15868 export_dynamic_flag_spec_GCJ=-rdynamic
15869 ;;
15870
15871 cygwin* | mingw* | pw32*)
15872 # When not using gcc, we currently assume that we are using
15873 # Microsoft Visual C++.
15874 # hardcode_libdir_flag_spec is actually meaningless, as there is
15875 # no search path for DLLs.
15876 hardcode_libdir_flag_spec_GCJ=' '
15877 allow_undefined_flag_GCJ=unsupported
15878 # Tell ltmain to make .lib files, not .a files.
15879 libext=lib
15880 # Tell ltmain to make .dll files, not .so files.
15881 shrext_cmds=".dll"
15882 # FIXME: Setting linknames here is a bad hack.
15883 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15884 # The linker will automatically build a .lib file if we build a DLL.
15885 old_archive_From_new_cmds_GCJ='true'
15886 # FIXME: Should let the user specify the lib program.
15887 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15888 fix_srcfile_path='`cygpath -w "$srcfile"`'
15889 enable_shared_with_static_runtimes_GCJ=yes
15890 ;;
15891
15892 darwin* | rhapsody*)
15893 if test "$GXX" = yes ; then
15894 archive_cmds_need_lc_GCJ=no
15895 case "$host_os" in
15896 rhapsody* | darwin1.[012])
15897 allow_undefined_flag_GCJ='-undefined suppress'
15898 ;;
15899 *) # Darwin 1.3 on
15900 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15901 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15902 else
15903 case ${MACOSX_DEPLOYMENT_TARGET} in
15904 10.[012])
15905 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15906 ;;
15907 10.*)
15908 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15909 ;;
15910 esac
15911 fi
15912 ;;
15913 esac
15914 lt_int_apple_cc_single_mod=no
15915 output_verbose_link_cmd='echo'
15916 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15917 lt_int_apple_cc_single_mod=yes
15918 fi
15919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15920 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15921 else
15922 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'
15923 fi
15924 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15926 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15927 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}'
15928 else
15929 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}'
15930 fi
15931 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}'
15932 hardcode_direct_GCJ=no
15933 hardcode_automatic_GCJ=yes
15934 hardcode_shlibpath_var_GCJ=unsupported
15935 whole_archive_flag_spec_GCJ='-all_load $convenience'
15936 link_all_deplibs_GCJ=yes
15937 else
15938 ld_shlibs_GCJ=no
15939 fi
15940 ;;
15941
15942 dgux*)
15943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945 hardcode_shlibpath_var_GCJ=no
15946 ;;
15947
15948 freebsd1*)
15949 ld_shlibs_GCJ=no
15950 ;;
15951
15952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15953 # support. Future versions do this automatically, but an explicit c++rt0.o
15954 # does not break anything, and helps significantly (at the cost of a little
15955 # extra space).
15956 freebsd2.2*)
15957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15958 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15959 hardcode_direct_GCJ=yes
15960 hardcode_shlibpath_var_GCJ=no
15961 ;;
15962
15963 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15964 freebsd2*)
15965 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15966 hardcode_direct_GCJ=yes
15967 hardcode_minus_L_GCJ=yes
15968 hardcode_shlibpath_var_GCJ=no
15969 ;;
15970
15971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15972 freebsd* | kfreebsd*-gnu)
15973 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15975 hardcode_direct_GCJ=yes
15976 hardcode_shlibpath_var_GCJ=no
15977 ;;
15978
15979 hpux9*)
15980 if test "$GCC" = yes; then
15981 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'
15982 else
15983 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'
15984 fi
15985 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15986 hardcode_libdir_separator_GCJ=:
15987 hardcode_direct_GCJ=yes
15988
15989 # hardcode_minus_L: Not really in the search PATH,
15990 # but as the default location of the library.
15991 hardcode_minus_L_GCJ=yes
15992 export_dynamic_flag_spec_GCJ='${wl}-E'
15993 ;;
15994
15995 hpux10* | hpux11*)
15996 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15997 case "$host_cpu" in
15998 hppa*64*|ia64*)
15999 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000 ;;
16001 *)
16002 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16003 ;;
16004 esac
16005 else
16006 case "$host_cpu" in
16007 hppa*64*|ia64*)
16008 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16009 ;;
16010 *)
16011 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16012 ;;
16013 esac
16014 fi
16015 if test "$with_gnu_ld" = no; then
16016 case "$host_cpu" in
16017 hppa*64*)
16018 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16019 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16020 hardcode_libdir_separator_GCJ=:
16021 hardcode_direct_GCJ=no
16022 hardcode_shlibpath_var_GCJ=no
16023 ;;
16024 ia64*)
16025 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16026 hardcode_direct_GCJ=no
16027 hardcode_shlibpath_var_GCJ=no
16028
16029 # hardcode_minus_L: Not really in the search PATH,
16030 # but as the default location of the library.
16031 hardcode_minus_L_GCJ=yes
16032 ;;
16033 *)
16034 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator_GCJ=:
16036 hardcode_direct_GCJ=yes
16037 export_dynamic_flag_spec_GCJ='${wl}-E'
16038
16039 # hardcode_minus_L: Not really in the search PATH,
16040 # but as the default location of the library.
16041 hardcode_minus_L_GCJ=yes
16042 ;;
16043 esac
16044 fi
16045 ;;
16046
16047 irix5* | irix6* | nonstopux*)
16048 if test "$GCC" = yes; then
16049 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'
16050 else
16051 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'
16052 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16053 fi
16054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16055 hardcode_libdir_separator_GCJ=:
16056 link_all_deplibs_GCJ=yes
16057 ;;
16058
16059 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16061 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16062 else
16063 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16064 fi
16065 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16066 hardcode_direct_GCJ=yes
16067 hardcode_shlibpath_var_GCJ=no
16068 ;;
16069
16070 newsos6)
16071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16072 hardcode_direct_GCJ=yes
16073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16074 hardcode_libdir_separator_GCJ=:
16075 hardcode_shlibpath_var_GCJ=no
16076 ;;
16077
16078 openbsd*)
16079 hardcode_direct_GCJ=yes
16080 hardcode_shlibpath_var_GCJ=no
16081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16082 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16083 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16084 export_dynamic_flag_spec_GCJ='${wl}-E'
16085 else
16086 case $host_os in
16087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16088 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16090 ;;
16091 *)
16092 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16094 ;;
16095 esac
16096 fi
16097 ;;
16098
16099 os2*)
16100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101 hardcode_minus_L_GCJ=yes
16102 allow_undefined_flag_GCJ=unsupported
16103 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'
16104 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16105 ;;
16106
16107 osf3*)
16108 if test "$GCC" = yes; then
16109 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16110 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'
16111 else
16112 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16113 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'
16114 fi
16115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16116 hardcode_libdir_separator_GCJ=:
16117 ;;
16118
16119 osf4* | osf5*) # as osf3* with the addition of -msym flag
16120 if test "$GCC" = yes; then
16121 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16122 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'
16123 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16124 else
16125 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16126 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'
16127 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~
16128 $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'
16129
16130 # Both c and cxx compiler support -rpath directly
16131 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16132 fi
16133 hardcode_libdir_separator_GCJ=:
16134 ;;
16135
16136 sco3.2v5*)
16137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_shlibpath_var_GCJ=no
16139 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16140 runpath_var=LD_RUN_PATH
16141 hardcode_runpath_var=yes
16142 ;;
16143
16144 solaris*)
16145 no_undefined_flag_GCJ=' -z text'
16146 if test "$GCC" = yes; then
16147 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16148 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16149 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16150 else
16151 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16153 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16154 fi
16155 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16156 hardcode_shlibpath_var_GCJ=no
16157 case $host_os in
16158 solaris2.[0-5] | solaris2.[0-5].*) ;;
16159 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16160 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16161 esac
16162 link_all_deplibs_GCJ=yes
16163 ;;
16164
16165 sunos4*)
16166 if test "x$host_vendor" = xsequent; then
16167 # Use $CC to link under sequent, because it throws in some extra .o
16168 # files that make .init and .fini sections work.
16169 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16170 else
16171 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16172 fi
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 hardcode_direct_GCJ=yes
16175 hardcode_minus_L_GCJ=yes
16176 hardcode_shlibpath_var_GCJ=no
16177 ;;
16178
16179 sysv4)
16180 case $host_vendor in
16181 sni)
16182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 hardcode_direct_GCJ=yes # is this really true???
16184 ;;
16185 siemens)
16186 ## LD is ld it makes a PLAMLIB
16187 ## CC just makes a GrossModule.
16188 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16189 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16190 hardcode_direct_GCJ=no
16191 ;;
16192 motorola)
16193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16194 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16195 ;;
16196 esac
16197 runpath_var='LD_RUN_PATH'
16198 hardcode_shlibpath_var_GCJ=no
16199 ;;
16200
16201 sysv4.3*)
16202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var_GCJ=no
16204 export_dynamic_flag_spec_GCJ='-Bexport'
16205 ;;
16206
16207 sysv4*MP*)
16208 if test -d /usr/nec; then
16209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_shlibpath_var_GCJ=no
16211 runpath_var=LD_RUN_PATH
16212 hardcode_runpath_var=yes
16213 ld_shlibs_GCJ=yes
16214 fi
16215 ;;
16216
16217 sysv4.2uw2*)
16218 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16219 hardcode_direct_GCJ=yes
16220 hardcode_minus_L_GCJ=no
16221 hardcode_shlibpath_var_GCJ=no
16222 hardcode_runpath_var=yes
16223 runpath_var=LD_RUN_PATH
16224 ;;
16225
16226 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16227 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16228 if test "$GCC" = yes; then
16229 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16230 else
16231 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16232 fi
16233 runpath_var='LD_RUN_PATH'
16234 hardcode_shlibpath_var_GCJ=no
16235 ;;
16236
16237 sysv5*)
16238 no_undefined_flag_GCJ=' -z text'
16239 # $CC -shared without GNU ld will not create a library from C++
16240 # object files and a static libstdc++, better avoid it by now
16241 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16242 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16244 hardcode_libdir_flag_spec_GCJ=
16245 hardcode_shlibpath_var_GCJ=no
16246 runpath_var='LD_RUN_PATH'
16247 ;;
16248
16249 uts4*)
16250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16252 hardcode_shlibpath_var_GCJ=no
16253 ;;
16254
16255 *)
16256 ld_shlibs_GCJ=no
16257 ;;
16258 esac
16259 fi
16260
16261echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16262echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16263test "$ld_shlibs_GCJ" = no && can_build_shared=no
16264
16265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16266if test "$GCC" = yes; then
16267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16268fi
16269
16270#
16271# Do we need to explicitly link libc?
16272#
16273case "x$archive_cmds_need_lc_GCJ" in
16274x|xyes)
16275 # Assume -lc should be added
16276 archive_cmds_need_lc_GCJ=yes
16277
16278 if test "$enable_shared" = yes && test "$GCC" = yes; then
16279 case $archive_cmds_GCJ in
16280 *'~'*)
16281 # FIXME: we may have to deal with multi-command sequences.
16282 ;;
16283 '$CC '*)
16284 # Test whether the compiler implicitly links with -lc since on some
16285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16286 # to ld, don't add -lc before -lgcc.
16287 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16288echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16289 $rm conftest*
16290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16291
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } 2>conftest.err; then
16297 soname=conftest
16298 lib=conftest
16299 libobjs=conftest.$ac_objext
16300 deplibs=
16301 wl=$lt_prog_compiler_wl_GCJ
16302 compiler_flags=-v
16303 linker_flags=-v
16304 verstring=
16305 output_objdir=.
16306 libname=conftest
16307 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16308 allow_undefined_flag_GCJ=
16309 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16310 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }
16314 then
16315 archive_cmds_need_lc_GCJ=no
16316 else
16317 archive_cmds_need_lc_GCJ=yes
16318 fi
16319 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16320 else
16321 cat conftest.err 1>&5
16322 fi
16323 $rm conftest*
16324 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16325echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16326 ;;
16327 esac
16328 fi
16329 ;;
16330esac
16331
16332echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16333echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16334library_names_spec=
16335libname_spec='lib$name'
16336soname_spec=
16337shrext_cmds=".so"
16338postinstall_cmds=
16339postuninstall_cmds=
16340finish_cmds=
16341finish_eval=
16342shlibpath_var=
16343shlibpath_overrides_runpath=unknown
16344version_type=none
16345dynamic_linker="$host_os ld.so"
16346sys_lib_dlsearch_path_spec="/lib /usr/lib"
16347if test "$GCC" = yes; then
16348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16349 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16350 # if the path contains ";" then we assume it to be the separator
16351 # otherwise default to the standard path separator (i.e. ":") - it is
16352 # assumed that no part of a normal pathname contains ";" but that should
16353 # okay in the real world where ";" in dirpaths is itself problematic.
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16355 else
16356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16357 fi
16358else
16359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16360fi
16361need_lib_prefix=unknown
16362hardcode_into_libs=no
16363
16364# when you set need_version to no, make sure it does not cause -set_version
16365# flags to be left without arguments
16366need_version=unknown
16367
16368case $host_os in
16369aix3*)
16370 version_type=linux
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16372 shlibpath_var=LIBPATH
16373
16374 # AIX 3 has no versioning support, so we append a major version to the name.
16375 soname_spec='${libname}${release}${shared_ext}$major'
16376 ;;
16377
16378aix4* | aix5*)
16379 version_type=linux
16380 need_lib_prefix=no
16381 need_version=no
16382 hardcode_into_libs=yes
16383 if test "$host_cpu" = ia64; then
16384 # AIX 5 supports IA64
16385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 else
16388 # With GCC up to 2.95.x, collect2 would create an import file
16389 # for dependence libraries. The import file would start with
16390 # the line `#! .'. This would cause the generated library to
16391 # depend on `.', always an invalid library. This was fixed in
16392 # development snapshots of GCC prior to 3.0.
16393 case $host_os in
16394 aix4 | aix4.[01] | aix4.[01].*)
16395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16396 echo ' yes '
16397 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16398 :
16399 else
16400 can_build_shared=no
16401 fi
16402 ;;
16403 esac
16404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16405 # soname into executable. Probably we can add versioning support to
16406 # collect2, so additional links can be useful in future.
16407 if test "$aix_use_runtimelinking" = yes; then
16408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16409 # instead of lib<name>.a to let people know that these are not
16410 # typical AIX shared libraries.
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 else
16413 # We preserve .a as extension for shared libraries through AIX4.2
16414 # and later when we are not doing run time linking.
16415 library_names_spec='${libname}${release}.a $libname.a'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 fi
16418 shlibpath_var=LIBPATH
16419 fi
16420 ;;
16421
16422amigaos*)
16423 library_names_spec='$libname.ixlibrary $libname.a'
16424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16425 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'
16426 ;;
16427
16428beos*)
16429 library_names_spec='${libname}${shared_ext}'
16430 dynamic_linker="$host_os ld.so"
16431 shlibpath_var=LIBRARY_PATH
16432 ;;
16433
16434bsdi4*)
16435 version_type=linux
16436 need_version=no
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16443 # the default ld.so.conf also contains /usr/contrib/lib and
16444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16445 # libtool to hard-code these into programs
16446 ;;
16447
16448cygwin* | mingw* | pw32*)
16449 version_type=windows
16450 shrext_cmds=".dll"
16451 need_version=no
16452 need_lib_prefix=no
16453
16454 case $GCC,$host_os in
16455 yes,cygwin* | yes,mingw* | yes,pw32*)
16456 library_names_spec='$libname.dll.a'
16457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16458 postinstall_cmds='base_file=`basename \${file}`~
16459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16460 dldir=$destdir/`dirname \$dlpath`~
16461 test -d \$dldir || mkdir -p \$dldir~
16462 $install_prog $dir/$dlname \$dldir/$dlname'
16463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16464 dlpath=$dir/\$dldll~
16465 $rm \$dlpath'
16466 shlibpath_overrides_runpath=yes
16467
16468 case $host_os in
16469 cygwin*)
16470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16473 ;;
16474 mingw*)
16475 # MinGW DLLs use traditional 'lib' prefix
16476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16479 # It is most probably a Windows format PATH printed by
16480 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16481 # path with ; separators, and with drive letters. We can handle the
16482 # drive letters (cygwin fileutils understands them), so leave them,
16483 # especially as we might pass files found there to a mingw objdump,
16484 # which wouldn't understand a cygwinified path. Ahh.
16485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16486 else
16487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16488 fi
16489 ;;
16490 pw32*)
16491 # pw32 DLLs use 'pw' prefix rather than 'lib'
16492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16493 ;;
16494 esac
16495 ;;
16496
16497 *)
16498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16499 ;;
16500 esac
16501 dynamic_linker='Win32 ld.exe'
16502 # FIXME: first we should search . and the directory the executable is in
16503 shlibpath_var=PATH
16504 ;;
16505
16506darwin* | rhapsody*)
16507 dynamic_linker="$host_os dyld"
16508 version_type=darwin
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16512 soname_spec='${libname}${release}${major}$shared_ext'
16513 shlibpath_overrides_runpath=yes
16514 shlibpath_var=DYLD_LIBRARY_PATH
16515 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16516 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16517 if test "$GCC" = yes; then
16518 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"`
16519 else
16520 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16521 fi
16522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16523 ;;
16524
16525dgux*)
16526 version_type=linux
16527 need_lib_prefix=no
16528 need_version=no
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16530 soname_spec='${libname}${release}${shared_ext}$major'
16531 shlibpath_var=LD_LIBRARY_PATH
16532 ;;
16533
16534freebsd1*)
16535 dynamic_linker=no
16536 ;;
16537
16538kfreebsd*-gnu)
16539 version_type=linux
16540 need_lib_prefix=no
16541 need_version=no
16542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16545 shlibpath_overrides_runpath=no
16546 hardcode_into_libs=yes
16547 dynamic_linker='GNU ld.so'
16548 ;;
16549
16550freebsd*)
16551 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16552 version_type=freebsd-$objformat
16553 case $version_type in
16554 freebsd-elf*)
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 need_version=no
16557 need_lib_prefix=no
16558 ;;
16559 freebsd-*)
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561 need_version=yes
16562 ;;
16563 esac
16564 shlibpath_var=LD_LIBRARY_PATH
16565 case $host_os in
16566 freebsd2*)
16567 shlibpath_overrides_runpath=yes
16568 ;;
16569 freebsd3.01* | freebsdelf3.01*)
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16572 ;;
16573 *) # from 3.2 on
16574 shlibpath_overrides_runpath=no
16575 hardcode_into_libs=yes
16576 ;;
16577 esac
16578 ;;
16579
16580gnu*)
16581 version_type=linux
16582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 hardcode_into_libs=yes
16588 ;;
16589
16590hpux9* | hpux10* | hpux11*)
16591 # Give a soname corresponding to the major version so that dld.sl refuses to
16592 # link against other versions.
16593 version_type=sunos
16594 need_lib_prefix=no
16595 need_version=no
16596 case "$host_cpu" in
16597 ia64*)
16598 shrext_cmds='.so'
16599 hardcode_into_libs=yes
16600 dynamic_linker="$host_os dld.so"
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 if test "X$HPUX_IA64_MODE" = X32; then
16606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 else
16608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609 fi
16610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16611 ;;
16612 hppa*64*)
16613 shrext_cmds='.sl'
16614 hardcode_into_libs=yes
16615 dynamic_linker="$host_os dld.sl"
16616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622 ;;
16623 *)
16624 shrext_cmds='.sl'
16625 dynamic_linker="$host_os dld.sl"
16626 shlibpath_var=SHLIB_PATH
16627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 ;;
16631 esac
16632 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16633 postinstall_cmds='chmod 555 $lib'
16634 ;;
16635
16636irix5* | irix6* | nonstopux*)
16637 case $host_os in
16638 nonstopux*) version_type=nonstopux ;;
16639 *)
16640 if test "$lt_cv_prog_gnu_ld" = yes; then
16641 version_type=linux
16642 else
16643 version_type=irix
16644 fi ;;
16645 esac
16646 need_lib_prefix=no
16647 need_version=no
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16650 case $host_os in
16651 irix5* | nonstopux*)
16652 libsuff= shlibsuff=
16653 ;;
16654 *)
16655 case $LD in # libtool.m4 will add one of these switches to LD
16656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16657 libsuff= shlibsuff= libmagic=32-bit;;
16658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16659 libsuff=32 shlibsuff=N32 libmagic=N32;;
16660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16662 *) libsuff= shlibsuff= libmagic=never-match;;
16663 esac
16664 ;;
16665 esac
16666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16667 shlibpath_overrides_runpath=no
16668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16670 hardcode_into_libs=yes
16671 ;;
16672
16673# No shared lib support for Linux oldld, aout, or coff.
16674linux*oldld* | linux*aout* | linux*coff*)
16675 dynamic_linker=no
16676 ;;
16677
16678# This must be Linux ELF.
16679linux*)
16680 version_type=linux
16681 need_lib_prefix=no
16682 need_version=no
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=no
16688 # This implies no fast_install, which is unacceptable.
16689 # Some rework will be needed to allow for fast_install
16690 # before this can be enabled.
16691 hardcode_into_libs=yes
16692
16693 # Append ld.so.conf contents to the search path
16694 if test -f /etc/ld.so.conf; then
16695 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16697 fi
16698
16699 # We used to test for /lib/ld.so.1 and disable shared libraries on
16700 # powerpc, because MkLinux only supported shared libraries with the
16701 # GNU dynamic linker. Since this was broken with cross compilers,
16702 # most powerpc-linux boxes support dynamic linking these days and
16703 # people can always --disable-shared, the test was removed, and we
16704 # assume the GNU/Linux dynamic linker is in use.
16705 dynamic_linker='GNU/Linux ld.so'
16706 ;;
16707
16708netbsdelf*-gnu)
16709 version_type=linux
16710 need_lib_prefix=no
16711 need_version=no
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16713 soname_spec='${libname}${release}${shared_ext}$major'
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=no
16716 hardcode_into_libs=yes
16717 dynamic_linker='NetBSD ld.elf_so'
16718 ;;
16719
16720knetbsd*-gnu)
16721 version_type=linux
16722 need_lib_prefix=no
16723 need_version=no
16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16725 soname_spec='${libname}${release}${shared_ext}$major'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=no
16728 hardcode_into_libs=yes
16729 dynamic_linker='GNU ld.so'
16730 ;;
16731
16732netbsd*)
16733 version_type=sunos
16734 need_lib_prefix=no
16735 need_version=no
16736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16739 dynamic_linker='NetBSD (a.out) ld.so'
16740 else
16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16742 soname_spec='${libname}${release}${shared_ext}$major'
16743 dynamic_linker='NetBSD ld.elf_so'
16744 fi
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=yes
16747 hardcode_into_libs=yes
16748 ;;
16749
16750newsos6)
16751 version_type=linux
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 shlibpath_var=LD_LIBRARY_PATH
16754 shlibpath_overrides_runpath=yes
16755 ;;
16756
16757nto-qnx*)
16758 version_type=linux
16759 need_lib_prefix=no
16760 need_version=no
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 ;;
16766
16767openbsd*)
16768 version_type=sunos
16769 need_lib_prefix=no
16770 need_version=yes
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16775 case $host_os in
16776 openbsd2.[89] | openbsd2.[89].*)
16777 shlibpath_overrides_runpath=no
16778 ;;
16779 *)
16780 shlibpath_overrides_runpath=yes
16781 ;;
16782 esac
16783 else
16784 shlibpath_overrides_runpath=yes
16785 fi
16786 ;;
16787
16788os2*)
16789 libname_spec='$name'
16790 shrext_cmds=".dll"
16791 need_lib_prefix=no
16792 library_names_spec='$libname${shared_ext} $libname.a'
16793 dynamic_linker='OS/2 ld.exe'
16794 shlibpath_var=LIBPATH
16795 ;;
16796
16797osf3* | osf4* | osf5*)
16798 version_type=osf
16799 need_lib_prefix=no
16800 need_version=no
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16806 ;;
16807
16808sco3.2v5*)
16809 version_type=osf
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 ;;
16814
16815solaris*)
16816 version_type=linux
16817 need_lib_prefix=no
16818 need_version=no
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820 soname_spec='${libname}${release}${shared_ext}$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes
16823 hardcode_into_libs=yes
16824 # ldd complains unless libraries are executable
16825 postinstall_cmds='chmod +x $lib'
16826 ;;
16827
16828sunos4*)
16829 version_type=sunos
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 if test "$with_gnu_ld" = yes; then
16835 need_lib_prefix=no
16836 fi
16837 need_version=yes
16838 ;;
16839
16840sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16841 version_type=linux
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 soname_spec='${libname}${release}${shared_ext}$major'
16844 shlibpath_var=LD_LIBRARY_PATH
16845 case $host_vendor in
16846 sni)
16847 shlibpath_overrides_runpath=no
16848 need_lib_prefix=no
16849 export_dynamic_flag_spec='${wl}-Blargedynsym'
16850 runpath_var=LD_RUN_PATH
16851 ;;
16852 siemens)
16853 need_lib_prefix=no
16854 ;;
16855 motorola)
16856 need_lib_prefix=no
16857 need_version=no
16858 shlibpath_overrides_runpath=no
16859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16860 ;;
16861 esac
16862 ;;
16863
16864sysv4*MP*)
16865 if test -d /usr/nec ;then
16866 version_type=linux
16867 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16868 soname_spec='$libname${shared_ext}.$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 fi
16871 ;;
16872
16873uts4*)
16874 version_type=linux
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 ;;
16879
16880*)
16881 dynamic_linker=no
16882 ;;
16883esac
16884echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16885echo "${ECHO_T}$dynamic_linker" >&6
16886test "$dynamic_linker" = no && can_build_shared=no
16887
16888echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16889echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16890hardcode_action_GCJ=
16891if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16892 test -n "$runpath_var GCJ" || \
16893 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16894
16895 # We can hardcode non-existant directories.
16896 if test "$hardcode_direct_GCJ" != no &&
16897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16898 # have to relink, otherwise we might link with an installed library
16899 # when we should be linking with a yet-to-be-installed one
16900 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16901 test "$hardcode_minus_L_GCJ" != no; then
16902 # Linking always hardcodes the temporary library directory.
16903 hardcode_action_GCJ=relink
16904 else
16905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16906 hardcode_action_GCJ=immediate
16907 fi
16908else
16909 # We cannot hardcode anything, or else we can only hardcode existing
16910 # directories.
16911 hardcode_action_GCJ=unsupported
16912fi
16913echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16914echo "${ECHO_T}$hardcode_action_GCJ" >&6
16915
16916if test "$hardcode_action_GCJ" = relink; then
16917 # Fast installation is not supported
16918 enable_fast_install=no
16919elif test "$shlibpath_overrides_runpath" = yes ||
16920 test "$enable_shared" = no; then
16921 # Fast installation is not necessary
16922 enable_fast_install=needless
16923fi
16924
16925striplib=
16926old_striplib=
16927echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16928echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16929if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16932 echo "$as_me:$LINENO: result: yes" >&5
16933echo "${ECHO_T}yes" >&6
16934else
16935# FIXME - insert some real tests, host_os isn't really good enough
16936 case $host_os in
16937 darwin*)
16938 if test -n "$STRIP" ; then
16939 striplib="$STRIP -x"
16940 echo "$as_me:$LINENO: result: yes" >&5
16941echo "${ECHO_T}yes" >&6
16942 else
16943 echo "$as_me:$LINENO: result: no" >&5
16944echo "${ECHO_T}no" >&6
16945fi
16946 ;;
16947 *)
16948 echo "$as_me:$LINENO: result: no" >&5
16949echo "${ECHO_T}no" >&6
16950 ;;
16951 esac
16952fi
16953
16954if test "x$enable_dlopen" != xyes; then
16955 enable_dlopen=unknown
16956 enable_dlopen_self=unknown
16957 enable_dlopen_self_static=unknown
16958else
16959 lt_cv_dlopen=no
16960 lt_cv_dlopen_libs=
16961
16962 case $host_os in
16963 beos*)
16964 lt_cv_dlopen="load_add_on"
16965 lt_cv_dlopen_libs=
16966 lt_cv_dlopen_self=yes
16967 ;;
16968
16969 mingw* | pw32*)
16970 lt_cv_dlopen="LoadLibrary"
16971 lt_cv_dlopen_libs=
16972 ;;
16973
16974 cygwin*)
16975 lt_cv_dlopen="dlopen"
16976 lt_cv_dlopen_libs=
16977 ;;
16978
16979 darwin*)
16980 # if libdl is installed we need to link against it
16981 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16982echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16983if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 ac_check_lib_save_LIBS=$LIBS
16987LIBS="-ldl $LIBS"
16988cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994
16995/* Override any gcc2 internal prototype to avoid an error. */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999/* We use char because int might match the return type of a gcc2
17000 builtin and then its argument prototype would still apply. */
17001char dlopen ();
17002int
17003main ()
17004{
17005dlopen ();
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext conftest$ac_exeext
17011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>conftest.er1
17013 ac_status=$?
17014 grep -v '^ *+' conftest.er1 >conftest.err
17015 rm -f conftest.er1
17016 cat conftest.err >&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_lib_dl_dlopen=yes
17032else
17033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036ac_cv_lib_dl_dlopen=no
17037fi
17038rm -f conftest.err conftest.$ac_objext \
17039 conftest$ac_exeext conftest.$ac_ext
17040LIBS=$ac_check_lib_save_LIBS
17041fi
17042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17044if test $ac_cv_lib_dl_dlopen = yes; then
17045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17046else
17047
17048 lt_cv_dlopen="dyld"
17049 lt_cv_dlopen_libs=
17050 lt_cv_dlopen_self=yes
17051
17052fi
17053
17054 ;;
17055
17056 *)
17057 echo "$as_me:$LINENO: checking for shl_load" >&5
17058echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17059if test "${ac_cv_func_shl_load+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 cat >conftest.$ac_ext <<_ACEOF
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17070#define shl_load innocuous_shl_load
17071
17072/* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char shl_load (); below.
17074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17075 <limits.h> exists even on freestanding compilers. */
17076
17077#ifdef __STDC__
17078# include <limits.h>
17079#else
17080# include <assert.h>
17081#endif
17082
17083#undef shl_load
17084
17085/* Override any gcc2 internal prototype to avoid an error. */
17086#ifdef __cplusplus
17087extern "C"
17088{
17089#endif
17090/* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092char shl_load ();
17093/* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096#if defined (__stub_shl_load) || defined (__stub___shl_load)
17097choke me
17098#else
17099char (*f) () = shl_load;
17100#endif
17101#ifdef __cplusplus
17102}
17103#endif
17104
17105int
17106main ()
17107{
17108return f != shl_load;
17109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
17114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115 (eval $ac_link) 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } &&
17128 { ac_try='test -s conftest$ac_exeext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17134 ac_cv_func_shl_load=yes
17135else
17136 echo "$as_me: failed program was:" >&5
17137sed 's/^/| /' conftest.$ac_ext >&5
17138
17139ac_cv_func_shl_load=no
17140fi
17141rm -f conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17143fi
17144echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17145echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17146if test $ac_cv_func_shl_load = yes; then
17147 lt_cv_dlopen="shl_load"
17148else
17149 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17150echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17151if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17152 echo $ECHO_N "(cached) $ECHO_C" >&6
17153else
17154 ac_check_lib_save_LIBS=$LIBS
17155LIBS="-ldld $LIBS"
17156cat >conftest.$ac_ext <<_ACEOF
17157/* confdefs.h. */
17158_ACEOF
17159cat confdefs.h >>conftest.$ac_ext
17160cat >>conftest.$ac_ext <<_ACEOF
17161/* end confdefs.h. */
17162
17163/* Override any gcc2 internal prototype to avoid an error. */
17164#ifdef __cplusplus
17165extern "C"
17166#endif
17167/* We use char because int might match the return type of a gcc2
17168 builtin and then its argument prototype would still apply. */
17169char shl_load ();
17170int
17171main ()
17172{
17173shl_load ();
17174 ;
17175 return 0;
17176}
17177_ACEOF
17178rm -f conftest.$ac_objext conftest$ac_exeext
17179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest$ac_exeext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_lib_dld_shl_load=yes
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204ac_cv_lib_dld_shl_load=no
17205fi
17206rm -f conftest.err conftest.$ac_objext \
17207 conftest$ac_exeext conftest.$ac_ext
17208LIBS=$ac_check_lib_save_LIBS
17209fi
17210echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17211echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17212if test $ac_cv_lib_dld_shl_load = yes; then
17213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17214else
17215 echo "$as_me:$LINENO: checking for dlopen" >&5
17216echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17217if test "${ac_cv_func_dlopen+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
17221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
17226/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define dlopen innocuous_dlopen
17229
17230/* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char dlopen (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17234
17235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
17240
17241#undef dlopen
17242
17243/* Override any gcc2 internal prototype to avoid an error. */
17244#ifdef __cplusplus
17245extern "C"
17246{
17247#endif
17248/* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250char dlopen ();
17251/* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254#if defined (__stub_dlopen) || defined (__stub___dlopen)
17255choke me
17256#else
17257char (*f) () = dlopen;
17258#endif
17259#ifdef __cplusplus
17260}
17261#endif
17262
17263int
17264main ()
17265{
17266return f != dlopen;
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17273 (eval $ac_link) 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_func_dlopen=yes
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297ac_cv_func_dlopen=no
17298fi
17299rm -f conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301fi
17302echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17303echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17304if test $ac_cv_func_dlopen = yes; then
17305 lt_cv_dlopen="dlopen"
17306else
17307 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17308echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17309if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 ac_check_lib_save_LIBS=$LIBS
17313LIBS="-ldl $LIBS"
17314cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320
17321/* Override any gcc2 internal prototype to avoid an error. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325/* We use char because int might match the return type of a gcc2
17326 builtin and then its argument prototype would still apply. */
17327char dlopen ();
17328int
17329main ()
17330{
17331dlopen ();
17332 ;
17333 return 0;
17334}
17335_ACEOF
17336rm -f conftest.$ac_objext conftest$ac_exeext
17337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338 (eval $ac_link) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest$ac_exeext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_lib_dl_dlopen=yes
17358else
17359 echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362ac_cv_lib_dl_dlopen=no
17363fi
17364rm -f conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366LIBS=$ac_check_lib_save_LIBS
17367fi
17368echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17369echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17370if test $ac_cv_lib_dl_dlopen = yes; then
17371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17372else
17373 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17374echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17375if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378 ac_check_lib_save_LIBS=$LIBS
17379LIBS="-lsvld $LIBS"
17380cat >conftest.$ac_ext <<_ACEOF
17381/* confdefs.h. */
17382_ACEOF
17383cat confdefs.h >>conftest.$ac_ext
17384cat >>conftest.$ac_ext <<_ACEOF
17385/* end confdefs.h. */
17386
17387/* Override any gcc2 internal prototype to avoid an error. */
17388#ifdef __cplusplus
17389extern "C"
17390#endif
17391/* We use char because int might match the return type of a gcc2
17392 builtin and then its argument prototype would still apply. */
17393char dlopen ();
17394int
17395main ()
17396{
17397dlopen ();
17398 ;
17399 return 0;
17400}
17401_ACEOF
17402rm -f conftest.$ac_objext conftest$ac_exeext
17403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404 (eval $ac_link) 2>conftest.er1
17405 ac_status=$?
17406 grep -v '^ *+' conftest.er1 >conftest.err
17407 rm -f conftest.er1
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_lib_svld_dlopen=yes
17424else
17425 echo "$as_me: failed program was:" >&5
17426sed 's/^/| /' conftest.$ac_ext >&5
17427
17428ac_cv_lib_svld_dlopen=no
17429fi
17430rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17432LIBS=$ac_check_lib_save_LIBS
17433fi
17434echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17435echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17436if test $ac_cv_lib_svld_dlopen = yes; then
17437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17438else
17439 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17440echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17441if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443else
17444 ac_check_lib_save_LIBS=$LIBS
17445LIBS="-ldld $LIBS"
17446cat >conftest.$ac_ext <<_ACEOF
17447/* confdefs.h. */
17448_ACEOF
17449cat confdefs.h >>conftest.$ac_ext
17450cat >>conftest.$ac_ext <<_ACEOF
17451/* end confdefs.h. */
17452
17453/* Override any gcc2 internal prototype to avoid an error. */
17454#ifdef __cplusplus
17455extern "C"
17456#endif
17457/* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17459char dld_link ();
17460int
17461main ()
17462{
17463dld_link ();
17464 ;
17465 return 0;
17466}
17467_ACEOF
17468rm -f conftest.$ac_objext conftest$ac_exeext
17469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17471 ac_status=$?
17472 grep -v '^ *+' conftest.er1 >conftest.err
17473 rm -f conftest.er1
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dld_dld_link=yes
17490else
17491 echo "$as_me: failed program was:" >&5
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
17494ac_cv_lib_dld_dld_link=no
17495fi
17496rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498LIBS=$ac_check_lib_save_LIBS
17499fi
17500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17501echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17502if test $ac_cv_lib_dld_dld_link = yes; then
17503 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17504fi
17505
17506
17507fi
17508
17509
17510fi
17511
17512
17513fi
17514
17515
17516fi
17517
17518
17519fi
17520
17521 ;;
17522 esac
17523
17524 if test "x$lt_cv_dlopen" != xno; then
17525 enable_dlopen=yes
17526 else
17527 enable_dlopen=no
17528 fi
17529
17530 case $lt_cv_dlopen in
17531 dlopen)
17532 save_CPPFLAGS="$CPPFLAGS"
17533 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17534
17535 save_LDFLAGS="$LDFLAGS"
17536 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17537
17538 save_LIBS="$LIBS"
17539 LIBS="$lt_cv_dlopen_libs $LIBS"
17540
17541 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17542echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17543if test "${lt_cv_dlopen_self+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545else
17546 if test "$cross_compiling" = yes; then :
17547 lt_cv_dlopen_self=cross
17548else
17549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17550 lt_status=$lt_dlunknown
17551 cat > conftest.$ac_ext <<EOF
17552#line 17552 "configure"
17553#include "confdefs.h"
17554
17555#if HAVE_DLFCN_H
17556#include <dlfcn.h>
17557#endif
17558
17559#include <stdio.h>
17560
17561#ifdef RTLD_GLOBAL
17562# define LT_DLGLOBAL RTLD_GLOBAL
17563#else
17564# ifdef DL_GLOBAL
17565# define LT_DLGLOBAL DL_GLOBAL
17566# else
17567# define LT_DLGLOBAL 0
17568# endif
17569#endif
17570
17571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17572 find out it does not work in some platform. */
17573#ifndef LT_DLLAZY_OR_NOW
17574# ifdef RTLD_LAZY
17575# define LT_DLLAZY_OR_NOW RTLD_LAZY
17576# else
17577# ifdef DL_LAZY
17578# define LT_DLLAZY_OR_NOW DL_LAZY
17579# else
17580# ifdef RTLD_NOW
17581# define LT_DLLAZY_OR_NOW RTLD_NOW
17582# else
17583# ifdef DL_NOW
17584# define LT_DLLAZY_OR_NOW DL_NOW
17585# else
17586# define LT_DLLAZY_OR_NOW 0
17587# endif
17588# endif
17589# endif
17590# endif
17591#endif
17592
17593#ifdef __cplusplus
17594extern "C" void exit (int);
17595#endif
17596
17597void fnord() { int i=42;}
17598int main ()
17599{
17600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17601 int status = $lt_dlunknown;
17602
17603 if (self)
17604 {
17605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17607 /* dlclose (self); */
17608 }
17609
17610 exit (status);
17611}
17612EOF
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17618 (./conftest; exit; ) 2>/dev/null
17619 lt_status=$?
17620 case x$lt_status in
17621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17623 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17624 esac
17625 else :
17626 # compilation failed
17627 lt_cv_dlopen_self=no
17628 fi
17629fi
17630rm -fr conftest*
17631
17632
17633fi
17634echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17635echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17636
17637 if test "x$lt_cv_dlopen_self" = xyes; then
17638 LDFLAGS="$LDFLAGS $link_static_flag"
17639 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17640echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17641if test "${lt_cv_dlopen_self_static+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643else
17644 if test "$cross_compiling" = yes; then :
17645 lt_cv_dlopen_self_static=cross
17646else
17647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17648 lt_status=$lt_dlunknown
17649 cat > conftest.$ac_ext <<EOF
17650#line 17650 "configure"
17651#include "confdefs.h"
17652
17653#if HAVE_DLFCN_H
17654#include <dlfcn.h>
17655#endif
17656
17657#include <stdio.h>
17658
17659#ifdef RTLD_GLOBAL
17660# define LT_DLGLOBAL RTLD_GLOBAL
17661#else
17662# ifdef DL_GLOBAL
17663# define LT_DLGLOBAL DL_GLOBAL
17664# else
17665# define LT_DLGLOBAL 0
17666# endif
17667#endif
17668
17669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17670 find out it does not work in some platform. */
17671#ifndef LT_DLLAZY_OR_NOW
17672# ifdef RTLD_LAZY
17673# define LT_DLLAZY_OR_NOW RTLD_LAZY
17674# else
17675# ifdef DL_LAZY
17676# define LT_DLLAZY_OR_NOW DL_LAZY
17677# else
17678# ifdef RTLD_NOW
17679# define LT_DLLAZY_OR_NOW RTLD_NOW
17680# else
17681# ifdef DL_NOW
17682# define LT_DLLAZY_OR_NOW DL_NOW
17683# else
17684# define LT_DLLAZY_OR_NOW 0
17685# endif
17686# endif
17687# endif
17688# endif
17689#endif
17690
17691#ifdef __cplusplus
17692extern "C" void exit (int);
17693#endif
17694
17695void fnord() { int i=42;}
17696int main ()
17697{
17698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17699 int status = $lt_dlunknown;
17700
17701 if (self)
17702 {
17703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17705 /* dlclose (self); */
17706 }
17707
17708 exit (status);
17709}
17710EOF
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17716 (./conftest; exit; ) 2>/dev/null
17717 lt_status=$?
17718 case x$lt_status in
17719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17721 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17722 esac
17723 else :
17724 # compilation failed
17725 lt_cv_dlopen_self_static=no
17726 fi
17727fi
17728rm -fr conftest*
17729
17730
17731fi
17732echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17733echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17734 fi
17735
17736 CPPFLAGS="$save_CPPFLAGS"
17737 LDFLAGS="$save_LDFLAGS"
17738 LIBS="$save_LIBS"
17739 ;;
17740 esac
17741
17742 case $lt_cv_dlopen_self in
17743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17744 *) enable_dlopen_self=unknown ;;
17745 esac
17746
17747 case $lt_cv_dlopen_self_static in
17748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17749 *) enable_dlopen_self_static=unknown ;;
17750 esac
17751fi
17752
17753
17754# The else clause should only fire when bootstrapping the
17755# libtool distribution, otherwise you forgot to ship ltmain.sh
17756# with your package, and you will get complaints that there are
17757# no rules to generate ltmain.sh.
17758if test -f "$ltmain"; then
17759 # See if we are running on zsh, and set the options which allow our commands through
17760 # without removal of \ escapes.
17761 if test -n "${ZSH_VERSION+set}" ; then
17762 setopt NO_GLOB_SUBST
17763 fi
17764 # Now quote all the things that may contain metacharacters while being
17765 # careful not to overquote the AC_SUBSTed values. We take copies of the
17766 # variables and quote the copies for generation of the libtool script.
17767 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17768 SED SHELL STRIP \
17769 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17770 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17771 deplibs_check_method reload_flag reload_cmds need_locks \
17772 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17773 lt_cv_sys_global_symbol_to_c_name_address \
17774 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17775 old_postinstall_cmds old_postuninstall_cmds \
17776 compiler_GCJ \
17777 CC_GCJ \
17778 LD_GCJ \
17779 lt_prog_compiler_wl_GCJ \
17780 lt_prog_compiler_pic_GCJ \
17781 lt_prog_compiler_static_GCJ \
17782 lt_prog_compiler_no_builtin_flag_GCJ \
17783 export_dynamic_flag_spec_GCJ \
17784 thread_safe_flag_spec_GCJ \
17785 whole_archive_flag_spec_GCJ \
17786 enable_shared_with_static_runtimes_GCJ \
17787 old_archive_cmds_GCJ \
17788 old_archive_from_new_cmds_GCJ \
17789 predep_objects_GCJ \
17790 postdep_objects_GCJ \
17791 predeps_GCJ \
17792 postdeps_GCJ \
17793 compiler_lib_search_path_GCJ \
17794 archive_cmds_GCJ \
17795 archive_expsym_cmds_GCJ \
17796 postinstall_cmds_GCJ \
17797 postuninstall_cmds_GCJ \
17798 old_archive_from_expsyms_cmds_GCJ \
17799 allow_undefined_flag_GCJ \
17800 no_undefined_flag_GCJ \
17801 export_symbols_cmds_GCJ \
17802 hardcode_libdir_flag_spec_GCJ \
17803 hardcode_libdir_flag_spec_ld_GCJ \
17804 hardcode_libdir_separator_GCJ \
17805 hardcode_automatic_GCJ \
17806 module_cmds_GCJ \
17807 module_expsym_cmds_GCJ \
17808 lt_cv_prog_compiler_c_o_GCJ \
17809 exclude_expsyms_GCJ \
17810 include_expsyms_GCJ; do
17811
17812 case $var in
17813 old_archive_cmds_GCJ | \
17814 old_archive_from_new_cmds_GCJ | \
17815 archive_cmds_GCJ | \
17816 archive_expsym_cmds_GCJ | \
17817 module_cmds_GCJ | \
17818 module_expsym_cmds_GCJ | \
17819 old_archive_from_expsyms_cmds_GCJ | \
17820 export_symbols_cmds_GCJ | \
17821 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17822 postinstall_cmds | postuninstall_cmds | \
17823 old_postinstall_cmds | old_postuninstall_cmds | \
17824 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17825 # Double-quote double-evaled strings.
17826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17827 ;;
17828 *)
17829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17830 ;;
17831 esac
17832 done
17833
17834 case $lt_echo in
17835 *'\$0 --fallback-echo"')
17836 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17837 ;;
17838 esac
17839
17840cfgfile="$ofile"
17841
17842 cat <<__EOF__ >> "$cfgfile"
17843# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17844
17845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17846
17847# Shell to use when invoking shell scripts.
17848SHELL=$lt_SHELL
17849
17850# Whether or not to build shared libraries.
17851build_libtool_libs=$enable_shared
17852
17853# Whether or not to build static libraries.
17854build_old_libs=$enable_static
17855
17856# Whether or not to add -lc for building shared libraries.
17857build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17858
17859# Whether or not to disallow shared libs when runtime libs are static
17860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17861
17862# Whether or not to optimize for fast installation.
17863fast_install=$enable_fast_install
17864
17865# The host system.
17866host_alias=$host_alias
17867host=$host
17868
17869# An echo program that does not interpret backslashes.
17870echo=$lt_echo
17871
17872# The archiver.
17873AR=$lt_AR
17874AR_FLAGS=$lt_AR_FLAGS
17875
17876# A C compiler.
17877LTCC=$lt_LTCC
17878
17879# A language-specific compiler.
17880CC=$lt_compiler_GCJ
17881
17882# Is the compiler the GNU C compiler?
17883with_gcc=$GCC_GCJ
17884
17885# An ERE matcher.
17886EGREP=$lt_EGREP
17887
17888# The linker used to build libraries.
17889LD=$lt_LD_GCJ
17890
17891# Whether we need hard or soft links.
17892LN_S=$lt_LN_S
17893
17894# A BSD-compatible nm program.
17895NM=$lt_NM
17896
17897# A symbol stripping program
17898STRIP=$lt_STRIP
17899
17900# Used to examine libraries when file_magic_cmd begins "file"
17901MAGIC_CMD=$MAGIC_CMD
17902
17903# Used on cygwin: DLL creation program.
17904DLLTOOL="$DLLTOOL"
17905
17906# Used on cygwin: object dumper.
17907OBJDUMP="$OBJDUMP"
17908
17909# Used on cygwin: assembler.
17910AS="$AS"
17911
17912# The name of the directory that contains temporary libtool files.
17913objdir=$objdir
17914
17915# How to create reloadable object files.
17916reload_flag=$lt_reload_flag
17917reload_cmds=$lt_reload_cmds
17918
17919# How to pass a linker flag through the compiler.
17920wl=$lt_lt_prog_compiler_wl_GCJ
17921
17922# Object file suffix (normally "o").
17923objext="$ac_objext"
17924
17925# Old archive suffix (normally "a").
17926libext="$libext"
17927
17928# Shared library suffix (normally ".so").
17929shrext_cmds='$shrext_cmds'
17930
17931# Executable file suffix (normally "").
17932exeext="$exeext"
17933
17934# Additional compiler flags for building library objects.
17935pic_flag=$lt_lt_prog_compiler_pic_GCJ
17936pic_mode=$pic_mode
17937
17938# What is the maximum length of a command?
17939max_cmd_len=$lt_cv_sys_max_cmd_len
17940
17941# Does compiler simultaneously support -c and -o options?
17942compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17943
17944# Must we lock files when doing compilation ?
17945need_locks=$lt_need_locks
17946
17947# Do we need the lib prefix for modules?
17948need_lib_prefix=$need_lib_prefix
17949
17950# Do we need a version for libraries?
17951need_version=$need_version
17952
17953# Whether dlopen is supported.
17954dlopen_support=$enable_dlopen
17955
17956# Whether dlopen of programs is supported.
17957dlopen_self=$enable_dlopen_self
17958
17959# Whether dlopen of statically linked programs is supported.
17960dlopen_self_static=$enable_dlopen_self_static
17961
17962# Compiler flag to prevent dynamic linking.
17963link_static_flag=$lt_lt_prog_compiler_static_GCJ
17964
17965# Compiler flag to turn off builtin functions.
17966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17967
17968# Compiler flag to allow reflexive dlopens.
17969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17970
17971# Compiler flag to generate shared objects directly from archives.
17972whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17973
17974# Compiler flag to generate thread-safe objects.
17975thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17976
17977# Library versioning type.
17978version_type=$version_type
17979
17980# Format of library name prefix.
17981libname_spec=$lt_libname_spec
17982
17983# List of archive names. First name is the real one, the rest are links.
17984# The last name is the one that the linker finds with -lNAME.
17985library_names_spec=$lt_library_names_spec
17986
17987# The coded name of the library, if different from the real name.
17988soname_spec=$lt_soname_spec
17989
17990# Commands used to build and install an old-style archive.
17991RANLIB=$lt_RANLIB
17992old_archive_cmds=$lt_old_archive_cmds_GCJ
17993old_postinstall_cmds=$lt_old_postinstall_cmds
17994old_postuninstall_cmds=$lt_old_postuninstall_cmds
17995
17996# Create an old-style archive from a shared archive.
17997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17998
17999# Create a temporary old-style archive to link instead of a shared archive.
18000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18001
18002# Commands used to build and install a shared archive.
18003archive_cmds=$lt_archive_cmds_GCJ
18004archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18005postinstall_cmds=$lt_postinstall_cmds
18006postuninstall_cmds=$lt_postuninstall_cmds
18007
18008# Commands used to build a loadable module (assumed same as above if empty)
18009module_cmds=$lt_module_cmds_GCJ
18010module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18011
18012# Commands to strip libraries.
18013old_striplib=$lt_old_striplib
18014striplib=$lt_striplib
18015
18016# Dependencies to place before the objects being linked to create a
18017# shared library.
18018predep_objects=$lt_predep_objects_GCJ
18019
18020# Dependencies to place after the objects being linked to create a
18021# shared library.
18022postdep_objects=$lt_postdep_objects_GCJ
18023
18024# Dependencies to place before the objects being linked to create a
18025# shared library.
18026predeps=$lt_predeps_GCJ
18027
18028# Dependencies to place after the objects being linked to create a
18029# shared library.
18030postdeps=$lt_postdeps_GCJ
18031
18032# The library search path used internally by the compiler when linking
18033# a shared library.
18034compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18035
18036# Method to check whether dependent libraries are shared objects.
18037deplibs_check_method=$lt_deplibs_check_method
18038
18039# Command to use when deplibs_check_method == file_magic.
18040file_magic_cmd=$lt_file_magic_cmd
18041
18042# Flag that allows shared libraries with undefined symbols to be built.
18043allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18044
18045# Flag that forces no undefined symbols.
18046no_undefined_flag=$lt_no_undefined_flag_GCJ
18047
18048# Commands used to finish a libtool library installation in a directory.
18049finish_cmds=$lt_finish_cmds
18050
18051# Same as above, but a single script fragment to be evaled but not shown.
18052finish_eval=$lt_finish_eval
18053
18054# Take the output of nm and produce a listing of raw symbols and C names.
18055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18056
18057# Transform the output of nm in a proper C declaration
18058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18059
18060# Transform the output of nm in a C name address pair
18061global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18062
18063# This is the shared library runtime path variable.
18064runpath_var=$runpath_var
18065
18066# This is the shared library path variable.
18067shlibpath_var=$shlibpath_var
18068
18069# Is shlibpath searched before the hard-coded library search path?
18070shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18071
18072# How to hardcode a shared library path into an executable.
18073hardcode_action=$hardcode_action_GCJ
18074
18075# Whether we should hardcode library paths into libraries.
18076hardcode_into_libs=$hardcode_into_libs
18077
18078# Flag to hardcode \$libdir into a binary during linking.
18079# This must work even if \$libdir does not exist.
18080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18081
18082# If ld is used when linking, flag to hardcode \$libdir into
18083# a binary during linking. This must work even if \$libdir does
18084# not exist.
18085hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18086
18087# Whether we need a single -rpath flag with a separated argument.
18088hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18089
18090# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18091# resulting binary.
18092hardcode_direct=$hardcode_direct_GCJ
18093
18094# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18095# resulting binary.
18096hardcode_minus_L=$hardcode_minus_L_GCJ
18097
18098# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18099# the resulting binary.
18100hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18101
18102# Set to yes if building a shared library automatically hardcodes DIR into the library
18103# and all subsequent libraries and executables linked against it.
18104hardcode_automatic=$hardcode_automatic_GCJ
18105
18106# Variables whose values should be saved in libtool wrapper scripts and
18107# restored at relink time.
18108variables_saved_for_relink="$variables_saved_for_relink"
18109
18110# Whether libtool must link a program against all its dependency libraries.
18111link_all_deplibs=$link_all_deplibs_GCJ
18112
18113# Compile-time system search path for libraries
18114sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18115
18116# Run-time system search path for libraries
18117sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18118
18119# Fix the shell variable \$srcfile for the compiler.
18120fix_srcfile_path="$fix_srcfile_path_GCJ"
18121
18122# Set to yes if exported symbols are required.
18123always_export_symbols=$always_export_symbols_GCJ
18124
18125# The commands to list exported symbols.
18126export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18127
18128# The commands to extract the exported symbol list from a shared archive.
18129extract_expsyms_cmds=$lt_extract_expsyms_cmds
18130
18131# Symbols that should not be listed in the preloaded symbols.
18132exclude_expsyms=$lt_exclude_expsyms_GCJ
18133
18134# Symbols that must always be exported.
18135include_expsyms=$lt_include_expsyms_GCJ
18136
18137# ### END LIBTOOL TAG CONFIG: $tagname
18138
18139__EOF__
18140
18141
18142else
18143 # If there is no Makefile yet, we rely on a make rule to execute
18144 # `config.status --recheck' to rerun these tests and create the
18145 # libtool script then.
18146 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18147 if test -f "$ltmain_in"; then
18148 test -f Makefile && make "$ltmain"
18149 fi
18150fi
18151
18152
18153ac_ext=c
18154ac_cpp='$CPP $CPPFLAGS'
18155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158
18159CC="$lt_save_CC"
18160
18161 else
18162 tagname=""
18163 fi
18164 ;;
18165
18166 RC)
18167
18168
18169
18170# Source file extension for RC test sources.
18171ac_ext=rc
18172
18173# Object file extension for compiled RC test sources.
18174objext=o
18175objext_RC=$objext
18176
18177# Code to be used in simple compile tests
18178lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18179
18180# Code to be used in simple link tests
18181lt_simple_link_test_code="$lt_simple_compile_test_code"
18182
18183# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18184
18185# If no C compiler was specified, use CC.
18186LTCC=${LTCC-"$CC"}
18187
18188# Allow CC to be a program name with arguments.
18189compiler=$CC
18190
18191
18192# Allow CC to be a program name with arguments.
18193lt_save_CC="$CC"
18194CC=${RC-"windres"}
18195compiler=$CC
18196compiler_RC=$CC
18197lt_cv_prog_compiler_c_o_RC=yes
18198
18199# The else clause should only fire when bootstrapping the
18200# libtool distribution, otherwise you forgot to ship ltmain.sh
18201# with your package, and you will get complaints that there are
18202# no rules to generate ltmain.sh.
18203if test -f "$ltmain"; then
18204 # See if we are running on zsh, and set the options which allow our commands through
18205 # without removal of \ escapes.
18206 if test -n "${ZSH_VERSION+set}" ; then
18207 setopt NO_GLOB_SUBST
18208 fi
18209 # Now quote all the things that may contain metacharacters while being
18210 # careful not to overquote the AC_SUBSTed values. We take copies of the
18211 # variables and quote the copies for generation of the libtool script.
18212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18213 SED SHELL STRIP \
18214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18216 deplibs_check_method reload_flag reload_cmds need_locks \
18217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18218 lt_cv_sys_global_symbol_to_c_name_address \
18219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18220 old_postinstall_cmds old_postuninstall_cmds \
18221 compiler_RC \
18222 CC_RC \
18223 LD_RC \
18224 lt_prog_compiler_wl_RC \
18225 lt_prog_compiler_pic_RC \
18226 lt_prog_compiler_static_RC \
18227 lt_prog_compiler_no_builtin_flag_RC \
18228 export_dynamic_flag_spec_RC \
18229 thread_safe_flag_spec_RC \
18230 whole_archive_flag_spec_RC \
18231 enable_shared_with_static_runtimes_RC \
18232 old_archive_cmds_RC \
18233 old_archive_from_new_cmds_RC \
18234 predep_objects_RC \
18235 postdep_objects_RC \
18236 predeps_RC \
18237 postdeps_RC \
18238 compiler_lib_search_path_RC \
18239 archive_cmds_RC \
18240 archive_expsym_cmds_RC \
18241 postinstall_cmds_RC \
18242 postuninstall_cmds_RC \
18243 old_archive_from_expsyms_cmds_RC \
18244 allow_undefined_flag_RC \
18245 no_undefined_flag_RC \
18246 export_symbols_cmds_RC \
18247 hardcode_libdir_flag_spec_RC \
18248 hardcode_libdir_flag_spec_ld_RC \
18249 hardcode_libdir_separator_RC \
18250 hardcode_automatic_RC \
18251 module_cmds_RC \
18252 module_expsym_cmds_RC \
18253 lt_cv_prog_compiler_c_o_RC \
18254 exclude_expsyms_RC \
18255 include_expsyms_RC; do
18256
18257 case $var in
18258 old_archive_cmds_RC | \
18259 old_archive_from_new_cmds_RC | \
18260 archive_cmds_RC | \
18261 archive_expsym_cmds_RC | \
18262 module_cmds_RC | \
18263 module_expsym_cmds_RC | \
18264 old_archive_from_expsyms_cmds_RC | \
18265 export_symbols_cmds_RC | \
18266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18267 postinstall_cmds | postuninstall_cmds | \
18268 old_postinstall_cmds | old_postuninstall_cmds | \
18269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18270 # Double-quote double-evaled strings.
18271 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18272 ;;
18273 *)
18274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18275 ;;
18276 esac
18277 done
18278
18279 case $lt_echo in
18280 *'\$0 --fallback-echo"')
18281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18282 ;;
18283 esac
18284
18285cfgfile="$ofile"
18286
18287 cat <<__EOF__ >> "$cfgfile"
18288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18289
18290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18291
18292# Shell to use when invoking shell scripts.
18293SHELL=$lt_SHELL
18294
18295# Whether or not to build shared libraries.
18296build_libtool_libs=$enable_shared
18297
18298# Whether or not to build static libraries.
18299build_old_libs=$enable_static
18300
18301# Whether or not to add -lc for building shared libraries.
18302build_libtool_need_lc=$archive_cmds_need_lc_RC
18303
18304# Whether or not to disallow shared libs when runtime libs are static
18305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18306
18307# Whether or not to optimize for fast installation.
18308fast_install=$enable_fast_install
18309
18310# The host system.
18311host_alias=$host_alias
18312host=$host
18313
18314# An echo program that does not interpret backslashes.
18315echo=$lt_echo
18316
18317# The archiver.
18318AR=$lt_AR
18319AR_FLAGS=$lt_AR_FLAGS
18320
18321# A C compiler.
18322LTCC=$lt_LTCC
18323
18324# A language-specific compiler.
18325CC=$lt_compiler_RC
18326
18327# Is the compiler the GNU C compiler?
18328with_gcc=$GCC_RC
18329
18330# An ERE matcher.
18331EGREP=$lt_EGREP
18332
18333# The linker used to build libraries.
18334LD=$lt_LD_RC
18335
18336# Whether we need hard or soft links.
18337LN_S=$lt_LN_S
18338
18339# A BSD-compatible nm program.
18340NM=$lt_NM
18341
18342# A symbol stripping program
18343STRIP=$lt_STRIP
18344
18345# Used to examine libraries when file_magic_cmd begins "file"
18346MAGIC_CMD=$MAGIC_CMD
18347
18348# Used on cygwin: DLL creation program.
18349DLLTOOL="$DLLTOOL"
18350
18351# Used on cygwin: object dumper.
18352OBJDUMP="$OBJDUMP"
18353
18354# Used on cygwin: assembler.
18355AS="$AS"
18356
18357# The name of the directory that contains temporary libtool files.
18358objdir=$objdir
18359
18360# How to create reloadable object files.
18361reload_flag=$lt_reload_flag
18362reload_cmds=$lt_reload_cmds
18363
18364# How to pass a linker flag through the compiler.
18365wl=$lt_lt_prog_compiler_wl_RC
18366
18367# Object file suffix (normally "o").
18368objext="$ac_objext"
18369
18370# Old archive suffix (normally "a").
18371libext="$libext"
18372
18373# Shared library suffix (normally ".so").
18374shrext_cmds='$shrext_cmds'
18375
18376# Executable file suffix (normally "").
18377exeext="$exeext"
18378
18379# Additional compiler flags for building library objects.
18380pic_flag=$lt_lt_prog_compiler_pic_RC
18381pic_mode=$pic_mode
18382
18383# What is the maximum length of a command?
18384max_cmd_len=$lt_cv_sys_max_cmd_len
18385
18386# Does compiler simultaneously support -c and -o options?
18387compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18388
18389# Must we lock files when doing compilation ?
18390need_locks=$lt_need_locks
18391
18392# Do we need the lib prefix for modules?
18393need_lib_prefix=$need_lib_prefix
18394
18395# Do we need a version for libraries?
18396need_version=$need_version
18397
18398# Whether dlopen is supported.
18399dlopen_support=$enable_dlopen
18400
18401# Whether dlopen of programs is supported.
18402dlopen_self=$enable_dlopen_self
18403
18404# Whether dlopen of statically linked programs is supported.
18405dlopen_self_static=$enable_dlopen_self_static
18406
18407# Compiler flag to prevent dynamic linking.
18408link_static_flag=$lt_lt_prog_compiler_static_RC
18409
18410# Compiler flag to turn off builtin functions.
18411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18412
18413# Compiler flag to allow reflexive dlopens.
18414export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18415
18416# Compiler flag to generate shared objects directly from archives.
18417whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18418
18419# Compiler flag to generate thread-safe objects.
18420thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18421
18422# Library versioning type.
18423version_type=$version_type
18424
18425# Format of library name prefix.
18426libname_spec=$lt_libname_spec
18427
18428# List of archive names. First name is the real one, the rest are links.
18429# The last name is the one that the linker finds with -lNAME.
18430library_names_spec=$lt_library_names_spec
18431
18432# The coded name of the library, if different from the real name.
18433soname_spec=$lt_soname_spec
18434
18435# Commands used to build and install an old-style archive.
18436RANLIB=$lt_RANLIB
18437old_archive_cmds=$lt_old_archive_cmds_RC
18438old_postinstall_cmds=$lt_old_postinstall_cmds
18439old_postuninstall_cmds=$lt_old_postuninstall_cmds
18440
18441# Create an old-style archive from a shared archive.
18442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18443
18444# Create a temporary old-style archive to link instead of a shared archive.
18445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18446
18447# Commands used to build and install a shared archive.
18448archive_cmds=$lt_archive_cmds_RC
18449archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18450postinstall_cmds=$lt_postinstall_cmds
18451postuninstall_cmds=$lt_postuninstall_cmds
18452
18453# Commands used to build a loadable module (assumed same as above if empty)
18454module_cmds=$lt_module_cmds_RC
18455module_expsym_cmds=$lt_module_expsym_cmds_RC
18456
18457# Commands to strip libraries.
18458old_striplib=$lt_old_striplib
18459striplib=$lt_striplib
18460
18461# Dependencies to place before the objects being linked to create a
18462# shared library.
18463predep_objects=$lt_predep_objects_RC
18464
18465# Dependencies to place after the objects being linked to create a
18466# shared library.
18467postdep_objects=$lt_postdep_objects_RC
18468
18469# Dependencies to place before the objects being linked to create a
18470# shared library.
18471predeps=$lt_predeps_RC
18472
18473# Dependencies to place after the objects being linked to create a
18474# shared library.
18475postdeps=$lt_postdeps_RC
18476
18477# The library search path used internally by the compiler when linking
18478# a shared library.
18479compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18480
18481# Method to check whether dependent libraries are shared objects.
18482deplibs_check_method=$lt_deplibs_check_method
18483
18484# Command to use when deplibs_check_method == file_magic.
18485file_magic_cmd=$lt_file_magic_cmd
18486
18487# Flag that allows shared libraries with undefined symbols to be built.
18488allow_undefined_flag=$lt_allow_undefined_flag_RC
18489
18490# Flag that forces no undefined symbols.
18491no_undefined_flag=$lt_no_undefined_flag_RC
18492
18493# Commands used to finish a libtool library installation in a directory.
18494finish_cmds=$lt_finish_cmds
18495
18496# Same as above, but a single script fragment to be evaled but not shown.
18497finish_eval=$lt_finish_eval
18498
18499# Take the output of nm and produce a listing of raw symbols and C names.
18500global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18501
18502# Transform the output of nm in a proper C declaration
18503global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18504
18505# Transform the output of nm in a C name address pair
18506global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18507
18508# This is the shared library runtime path variable.
18509runpath_var=$runpath_var
18510
18511# This is the shared library path variable.
18512shlibpath_var=$shlibpath_var
18513
18514# Is shlibpath searched before the hard-coded library search path?
18515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18516
18517# How to hardcode a shared library path into an executable.
18518hardcode_action=$hardcode_action_RC
18519
18520# Whether we should hardcode library paths into libraries.
18521hardcode_into_libs=$hardcode_into_libs
18522
18523# Flag to hardcode \$libdir into a binary during linking.
18524# This must work even if \$libdir does not exist.
18525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18526
18527# If ld is used when linking, flag to hardcode \$libdir into
18528# a binary during linking. This must work even if \$libdir does
18529# not exist.
18530hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18531
18532# Whether we need a single -rpath flag with a separated argument.
18533hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18534
18535# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18536# resulting binary.
18537hardcode_direct=$hardcode_direct_RC
18538
18539# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18540# resulting binary.
18541hardcode_minus_L=$hardcode_minus_L_RC
18542
18543# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18544# the resulting binary.
18545hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18546
18547# Set to yes if building a shared library automatically hardcodes DIR into the library
18548# and all subsequent libraries and executables linked against it.
18549hardcode_automatic=$hardcode_automatic_RC
18550
18551# Variables whose values should be saved in libtool wrapper scripts and
18552# restored at relink time.
18553variables_saved_for_relink="$variables_saved_for_relink"
18554
18555# Whether libtool must link a program against all its dependency libraries.
18556link_all_deplibs=$link_all_deplibs_RC
18557
18558# Compile-time system search path for libraries
18559sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18560
18561# Run-time system search path for libraries
18562sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18563
18564# Fix the shell variable \$srcfile for the compiler.
18565fix_srcfile_path="$fix_srcfile_path_RC"
18566
18567# Set to yes if exported symbols are required.
18568always_export_symbols=$always_export_symbols_RC
18569
18570# The commands to list exported symbols.
18571export_symbols_cmds=$lt_export_symbols_cmds_RC
18572
18573# The commands to extract the exported symbol list from a shared archive.
18574extract_expsyms_cmds=$lt_extract_expsyms_cmds
18575
18576# Symbols that should not be listed in the preloaded symbols.
18577exclude_expsyms=$lt_exclude_expsyms_RC
18578
18579# Symbols that must always be exported.
18580include_expsyms=$lt_include_expsyms_RC
18581
18582# ### END LIBTOOL TAG CONFIG: $tagname
18583
18584__EOF__
18585
18586
18587else
18588 # If there is no Makefile yet, we rely on a make rule to execute
18589 # `config.status --recheck' to rerun these tests and create the
18590 # libtool script then.
18591 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18592 if test -f "$ltmain_in"; then
18593 test -f Makefile && make "$ltmain"
18594 fi
18595fi
18596
18597
18598ac_ext=c
18599ac_cpp='$CPP $CPPFLAGS'
18600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602ac_compiler_gnu=$ac_cv_c_compiler_gnu
18603
18604CC="$lt_save_CC"
18605
18606 ;;
18607
18608 *)
18609 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18610echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18611 { (exit 1); exit 1; }; }
18612 ;;
18613 esac
18614
18615 # Append the new tag name to the list of available tags.
18616 if test -n "$tagname" ; then
18617 available_tags="$available_tags $tagname"
18618 fi
18619 fi
18620 done
18621 IFS="$lt_save_ifs"
18622
18623 # Now substitute the updated list of available tags.
18624 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18625 mv "${ofile}T" "$ofile"
18626 chmod +x "$ofile"
18627 else
18628 rm -f "${ofile}T"
18629 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18630echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18631 { (exit 1); exit 1; }; }
18632 fi
18633fi
18634
18635
18636
18637# This can be used to rebuild libtool when needed
18638LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18639
18640# Always use our own libtool.
18641LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18642
18643# Prevent multiple expansion
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662 8510
18663 8511
18664ac_ext=c 8512ac_ext=c
18665ac_cpp='$CPP $CPPFLAGS' 8513ac_cpp='$CPP $CPPFLAGS'
18666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382ac_cpp='$CPP $CPPFLAGS' 9230ac_cpp='$CPP $CPPFLAGS'
19383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385ac_compiler_gnu=$ac_cv_c_compiler_gnu 9233ac_compiler_gnu=$ac_cv_c_compiler_gnu
19386 9234
9235depcc="$CC" am_compiler_list=
9236
9237echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9238echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9239if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241else
9242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9243 # We make a subdir and do the tests there. Otherwise we can end up
9244 # making bogus files that we don't know about and never remove. For
9245 # instance it was reported that on HP-UX the gcc test will end up
9246 # making a dummy file named `D' -- because `-MD' means `put the output
9247 # in D'.
9248 mkdir conftest.dir
9249 # Copy depcomp to subdir because otherwise we won't find it if we're
9250 # using a relative directory.
9251 cp "$am_depcomp" conftest.dir
9252 cd conftest.dir
9253 # We will build objects and dependencies in a subdirectory because
9254 # it helps to detect inapplicable dependency modes. For instance
9255 # both Tru64's cc and ICC support -MD to output dependencies as a
9256 # side effect of compilation, but ICC will put the dependencies in
9257 # the current directory while Tru64 will put them in the object
9258 # directory.
9259 mkdir sub
9260
9261 am_cv_CC_dependencies_compiler_type=none
9262 if test "$am_compiler_list" = ""; then
9263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9264 fi
9265 for depmode in $am_compiler_list; do
9266 # Setup a source with many dependencies, because some compilers
9267 # like to wrap large dependency lists on column 80 (with \), and
9268 # we should not choose a depcomp mode which is confused by this.
9269 #
9270 # We need to recreate these files for each test, as the compiler may
9271 # overwrite some of them when testing with obscure command lines.
9272 # This happens at least with the AIX C compiler.
9273 : > sub/conftest.c
9274 for i in 1 2 3 4 5 6; do
9275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9276 : > sub/conftst$i.h
9277 done
9278 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9279
9280 case $depmode in
9281 nosideeffect)
9282 # after this tag, mechanisms are not by side-effect, so they'll
9283 # only be used when explicitly requested
9284 if test "x$enable_dependency_tracking" = xyes; then
9285 continue
9286 else
9287 break
9288 fi
9289 ;;
9290 none) break ;;
9291 esac
9292 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9293 # mode. It turns out that the SunPro C++ compiler does not properly
9294 # handle `-M -o', and we need to detect this.
9295 if depmode=$depmode \
9296 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9297 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9298 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9299 >/dev/null 2>conftest.err &&
9300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9301 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9303 # icc doesn't choke on unknown options, it will just issue warnings
9304 # (even with -Werror). So we grep stderr for any message
9305 # that says an option was ignored.
9306 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
9307 am_cv_CC_dependencies_compiler_type=$depmode
9308 break
9309 fi
9310 fi
9311 done
9312
9313 cd ..
9314 rm -rf conftest.dir
9315else
9316 am_cv_CC_dependencies_compiler_type=none
9317fi
9318
9319fi
9320echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9321echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9322CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9323
9324
9325
9326if
9327 test "x$enable_dependency_tracking" != xno \
9328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9329 am__fastdepCC_TRUE=
9330 am__fastdepCC_FALSE='#'
9331else
9332 am__fastdepCC_TRUE='#'
9333 am__fastdepCC_FALSE=
9334fi
9335
9336
19387 9337
19388case "$target" in 9338case "$target" in
19389 alpha-dec-osf*) 9339 alpha-dec-osf*)
19390 # If we are not using gcc, we want the ansi version of cc. 9340 # If we are not using gcc, we want the ansi version of cc.
19391 if test -z "$GCC"; then 9341 if test -z "$GCC"; then
19630ac_cpp='$CPP $CPPFLAGS' 9580ac_cpp='$CPP $CPPFLAGS'
19631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633ac_compiler_gnu=$ac_cv_c_compiler_gnu 9583ac_compiler_gnu=$ac_cv_c_compiler_gnu
19634 9584
19635missing_dir=`cd $ac_aux_dir && pwd`
19636for ac_prog in flex lex
19637do
19638 # Extract the first word of "$ac_prog", so it can be a program name with args.
19639set dummy $ac_prog; ac_word=$2
19640echo "$as_me:$LINENO: checking for $ac_word" >&5
19641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19642if test "${ac_cv_prog_LEX+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644else
19645 if test -n "$LEX"; then
19646 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19647else
19648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649for as_dir in $PATH
19650do
19651 IFS=$as_save_IFS
19652 test -z "$as_dir" && as_dir=.
19653 for ac_exec_ext in '' $ac_executable_extensions; do
19654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19655 ac_cv_prog_LEX="$ac_prog"
19656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19657 break 2
19658 fi
19659done
19660done
19661
19662fi
19663fi
19664LEX=$ac_cv_prog_LEX
19665if test -n "$LEX"; then
19666 echo "$as_me:$LINENO: result: $LEX" >&5
19667echo "${ECHO_T}$LEX" >&6
19668else
19669 echo "$as_me:$LINENO: result: no" >&5
19670echo "${ECHO_T}no" >&6
19671fi
19672
19673 test -n "$LEX" && break
19674done
19675test -n "$LEX" || LEX="$missing_dir/missing flex"
19676
19677for ac_prog in flex lex 9585for ac_prog in flex lex
19678do 9586do
19679 # Extract the first word of "$ac_prog", so it can be a program name with args. 9587 # Extract the first word of "$ac_prog", so it can be a program name with args.
19680set dummy $ac_prog; ac_word=$2 9588set dummy $ac_prog; ac_word=$2
19681echo "$as_me:$LINENO: checking for $ac_word" >&5 9589echo "$as_me:$LINENO: checking for $ac_word" >&5
19943_ACEOF 9851_ACEOF
19944 9852
19945fi 9853fi
19946 9854
19947fi 9855fi
19948 9856if test "$LEX" = :; then
9857 LEX=${am_missing_run}flex
9858fi
19949for ac_prog in gawk mawk nawk awk 9859for ac_prog in gawk mawk nawk awk
19950do 9860do
19951 # Extract the first word of "$ac_prog", so it can be a program name with args. 9861 # Extract the first word of "$ac_prog", so it can be a program name with args.
19952set dummy $ac_prog; ac_word=$2 9862set dummy $ac_prog; ac_word=$2
19953echo "$as_me:$LINENO: checking for $ac_word" >&5 9863echo "$as_me:$LINENO: checking for $ac_word" >&5
20652/* confdefs.h. */ 10562/* confdefs.h. */
20653_ACEOF 10563_ACEOF
20654cat confdefs.h >>conftest.$ac_ext 10564cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF 10565cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */ 10566/* end confdefs.h. */
20657#include <X11/Intrinsic.h> 10567#include <X11/Xlib.h>
20658_ACEOF 10568_ACEOF
20659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20661 ac_status=$? 10571 ac_status=$?
20662 grep -v '^ *+' conftest.er1 >conftest.err 10572 grep -v '^ *+' conftest.er1 >conftest.err
20679else 10589else
20680 echo "$as_me: failed program was:" >&5 10590 echo "$as_me: failed program was:" >&5
20681sed 's/^/| /' conftest.$ac_ext >&5 10591sed 's/^/| /' conftest.$ac_ext >&5
20682 10592
20683 for ac_dir in $ac_x_header_dirs; do 10593 for ac_dir in $ac_x_header_dirs; do
20684 if test -r "$ac_dir/X11/Intrinsic.h"; then 10594 if test -r "$ac_dir/X11/Xlib.h"; then
20685 ac_x_includes=$ac_dir 10595 ac_x_includes=$ac_dir
20686 break 10596 break
20687 fi 10597 fi
20688done 10598done
20689fi 10599fi
20693if test "$ac_x_libraries" = no; then 10603if test "$ac_x_libraries" = no; then
20694 # Check for the libraries. 10604 # Check for the libraries.
20695 # See if we find them without any special options. 10605 # See if we find them without any special options.
20696 # Don't add to $LIBS permanently. 10606 # Don't add to $LIBS permanently.
20697 ac_save_LIBS=$LIBS 10607 ac_save_LIBS=$LIBS
20698 LIBS="-lXt $LIBS" 10608 LIBS="-lX11 $LIBS"
20699 cat >conftest.$ac_ext <<_ACEOF 10609 cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */ 10610/* confdefs.h. */
20701_ACEOF 10611_ACEOF
20702cat confdefs.h >>conftest.$ac_ext 10612cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF 10613cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */ 10614/* end confdefs.h. */
20705#include <X11/Intrinsic.h> 10615#include <X11/Xlib.h>
20706int 10616int
20707main () 10617main ()
20708{ 10618{
20709XtMalloc (0) 10619XrmInitialize ()
20710 ; 10620 ;
20711 return 0; 10621 return 0;
20712} 10622}
20713_ACEOF 10623_ACEOF
20714rm -f conftest.$ac_objext conftest$ac_exeext 10624rm -f conftest.$ac_objext conftest$ac_exeext
20742LIBS=$ac_save_LIBS 10652LIBS=$ac_save_LIBS
20743for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10653for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20744do 10654do
20745 # Don't even attempt the hair of trying to link an X program! 10655 # Don't even attempt the hair of trying to link an X program!
20746 for ac_extension in a so sl; do 10656 for ac_extension in a so sl; do
20747 if test -r $ac_dir/libXt.$ac_extension; then 10657 if test -r $ac_dir/libX11.$ac_extension; then
20748 ac_x_libraries=$ac_dir 10658 ac_x_libraries=$ac_dir
20749 break 2 10659 break 2
20750 fi 10660 fi
20751 done 10661 done
20752done 10662done
25887fi 15797fi
25888 15798
25889 15799
25890 15800
25891 15801
15802
25892pkgstatedir=$localstatedir/$PACKAGE 15803pkgstatedir=$localstatedir/$PACKAGE
25893 15804
25894pkgconfdir=$sysconfdir/$PACKAGE 15805pkgconfdir=$sysconfdir/$PACKAGE
25895 15806
25896 15807
26101 PERL_PLUGIN_TRUE='#' 16012 PERL_PLUGIN_TRUE='#'
26102 PERL_PLUGIN_FALSE= 16013 PERL_PLUGIN_FALSE=
26103fi 16014fi
26104 16015
26105 16016
16017
26106############################################# 16018#############################################
26107# Plugin configuration 16019# Plugin configuration
26108echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16020echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16021echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26110if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16022if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26179 HAVE_LIBDL_FALSE='#' 16091 HAVE_LIBDL_FALSE='#'
26180else 16092else
26181 HAVE_LIBDL_TRUE='#' 16093 HAVE_LIBDL_TRUE='#'
26182 HAVE_LIBDL_FALSE= 16094 HAVE_LIBDL_FALSE=
26183fi 16095fi
16096
26184 16097
26185if test "x$cf_have_libdl" = "xyes" ; then 16098if test "x$cf_have_libdl" = "xyes" ; then
26186 ############### 16099 ###############
26187 # Python plugin 16100 # Python plugin
26188 16101
27079 PYTHON_PLUGIN_TRUE='#' 16992 PYTHON_PLUGIN_TRUE='#'
27080 PYTHON_PLUGIN_FALSE= 16993 PYTHON_PLUGIN_FALSE=
27081fi 16994fi
27082 16995
27083 16996
16997
16998# crossedit compilability check
16999
17000
17001 ac_save_LIBS="$LIBS"
17002
17003 LIBS=""$X11LIBS" $LIBS"
17004 echo "$as_me:$LINENO: checking for crossedit required headers" >&5
17005echo $ECHO_N "checking for crossedit required headers... $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17007/* confdefs.h. */
17008_ACEOF
17009cat confdefs.h >>conftest.$ac_ext
17010cat >>conftest.$ac_ext <<_ACEOF
17011/* end confdefs.h. */
17012
17013#include <X11/Xaw/AllWidgets.h>
17014
17015int
17016main ()
17017{
17018
17019 ;
17020 return 0;
17021}
17022_ACEOF
17023rm -f conftest.$ac_objext conftest$ac_exeext
17024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 echo "$as_me:$LINENO: result: yes" >&5
17045echo "${ECHO_T}yes" >&6
17046 cf_will_build_crossedit="yes"
17047 CROSSEDIT='crossedit'
17048
17049else
17050 echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
17053echo "$as_me:$LINENO: result: no" >&5
17054echo "${ECHO_T}no" >&6
17055 cf_will_build_crossedit="no"
17056fi
17057rm -f conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 LIBS="$ac_save_LIBS"
17060
17061
27084 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/common/Makefile plugins/common/include/Makefile devel/Makefile plugins/cfperl/Makefile" 17062 ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/common/Makefile plugins/common/include/Makefile devel/Makefile plugins/cfperl/Makefile"
27085cat >confcache <<\_ACEOF 17063cat >confcache <<\_ACEOF
27086# This file is a shell script that caches the results of configure 17064# This file is a shell script that caches the results of configure
27087# tests run on this system so they can be shared between configure 17065# tests run on this system so they can be shared between configure
27088# scripts and configure runs, see configure's option --config-cache. 17066# scripts and configure runs, see configure's option --config-cache.
27171LIBOBJS=$ac_libobjs 17149LIBOBJS=$ac_libobjs
27172 17150
27173LTLIBOBJS=$ac_ltlibobjs 17151LTLIBOBJS=$ac_ltlibobjs
27174 17152
27175 17153
17154if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17155 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17156Usually this means the macro was only invoked conditionally." >&5
17157echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17158Usually this means the macro was only invoked conditionally." >&2;}
17159 { (exit 1); exit 1; }; }
17160fi
17161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17162 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17163Usually this means the macro was only invoked conditionally." >&5
17164echo "$as_me: error: conditional \"AMDEP\" was never defined.
17165Usually this means the macro was only invoked conditionally." >&2;}
17166 { (exit 1); exit 1; }; }
17167fi
17168if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17169 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17170Usually this means the macro was only invoked conditionally." >&5
17171echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17172Usually this means the macro was only invoked conditionally." >&2;}
17173 { (exit 1); exit 1; }; }
17174fi
17175if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17176 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17177Usually this means the macro was only invoked conditionally." >&5
17178echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17179Usually this means the macro was only invoked conditionally." >&2;}
17180 { (exit 1); exit 1; }; }
17181fi
17182if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
17183 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
17184Usually this means the macro was only invoked conditionally." >&5
17185echo "$as_me: error: conditional \"HAVE_X\" was never defined.
17186Usually this means the macro was only invoked conditionally." >&2;}
17187 { (exit 1); exit 1; }; }
17188fi
17189if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then
17190 { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined.
17191Usually this means the macro was only invoked conditionally." >&5
17192echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined.
17193Usually this means the macro was only invoked conditionally." >&2;}
17194 { (exit 1); exit 1; }; }
17195fi
17196if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
17197 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined.
17198Usually this means the macro was only invoked conditionally." >&5
17199echo "$as_me: error: conditional \"HAVE_LIBDL\" was never defined.
17200Usually this means the macro was only invoked conditionally." >&2;}
17201 { (exit 1); exit 1; }; }
17202fi
17203if test -z "${PYTHON_PLUGIN_TRUE}" && test -z "${PYTHON_PLUGIN_FALSE}"; then
17204 { { echo "$as_me:$LINENO: error: conditional \"PYTHON_PLUGIN\" was never defined.
17205Usually this means the macro was only invoked conditionally." >&5
17206echo "$as_me: error: conditional \"PYTHON_PLUGIN\" was never defined.
17207Usually this means the macro was only invoked conditionally." >&2;}
17208 { (exit 1); exit 1; }; }
17209fi
27176 17210
27177: ${CONFIG_STATUS=./config.status} 17211: ${CONFIG_STATUS=./config.status}
27178ac_clean_files_save=$ac_clean_files 17212ac_clean_files_save=$ac_clean_files
27179ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17213ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27180{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 17214{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27603 17637
27604cat >>$CONFIG_STATUS <<_ACEOF 17638cat >>$CONFIG_STATUS <<_ACEOF
27605# 17639#
27606# INIT-COMMANDS section. 17640# INIT-COMMANDS section.
27607# 17641#
17642
17643AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17644
17645
17646# The HP-UX ksh and POSIX shell print the target directory to stdout
17647# if CDPATH is set.
17648if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
17649
17650sed_quote_subst='$sed_quote_subst'
17651double_quote_subst='$double_quote_subst'
17652delay_variable_subst='$delay_variable_subst'
17653macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17654macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17655enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17656enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17657pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17658enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17659host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17660host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17661SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17662Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17663GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17664EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17665LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17666reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17667reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17668NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17669LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17670deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17671file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17672AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17673AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17674STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17675RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17676old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17677old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17678old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17679lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17680lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17681lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17682lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17683ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17684exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17685objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17686CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17687compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17688GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17689SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17690echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17691MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17692lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17693lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17694lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17695lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17696lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17697need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17698libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17699shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17700extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17701variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17702archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17703enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17704export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17705whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17706old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17707old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17708archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17709archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17710module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17711module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17712allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17713no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17714hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17715hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17716hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17717hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17718hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17719hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17720hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17721inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17722link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17723fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17724always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17725export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17727include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17728need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17729need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17730version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17731runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17732shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17733shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17734libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17735library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17736soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17737postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17738postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17739finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17740finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17741hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17742sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17743sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17744hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17745old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17746striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17747enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17748enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17749enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17750
17751LTCC='$LTCC'
17752compiler='$compiler_DEFAULT'
17753
17754# Quote evaled strings.
17755for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
17756 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17757done
17758
17759# Double-quote double-evaled strings.
17760for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
17761 eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17762done
17763
17764# Fix-up fallback echo if it was mangled by the above quoting rules.
17765case \$lt_echo in
17766*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17767 ;;
17768esac
17769
17770ac_aux_dir='$ac_aux_dir'
17771
17772# See if we are running on zsh, and set the options which allow our
17773# commands through without removal of \ escapes INIT.
17774if test -n "\${ZSH_VERSION+set}" ; then
17775 setopt NO_GLOB_SUBST
17776fi
17777
17778
17779 PACKAGE='$PACKAGE'
17780 VERSION='$VERSION'
17781 TIMESTAMP='$TIMESTAMP'
17782 rm='$rm'
17783 ofile='$ofile'
17784
27608 17785
27609 17786
27610 17787
27611_ACEOF 17788_ACEOF
27612 17789
27654 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;; 17831 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;;
27655 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;; 17832 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;;
27656 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;; 17833 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;;
27657 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; 17834 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
27658 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;; 17835 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;;
27659 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 17836 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17837 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27660 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 17838 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
27661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17839 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27662echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17840echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27663 { (exit 1); exit 1; }; };; 17841 { (exit 1); exit 1; }; };;
27664 esac 17842 esac
27744s,@ECHO_T@,$ECHO_T,;t t 17922s,@ECHO_T@,$ECHO_T,;t t
27745s,@LIBS@,$LIBS,;t t 17923s,@LIBS@,$LIBS,;t t
27746s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 17924s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27747s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 17925s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27748s,@INSTALL_DATA@,$INSTALL_DATA,;t t 17926s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17927s,@CYGPATH_W@,$CYGPATH_W,;t t
27749s,@PACKAGE@,$PACKAGE,;t t 17928s,@PACKAGE@,$PACKAGE,;t t
27750s,@VERSION@,$VERSION,;t t 17929s,@VERSION@,$VERSION,;t t
27751s,@ACLOCAL@,$ACLOCAL,;t t 17930s,@ACLOCAL@,$ACLOCAL,;t t
27752s,@AUTOCONF@,$AUTOCONF,;t t 17931s,@AUTOCONF@,$AUTOCONF,;t t
27753s,@AUTOMAKE@,$AUTOMAKE,;t t 17932s,@AUTOMAKE@,$AUTOMAKE,;t t
27754s,@AUTOHEADER@,$AUTOHEADER,;t t 17933s,@AUTOHEADER@,$AUTOHEADER,;t t
27755s,@MAKEINFO@,$MAKEINFO,;t t 17934s,@MAKEINFO@,$MAKEINFO,;t t
17935s,@AMTAR@,$AMTAR,;t t
17936s,@install_sh@,$install_sh,;t t
17937s,@STRIP@,$STRIP,;t t
17938s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17939s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17940s,@AWK@,$AWK,;t t
27756s,@SET_MAKE@,$SET_MAKE,;t t 17941s,@SET_MAKE@,$SET_MAKE,;t t
17942s,@am__leading_dot@,$am__leading_dot,;t t
27757s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 17943s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
27758s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 17944s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
27759s,@MAINT@,$MAINT,;t t 17945s,@MAINT@,$MAINT,;t t
17946s,@LIBTOOL@,$LIBTOOL,;t t
27760s,@build@,$build,;t t 17947s,@build@,$build,;t t
27761s,@build_cpu@,$build_cpu,;t t 17948s,@build_cpu@,$build_cpu,;t t
27762s,@build_vendor@,$build_vendor,;t t 17949s,@build_vendor@,$build_vendor,;t t
27763s,@build_os@,$build_os,;t t 17950s,@build_os@,$build_os,;t t
27764s,@host@,$host,;t t 17951s,@host@,$host,;t t
27770s,@LDFLAGS@,$LDFLAGS,;t t 17957s,@LDFLAGS@,$LDFLAGS,;t t
27771s,@CPPFLAGS@,$CPPFLAGS,;t t 17958s,@CPPFLAGS@,$CPPFLAGS,;t t
27772s,@ac_ct_CC@,$ac_ct_CC,;t t 17959s,@ac_ct_CC@,$ac_ct_CC,;t t
27773s,@EXEEXT@,$EXEEXT,;t t 17960s,@EXEEXT@,$EXEEXT,;t t
27774s,@OBJEXT@,$OBJEXT,;t t 17961s,@OBJEXT@,$OBJEXT,;t t
17962s,@DEPDIR@,$DEPDIR,;t t
17963s,@am__include@,$am__include,;t t
17964s,@am__quote@,$am__quote,;t t
17965s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17966s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17967s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17968s,@CCDEPMODE@,$CCDEPMODE,;t t
17969s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17970s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17971s,@SED@,$SED,;t t
27775s,@EGREP@,$EGREP,;t t 17972s,@EGREP@,$EGREP,;t t
17973s,@LD@,$LD,;t t
17974s,@NM@,$NM,;t t
27776s,@LN_S@,$LN_S,;t t 17975s,@LN_S@,$LN_S,;t t
27777s,@ECHO@,$ECHO,;t t
27778s,@AR@,$AR,;t t 17976s,@AR@,$AR,;t t
27779s,@ac_ct_AR@,$ac_ct_AR,;t t 17977s,@ac_ct_AR@,$ac_ct_AR,;t t
27780s,@RANLIB@,$RANLIB,;t t 17978s,@RANLIB@,$RANLIB,;t t
27781s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 17979s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27782s,@STRIP@,$STRIP,;t t 17980s,@ECHO@,$ECHO,;t t
27783s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27784s,@CPP@,$CPP,;t t 17981s,@CPP@,$CPP,;t t
27785s,@CXX@,$CXX,;t t
27786s,@CXXFLAGS@,$CXXFLAGS,;t t
27787s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27788s,@CXXCPP@,$CXXCPP,;t t
27789s,@F77@,$F77,;t t
27790s,@FFLAGS@,$FFLAGS,;t t
27791s,@ac_ct_F77@,$ac_ct_F77,;t t
27792s,@LIBTOOL@,$LIBTOOL,;t t
27793s,@LEX@,$LEX,;t t 17982s,@LEX@,$LEX,;t t
27794s,@LEXLIB@,$LEXLIB,;t t 17983s,@LEXLIB@,$LEXLIB,;t t
27795s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 17984s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
27796s,@AWK@,$AWK,;t t
27797s,@LATEX@,$LATEX,;t t 17985s,@LATEX@,$LATEX,;t t
27798s,@GZIP@,$GZIP,;t t 17986s,@GZIP@,$GZIP,;t t
27799s,@GUNZIP@,$GUNZIP,;t t 17987s,@GUNZIP@,$GUNZIP,;t t
27800s,@TAR@,$TAR,;t t 17988s,@TAR@,$TAR,;t t
27801s,@PERL@,$PERL,;t t 17989s,@PERL@,$PERL,;t t
27829s,@PY_LIBS@,$PY_LIBS,;t t 18017s,@PY_LIBS@,$PY_LIBS,;t t
27830s,@PY_INCLUDES@,$PY_INCLUDES,;t t 18018s,@PY_INCLUDES@,$PY_INCLUDES,;t t
27831s,@PYTHON_PLUGIN_TRUE@,$PYTHON_PLUGIN_TRUE,;t t 18019s,@PYTHON_PLUGIN_TRUE@,$PYTHON_PLUGIN_TRUE,;t t
27832s,@PYTHON_PLUGIN_FALSE@,$PYTHON_PLUGIN_FALSE,;t t 18020s,@PYTHON_PLUGIN_FALSE@,$PYTHON_PLUGIN_FALSE,;t t
27833s,@PLUGIN_PYTHON@,$PLUGIN_PYTHON,;t t 18021s,@PLUGIN_PYTHON@,$PLUGIN_PYTHON,;t t
18022s,@CROSSEDIT@,$CROSSEDIT,;t t
27834s,@LTLIBOBJS@,$LTLIBOBJS,;t t 18023s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27835CEOF 18024CEOF
27836 18025
27837_ACEOF 18026_ACEOF
27838 18027
28290 fi 18479 fi
28291 else 18480 else
28292 cat $tmp/config.h 18481 cat $tmp/config.h
28293 rm -f $tmp/config.h 18482 rm -f $tmp/config.h
28294 fi 18483 fi
18484# Compute $ac_file's index in $config_headers.
18485_am_stamp_count=1
18486for _am_header in $config_headers :; do
18487 case $_am_header in
18488 $ac_file | $ac_file:* )
18489 break ;;
18490 * )
18491 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18492 esac
18493done
18494echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18495$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18496 X$ac_file : 'X\(//\)[^/]' \| \
18497 X$ac_file : 'X\(//\)$' \| \
18498 X$ac_file : 'X\(/\)' \| \
18499 . : '\(.\)' 2>/dev/null ||
18500echo X$ac_file |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18503 /^X\(\/\/\)$/{ s//\1/; q; }
18504 /^X\(\/\).*/{ s//\1/; q; }
18505 s/.*/./; q'`/stamp-h$_am_stamp_count
28295done 18506done
28296_ACEOF 18507_ACEOF
28297cat >>$CONFIG_STATUS <<\_ACEOF 18508cat >>$CONFIG_STATUS <<\_ACEOF
28298 18509
28299# 18510#
28406 18617
28407 18618
28408 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 18619 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28409echo "$as_me: executing $ac_dest commands" >&6;} 18620echo "$as_me: executing $ac_dest commands" >&6;}
28410 case $ac_dest in 18621 case $ac_dest in
28411 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;; 18622 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18623 # Strip MF so we end up with the name of the file.
18624 mf=`echo "$mf" | sed -e 's/:.*$//'`
18625 # Check whether this is an Automake generated Makefile or not.
18626 # We used to match only the files named `Makefile.in', but
18627 # some people rename them; so instead we look at the file content.
18628 # Grep'ing the first line is not enough: some people post-process
18629 # each Makefile.in and add a new line on top of each file to say so.
18630 # So let's grep whole file.
18631 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18632 dirpart=`(dirname "$mf") 2>/dev/null ||
18633$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18634 X"$mf" : 'X\(//\)[^/]' \| \
18635 X"$mf" : 'X\(//\)$' \| \
18636 X"$mf" : 'X\(/\)' \| \
18637 . : '\(.\)' 2>/dev/null ||
18638echo X"$mf" |
18639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18640 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18641 /^X\(\/\/\)$/{ s//\1/; q; }
18642 /^X\(\/\).*/{ s//\1/; q; }
18643 s/.*/./; q'`
18644 else
18645 continue
18646 fi
18647 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18648 # Extract the definition of DEP_FILES from the Makefile without
18649 # running `make'.
18650 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18651 test -z "$DEPDIR" && continue
18652 # When using ansi2knr, U may be empty or an underscore; expand it
18653 U=`sed -n -e '/^U = / s///p' < "$mf"`
18654 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18655 # We invoke sed twice because it is the simplest approach to
18656 # changing $(DEPDIR) to its actual value in the expansion.
18657 for file in `sed -n -e '
18658 /^DEP_FILES = .*\\\\$/ {
18659 s/^DEP_FILES = //
18660 :loop
18661 s/\\\\$//
18662 p
18663 n
18664 /\\\\$/ b loop
18665 p
18666 }
18667 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18669 # Make sure the directory exists.
18670 test -f "$dirpart/$file" && continue
18671 fdir=`(dirname "$file") 2>/dev/null ||
18672$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18673 X"$file" : 'X\(//\)[^/]' \| \
18674 X"$file" : 'X\(//\)$' \| \
18675 X"$file" : 'X\(/\)' \| \
18676 . : '\(.\)' 2>/dev/null ||
18677echo X"$file" |
18678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18680 /^X\(\/\/\)$/{ s//\1/; q; }
18681 /^X\(\/\).*/{ s//\1/; q; }
18682 s/.*/./; q'`
18683 { if $as_mkdir_p; then
18684 mkdir -p $dirpart/$fdir
18685 else
18686 as_dir=$dirpart/$fdir
18687 as_dirs=
18688 while test ! -d "$as_dir"; do
18689 as_dirs="$as_dir $as_dirs"
18690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18692 X"$as_dir" : 'X\(//\)[^/]' \| \
18693 X"$as_dir" : 'X\(//\)$' \| \
18694 X"$as_dir" : 'X\(/\)' \| \
18695 . : '\(.\)' 2>/dev/null ||
18696echo X"$as_dir" |
18697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18699 /^X\(\/\/\)$/{ s//\1/; q; }
18700 /^X\(\/\).*/{ s//\1/; q; }
18701 s/.*/./; q'`
18702 done
18703 test ! -n "$as_dirs" || mkdir $as_dirs
18704 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18705echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18706 { (exit 1); exit 1; }; }; }
18707
18708 # echo "creating $dirpart/$file"
18709 echo '# dummy' > "$dirpart/$file"
18710 done
18711done
18712 ;;
18713 libtool )
18714
18715 # See if we are running on zsh, and set the options which allow our
18716 # commands through without removal of \ escapes.
18717 if test -n "${ZSH_VERSION+set}" ; then
18718 setopt NO_GLOB_SUBST
18719 fi
18720
18721 cfgfile="${ofile}T"
18722 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18723 $rm -f "$cfgfile"
18724
18725 cat <<_LT_EOF >> "$cfgfile"
18726#! $SHELL
18727
18728# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18729# Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
18730# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18732#
18733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
18734# Free Software Foundation, Inc.
18735#
18736# This file is part of GNU Libtool:
18737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18738#
18739# This program is free software; you can redistribute it and/or modify
18740# it under the terms of the GNU General Public License as published by
18741# the Free Software Foundation; either version 2 of the License, or
18742# (at your option) any later version.
18743#
18744# This program is distributed in the hope that it will be useful, but
18745# WITHOUT ANY WARRANTY; without even the implied warranty of
18746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18747# General Public License for more details.
18748#
18749# You should have received a copy of the GNU General Public License
18750# along with this program; if not, write to the Free Software
18751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18752#
18753# As a special exception to the GNU General Public License, if you
18754# distribute this file as part of a program that contains a
18755# configuration script generated by Autoconf, you may include it under
18756# the same distribution terms that you use for the rest of that program.
18757
18758
18759
18760# The names of the tagged configurations supported by this script.
18761available_tags=""
18762
18763# ### BEGIN LIBTOOL CONFIG
18764
18765# Which release of libtool.m4 was used?
18766macro_version=$macro_version
18767macro_revision=$macro_revision
18768
18769# Whether or not to build shared libraries.
18770build_libtool_libs=$enable_shared
18771
18772# Whether or not to build static libraries.
18773build_old_libs=$enable_static
18774
18775# What type of objects to build.
18776pic_mode=$pic_mode
18777
18778# Whether or not to optimize for fast installation.
18779fast_install=$enable_fast_install
18780
18781# The host system.
18782host_alias=$host_alias
18783host=$host
18784
18785# A sed program that does not truncate output.
18786SED=$lt_SED
18787
18788# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18789Xsed="\$SED -e s/^X//"
18790
18791# A grep program that handles long line.
18792GREP=$lt_GREP
18793
18794# An ERE matcher.
18795EGREP=$lt_EGREP
18796
18797# How to create reloadable object files.
18798reload_flag=$lt_reload_flag
18799reload_cmds=$lt_reload_cmds
18800
18801# A BSD-compatible nm program.
18802NM=$lt_NM
18803
18804# Whether we need soft or hard links.
18805LN_S=$lt_LN_S
18806
18807# Method to check whether dependent libraries are shared objects.
18808deplibs_check_method=$lt_deplibs_check_method
18809
18810# Command to use when deplibs_check_method == "file_magic".
18811file_magic_cmd=$lt_file_magic_cmd
18812
18813# The archiver.
18814AR=$lt_AR
18815AR_FLAGS=$lt_AR_FLAGS
18816
18817# A symbol stripping program.
18818STRIP=$lt_STRIP
18819
18820# Commands used to install an old-style archive.
18821RANLIB=$lt_RANLIB
18822old_postinstall_cmds=$lt_old_postinstall_cmds
18823old_postuninstall_cmds=$lt_old_postuninstall_cmds
18824
18825# What is the maximum length of a command?
18826max_cmd_len=$lt_cv_sys_max_cmd_len
18827
18828# Take the output of nm and produce a listing of raw symbols and C names.
18829global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18830
18831# Transform the output of nm in a proper C declaration.
18832global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18833
18834# Transform the output of nm in a C name address pair.
18835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18836
18837# Object file suffix (normally "o").
18838objext=$ac_objext
18839
18840# Executable file suffix (normally "").
18841exeext=$exeext
18842
18843# The name of the directory that contains temporary libtool files.
18844objdir=$objdir
18845
18846# A C compiler.
18847LTCC=$lt_CC
18848
18849# Shell to use when invoking shell scripts.
18850SHELL=$lt_SHELL
18851
18852# An echo program that does not interpret backslashes.
18853echo=$lt_echo
18854
18855# Used to examine libraries when file_magic_cmd begins "file".
18856MAGIC_CMD=$MAGIC_CMD
18857
18858# Does compiler simultaneously support -c and -o options?
18859compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18860
18861# Must we lock files when doing compilation?
18862need_locks=$lt_need_locks
18863
18864# Old archive suffix (normally "a").
18865libext=$libext
18866
18867# Shared library suffix (normally ".so").
18868shrext_cmds=$lt_shrext_cmds
18869
18870# The commands to extract the exported symbol list from a shared archive.
18871extract_expsyms_cmds=$lt_extract_expsyms_cmds
18872
18873# Variables whose values should be saved in libtool wrapper scripts and
18874# restored at link time.
18875variables_saved_for_relink=$lt_variables_saved_for_relink
18876
18877# Do we need the "lib" prefix for modules?
18878need_lib_prefix=$need_lib_prefix
18879
18880# Do we need a version for libraries?
18881need_version=$need_version
18882
18883# Library versioning type.
18884version_type=$version_type
18885
18886# Shared library runtime path variable.
18887runpath_var=$runpath_var
18888
18889# Shared library path variable.
18890shlibpath_var=$shlibpath_var
18891
18892# Is shibpath searched before the hard-coded library search path?
18893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18894
18895# Format of library name prefix.
18896libname_spec=$lt_libname_spec
18897
18898# List of archive names. First name is the real one,the rest are links.
18899# The last name is the one that the linker finds with -lNAME
18900library_names_spec=$lt_library_names_spec
18901
18902# The coded name of the library,if different from the real name.
18903soname_spec=$lt_soname_spec
18904
18905# Command to use after installation of a shared archive.
18906postinstall_cmds=$lt_postinstall_cmds
18907
18908# Command to use after uninstallation of a shared archive.
18909postuninstall_cmds=$lt_postuninstall_cmds
18910
18911# Commands used to finish a libtool library installation in a directory.
18912finish_cmds=$lt_finish_cmds
18913
18914# As "finish_cmds",except a single script fragment to be evaled but
18915# not shown.
18916finish_eval=$lt_finish_eval
18917
18918# Whether we should hardcode library paths into libraries.
18919hardcode_into_libs=$hardcode_into_libs
18920
18921# Compile-time system search path for libraries.
18922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18923
18924# Run-time system search path for libraries.
18925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18926
18927# Commands to strip libraries.
18928old_striplib=$lt_old_striplib
18929striplib=$lt_striplib
18930
18931# Whether dlopen is supported.
18932dlopen_support=$enable_dlopen
18933
18934# Whether dlopen of programs is supported.
18935dlopen_self=$enable_dlopen_self
18936
18937# Whether dlopen of statically linked programs is supported.
18938dlopen_self_static=$enable_dlopen_self_static
18939
18940
18941# The linker used to build libraries.
18942LD=$lt_LD
18943
18944# Commands used to build an old-style archive.
18945old_archive_cmds=$lt_old_archive_cmds
18946
18947# A language specific compiler.
18948CC=$lt_compiler
18949
18950# Is the compiler the GNU C compiler?
18951with_gcc=$GCC
18952
18953# Compiler flag to turn off builtin functions.
18954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18955
18956# How to pass a linker flag through the compiler.
18957wl=$lt_lt_prog_compiler_wl
18958
18959# Additional compiler flags for building library objects.
18960pic_flag=$lt_lt_prog_compiler_pic
18961
18962# Compiler flag to prevent dynamic linking.
18963link_static_flag=$lt_lt_prog_compiler_static
18964
18965# Whether or not to add -lc for building shared libraries.
18966build_libtool_need_lc=$archive_cmds_need_lc
18967
18968# Whether or not to disallow shared libs when runtime libs are static.
18969allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18970
18971# Compiler flag to allow reflexive dlopens.
18972export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18973
18974# Compiler flag to generate shared objects directly from archives.
18975whole_archive_flag_spec=$lt_whole_archive_flag_spec
18976
18977# Create an old-style archive from a shared archive.
18978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18979
18980# Create a temporary old-style archive to link instead of a shared archive.
18981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18982
18983# Commands used to build a shared archive.
18984archive_cmds=$lt_archive_cmds
18985archive_expsym_cmds=$lt_archive_expsym_cmds
18986
18987# Commands used to build a loadable module if different from building
18988# a shared archive.
18989module_cmds=$lt_module_cmds
18990module_expsym_cmds=$lt_module_expsym_cmds
18991
18992# Flag that allows shared libraries with undefined symbols to be built.
18993allow_undefined_flag=$lt_allow_undefined_flag
18994
18995# Flag that enforces no undefined symbols.
18996no_undefined_flag=$lt_no_undefined_flag
18997
18998# Flag to hardcode $libdir into a binary during linking.
18999# This must work even if $libdir does not exist
19000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19001
19002# If ld is used when linking,flag to hardcode $libdir into a binary
19003# during linking. This must work even if $libdir does not exist.
19004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19005
19006# Whether we need a single "-rpath" flag with a separated argument.
19007hardcode_libdir_separator=$lt_hardcode_libdir_separator
19008
19009# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
19010# DIR into the resulting binary.
19011hardcode_direct=$hardcode_direct
19012
19013# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19014# into the resulting binary.
19015hardcode_minus_L=$hardcode_minus_L
19016
19017# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19018# into the resulting binary.
19019hardcode_shlibpath_var=$hardcode_shlibpath_var
19020
19021# Set to "yes" if building a shared library automatically hardcodes DIR
19022# into the library and all subsequent libraries and executables linked
19023# against it.
19024hardcode_automatic=$hardcode_automatic
19025
19026# Set to yes if linker adds runtime paths of dependent libraries
19027# to runtime path list.
19028inherit_rpath=$inherit_rpath
19029
19030# Whether libtool must link a program against all its dependency libraries.
19031link_all_deplibs=$link_all_deplibs
19032
19033# Fix the shell variable $srcfile for the compiler.
19034fix_srcfile_path=$lt_fix_srcfile_path
19035
19036# Set to "yes" if exported symbols are required.
19037always_export_symbols=$always_export_symbols
19038
19039# The commands to list exported symbols.
19040export_symbols_cmds=$lt_export_symbols_cmds
19041
19042# Symbols that should not be listed in the preloaded symbols.
19043exclude_expsyms=$lt_exclude_expsyms
19044
19045# Symbols that must always be exported.
19046include_expsyms=$lt_include_expsyms
19047
19048# How to hardcode a shared library path into an executable.
19049hardcode_action=$hardcode_action
19050
19051# ### END LIBTOOL CONFIG
19052
19053# The HP-UX ksh and POSIX shell print the target directory to stdout
19054# if CDPATH is set.
19055if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
19056
19057_LT_EOF
19058
19059 case $host_os in
19060 aix3*)
19061 cat <<\_LT_EOF >> "$cfgfile"
19062# AIX sometimes has problems with the GCC collect2 program. For some
19063# reason, if we set the COLLECT_NAMES environment variable, the problems
19064# vanish in a puff of smoke.
19065if test "X${COLLECT_NAMES+set}" != Xset; then
19066 COLLECT_NAMES=
19067 export COLLECT_NAMES
19068fi
19069_LT_EOF
19070 ;;
19071 esac
19072
19073
19074case $ac_aux_dir in
19075 $srcdir) ltmain=./ltmain.sh ;;
19076 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
19077esac
19078test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
19079
19080
19081 # We use sed instead of cat because bash on DJGPP gets confused if
19082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19083 # text mode, it properly converts lines to CR/LF. This bash problem
19084 # is reportedly fixed, but why not run on old versions too?
19085 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
19086
19087 mv -f "$cfgfile" "$ofile" ||
19088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19089 chmod +x "$ofile"
19090
19091 ;;
28412 esac 19092 esac
28413done 19093done
28414_ACEOF 19094_ACEOF
28415 19095
28416cat >>$CONFIG_STATUS <<\_ACEOF 19096cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines